#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 nondet_int();
int main() {
  int a;
  int b;
  int c;
  int nondet;
  nondet = nondet_int();
  a = 0;
  b = nondet_int();
  if (nondet) {
    while (1) {
      if (a == 10) {
        goto L1;
      } else {
        a++;
      }
    }
  } else {
    if (b > 5) {
      c = 100;
      if (nondet < -10) {
      } else if (nondet < -20) {
      }
    } else {
      c = 0;
    }
  }
L1:
  if (a != 10) {
    if (b <= 5) {
      if (c != 0) {
        goto ERROR;
      }
    }
  }
  return (0);
ERROR:
  return (-1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <nondet_int@plt>
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x8(%rbp)
mov    $0x0,%al
call   1030 <nondet_int@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1166 <main+0x56>
jmp    1149 <main+0x39>
cmpl   $0xa,-0x8(%rbp)
jne    1158 <main+0x48>
jmp    11b0 <main+0xa0>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1149 <main+0x39>
cmpl   $0x5,-0xc(%rbp)
jle    119f <main+0x8f>
movl   $0x64,-0x10(%rbp)
cmpl   $0xfffffff6,-0x14(%rbp)
jge    1186 <main+0x76>
jmp    119a <main+0x8a>
cmpl   $0xffffffec,-0x14(%rbp)
jge    1195 <main+0x85>
jmp    1195 <main+0x85>
jmp    119a <main+0x8a>
jmp    11a6 <main+0x96>
movl   $0x0,-0x10(%rbp)
jmp    11ab <main+0x9b>
jmp    11b0 <main+0xa0>
cmpl   $0xa,-0x8(%rbp)
je     11dd <main+0xcd>
cmpl   $0x5,-0xc(%rbp)
jg     11d8 <main+0xc8>
cmpl   $0x0,-0x10(%rbp)
je     11d3 <main+0xc3>
jmp    11e9 <main+0xd9>
jmp    11d8 <main+0xc8>
jmp    11dd <main+0xcd>
movl   $0x0,-0x4(%rbp)
jmp    11f0 <main+0xe0>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <nondet_int@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <nondet_int@plt>
test   %ebx,%ebx
sete   %cl
cmp    $0x6,%eax
setge  %al
setl   %dl
and    %cl,%dl
and    %al,%dl
movzbl %dl,%eax
neg    %eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32 (...) @nondet_int()
store i32 %6, i32* %5
store i32 0, i32* %2
%7 = call i32 (...) @nondet_int()
store i32 %7, i32* %3
%8 = load i32, i32* %5
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %19
10: ; preds = %0
br label %11
11: ; preds = %10, %18
%12 = load i32, i32* %2
%13 = icmp eq i32 %12, 10
br i1 %13, label %14, label %15
14: ; preds = %11
br label %35
15: ; preds = %11
%16 = load i32, i32* %2
%17 = add nsw i32 %16, 1
store i32 %17, i32* %2
br label %18
18: ; preds = %15
br label %11
19: ; preds = %0
%20 = load i32, i32* %3
%21 = icmp sgt i32 %20, 5
br i1 %21, label %22, label %32
22: ; preds = %19
store i32 100, i32* %4
%23 = load i32, i32* %5
%24 = icmp slt i32 %23, -10
br i1 %24, label %25, label %26
25: ; preds = %22
br label %31
26: ; preds = %22
%27 = load i32, i32* %5
%28 = icmp slt i32 %27, -20
br i1 %28, label %29, label %30
29: ; preds = %26
br label %30
30: ; preds = %29, %26
br label %31
31: ; preds = %30, %25
br label %33
32: ; preds = %19
store i32 0, i32* %4
br label %33
33: ; preds = %32, %31
br label %34
34: ; preds = %33
br label %35
35: ; preds = %34, %14
%36 = load i32, i32* %2
%37 = icmp ne i32 %36, 10
br i1 %37, label %38, label %47
38: ; preds = %35
%39 = load i32, i32* %3
%40 = icmp sle i32 %39, 5
br i1 %40, label %41, label %46
41: ; preds = %38
%42 = load i32, i32* %4
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %41
br label %48
45: ; preds = %41
br label %46
46: ; preds = %45, %38
br label %47
47: ; preds = %46, %35
store i32 0, i32* %1
br label %49
48: ; preds = %44
store i32 -1, i32* %1
br label %49
49: ; preds = %48, %47
%50 = load i32, i32* %1
ret i32 %50
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @nondet_int()
%2 = tail call i32 (...) @nondet_int()
%3 = icmp eq i32 %1, 0
%4 = icmp sgt i32 %2, 5
%5 = icmp slt i32 %2, 6
%6 = select i1 %3, i1 %5, i1 false
%7 = select i1 %6, i1 %4, i1 false
%8 = sext i1 %7 to i32
ret i32 %8
}