addGatesAttachedToPin(gate, listGate, i);
}
}
private static void addGatesAttachedToPin(Gate gate, List listGate, int i) {
Pin pinFirst = gate.getPin(i);
Pin pin = pinFirst;
do {
findGates(pin.getGate(), listGate);
pin = (Pin) pin.next();
} while (pin != pinFirst);
}