-
Notifications
You must be signed in to change notification settings - Fork 285
Add support for array_exprt to incremental smt2 decision procedure #7004
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 support for array_exprt to incremental smt2 decision procedure #7004
Conversation
thomasspriggs
commented
Jul 8, 2022
- Each commit message has a non-empty body, explaining why the change was made.
- Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
- The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
- Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
- My commit message includes data points confirming performance improvements (if claimed).
- My PR is restricted to a single feature or bugfix.
- White-space or formatting changes outside the feature-related changed lines are in commits of their own.
Codecov Report
@@ Coverage Diff @@
## develop #7004 +/- ##
========================================
Coverage 77.84% 77.85%
========================================
Files 1569 1569
Lines 180590 180656 +66
========================================
+ Hits 140582 140648 +66
Misses 40008 40008
Continue to review full report at Codecov.
|
esteffin
left a comment
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.
All good to me.
Just a minor non-blocking comment
| solver_process->send(smt_declare_function_commandt{array_identifier, {}}); | ||
| const std::vector<exprt> &elements = array.operands(); | ||
| const std::size_t index_width = | ||
| array_sort->index_sort().cast<smt_bit_vector_sortt>()->bit_width(); |
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.
⛏️
array_sort->index_sort() is never enforced to be of smt_bit_vector_sortt type (although we don't use other types).
I suggest adding and INVARIANT to ensure the cast is safe
This means that there will be fewer changes required if we ever change the encoding of arrays such that they do not have a bit vector sorted index. It also means that there is no need to add an invariant for this previously implicitly assumed property.