#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 /*<<< orphan*/ assert(int /*<<< orphan*/, char *);
int nondet_bool();
int nondet_int();
int main() {
  int x = nondet_int();
  int y = nondet_int();
  int z = nondet_int();
  while (x < 100 && 100 < z) {
    int tmp = nondet_bool();
    if (tmp) {
      x++;
    } else {
      x--;
      z--;
    }
  }
  if (!(0))
    goto ERROR;
ERROR:
  assert(0, "ERROR");
}


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,-0x8(%rbp)
mov    $0x0,%al
call   1030 <nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <nondet_int@plt>
mov    %eax,-0x10(%rbp)
xor    %eax,%eax
cmpl   $0x64,-0x8(%rbp)
mov    %al,-0x15(%rbp)
jge    117a <main+0x4a>
mov    $0x64,%eax
cmp    -0x10(%rbp),%eax
setl   %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
test   $0x1,%al
jne    118a <main+0x5a>
jmp    11c3 <main+0x93>
mov    $0x0,%al
call   1050 <nondet_bool@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     11ac <main+0x7c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11be <main+0x8e>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    115d <main+0x2d>
jmp    11c8 <main+0x98>
xor    %edi,%edi
lea    0xe2f(%rip),%rsi
call   1040 <assert@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
xor    %eax,%eax
call   1030 <nondet_int@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1030 <nondet_int@plt>
xor    %eax,%eax
call   1030 <nondet_int@plt>
cmp    $0x63,%ebp
jg     1185 <main+0x55>
mov    %eax,%ebx
cmp    $0x65,%eax
jl     1185 <main+0x55>
nopw   0x0(%rax,%rax,1)
mov    %ebp,%r14d
xor    %eax,%eax
call   1050 <nondet_bool@plt>
cmp    $0x1,%eax
sbb    $0x0,%ebx
cmp    $0x1,%eax
sbb    %ebp,%ebp
or     $0x1,%ebp
add    %r14d,%ebp
cmp    $0x63,%ebp
jg     1185 <main+0x55>
cmp    $0x64,%ebx
ja     1160 <main+0x30>
lea    0xe74(%rip),%rsi
xor    %edi,%edi
call   1040 <assert@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"ERROR\00"
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* %2
%7 = call i32 (...) @nondet_int()
store i32 %7, i32* %3
%8 = call i32 (...) @nondet_int()
store i32 %8, i32* %4
br label %9
9: ; preds = %29, %0
%10 = load i32, i32* %2
%11 = icmp slt i32 %10, 100
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, i32* %4
%14 = icmp slt i32 100, %13
br label %15
15: ; preds = %12, %9
%16 = phi i1 [ false, %9 ], [ %14, %12 ]
br i1 %16, label %17, label %30
17: ; preds = %15
%18 = call i32 (...) @nondet_bool()
store i32 %18, i32* %5
%19 = load i32, i32* %5
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = load i32, i32* %2
%23 = add nsw i32 %22, 1
store i32 %23, i32* %2
br label %29
24: ; preds = %17
%25 = load i32, i32* %2
%26 = add nsw i32 %25, -1
store i32 %26, i32* %2
%27 = load i32, i32* %4
%28 = add nsw i32 %27, -1
store i32 %28, i32* %4
br label %29
29: ; preds = %24, %21
br label %9
30: ; preds = %15
br label %31
31: ; preds = %30
%32 = call i32 @assert(i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%33 = load i32, i32* %1
ret i32 %33
}

LLVM IR (-O2):
@.str = [6 x i8] c"ERROR\00"
define i32 @main() {
%1 = tail call i32 (...) @nondet_int()
%2 = tail call i32 (...) @nondet_int()
%3 = tail call i32 (...) @nondet_int()
%4 = icmp slt i32 %1, 100
%5 = icmp sgt i32 %3, 100
%6 = select i1 %4, i1 %5, i1 false
br i1 %6, label %7, label %19
7: ; preds = %0, %7
%8 = phi i32 [ %15, %7 ], [ %1, %0 ]
%9 = phi i32 [ %13, %7 ], [ %3, %0 ]
%10 = tail call i32 (...) @nondet_bool()
%11 = icmp eq i32 %10, 0
%12 = sext i1 %11 to i32
%13 = add nsw i32 %9, %12
%14 = select i1 %11, i32 -1, i32 1
%15 = add nsw i32 %14, %8
%16 = icmp slt i32 %15, 100
%17 = icmp ugt i32 %13, 100
%18 = select i1 %16, i1 %17, i1 false
br i1 %18, label %7, label %19
19: ; preds = %7, %0
%20 = tail call i32 @assert(i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret i32 0
}