aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaire Xenia Wolf <claire@clairexen.net>2022-02-11 17:24:49 +0100
committerClaire Xenia Wolf <claire@clairexen.net>2022-02-11 17:24:49 +0100
commit30eb7f8665bb54ee9e3e25e0508ec6201106ac79 (patch)
treeef79c9f128f0c4c6c990d69b6165e975e9e0b127
parentfc7d78f0714f4314424e599e609a962b263e5b95 (diff)
downloadyosys-30eb7f8665bb54ee9e3e25e0508ec6201106ac79.tar.gz
yosys-30eb7f8665bb54ee9e3e25e0508ec6201106ac79.tar.bz2
yosys-30eb7f8665bb54ee9e3e25e0508ec6201106ac79.zip
Add a bit of flexibilty re trace length when processing aiger witnesses in smtbmc.py
Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
-rw-r--r--backends/smt2/smtbmc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/smt2/smtbmc.py b/backends/smt2/smtbmc.py
index e5cfcdc08..7e0d8f571 100644
--- a/backends/smt2/smtbmc.py
+++ b/backends/smt2/smtbmc.py
@@ -583,7 +583,10 @@ if aimfile is not None:
if not got_topt:
skip_steps = max(skip_steps, step)
- num_steps = max(num_steps, step+1)
+ # some solvers optimize the properties so that they fail one cycle early,
+ # thus we check the properties in the cycle the aiger witness ends, and
+ # if that doesn't work, we check the cycle after that as well.
+ num_steps = max(num_steps, step+2)
step += 1
if btorwitfile is not None: