mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
Improve UX for unreachable/unimplemented errors (#4094)
This should replace several "segfaults" and "illegal instruction" errors with messages that contain a bit more context. I also put in a link to the bug tracker to make users' lives a bit easier. For context, `__builtin_unreachable`'s behavior is undefined and is intended only as a mechanism to help the compiler see that code will not return. I do still include it in the new code because if I don't, compilation produces a lot more warnings as it can't see that `NOT_IMPLEMENTED_YET` and `UNREACHABLE` cannot return.
This commit is contained in:
parent
a11dc5d3b5
commit
7e34925035
4 changed files with 23 additions and 9 deletions
|
@ -33,6 +33,7 @@ Revision History:
|
|||
#define ERR_TYPE_CHECK 111
|
||||
#define ERR_UNKNOWN_RESULT 112
|
||||
#define ERR_ALLOC_EXCEEDED 113
|
||||
#define ERR_UNREACHABLE 114
|
||||
|
||||
#endif /* ERROR_CODES_H_ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue