Skip to content
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

BMC: include macros in trace #518

Merged
merged 1 commit into from
May 22, 2024
Merged

BMC: include macros in trace #518

merged 1 commit into from
May 22, 2024

Conversation

kroening
Copy link
Member

This adds the values of macro symbols (parameter, localparam, etc.) to the BMC trace.

This adds the values of macro symbols (parameter, localparam, etc.) to the
BMC trace.
@kroening kroening marked this pull request as ready for review May 21, 2024 16:15
Comment on lines +65 to +67
trans_tracet::statet::assignmentt assignment;
assignment.rhs = symbol.value;
assignment.lhs = symbol.symbol_expr();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think trans_tracet::statet::assignmentt should only be constructible with two or three (the source location) arguments, unless use with containers absolutely requires the presence of a default constructor.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will do as separate PR.

Comment on lines +73 to +76
exprt indexed_symbol_expr(ID_symbol, symbol.type);

indexed_symbol_expr.set(
ID_identifier, timeframe_identifier(t, symbol.name));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why does this not use symbol_exprt?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will change, as separate PR.

@kroening kroening merged commit de8cc6a into main May 22, 2024
5 checks passed
@kroening kroening deleted the trans-trace-macros branch May 22, 2024 12:09
kroening added a commit that referenced this pull request May 22, 2024
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.

None yet

2 participants