diff options
author | Claire Xen <claire@clairexen.net> | 2022-02-22 15:26:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 15:26:22 +0100 |
commit | ac294ed419286a84117e79e4ccd78a19458ae614 (patch) | |
tree | 6c5efcb420699a7e87dfaf5f3cc0fec9843f73f5 | |
parent | 286caa09bd278dcb877024eeb8c35a66cfc7f92f (diff) | |
parent | 30eb7f8665bb54ee9e3e25e0508ec6201106ac79 (diff) | |
download | yosys-ac294ed419286a84117e79e4ccd78a19458ae614.tar.gz yosys-ac294ed419286a84117e79e4ccd78a19458ae614.tar.bz2 yosys-ac294ed419286a84117e79e4ccd78a19458ae614.zip |
Merge pull request #3197 from YosysHQ/claire/smtbmcfix
Add a bit of flexibilty re AIG witness trace length to smtbmc.py
-rw-r--r-- | backends/smt2/smtbmc.py | 5 |
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: |