#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int __VERIFIER_nondet_int();
int main() {
  int lk1 = 0;
  int lk2 = 0;
  int lk3 = 0;
  int lk4 = 0;
  int lk5 = 0;
  int cond = __VERIFIER_nondet_int();
  while (cond) {
    while (cond) {
      while (cond) {
        while (cond) {
          while (cond) {
            if (cond == 1) {
              lk5 = 1;
            } else {
              cond = 2;
            }
            if (cond == 1) {
              if (lk5 != 1)
                goto ERROR;
              lk5 = 0;
            } else {
            }
            cond = __VERIFIER_nondet_int();
          }
          cond = __VERIFIER_nondet_int();
          if (cond == 1) {
            lk4 = 1;
          } else {
            cond = 2;
          }
          if (cond == 1) {
            if (lk4 != 1)
              goto ERROR;
            lk4 = 0;
          } else {
          }
          cond = __VERIFIER_nondet_int();
        }
        cond = __VERIFIER_nondet_int();
        if (cond == 1) {
          lk3 = 1;
        } else {
          cond = 2;
        }
        if (cond == 1) {
          if (lk3 != 1)
            goto ERROR;
          lk3 = 0;
        } else {
        }
        cond = __VERIFIER_nondet_int();
      }
      cond = __VERIFIER_nondet_int();
      if (cond == 1) {
        lk2 = 1;
      } else {
        cond = 2;
      }
      if (cond == 1) {
        if (lk2 != 1)
          goto ERROR;
        lk2 = 0;
      } else {
      }
      cond = __VERIFIER_nondet_int();
    }
    cond = __VERIFIER_nondet_int();
    if (cond == 1) {
      lk1 = 1;
    } else {
      cond = 2;
    }
    if (cond == 1) {
      if (lk1 != 1)
        goto ERROR;
      lk1 = 0;
    } else {
    }
    cond = __VERIFIER_nondet_int();
  }
  return 0;
ERROR:
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1368 <main+0x258>
jmp    115b <main+0x4b>
cmpl   $0x0,-0x1c(%rbp)
je     1308 <main+0x1f8>
jmp    116a <main+0x5a>
cmpl   $0x0,-0x1c(%rbp)
je     12a8 <main+0x198>
jmp    1179 <main+0x69>
cmpl   $0x0,-0x1c(%rbp)
je     1248 <main+0x138>
jmp    1188 <main+0x78>
cmpl   $0x0,-0x1c(%rbp)
je     11e8 <main+0xd8>
cmpl   $0x1,-0x1c(%rbp)
jne    11a8 <main+0x98>
movl   $0x1,-0x18(%rbp)
jmp    11af <main+0x9f>
movl   $0x2,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    11d4 <main+0xc4>
cmpl   $0x1,-0x18(%rbp)
je     11c8 <main+0xb8>
jmp    1374 <main+0x264>
movl   $0x0,-0x18(%rbp)
jmp    11d9 <main+0xc9>
jmp    11d9 <main+0xc9>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x1c(%rbp)
jmp    1188 <main+0x78>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    1208 <main+0xf8>
movl   $0x1,-0x14(%rbp)
jmp    120f <main+0xff>
movl   $0x2,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    1234 <main+0x124>
cmpl   $0x1,-0x14(%rbp)
je     1228 <main+0x118>
jmp    1374 <main+0x264>
movl   $0x0,-0x14(%rbp)
jmp    1239 <main+0x129>
jmp    1239 <main+0x129>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x1c(%rbp)
jmp    1179 <main+0x69>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    1268 <main+0x158>
movl   $0x1,-0x10(%rbp)
jmp    126f <main+0x15f>
movl   $0x2,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    1294 <main+0x184>
cmpl   $0x1,-0x10(%rbp)
je     1288 <main+0x178>
jmp    1374 <main+0x264>
movl   $0x0,-0x10(%rbp)
jmp    1299 <main+0x189>
jmp    1299 <main+0x189>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x1c(%rbp)
jmp    116a <main+0x5a>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    12c8 <main+0x1b8>
movl   $0x1,-0xc(%rbp)
jmp    12cf <main+0x1bf>
movl   $0x2,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    12f4 <main+0x1e4>
cmpl   $0x1,-0xc(%rbp)
je     12e8 <main+0x1d8>
jmp    1374 <main+0x264>
movl   $0x0,-0xc(%rbp)
jmp    12f9 <main+0x1e9>
jmp    12f9 <main+0x1e9>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x1c(%rbp)
jmp    115b <main+0x4b>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    1328 <main+0x218>
movl   $0x1,-0x8(%rbp)
jmp    132f <main+0x21f>
movl   $0x2,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    1354 <main+0x244>
cmpl   $0x1,-0x8(%rbp)
je     1348 <main+0x238>
jmp    1374 <main+0x264>
movl   $0x0,-0x8(%rbp)
jmp    1359 <main+0x249>
jmp    1359 <main+0x249>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x1c(%rbp)
jmp    114c <main+0x3c>
movl   $0x0,-0x4(%rbp)
jmp    137b <main+0x26b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %eax,%eax
je     117a <main+0x6a>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %eax,%eax
jne    1130 <main+0x20>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %eax,%eax
jne    1130 <main+0x20>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %eax,%eax
jne    1130 <main+0x20>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %eax,%eax
jne    1130 <main+0x20>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
jmp    1120 <main+0x10>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
%8 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %8, i32* %7
br label %9
9: ; preds = %110, %0
%10 = load i32, i32* %7
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %112
12: ; preds = %9
br label %13
13: ; preds = %93, %12
%14 = load i32, i32* %7
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %95
16: ; preds = %13
br label %17
17: ; preds = %76, %16
%18 = load i32, i32* %7
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %78
20: ; preds = %17
br label %21
21: ; preds = %59, %20
%22 = load i32, i32* %7
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %61
24: ; preds = %21
br label %25
25: ; preds = %42, %24
%26 = load i32, i32* %7
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %44
28: ; preds = %25
%29 = load i32, i32* %7
%30 = icmp eq i32 %29, 1
br i1 %30, label %31, label %32
31: ; preds = %28
store i32 1, i32* %6
br label %33
32: ; preds = %28
store i32 2, i32* %7
br label %33
33: ; preds = %32, %31
%34 = load i32, i32* %7
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %41
36: ; preds = %33
%37 = load i32, i32* %6
%38 = icmp ne i32 %37, 1
br i1 %38, label %39, label %40
39: ; preds = %36
br label %113
40: ; preds = %36
store i32 0, i32* %6
br label %42
41: ; preds = %33
br label %42
42: ; preds = %41, %40
%43 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %43, i32* %7
br label %25
44: ; preds = %25
%45 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %45, i32* %7
%46 = load i32, i32* %7
%47 = icmp eq i32 %46, 1
br i1 %47, label %48, label %49
48: ; preds = %44
store i32 1, i32* %5
br label %50
49: ; preds = %44
store i32 2, i32* %7
br label %50
50: ; preds = %49, %48
%51 = load i32, i32* %7
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %58
53: ; preds = %50
%54 = load i32, i32* %5
%55 = icmp ne i32 %54, 1
br i1 %55, label %56, label %57
56: ; preds = %53
br label %113
57: ; preds = %53
store i32 0, i32* %5
br label %59
58: ; preds = %50
br label %59
59: ; preds = %58, %57
%60 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %60, i32* %7
br label %21
61: ; preds = %21
%62 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %62, i32* %7
%63 = load i32, i32* %7
%64 = icmp eq i32 %63, 1
br i1 %64, label %65, label %66
65: ; preds = %61
store i32 1, i32* %4
br label %67
66: ; preds = %61
store i32 2, i32* %7
br label %67
67: ; preds = %66, %65
%68 = load i32, i32* %7
%69 = icmp eq i32 %68, 1
br i1 %69, label %70, label %75
70: ; preds = %67
%71 = load i32, i32* %4
%72 = icmp ne i32 %71, 1
br i1 %72, label %73, label %74
73: ; preds = %70
br label %113
74: ; preds = %70
store i32 0, i32* %4
br label %76
75: ; preds = %67
br label %76
76: ; preds = %75, %74
%77 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %77, i32* %7
br label %17
78: ; preds = %17
%79 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %79, i32* %7
%80 = load i32, i32* %7
%81 = icmp eq i32 %80, 1
br i1 %81, label %82, label %83
82: ; preds = %78
store i32 1, i32* %3
br label %84
83: ; preds = %78
store i32 2, i32* %7
br label %84
84: ; preds = %83, %82
%85 = load i32, i32* %7
%86 = icmp eq i32 %85, 1
br i1 %86, label %87, label %92
87: ; preds = %84
%88 = load i32, i32* %3
%89 = icmp ne i32 %88, 1
br i1 %89, label %90, label %91
90: ; preds = %87
br label %113
91: ; preds = %87
store i32 0, i32* %3
br label %93
92: ; preds = %84
br label %93
93: ; preds = %92, %91
%94 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %94, i32* %7
br label %13
95: ; preds = %13
%96 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %96, i32* %7
%97 = load i32, i32* %7
%98 = icmp eq i32 %97, 1
br i1 %98, label %99, label %100
99: ; preds = %95
store i32 1, i32* %2
br label %101
100: ; preds = %95
store i32 2, i32* %7
br label %101
101: ; preds = %100, %99
%102 = load i32, i32* %7
%103 = icmp eq i32 %102, 1
br i1 %103, label %104, label %109
104: ; preds = %101
%105 = load i32, i32* %2
%106 = icmp ne i32 %105, 1
br i1 %106, label %107, label %108
107: ; preds = %104
br label %113
108: ; preds = %104
store i32 0, i32* %2
br label %110
109: ; preds = %101
br label %110
110: ; preds = %109, %108
%111 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %111, i32* %7
br label %9
112: ; preds = %9
store i32 0, i32* %1
br label %114
113: ; preds = %107, %90, %73, %56, %39
store i32 0, i32* %1
br label %114
114: ; preds = %113, %112
%115 = load i32, i32* %1
ret i32 %115
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = icmp eq i32 %1, 0
br i1 %2, label %23, label %3
3: ; preds = %0, %6
%4 = tail call i32 (...) @__VERIFIER_nondet_int()
%5 = icmp eq i32 %4, 0
br i1 %5, label %7, label %6
6: ; preds = %3, %11, %19, %15, %7
br label %3
7: ; preds = %3
%8 = tail call i32 (...) @__VERIFIER_nondet_int()
%9 = tail call i32 (...) @__VERIFIER_nondet_int()
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %6
11: ; preds = %7
%12 = tail call i32 (...) @__VERIFIER_nondet_int()
%13 = tail call i32 (...) @__VERIFIER_nondet_int()
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %6
15: ; preds = %11
%16 = tail call i32 (...) @__VERIFIER_nondet_int()
%17 = tail call i32 (...) @__VERIFIER_nondet_int()
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %6
19: ; preds = %15
%20 = tail call i32 (...) @__VERIFIER_nondet_int()
%21 = tail call i32 (...) @__VERIFIER_nondet_int()
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %6
23: ; preds = %19, %0
ret i32 0
}