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:
Gerwin Klein
2025-10-03 09:00:06 +10:00
parent 40c4ad5112
commit eaed120175

View File

@@ -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))