aboutsummaryrefslogtreecommitdiffstats
path: root/backends/smt2
diff options
context:
space:
mode:
authorAlberto Gonzalez <boqwxp@airmail.cc>2020-05-25 20:32:13 +0000
committerAlberto Gonzalez <boqwxp@airmail.cc>2020-05-25 20:38:29 +0000
commit54570a39780f750aa7bfd616f12c58bcf121bbdf (patch)
treeccbee9d52812b423589e2b823bab9d6e744118d7 /backends/smt2
parent903456c267c84d6d924a96ddf4f2b4e2b5caec4a (diff)
downloadyosys-54570a39780f750aa7bfd616f12c58bcf121bbdf.tar.gz
yosys-54570a39780f750aa7bfd616f12c58bcf121bbdf.tar.bz2
yosys-54570a39780f750aa7bfd616f12c58bcf121bbdf.zip
qbfsat: Move SMT2 info statements back to the top of the file.
Diffstat (limited to 'backends/smt2')
-rw-r--r--backends/smt2/smtio.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/smt2/smtio.py b/backends/smt2/smtio.py
index 7cb1e8968..62dfe7c11 100644
--- a/backends/smt2/smtio.py
+++ b/backends/smt2/smtio.py
@@ -236,6 +236,9 @@ class SmtIo:
self.setup_done = True
+ for stmt in self.info_stmts:
+ self.write(stmt)
+
if self.forall and self.solver == "yices":
self.write("(set-option :yices-ef-max-iters 1000000000)")
@@ -244,9 +247,6 @@ class SmtIo:
self.write("(set-logic %s)" % self.logic)
- for stmt in self.info_stmts:
- self.write(stmt)
-
def timestamp(self):
secs = int(time() - self.start_time)
return "## %3d:%02d:%02d " % (secs // (60*60), (secs // 60) % 60, secs % 60)