[Phillip] wanted to play with the C preprocessor. He decided to do that by creating a 4 bit full adder. We know this is pretty useless in everyday life, but it was a great learning experience.
Switching algebra is easily visualized using ... gate passed as an input to the final AND of the circuit. The half adder now is: We can reduce the gate count considerably by introducing an XOR ...