BDD model checker: early variable quantification#1801
Draft
kroening wants to merge 1 commit into
Draft
Conversation
09b462f to
7339bcf
Compare
Implement the early variable quantification optimisation from Burch, Clarke, McMillan, Dill, Hwang: "Symbolic Model Checking for Sequential Circuit Verification" (1992). Instead of building the monolithic conjunction of all transition conjuncts and then quantifying out next-state variables, we interleave conjunction and quantification: after conjoining each partition, we immediately quantify out next-state variables that do not appear in any remaining partition. This can reduce intermediate BDD sizes from exponential to polynomial. The old monolithic approach is retained as EX_monolithic for benchmarking purposes. A benchmark in benchmarking/bdd_model_checking/ demonstrates the effect using an identity relation with separated variable ordering, where the monolithic approach produces O(3^N) peak BDD nodes while early quantification stays O(1).
7339bcf to
213858d
Compare
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.
Implement the early variable quantification optimisation from Burch, Clarke, McMillan, Dill, Hwang: Symbolic Model Checking for Sequential Circuit Verification (1992).
Changes
Instead of building the monolithic conjunction of all transition conjuncts and then quantifying out next-state variables,
EXnow interleaves conjunction and quantification: after conjoining each partition, it immediately quantifies out next-state variables that do not appear in any remaining partition. This can reduce intermediate BDD sizes from exponential to polynomial.The core addition is
project_next_early(), which:The old monolithic approach is retained as
EX_monolithic()for benchmarking.Benchmark
A benchmark in
benchmarking/bdd_model_checking/demonstrates the effect using an identity relation with separated variable ordering. The metric is peak intermediate BDD node count, which directly reflects memory usage.Monolithic peak BDD nodes grow as O(3^N); early quantification keeps them O(1). Time grows O(N) for early quantification vs exponentially for the monolithic approach.
Testing
All unit tests (122 assertions, 32 test cases) and all regression tests pass.