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
Optimize floats memset for zero initialization #1509
Conversation
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.
@rafaelsamenezes: could you also add a regression test that gives "VERIFICATION SUCCESSFUL"?
Results (30s):
It solves a few extra cases. |
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.
LGTM. @rafaelsamenezes are these numbers for svcomp main branch or svcomp23 or which ones? Could you add the link?
b73d1cf
to
c59410b
Compare
Thanks for submitting this PR, @rafaelsamenezes. |
As shown in #1508 esbmc can't handle float memset properly as it breaks k-induction for some reason. This PR is just a workaround by enabling an extra simplification for the case of
float f; memset(&f, 0, sizeof(float));