-
Notifications
You must be signed in to change notification settings - Fork 277
use new goto_programt::instructiont API #4088
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
Conversation
6c36ca1
to
a5df597
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.
This does quite a lot a the same time, including changing the interface. Either the bug noted below or something else is causing CI to fail. Reviewing would be much easier if each commit did one thing.
src/goto-programs/cfg.h
Outdated
@@ -288,8 +288,7 @@ void cfg_baset<T, P, I>::compute_edges_function_call( | |||
goto_programt::const_targett next_PC, | |||
entryt &entry) | |||
{ | |||
const exprt &function= | |||
to_code_function_call(instruction.code).function(); | |||
const exprt &function = instruction.get_function_call(); |
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.
This is missing a .function();
This increases type safety when accessing or construcing instructions of goto programs.
f138963
to
c56dbfd
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: c56dbfd).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/99818780
This increases type safety when accessing or construcing instructions of
goto programs.