S = A ⊕ B
C = A·B

S = A ⊕ B ⊕ Cin
Cout = A·B + Cin·(A ⊕ B)