Skip to content

Commit 8d8051e

Browse files
committed
Add additional assertion for reiniting.
1 parent 7de4fcf commit 8d8051e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aiger/lazy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def __getitem__(self, others):
158158

159159
def reinit(self, latch2init) -> LazyAIG:
160160
"""Update late initial values based on mapping provided."""
161+
assert set(latch2init.keys()) <= self.latches
161162
return UpdatedLatchInits(circ=self, latch2init=latch2init)
162163

163164

0 commit comments

Comments
 (0)