aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-09-18 20:19:14 +0200
committerClifford Wolf <clifford@clifford.at>2015-09-18 20:19:14 +0200
commite063f64ea2d4659c223980451da87dd56b93eda5 (patch)
treedb2ede3fa51ccf9dbc6dd06874441dc297d0c478 /scripts
parent482b2299d5e8507ad987c326c5c31a224d380156 (diff)
downloadpicorv32-e063f64ea2d4659c223980451da87dd56b93eda5.tar.gz
picorv32-e063f64ea2d4659c223980451da87dd56b93eda5.zip
Improvements to smtio.py
Diffstat (limited to 'scripts')
-rw-r--r--scripts/smt2-bmc/async.py2
-rw-r--r--scripts/smt2-bmc/smtio.py1
-rw-r--r--scripts/smt2-bmc/sync.py2
3 files changed, 3 insertions, 2 deletions
diff --git a/scripts/smt2-bmc/async.py b/scripts/smt2-bmc/async.py
index c60cf15..e4854de 100644
--- a/scripts/smt2-bmc/async.py
+++ b/scripts/smt2-bmc/async.py
@@ -22,7 +22,7 @@ python3 async.py [options]
sys.exit(1)
try:
- opts, args = getopt.getopt(sys.argv[1:], "s:t:vdp")
+ opts, args = getopt.getopt(sys.argv[1:], so.optstr + "t:")
except:
usage()
diff --git a/scripts/smt2-bmc/smtio.py b/scripts/smt2-bmc/smtio.py
index e223e85..df14dee 100644
--- a/scripts/smt2-bmc/smtio.py
+++ b/scripts/smt2-bmc/smtio.py
@@ -219,6 +219,7 @@ class smtio:
class smtopts:
def __init__(self):
+ self.optstr = "s:d:vp"
self.solver = "yices"
self.debug_print = False
self.debug_file = None
diff --git a/scripts/smt2-bmc/sync.py b/scripts/smt2-bmc/sync.py
index eca0371..23cadc6 100644
--- a/scripts/smt2-bmc/sync.py
+++ b/scripts/smt2-bmc/sync.py
@@ -18,7 +18,7 @@ python3 sync.py [options]
sys.exit(1)
try:
- opts, args = getopt.getopt(sys.argv[1:], "s:t:vdp")
+ opts, args = getopt.getopt(sys.argv[1:], so.optstr + "t:")
except:
usage()