Skip reading stdout from the solver that if it isn't a line reading only "sat", "unsat", or "unknown".

This commit is contained in:
Alberto Gonzalez 2020-03-26 01:19:47 +00:00
parent c9555c9ade
commit 5accf08ef9
No known key found for this signature in database
GPG Key ID: 8395A8BA109708B2
1 changed files with 3 additions and 1 deletions

View File

@ -704,7 +704,9 @@ 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() result = ""
while result not in ["sat", "unsat", "unknown"]:
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)