util: provide FNSPEC for __unreachable
Adding a spec with precondition False means verification has to show that the function is not called. Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
This commit is contained in:
parent
40c4ad5112
commit
eaed120175
1 changed files with 3 additions and 0 deletions
|
|
@ -91,6 +91,9 @@
|
|||
#define FORCE_O2 __attribute__((optimize("O2")))
|
||||
#endif
|
||||
/** MODIFIES: */
|
||||
/** FNSPEC
|
||||
StrictC'__unreachable_spec: "\<Gamma> \<turnstile> {} Call StrictC'__unreachable_'proc UNIV"
|
||||
*/
|
||||
void __builtin_unreachable(void);
|
||||
#define UNREACHABLE() __builtin_unreachable()
|
||||
#define MAY_ALIAS __attribute__((may_alias))
|
||||
|
|
|
|||
Loading…
Reference in a new issue