Special rules for determining parent to whom subsection applies
For purposes of this subsection, the parent whose taxable income shall be taken into account shall be—
(A) in the case of parents who are not married (within the meaning of section 7703), the custodial parent (within the meaning of section 152(e)) of the child, and
(B) in the case of married individuals filing separately, the individual with the greater taxable income.