#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 __VERIFIER_nondet_int_val();
main() {
  int x = __VERIFIER_nondet_int_val();
  int y = __VERIFIER_nondet_int_val();
  int z = __VERIFIER_nondet_int_val();
  while (x < 100 && 100 < z) {
    int tmp = __VERIFIER_nondet_int();
    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   1040 <__VERIFIER_nondet_int_val@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int_val@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int_val@plt>
mov    %eax,-0x10(%rbp)
xor    %eax,%eax
cmpl   $0x64,-0x8(%rbp)
mov    %al,-0x15(%rbp)
jge    116a <main+0x4a>
mov    $0x64,%eax
cmp    -0x10(%rbp),%eax
setl   %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
test   $0x1,%al
jne    117a <main+0x5a>
jmp    11b3 <main+0x93>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     119c <main+0x7c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11ae <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    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   1040 <__VERIFIER_nondet_int_val@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int_val@plt>
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int_val@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   1030 <__VERIFIER_nondet_int@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 i32
store i32 0, i32* %1
%6 = call i32 (...) @__VERIFIER_nondet_int_val()
store i32 %6, i32* %2
%7 = call i32 (...) @__VERIFIER_nondet_int_val()
store i32 %7, i32* %3
%8 = call i32 (...) @__VERIFIER_nondet_int_val()
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 (...) @__VERIFIER_nondet_int()
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
%31 = load i32, i32* %1
ret i32 %31
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int_val()
%2 = tail call i32 (...) @__VERIFIER_nondet_int_val()
%3 = tail call i32 (...) @__VERIFIER_nondet_int_val()
%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 (...) @__VERIFIER_nondet_int()
%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
}