Do not change solver output parsing for non-exists-forall problems.
authorAlberto Gonzalez <boqwxp@airmail.cc>
Thu, 26 Mar 2020 21:23:07 +0000 (21:23 +0000)
committerAlberto Gonzalez <boqwxp@airmail.cc>
Thu, 26 Mar 2020 23:00:00 +0000 (23:00 +0000)
backends/smt2/smtio.py

index f7b2ec647b3b12c8a4a37fc2b21596349d04d6bd..69f59df793ef4e6eb083bdf63296d02a5c2a926d 100644 (file)
@@ -704,8 +704,12 @@ class SmtIo:
                     if msg is not None:
                         print("%s waiting for solver (%s)" % (self.timestamp(), msg), flush=True)
 
-        result = ""
-        while result not in ["sat", "unsat", "unknown"]:
+        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: