Add ITP engine: interpolation-based model checking via itp-bmc#353
Open
inquisitour wants to merge 1 commit intoYosysHQ:mainfrom
Open
Add ITP engine: interpolation-based model checking via itp-bmc#353inquisitour wants to merge 1 commit intoYosysHQ:mainfrom
inquisitour wants to merge 1 commit intoYosysHQ:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
itpengine for interpolation-based model checking using Craig interpolants.Why ITP?
All existing sby engines that support
provemode rely on either k-induction(smtbmc) or PDR/IC3 variants (abc pdr, avy, rIC3, suprove). The
itpengineadds a distinct proof strategy: interpolation-based reachability analysis.
Unlike BMC-only engines (aigbmc, btormc) which can only check up to a finite
bound, the
itpengine achieves unbounded safety proofs by computingCraig interpolants from SAT refutation proofs and checking for fixpoint
convergence. When the over-approximation of reachable states stabilizes, the
property is proved safe for all reachable executions — not just up to a bound.
This complements existing engines:
converge in just a few iterations
Changes
sbysrc/sby_engine_itp.py— new engine implementationsbysrc/sby_mode_prove.py— registeritpengine in prove modesbysrc/sby_mode_bmc.py— registeritpengine in bmc modedocs/source/reference.rst— documentation for the new engineBackend Tool
Requires
itp-bmc: https://github.com/inquisitour/itp-bmcUsage
Tested On
riscv-formal NERV core: insn_add, insn_sub, insn_and, insn_or, insn_xor, insn_lui — all PASS
Limitations