From ec5626b8caa28f8d7a60054804e0562ffd34c276 Mon Sep 17 00:00:00 2001 From: Stefan Holst Date: Mon, 10 Jul 2023 09:00:31 +0900 Subject: [PATCH] remove old connections in substitute node reuse --- src/kyupy/circuit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kyupy/circuit.py b/src/kyupy/circuit.py index e643f84..a09f475 100644 --- a/src/kyupy/circuit.py +++ b/src/kyupy/circuit.py @@ -370,6 +370,8 @@ class Circuit: if designated_cell is not None: node.kind = designated_cell.kind node_map[designated_cell] = node + node.ins = GrowingList() + node.outs = GrowingList() else: node.remove() ios = set(impl.io_nodes)