-
Notifications
You must be signed in to change notification settings - Fork 274
Store identifiers of parameters in goto_functiont::parameter_identifiers [blocks: #4167] #4207
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
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: 548f19a).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/101191642
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.
Just throwing a blocking review in there to buy myself some time to add a few tweaks from #4167. I'll take care of this, no action on anyone else's part required.
548f19a
to
5206e12
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.
I have amended the commit to include all changes necessary to make goto_functiont::parameter_identifiers fully usable.
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.
Mostly lgtm
entry.first->second.type = code_type; | ||
entry.first->second.parameter_identifiers.reserve( | ||
code_type.parameters().size()); | ||
for(const auto ¶meter : code_type.parameters()) |
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.
⛏️ ⛏️ I have a small preference for using <algorithm>
(std::transform
in this case) where applicable
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.
What would a concise piece of code achieving this look like? I'd like to have a list comprehension like parameter_identifiers = [p.get_identifier() for p in code_type.parameters()];
- but that's Python, not C++...
5206e12
to
f3774dc
Compare
This is to enable a transition towards #4167.
f3774dc
to
aa181b6
Compare
This is to enable a transition towards #4167.