-
Notifications
You must be signed in to change notification settings - Fork 277
Move is_{true,false,zero,one} from exprt
to constant_exprt
#8664
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
base: develop
Are you sure you want to change the base?
Conversation
true/false/zero/one are constants, so only for a `constant_exprt` those methods can ever evaluate to true. This commit both deprecates the `exprt` methods and removes all their uses from the code base.
3252bd9
to
1a6ab22
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8664 +/- ##
===========================================
- Coverage 80.39% 80.38% -0.01%
===========================================
Files 1688 1688
Lines 207134 207448 +314
Branches 73 73
===========================================
+ Hits 166520 166759 +239
- Misses 40614 40689 +75 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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 changes in the contract-related modules LGTM.
This does increase verbosity. |
I think I'd prefer that we make the constructors of |
For numbers, this will be a bit more verbose, but I don't have a great idea. |
Can I suggest to take three different approaches:
Would that work? |
true/false/zero/one are constants, so only for a
constant_exprt
those methods can ever evaluate to true.This commit both deprecates the
exprt
methods and removes all their uses from the code base.