Skip to content

goto-convert: introduce assignment_lhs_needs_temporary #7047

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

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

kroening
Copy link
Member

This introduces goto_convertt::assignment_lhs_needs_temporary, to be used
instead of needs_cleaning when determining whether to introduce a temporary
for the value of an assignment expression, compound assignment expression,
or pre- or post-increment or decrement operator.

This allows weakening the condition computed by needs_cleaning.

  • 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.

@kroening kroening marked this pull request as ready for review July 30, 2022 19:29
@codecov
Copy link

codecov bot commented Jul 30, 2022

Codecov Report

Merging #7047 (e7039b0) into develop (438aad3) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #7047      +/-   ##
===========================================
- Coverage    77.88%   77.88%   -0.01%     
===========================================
  Files         1569     1569              
  Lines       180989   181001      +12     
===========================================
+ Hits        140962   140971       +9     
- Misses       40027    40030       +3     
Impacted Files Coverage Δ
src/goto-programs/goto_clean_expr.cpp 99.52% <100.00%> (ø)
src/goto-programs/goto_convert_class.h 88.15% <100.00%> (+0.32%) ⬆️
src/goto-programs/goto_convert_side_effect.cpp 94.47% <100.00%> (-0.67%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

This introduces goto_convertt::assignment_lhs_needs_temporary, to be used
instead of needs_cleaning when determining whether to introduce a temporary
for the value of an assignment expression, compound assignment expression,
or pre- or post-increment or decrement operator.

This allows weakening the condition computed by needs_cleaning.
@tautschnig tautschnig merged commit ed19cf1 into develop Sep 2, 2022
@tautschnig tautschnig deleted the shortcircuit branch September 2, 2022 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants