diff options
author | Andrew Zonenberg <azonenberg@drawersteak.com> | 2017-01-05 06:05:58 -0800 |
---|---|---|
committer | Andrew Zonenberg <azonenberg@drawersteak.com> | 2017-01-05 06:05:58 -0800 |
commit | ac90de73becaeac034b226def9c387645698c363 (patch) | |
tree | c1ceac5fd4994ab583eb0221ec4518b1000e5f91 /backends/smt2/smtio.py | |
parent | babd8dc5b1790533f4f6674724524223c7ae48f4 (diff) | |
parent | 2d32c6c4f61052254df32bc7942e4339dd59acaa (diff) | |
download | yosys-ac90de73becaeac034b226def9c387645698c363.tar.gz yosys-ac90de73becaeac034b226def9c387645698c363.tar.bz2 yosys-ac90de73becaeac034b226def9c387645698c363.zip |
Merge https://github.com/cliffordwolf/yosys
Diffstat (limited to 'backends/smt2/smtio.py')
-rw-r--r-- | backends/smt2/smtio.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/backends/smt2/smtio.py b/backends/smt2/smtio.py index 10a134711..497b72db8 100644 --- a/backends/smt2/smtio.py +++ b/backends/smt2/smtio.py @@ -16,7 +16,7 @@ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # -import sys, subprocess, re +import sys, subprocess, re, os from copy import deepcopy from select import select from time import time @@ -73,7 +73,7 @@ class SmtIo: self.debug_print = False self.debug_file = None self.dummy_file = None - self.timeinfo = True + self.timeinfo = os.name != "nt" self.unroll = False self.noincr = False self.info_stmts = list() @@ -618,7 +618,7 @@ class SmtOpts: self.dummy_file = None self.unroll = False self.noincr = False - self.timeinfo = True + self.timeinfo = os.name != "nt" self.logic = None self.info_stmts = list() self.nocomments = False @@ -633,7 +633,7 @@ class SmtOpts: elif o == "--noincr": self.noincr = True elif o == "--noprogress": - self.timeinfo = True + self.timeinfo = False elif o == "--dump-smt2": self.debug_file = open(a, "w") elif o == "--logic": @@ -673,6 +673,7 @@ class SmtOpts: --noprogress disable timer display during solving + (this option is set implicitly on Windows) --dump-smt2 <filename> write smt2 statements to file |