← Back to Report
● FULL ◐ PARTIAL ○ NONE
simple_3-1.c
📄 tests/demo_test_files/simple_3-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_3-1.c", 3, "reach_error"); }
4extern unsigned short __VERIFIER_nondet_ushort(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 = 0;
15 unsigned short N = __VERIFIER_nondet_ushort();
16
17 while (x < N) {●FULL
18 x += 2;
19 }
20
21 __VERIFIER_assert(x % 2);
22}