-
Notifications
You must be signed in to change notification settings - Fork 273
Multi-operand constructor for code_ifthenelset #3504
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
Multi-operand constructor for code_ifthenelset #3504
Conversation
c895f23
to
19ba986
Compare
19ba986
to
967a422
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: 967a422).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/93291442
function_body.add(conditional); | ||
const code_ifthenelset conditional( | ||
init_complete.symbol_expr(), code_returnt()); | ||
function_body.add(std::move(conditional)); |
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.
No need for the temporary conditional
any longer?
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.
True, but I still left it in place as the line otherwise got long-ish. But if anyone thinks it should rather be removed then I'll happily do so.
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.
BTW, the combination of 'const' and std::move won't do anything.
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.
967a422
to
371c809
Compare
This enables RAII rather then incremental construction.
371c809
to
8427934
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: 8427934).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/94994551
This enables RAII rather then incremental construction.