After Sima Yi had captured Cao Shuang, he first imprisoned him in a prison cell. After a few days, Sima Yi issued a forged imperial edict, falsely accusing Cao Shuang and his brothers of plotting rebellion, and exterminated their entire clan. All of Cao Shuang's faction were executed, and their clans were also wiped out. In this coup at Gaopingling, Sima Yi eliminated Cao Shuang with minimal effort, seized all power, and the Wei state's authority entirely fell into the hands of the Sima clan.
From then on, the Sima clan dominated the court and laid the foundation for later usurping Wei and establishing Jin. Indeed: The treacherous hero once wielded his cunning schemes, thus shifting the foundations of the empire.
As for Jiang Wei, after Zhuge Liang's death, he deeply felt the heavy responsibility of restoring the Han dynasty, so he carried on his legacy and launched several northern expeditions. In the sixteenth year of Yanxi, Jiang Wei led troops out of Didao and attacked the west of the Tao River. Wei's General of the Western Expedition, Guo Huai, and the Inspector of Yongzhou, Chen Tai, among others, led forces to resist him. When Jiang Wei's army reached the west of the Tao River, Wei general Xu Zhi led troops to confront him. Jiang Wei charged forward bravely, killing Xu Zhi in a single encounter. The Wei army was heavily defeated, and Guo Huai retreated to defend. At that time, Wei's General of the Western Pacification, Xiahou Ba, resenting the Sima clan for exterminating his family, surrendered to Shu Han in indignation. Jiang Wei was overjoyed, accepted his advice, and gained his strategies. This battle greatly boosted Shu Han's prestige.
In the eighteenth year of Yanxi, Jiang Wei again led a northern expedition, attacking Longxi with the intention of capturing the Guanzhong region. Wei's Grand General Sima Zhao ordered Chen Tai and others to lead troops in resistance. Jiang Wei besieged Didao city. As Wei reinforcements were about to arrive, Chen Tai devised a clever ambush to cut off Shu's grain supply route. Although Jiang Wei saw through the plan, the enemy forces were strong and it became difficult to continue supplying grain, so he led his troops back to Hanzhong.
In the nineteenth year of Yanxi, Jiang Wei, hearing that Wei's General of the Western Expedition Guo Huai had died, once again raised an army to attack Wei, directly targeting Didao. Wei sent General of the Western Pacification Chen Tai and the great general Deng Ai to lead troops in resistance. Jiang Wei and Deng Ai faced each other outside the city, and the battle became deadlocked.
As for Wei general Deng Ai, he was deeply versed in military strategy and skilled in using unexpected tactics. Jiang Wei and Deng Ai clashed multiple times at Didao, with each side experiencing victories and defeats. Wei general Wang Jing, ignoring Deng Ai's advice, rashly engaged in battle and was defeated by Jiang Wei, suffering heavy casualties. Deng Ai seized the opportunity to counterattack, setting up an ambush as planned. The Shu army also suffered a defeat, and Jiang Wei had no choice but to retreat. This was Jiang Wei's third northern expedition.