-
Notifications
You must be signed in to change notification settings - Fork 274
ai_baset: output now requires function identifier [blocks: #3126] #3828
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
Are the parameter order changes just for consistency? |
src/analyses/ai.h
Outdated
@@ -124,6 +124,18 @@ class ai_baset | |||
{ | |||
} | |||
|
|||
/// Output the abstract states for a single function | |||
/// \param ns: The namespace | |||
/// \param identifier: The identifier used to find a symbol to identify the |
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.
to identify the...
(copy and paste error?)
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.
Not really, the next parameter goto_program,
is what is being identified here. But that's a bit weird to read. Fixed.
f4f333a
to
cc5c8ac
Compare
Yes - I've now split this up in three commits. |
cc5c8ac
to
c16443e
Compare
c16443e
to
500d485
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: 500d485).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/97924789
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.
LGTM modulo naming
src/analyses/ai.cpp
Outdated
@@ -187,12 +187,14 @@ void ai_baset::entry_state(const goto_programt &goto_program) | |||
get_state(goto_program.instructions.begin()).make_entry(); | |||
} | |||
|
|||
void ai_baset::initialize(const goto_functionst::goto_functiont &goto_function) | |||
void ai_baset::initialize( | |||
const irep_idt &function, |
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.
While doing this could we agree on a consistent name, e.g. function_id
, function_identifier
, function
, function_name
or so?
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.
Done (now using function_identifier
).
500d485
to
c94cf4c
Compare
Place the identifier (the name of the function) before the goto program.
We are working towards removing the "function" field from goto_programt::instructionst::instructiont, and thus need to pass the identifier of the function whenever it actually is required.
We are working towards removing the "function" field from goto_programt::instructionst::instructiont, and thus need to pass the identifier of the function whenever it actually is required.
It is as clear, but makes for shorter lines.
1263f04
to
d7db14f
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: d7db14f).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/97965595
We are working towards removing the "function" field from
goto_programt::instructionst::instructiont, and thus need to pass the identifier
of the function whenever it actually is required.