aboutsummaryrefslogtreecommitdiffstats
path: root/backends/smt2/ywio.py
diff options
context:
space:
mode:
Diffstat (limited to 'backends/smt2/ywio.py')
-rw-r--r--backends/smt2/ywio.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/smt2/ywio.py b/backends/smt2/ywio.py
index 8469b4162..39cfac41e 100644
--- a/backends/smt2/ywio.py
+++ b/backends/smt2/ywio.py
@@ -175,8 +175,9 @@ class WitnessSig:
return self.sort_key < other.sort_key
-def coalesce_signals(signals):
- bits = {}
+def coalesce_signals(signals, bits=None):
+ if bits is None:
+ bits = {}
for sig in signals:
for bit in sig.bits():
if sig.init_only: