Cleanup throws in irep (de)serialization#2960
Conversation
allredj
left a comment
There was a problem hiding this comment.
Passed Diffblue compatibility checks (cbmc commit: c8d7718).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/84845938
| { | ||
| std::cerr << "irep not terminated\n"; | ||
| throw 0; | ||
| throw deserialization_exceptiont("irep not terminated"); |
There was a problem hiding this comment.
Good catch (no pun intended) I'd forgotten about that (I originally introduced something like a cprover_exception_baset and caught that, but then decided against it as I didn't find it saved that much effort compared to not having it...)
There was a problem hiding this comment.
@peterschrammel This is now sorted with #2996
b04c67c to
54d5487
Compare
src/util/exception_utils.h
Outdated
| std::string what() const noexcept; | ||
| }; | ||
|
|
||
| class system_exceptiont |
There was a problem hiding this comment.
Please add comments: when should this be used, i.e., what is (or isn't) a "system" exception.
src/util/exception_utils.h
Outdated
| } | ||
| }; | ||
|
|
||
| class deserialization_exceptiont |
There was a problem hiding this comment.
See other PR: this should likely derive from some common invalid-input exception base class.
allredj
left a comment
There was a problem hiding this comment.
This PR failed Diffblue compatibility checks (cbmc commit: b04c67c).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85131105
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).
allredj
left a comment
There was a problem hiding this comment.
Passed Diffblue compatibility checks (cbmc commit: 54d5487).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85132310
54d5487 to
9373209
Compare
allredj
left a comment
There was a problem hiding this comment.
Passed Diffblue compatibility checks (cbmc commit: 9373209).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85576436
No description provided.