mirror of
https://github.com/seL4/seL4.git
synced 2026-03-27 10:29:57 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user