@frere_jacques I got hung up on "what if a gate is switched with another gate of the same type from a different bit?" It gets complicated, programmatically, to determine which gate is the switched one for such a variety of cases. Not to mention the possibility of two switches occurring in the same full adder. Hence, why I resorted to identifying only the correct full adders and guessing for the rest. I'll have to explore your solution more. I'm not too good with Rust. Thanks for sharing!