#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 x, oldx;
  x = __VERIFIER_nondet_int();
  while (x > 0 && x < 100 && x >= 2 * oldx + 10) {
    oldx = x;
    x = __VERIFIER_nondet_int();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0xd(%rbp)
jle    115b <main+0x4b>
xor    %eax,%eax
cmpl   $0x64,-0x8(%rbp)
mov    %al,-0xd(%rbp)
jge    115b <main+0x4b>
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
shl    $0x1,%ecx
add    $0xa,%ecx
cmp    %ecx,%eax
setge  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
test   $0x1,%al
jne    116b <main+0x5b>
jmp    1180 <main+0x70>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
jmp    1129 <main+0x19>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%ebx
lea    -0x1(%rbx),%eax
cmp    $0x62,%eax
ja     114d <main+0x3d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    (%rcx,%rcx,1),%eax
add    $0xa,%eax
cmp    %eax,%ebx
jb     114d <main+0x3d>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %ebx,%ecx
mov    %eax,%ebx
add    $0xffffffff,%eax
cmp    $0x63,%eax
jb     1130 <main+0x20>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %4, i32* %2
br label %5
5: ; preds = %19, %0
%6 = load i32, i32* %2
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 100
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = mul nsw i32 2, %13
%15 = add nsw i32 %14, 10
%16 = icmp sge i32 %12, %15
br label %17
17: ; preds = %11, %8, %5
%18 = phi i1 [ false, %8 ], [ false, %5 ], [ %16, %11 ]
br i1 %18, label %19, label %22
19: ; preds = %17
%20 = load i32, i32* %2
store i32 %20, i32* %3
%21 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %21, i32* %2
br label %5
22: ; preds = %17
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = add i32 %1, -1
%3 = icmp ult i32 %2, 99
br i1 %3, label %4, label %14
4: ; preds = %0, %10
%5 = phi i32 [ %6, %10 ], [ undef, %0 ]
%6 = phi i32 [ %11, %10 ], [ %1, %0 ]
%7 = shl nuw nsw i32 %5, 1
%8 = add nuw nsw i32 %7, 10
%9 = icmp ult i32 %6, %8
br i1 %9, label %14, label %10
10: ; preds = %4
%11 = tail call i32 (...) @__VERIFIER_nondet_int()
%12 = add i32 %11, -1
%13 = icmp ult i32 %12, 99
br i1 %13, label %4, label %14
14: ; preds = %4, %10, %0
ret i32 0
}