-
Notifications
You must be signed in to change notification settings - Fork 273
SMT2 backend: minus on void pointers #7338
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
Conversation
This adds support for p-q for void pointers p and q to the SMT2 backend.
Codecov ReportBase: 78.28% // Head: 78.28% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #7338 +/- ##
========================================
Coverage 78.28% 78.28%
========================================
Files 1642 1642
Lines 189995 190000 +5
========================================
+ Hits 148737 148742 +5
Misses 41258 41258
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
pointer_offset_size(to_pointer_type(expr.op0().type()).base_type(), ns); | ||
CHECK_RETURN(element_size.has_value() && *element_size >= 1); | ||
const auto &base_type = to_pointer_type(expr.op0().type()).base_type(); | ||
mp_integer element_size; |
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.
🤔 It might be nice if this code which works out the element_size
were to be factored out into a separate function. This commit seems to be duplicating the code from pointer addition.
This adds support for
p-q
for void pointersp
andq
to the SMT2 backend.