main() {
  int x = nondet_int();
  int y = nondet_int();
  int z = nondet_int();
  while (x < 100 && 100 < z) {
    _Bool tmp = nondet_bool();
    if (tmp) {
      x++;
    } else {
      x--;
      z--;
    }
  }
}


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,-0x12(%rbp)
jge    116a <main+0x4a>
mov    $0x64,%eax
cmp    -0x10(%rbp),%eax
setl   %al
mov    %al,-0x12(%rbp)
mov    -0x12(%rbp),%al
test   $0x1,%al
jne    117a <main+0x5a>
jmp    11bb <main+0x9b>
mov    $0x0,%al
call   1040 <nondet_bool@plt>
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
mov    %al,-0x11(%rbp)
testb  $0x1,-0x11(%rbp)
je     11a4 <main+0x84>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11b6 <main+0x96>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    114d <main+0x2d>
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     1175 <main+0x55>
mov    %eax,%ebx
cmp    $0x65,%eax
jl     1175 <main+0x55>
nopw   0x0(%rax,%rax,1)
mov    %ebp,%r14d
xor    %eax,%eax
call   1040 <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     1175 <main+0x55>
cmp    $0x64,%ebx
ja     1150 <main+0x30>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
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 = %31, %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 %32
17: ; preds = %15
%18 = call i32 (...) @nondet_bool()
%19 = icmp ne i32 %18, 0
%20 = zext i1 %19 to i8
store i8 %20, i8* %5
%21 = load i8, i8* %5
%22 = trunc i8 %21 to i1
br i1 %22, label %23, label %26
23: ; preds = %17
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 1
store i32 %25, i32* %2
br label %31
26: ; preds = %17
%27 = load i32, i32* %2
%28 = add nsw i32 %27, -1
store i32 %28, i32* %2
%29 = load i32, i32* %4
%30 = add nsw i32 %29, -1
store i32 %30, i32* %4
br label %31
31: ; preds = %26, %23
br label %9
32: ; preds = %15
%33 = load i32, i32* %1
ret i32 %33
}

LLVM IR (-O2):
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
ret i32 0
}