-
Notifications
You must be signed in to change notification settings - Fork 277
Add union_exprt
encoding support in incremental smt2 decision procedure
#7926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add union_exprt
encoding support in incremental smt2 decision procedure
#7926
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #7926 +/- ##
===========================================
- Coverage 78.56% 77.88% -0.68%
===========================================
Files 1699 1701 +2
Lines 195804 195932 +128
===========================================
- Hits 153833 152604 -1229
- Misses 41971 43328 +1357
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
class nondet_padding_exprt; | ||
void validate_expr(const nondet_padding_exprt &padding); | ||
|
||
const irep_idt ID_nondet_padding = "nondet_padding"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⛏️ Move ID_nondet_padding
to a public
static
member of class nondet_padding_exprt
This data structure will be used to allow encoding/lowering passes to insert padding bitvectors with non deteriministic values. Unlike the SAT decision procedures, generating an SMT formula for nondet padding will require a corresponding parameter-less function to be defined. This placeholder expression is intended to be inserted in lowering passes and then substituted at the point of term generation. Note that it doesn't quite make sense to use symbols for this as the decision procedure doesn't have mutable symbol table access and adding an extra decision procedure symbol table would have other complications.
a05d703
to
ac9490d
Compare
ac9490d
to
c78a2f6
Compare
This PR is a follow-up to #7914 Like the previous PR, I am attempting to keep this relatively small for ease of review. This PR adds support for
union_exprt
and only tests this support via catch tests.I am planning to add support for
member_exprt
applied to unions in a follow-up PR. At which point it should be possible to make more complete union regression tests pass.