Skip to content

Hide instrumentation code from contracts in counterexamples #7324

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

Closed
feliperodri opened this issue Nov 11, 2022 · 6 comments
Closed

Hide instrumentation code from contracts in counterexamples #7324

feliperodri opened this issue Nov 11, 2022 · 6 comments
Assignees
Labels
aws Bugs or features of importance to AWS CBMC users Code Contracts Function and loop contracts

Comments

@feliperodri
Copy link
Collaborator

CBMC version: 5.69.1 (cbmc-5.59.0-676-gb4a4122dee)
Operating system: N/A
Exact command line resulting in the issue:
What behaviour did you expect: No instrumentation code in the counter-example.
What happened instead: Many temporary variables from function contracts instrumentation in the counter-example.

@feliperodri feliperodri added aws Bugs or features of importance to AWS CBMC users Code Contracts Function and loop contracts labels Nov 11, 2022
@feliperodri feliperodri changed the title Hide intrumentation code from contracts in counterexamples Hide instrumentation code from contracts in counterexamples Nov 11, 2022
@tautschnig
Copy link
Collaborator

Those symbols would just need to be marked as auxiliary (or directly be created as auxiliary_symbolt, accomplishing the same).

@remi-delmas-3000
Copy link
Collaborator

I left these visible for debugging purposes, but now would be a good time to hide them

@feliperodri
Copy link
Collaborator Author

@tautschnig if we define them as auxiliary, can we still print them out in counterexamples on a "DEBUG" mode? There is still benefit on certain cases.

@tautschnig
Copy link
Collaborator

One would always get them in the JSON or XML trace; I don't think the plain-text trace ever shows them, but we could consider changing that.

@feliperodri
Copy link
Collaborator Author

If they are still visible in the JSON and XML code, then users would still see them in viewer, correct? (cc. @markrtuttle)

@tautschnig
Copy link
Collaborator

Was fixed in #7326.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws Bugs or features of importance to AWS CBMC users Code Contracts Function and loop contracts
Projects
None yet
Development

No branches or pull requests

3 participants