mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #1815 from boqwxp/fix-ef-optimize
Fix solver output parsing for exists-forall optimization
This commit is contained in:
commit
4c38895fab
|
@ -704,7 +704,13 @@ class SmtIo:
|
||||||
if msg is not None:
|
if msg is not None:
|
||||||
print("%s waiting for solver (%s)" % (self.timestamp(), msg), flush=True)
|
print("%s waiting for solver (%s)" % (self.timestamp(), msg), flush=True)
|
||||||
|
|
||||||
result = self.read()
|
if self.forall:
|
||||||
|
result = self.read()
|
||||||
|
while result not in ["sat", "unsat", "unknown"]:
|
||||||
|
print("%s %s: %s" % (self.timestamp(), self.solver, result))
|
||||||
|
result = self.read()
|
||||||
|
else:
|
||||||
|
result = self.read()
|
||||||
|
|
||||||
if self.debug_file:
|
if self.debug_file:
|
||||||
print("(set-info :status %s)" % result, file=self.debug_file)
|
print("(set-info :status %s)" % result, file=self.debug_file)
|
||||||
|
|
Loading…
Reference in New Issue