Skip to content

bv_utilst: mark non-modifying members static #5830

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
Feb 18, 2021

Conversation

tautschnig
Copy link
Collaborator

Some members were marked as const already, but can really be marked as
static; others did not make any use of the (sole) "prop" member, and can
thus be marked static as well.

  • Each commit message has a non-empty body, explaining why the change was made.
  • n/a 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.

@codecov
Copy link

codecov bot commented Feb 16, 2021

Codecov Report

Merging #5830 (9cc63a2) into develop (81ecf05) will increase coverage by 0.01%.
The diff coverage is 82.08%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #5830      +/-   ##
===========================================
+ Coverage    72.84%   72.86%   +0.01%     
===========================================
  Files         1421     1421              
  Lines       154138   154173      +35     
===========================================
+ Hits        112289   112337      +48     
+ Misses       41849    41836      -13     
Impacted Files Coverage Δ
src/goto-programs/goto_convert_class.h 87.30% <ø> (ø)
src/solvers/flattening/boolbv_union.cpp 57.14% <0.00%> (ø)
src/solvers/flattening/boolbv_with.cpp 65.30% <0.00%> (ø)
src/solvers/flattening/bv_utils.h 84.61% <ø> (ø)
src/solvers/flattening/boolbv.h 69.56% <50.00%> (ø)
src/solvers/flattening/bv_pointers.cpp 81.18% <77.07%> (+0.28%) ⬆️
src/goto-programs/builtin_functions.cpp 54.57% <94.11%> (+1.03%) ⬆️
src/ansi-c/c_typecheck_expr.cpp 74.42% <100.00%> (+0.40%) ⬆️
src/solvers/flattening/boolbv_byte_extract.cpp 70.00% <100.00%> (ø)
src/solvers/flattening/boolbv_byte_update.cpp 100.00% <100.00%> (ø)
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9288864...9cc63a2. Read the comment docs.

Copy link
Collaborator

@martin-cs martin-cs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable enough but I am left wondering why aren't there call sites that need modifying?

@tautschnig
Copy link
Collaborator Author

Seems reasonable enough but I am left wondering why aren't there call sites that need modifying?

I wouldn't have expected anything that needs modifying, but it may enable const-ification of some of the call sites.

Some members were marked as const already, but can really be marked as
static; others did not make any use of the (sole) "prop" member, and can
thus be marked static as well.
@tautschnig tautschnig self-assigned this Feb 18, 2021
@tautschnig tautschnig merged commit 38e3048 into diffblue:develop Feb 18, 2021
@tautschnig tautschnig deleted the bv-utils-cleanup branch February 18, 2021 02:52
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