| 59 | } |
| 60 | |
| 61 | type Add2 struct { |
| 62 | inputA circuit.Wire |
| 63 | inputB circuit.Wire |
| 64 | carryIn circuit.Wire |
| 65 | xor1 circuit.XORGate |
| 66 | xor2 circuit.XORGate |
| 67 | and1 circuit.ANDGate |
| 68 | and2 circuit.ANDGate |
| 69 | or1 circuit.ORGate |
| 70 | carryOut circuit.Wire |
| 71 | sumOut circuit.Wire |
| 72 | } |
| 73 | |
| 74 | func NewAdd2() *Add2 { |
| 75 | a := new(Add2) |
nothing calls this directly
no outgoing calls
no test coverage detected