projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9555c9
)
Skip reading stdout from the solver that if it isn't a line reading only "sat", ...
author
Alberto Gonzalez
<boqwxp@airmail.cc>
Thu, 26 Mar 2020 01:19:47 +0000
(
01:19
+0000)
committer
Alberto Gonzalez
<boqwxp@airmail.cc>
Thu, 26 Mar 2020 01:21:01 +0000
(
01:21
+0000)
backends/smt2/smtio.py
patch
|
blob
|
history
diff --git
a/backends/smt2/smtio.py
b/backends/smt2/smtio.py
index 3559781ec719cf5aa54a01c5561edf5100d20edb..f7b2ec647b3b12c8a4a37fc2b21596349d04d6bd 100644
(file)
--- a/
backends/smt2/smtio.py
+++ b/
backends/smt2/smtio.py
@@
-704,7
+704,9
@@
class SmtIo:
if msg is not None:
print("%s waiting for solver (%s)" % (self.timestamp(), msg), flush=True)
- result = self.read()
+ result = ""
+ while result not in ["sat", "unsat", "unknown"]:
+ result = self.read()
if self.debug_file:
print("(set-info :status %s)" % result, file=self.debug_file)