aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/smt2-bmc/async.py
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-08-27 22:25:11 +0200
committerClifford Wolf <clifford@clifford.at>2015-08-27 22:25:11 +0200
commit35126050525409e9065e1a35a8c6b6ca55b8d3de (patch)
tree7bb84b652c983e7e1d8e9c0f156e1747e7a799bb /scripts/smt2-bmc/async.py
parentebb0ea6f7b6b6ffa2c1284a9ad8fbb139e235282 (diff)
downloadpicorv32-35126050525409e9065e1a35a8c6b6ca55b8d3de.tar.gz
picorv32-35126050525409e9065e1a35a8c6b6ca55b8d3de.zip
Added smtio.py "timer display during solving" feature
Diffstat (limited to 'scripts/smt2-bmc/async.py')
-rw-r--r--scripts/smt2-bmc/async.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/smt2-bmc/async.py b/scripts/smt2-bmc/async.py
index 80ffb72..d088428 100644
--- a/scripts/smt2-bmc/async.py
+++ b/scripts/smt2-bmc/async.py
@@ -12,6 +12,7 @@ fastmem = False
initzero = False
check_mem = True
check_regs = True
+timeinfo = True
debug_print = False
debug_file = None
@@ -29,13 +30,16 @@ python3 async.py [options]
-v
enable debug output
+ -p
+ disable timer display during solving
+
-d
write smt2 statements to debug.smt2
""")
sys.exit(1)
try:
- opts, args = getopt.getopt(sys.argv[1:], "s:t:vd")
+ opts, args = getopt.getopt(sys.argv[1:], "s:t:vdp")
except:
usage()
@@ -48,6 +52,8 @@ for o, a in opts:
debug_print = True
elif o == "-d":
debug_file = open("debug.smt2", "w")
+ elif o == "-p":
+ timeinfo = False
else:
usage()
@@ -55,7 +61,7 @@ if len(args) > 0:
usage()
start_time = time()
-smt = smtio(solver=solver, debug_print=debug_print, debug_file=debug_file)
+smt = smtio(solver=solver, debug_print=debug_print, debug_file=debug_file, timeinfo=timeinfo)
def timestamp():
secs = int(time() - start_time)