← Back to Report
● FULL ◐ PARTIAL ○ NONE
simple_2-1.c
📄 tests/demo_test_files/simple_2-1.c
1extern void abort(void);
2extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));
3void reach_error() { __assert_fail("0", "simple_2-1.c", 3, "reach_error"); }
4extern unsigned int __VERIFIER_nondet_uint(void);
5
6void __VERIFIER_assert(int cond) {
7 if (!(cond)) {◐PART
8 ERROR: {reach_error();abort();}
9 }
10 return;
11}
12
13int main(void) {
14 unsigned int x = __VERIFIER_nondet_uint();
15
16 while (x < 0x0fffffff) {●FULL
17 x++;
18 }
19
20 __VERIFIER_assert(x >= 0x0fffffff);
21}