Skip to content

goto-instrument/wmm: do not lookup non-existent symbols in the namespace #6102

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
May 12, 2021

Conversation

tautschnig
Copy link
Collaborator

Making up function names on the spot resulted in failing namespace
lookups. Avoid those lookups altogether and pass in a known symbol. The
made-up name should instead be constructed via the suffix parameter,
which supports exactly this use case.

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

Making up function names on the spot resulted in failing namespace
lookups. Avoid those lookups altogether and pass in a known symbol. The
made-up name should instead be constructed via the suffix parameter,
which supports exactly this use case.
@codecov
Copy link

codecov bot commented May 10, 2021

Codecov Report

Merging #6102 (98f9cc2) into develop (4c14789) will increase coverage by 0.50%.
The diff coverage is 95.23%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #6102      +/-   ##
===========================================
+ Coverage    74.52%   75.03%   +0.50%     
===========================================
  Files         1447     1447              
  Lines       157808   157794      -14     
===========================================
+ Hits        117610   118397     +787     
+ Misses       40198    39397     -801     
Impacted Files Coverage Δ
src/goto-instrument/wmm/shared_buffers.h 95.23% <75.00%> (+95.23%) ⬆️
src/goto-instrument/wmm/shared_buffers.cpp 77.83% <100.00%> (+77.83%) ⬆️
src/goto-programs/goto_program.h 91.63% <0.00%> (+0.64%) ⬆️
src/goto-instrument/wmm/cycle_collection.cpp 88.04% <0.00%> (+3.26%) ⬆️
src/goto-instrument/rw_set.h 47.27% <0.00%> (+5.45%) ⬆️
src/goto-instrument/wmm/event_graph.h 71.29% <0.00%> (+6.48%) ⬆️
src/goto-instrument/wmm/goto2graph.cpp 54.41% <0.00%> (+9.11%) ⬆️
src/goto-instrument/rw_set.cpp 52.68% <0.00%> (+10.75%) ⬆️
src/goto-instrument/wmm/goto2graph.h 92.85% <0.00%> (+11.90%) ⬆️
src/ansi-c/c_storage_spec.cpp 97.36% <0.00%> (+18.42%) ⬆️
... and 5 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 25a7b36...98f9cc2. Read the comment docs.

Copy link
Contributor

@chrisr-diffblue chrisr-diffblue left a comment

Choose a reason for hiding this comment

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

Looks good to me! And apologies for the delay getting to review...

@tautschnig tautschnig merged commit 865d3b6 into diffblue:develop May 12, 2021
@tautschnig tautschnig deleted the fix-wmm-shared_buffer branch May 12, 2021 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants