-
Notifications
You must be signed in to change notification settings - Fork 278
Initialization ordering #3729
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
Initialization ordering #3729
Conversation
kroening
commented
Jan 8, 2019
- 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.
- n/a 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).
- n/a My commit message includes data points confirming performance improvements (if claimed).
- My PR is restricted to a single feature or bugfix.
- n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.
The actual change is small; look at 2nd commit. |
Refactoring, reduces the size of a function
5ac4ef7
to
d13f1da
Compare
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: d13f1da).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/96722472
src/linking/static_lifetime_init.cpp
Outdated
if(code.has_value()) | ||
dest.add(std::move(*code)); | ||
} | ||
if(has_prefix(id2string(id), CPROVER_PREFIX)) |
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.
The use of id2string
seems unnecessary, we are dealing with a std::string
already.
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.
Fixed
This ensures, among others, that the rounding mode is set before any initializers are evaluated. Fixes #3708.
d13f1da
to
958a61f
Compare
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: 958a61f).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/96739026