(1) a spouse, or
(2) a former spouse, but only if the transfer is incident to the divorce.
(1) for purposes of this subtitle, the property shall be treated as acquired by the transferee by gift, and
(2) the basis of the transferee in the property shall be the adjusted basis of the transferor.
(1) occurs within 1 year after the date on which the marriage ceases, or
(2) is related to the cessation of the marriage.
Subsection (a) shall not apply if the spouse (or former spouse) of the individual making the transfer is a nonresident alien.
(1) the sum of the amount of the liabilities assumed, plus the amount of the liabilities to which the property is subject, exceeds
(2) the total of the adjusted basis of the property transferred.