Skip to content

Commit

Permalink
No transitioning of value sets during initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ckirsch committed Jan 15, 2025
1 parent dbff1a2 commit 9cd0079
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tools/bitme.py
Original file line number Diff line number Diff line change
Expand Up @@ -2008,14 +2008,20 @@ def __str__(self):
def get_z3_step(self, step):
assert step == 0, f"z3 init with {step} != 0"
self.state_line.set_instance(self.exp_line, -1)
return self.state_line.get_z3_name(0) == self.state_line.get_z3_instance(-1)
if isinstance(self.state_line.get_instance(-1), Values):
return z3.BoolVal(True)
else:
return self.state_line.get_z3_name(0) == self.state_line.get_z3_instance(-1)

def get_bitwuzla_step(self, step, tm):
assert step == 0, f"bitwuzla init with {step} != 0"
self.state_line.set_instance(self.exp_line, -1)
return tm.mk_term(bitwuzla.Kind.EQUAL,
[self.state_line.get_bitwuzla_name(0, tm),
self.state_line.get_bitwuzla_instance(-1, tm)])
if isinstance(self.state_line.get_instance(-1), Values):
return tm.mk_true()
else:
return tm.mk_term(bitwuzla.Kind.EQUAL,
[self.state_line.get_bitwuzla_name(0, tm),
self.state_line.get_bitwuzla_instance(-1, tm)])

class Next(Transitional):
keyword = OP_NEXT
Expand Down

0 comments on commit 9cd0079

Please sign in to comment.