Skip to content

Commit

Permalink
Fix SMT parsing; release v2.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
liffiton committed May 25, 2020
1 parent 8a11f8e commit 91576cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES_since_1.0
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2.1.0 - 2020-05-24
------------------
* Fix SMT parsing (the z3 API changed at some point)

2.0.1 - 2017-10-12
------------------
* Add --print-mcses option to print MCS constraints instead of MSS constraints
Expand Down
6 changes: 3 additions & 3 deletions SMTsolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ def read_dimacs(filename):

def read_smt2(filename):
formula = parse_smt2_file(filename)
if is_and(formula):
return formula.children()
if len(formula) == 1 and is_and(formula[0]):
return formula[0].children()
else:
return [formula]
return formula


class Z3SubsetSolver(object):
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.1
2.1.0

0 comments on commit 91576cb

Please sign in to comment.