Skip to content

cfgt: introduce and use a public interface when interacting with the entry map [blocks: 5049, 5059] #5051

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
Aug 23, 2019

Conversation

smowton
Copy link
Contributor

@smowton smowton commented Aug 22, 2019

This eliminates many uses of the cfg[cfg.entry_map[instruction]] pattern, and makes it easier to refactor / change the implementation of cfgt. No behavioural changes intended. Depends on #5045 -- don't review the first commit.

Copy link
Member

@peterschrammel peterschrammel left a comment

Choose a reason for hiding this comment

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

lgtm

@peterschrammel peterschrammel changed the title cfgt: introduce and use a public interface when interacting with the entry map cfgt: introduce and use a public interface when interacting with the entry map [depends: 5045] Aug 23, 2019
@peterschrammel peterschrammel changed the title cfgt: introduce and use a public interface when interacting with the entry map [depends: 5045] cfgt: introduce and use a public interface when interacting with the entry map [depends: 5045, blocks: 5049] Aug 23, 2019
@peterschrammel peterschrammel changed the title cfgt: introduce and use a public interface when interacting with the entry map [depends: 5045, blocks: 5049] cfgt: introduce and use a public interface when interacting with the entry map [depends: 5045, blocks: 5049, 5059] Aug 23, 2019
@smowton smowton force-pushed the smowton/cleanup/cfg-interface branch from 8460a02 to afb2a95 Compare August 23, 2019 20:15
@smowton smowton changed the title cfgt: introduce and use a public interface when interacting with the entry map [depends: 5045, blocks: 5049, 5059] cfgt: introduce and use a public interface when interacting with the entry map [blocks: 5049, 5059] Aug 23, 2019
…entry map

This eliminates many uses of the cfg[cfg.entry_map[instruction]] pattern, and makes it
easier to refactor / change the implementation of cfgt.
@smowton smowton force-pushed the smowton/cleanup/cfg-interface branch from afb2a95 to 9b0133d Compare August 23, 2019 20:24
Copy link
Contributor

@allredj allredj left a 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: 9b0133d).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/124431732

@codecov-io
Copy link

Codecov Report

Merging #5051 into develop will decrease coverage by <.01%.
The diff coverage is 91.17%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #5051      +/-   ##
===========================================
- Coverage    69.57%   69.57%   -0.01%     
===========================================
  Files         1314     1314              
  Lines       108913   108898      -15     
===========================================
- Hits         75773    75762      -11     
+ Misses       33140    33136       -4
Impacted Files Coverage Δ
src/goto-diff/change_impact.cpp 0% <ø> (ø) ⬆️
src/goto-instrument/points_to.cpp 0% <0%> (ø) ⬆️
src/goto-instrument/count_eloc.cpp 34.92% <0%> (+1.58%) ⬆️
src/goto-instrument/reachability_slicer.cpp 99.04% <100%> (-0.03%) ⬇️
src/analyses/cfg_dominators.h 100% <100%> (ø) ⬆️
src/goto-instrument/full_slicer.cpp 94.89% <100%> (+0.55%) ⬆️
src/goto-programs/cfg.h 75.67% <100%> (ø) ⬆️
...mc/src/java_bytecode/java_local_variable_table.cpp 96.58% <100%> (+0.03%) ⬆️

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 82d0ea2...9b0133d. Read the comment docs.

@smowton smowton merged commit e7f2930 into diffblue:develop Aug 23, 2019
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.

4 participants