Skip to content

Commit 91576cb

Browse files
committed
Fix SMT parsing; release v2.1.0.
1 parent 8a11f8e commit 91576cb

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Diff for: CHANGES_since_1.0

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2.1.0 - 2020-05-24
2+
------------------
3+
* Fix SMT parsing (the z3 API changed at some point)
4+
15
2.0.1 - 2017-10-12
26
------------------
37
* Add --print-mcses option to print MCS constraints instead of MSS constraints

Diff for: SMTsolvers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def read_dimacs(filename):
2424

2525
def read_smt2(filename):
2626
formula = parse_smt2_file(filename)
27-
if is_and(formula):
28-
return formula.children()
27+
if len(formula) == 1 and is_and(formula[0]):
28+
return formula[0].children()
2929
else:
30-
return [formula]
30+
return formula
3131

3232

3333
class Z3SubsetSolver(object):

Diff for: VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.1
1+
2.1.0

0 commit comments

Comments
 (0)