[solvers/symex] Add ConcolicInputSpec and SymExOptions to CFG symbolic execution engine. - #4892
Closed
copybara-service[bot] wants to merge 1 commit into
Closed
copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
…c execution engine.
Adds `ConcolicInputSpec` and `SymExOptions` to configure symbolic path
exploration. `ConcolicInputSpec` supports binding concrete parameter values
programmatically. `SymExOptions` bundles concolic inputs with
path exploration limits (`max_paths`), enabling upfront branch pruning
and preventing path explosion.
- ConcolicInputSpec (concolic_input_spec.{h,cc}): Encapsulates concrete
parameter assignments with fluent builder methods.
- SymExOptions (cfg_symex_engine.h): Configuration struct for ExplorePaths
holding concrete parameter specifications and optional max_paths limit.
- CfgSymExEngine (cfg_symex_engine.{h,cc}): Uses SymExOptions to bind
concrete constants and enforce path limits during forward DFS traversal.
- Tests:
- concolic_input_spec_test.cc: Unit tests for ConcolicInputSpec construction
and parameter querying.
- cfg_symex_engine_test.cc: Unit tests verifying concolic branch pruning and
max_paths limit.
- symex_e2e_test.cc: Integration test demonstrating ALU path pruning with
concrete opcode.
PiperOrigin-RevId: 974256904
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.
[solvers/symex] Add ConcolicInputSpec and SymExOptions to CFG symbolic execution engine.
Adds
ConcolicInputSpecandSymExOptionsto configure symbolic pathexploration.
ConcolicInputSpecsupports binding concrete parameter valuesprogrammatically.
SymExOptionsbundles concolic inputs withpath exploration limits (
max_paths), enabling upfront branch pruningand preventing path explosion.
parameter assignments with fluent builder methods.
holding concrete parameter specifications and optional max_paths limit.
concrete constants and enforce path limits during forward DFS traversal.
and parameter querying.
max_paths limit.
concrete opcode.