In the first example there was good revs/earnings and a corporate surplus, in the second example there was no revs, a big loss, and a corporate deficit.
Both cases have a shareholder basis of $1.
I do not see a relationship between corporate deficit and investor basis.