-
Notifications
You must be signed in to change notification settings - Fork 274
Add way to have irep pretty printed as diagnostic #2930
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
Add way to have irep pretty printed as diagnostic #2930
Conversation
660fdd7
to
969825c
Compare
src/util/irep.h
Outdated
struct irep_pretty_diagnosticst | ||
{ | ||
const irept &irep; | ||
}; |
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.
Can we have a constructor that takes const irept &irep
?
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
969825c
to
3a59bd6
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.
LGTM
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.
This PR failed Diffblue compatibility checks (cbmc commit: 969825c).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/84317430
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
src/util/irep.cpp
Outdated
: irep(irep) | ||
{ | ||
} | ||
|
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.
remove blank line
Invariant check failed | ||
value: 00000000000000000000000000001000 | ||
value: 00000000000000000000000000001101 | ||
|
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.
remove blank line
regression/invariants/driver.cpp
Outdated
@@ -149,6 +152,13 @@ int main(int argc, char** argv) | |||
"an invariant with some custom diagnostics", | |||
DiagnosticA{}, | |||
DiagnosticB{}); | |||
else if(arg == "invariant-with-irep-diagnostics") | |||
INVARIANT_WITH_DIAGNOSTICS( |
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.
put multi-line statement inside braces.
3a59bd6
to
1ba1da2
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.
This PR failed Diffblue compatibility checks (cbmc commit: 3a59bd6).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/84330448
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
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: 1ba1da2).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/84331624
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.
This PR failed Diffblue compatibility checks (cbmc commit: 1ba1da2).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/84412314
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
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.
This PR failed Diffblue compatibility checks (cbmc commit: 1ba1da2).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/84412314
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
Merging despite compatibility check as per in-person communication with @thk123 |
Note that this is done through a wrapper to easily allow switching between different ways to represent an irep, here it's done with
pretty()
, but depending on the irep other representations (such asfrom_expr
) or a combination of different representations may be desirable.