Skip to content

Commit

Permalink
bugfix in yices solver
Browse files Browse the repository at this point in the history
  • Loading branch information
robmcl4 committed May 28, 2024
1 parent e0fe3f6 commit 502c61a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions greed/solver/yices2.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,8 @@ def __init__(self, *args: YicesTermBool):
self.args = list(args)

def dump_smt2(self):
return f"(and {self.lhs.dump_smt2()} {self.rhs.dump_smt2()})"
and_args = ' '.join([arg.dump_smt2() for arg in self.args])
return f"(and {and_args})"

def __getstate__(self):
return {"args": self.args}
Expand All @@ -590,7 +591,8 @@ def __init__(self, *args: YicesTermBool):
self.args = list(args)

def dump_smt2(self):
return f"(or {self.lhs.dump_smt2()} {self.rhs.dump_smt2()})"
or_args = ' '.join([arg.dump_smt2() for arg in self.args])
return f"(or {or_args})"

def __getstate__(self):
return {"args": self.args}
Expand Down

0 comments on commit 502c61a

Please sign in to comment.