projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4bbfd2
)
Check results of (check-sat) in yosys-smtbmc
author
Clifford Wolf
<clifford@clifford.at>
Wed, 7 Mar 2018 21:54:19 +0000
(22:54 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Wed, 7 Mar 2018 21:54:19 +0000
(22:54 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
backends/smt2/smtio.py
patch
|
blob
|
history
diff --git
a/backends/smt2/smtio.py
b/backends/smt2/smtio.py
index f61f3e77ed6335051e635631eda8aaa67bc10e2a..fed4524ce034fb632d13c60fa12d091ba63fbb06 100644
(file)
--- a/
backends/smt2/smtio.py
+++ b/
backends/smt2/smtio.py
@@
-646,6
+646,8
@@
class SmtIo:
sys.stderr.flush()
result = self.read()
+ assert result in ["sat", "unsat"]
+
if self.debug_file:
print("(set-info :status %s)" % result, file=self.debug_file)
print("(check-sat)", file=self.debug_file)