foreign corporation, such controlled foreign corporation shall be deemed to have paid so much of such other controlled foreign corporation’s foreign income taxes as— (A) are properly attributable to such portion, and (B) have not been deemed to have been paid by a domestic corporation under this section for any prior taxable year.