diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-01-18 14:25:22 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-01-18 14:25:22 +0100 |
commit | 54aeca0983484644249dafa98416df15ec4ab74b (patch) | |
tree | 3b077fe0d40327d5883df3979967e5dfa1138f2b | |
parent | 57e02b662906f80ae43445a328c5476d1b92bd60 (diff) | |
download | yosys-54aeca0983484644249dafa98416df15ec4ab74b.tar.gz yosys-54aeca0983484644249dafa98416df15ec4ab74b.tar.bz2 yosys-54aeca0983484644249dafa98416df15ec4ab74b.zip |
Move user-provided smt2 info stmts to the top of the yosys-smtbmc smt2 output
-rw-r--r-- | backends/smt2/smtio.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/smt2/smtio.py b/backends/smt2/smtio.py index ec5253205..a9d9de8fa 100644 --- a/backends/smt2/smtio.py +++ b/backends/smt2/smtio.py @@ -150,14 +150,14 @@ class SmtIo: self.setup_done = True + for stmt in self.info_stmts: + self.write(stmt) + if self.produce_models: self.write("(set-option :produce-models true)") 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 "## %6d %3d:%02d:%02d " % (secs, secs // (60*60), (secs // 60) % 60, secs % 60) |