-
Notifications
You must be signed in to change notification settings - Fork 284
JBMC: support list-symbols #3207
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
JBMC: support list-symbols #3207
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.
Clang-format is complaining: https://travis-ci.org/diffblue/cbmc/jobs/443779256#L547
jbmc/src/jbmc/jbmc_parse_options.h
Outdated
OPT_SHOW_CLASS_HIERARCHY \ | ||
"(show-loops)" \ | ||
"(show-symbol-table)(show-parse-tree)" \ | ||
"(show-symbol-table)(list-symbols)(show-parse-tree)" \ |
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.
Preferably put on separate lines.
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 am struggling to reconcile the commit subject with the actual changes. The notes in the PR make more sense, but seemingly those haven't made it into the commit message.
The plain-text mode correctly prints only names and types; with --json-ui until now we accidentally printed the symbol's value as well, which should only happen with --show-symbol-table.
No functional changes
8cd5034
to
1891dcf
Compare
@tautschnig oops, was from a subtree cherry-pick. Fixed. |
1891dcf
to
d61ad5b
Compare
d61ad5b
to
74c9ff9
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: 74c9ff9).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/88760621
This mirrors the support already present in cbmc
74c9ff9
to
87581eb
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: 87581eb).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/88799241
Add
--list-symbols
argument to JBMC (matching existing argument in CBMC), and fix the accidental inclusion of the symbol value in the JSON output even inlist
mode.