#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 = __VERIFIER_nondet_int();
  int tx = __VERIFIER_nondet_int();
  int y = __VERIFIER_nondet_int();
  int ty = __VERIFIER_nondet_int();
  int n = __VERIFIER_nondet_int();
  if (x + y >= 0) {
    while (x <= n && x >= 2 * tx + y && y >= ty + 1 && x >= tx + 1) {
      if (__VERIFIER_nondet_int()) {
        tx = x;
        ty = y;
        x = __VERIFIER_nondet_int();
        y = __VERIFIER_nondet_int();
      } else {
        tx = x;
        x = __VERIFIER_nondet_int();
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    -0x10(%rbp),%eax
cmp    $0x0,%eax
jl     1215 <main+0x105>
jmp    1165 <main+0x55>
mov    -0x8(%rbp),%ecx
xor    %eax,%eax
cmp    -0x18(%rbp),%ecx
mov    %al,-0x19(%rbp)
jg     11b6 <main+0xa6>
mov    -0x8(%rbp),%ecx
mov    -0xc(%rbp),%edx
shl    $0x1,%edx
add    -0x10(%rbp),%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x19(%rbp)
jl     11b6 <main+0xa6>
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%edx
add    $0x1,%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x19(%rbp)
jl     11b6 <main+0xa6>
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
setge  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
test   $0x1,%al
jne    11c6 <main+0xb6>
jmp    1210 <main+0x100>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
cmp    $0x0,%eax
je     11fb <main+0xeb>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x10(%rbp)
jmp    120b <main+0xfb>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
jmp    1165 <main+0x55>
jmp    1215 <main+0x105>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%r15d
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%r13d
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%r12d
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%r14d
mov    %r13d,%eax
add    %r15d,%eax
jns    117f <main+0x6f>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %r13d,%r12d
mov    %eax,%r13d
mov    %ebx,%ebp
cmp    %r14d,%r15d
jg     1154 <main+0x44>
lea    0x0(%r13,%rbp,2),%eax
cmp    %eax,%r15d
jl     1154 <main+0x44>
cmp    %r12d,%r13d
jle    1154 <main+0x44>
mov    %r15d,%ebx
cmp    %ebp,%r15d
jle    1154 <main+0x44>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%r15d
test   %ebp,%ebp
jne    1170 <main+0x60>
mov    %r13d,%eax
mov    %r12d,%r13d
jmp    1177 <main+0x67>

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = tail call i32 (...) @__VERIFIER_nondet_int()
%4 = tail call i32 (...) @__VERIFIER_nondet_int()
%5 = tail call i32 (...) @__VERIFIER_nondet_int()
%6 = add nsw i32 %3, %1
%7 = icmp slt i32 %6, 0
%8 = icmp sgt i32 %1, %5
%9 = select i1 %7, i1 true, i1 %8
br i1 %9, label %32, label %10
10: ; preds = %0, %28
%11 = phi i32 [ %25, %28 ], [ %1, %0 ]
%12 = phi i32 [ %30, %28 ], [ %4, %0 ]
%13 = phi i32 [ %29, %28 ], [ %3, %0 ]
%14 = phi i32 [ %11, %28 ], [ %2, %0 ]
%15 = shl nsw i32 %14, 1
%16 = add nsw i32 %15, %13
%17 = icmp sge i32 %11, %16
%18 = icmp sgt i32 %13, %12
%19 = select i1 %17, i1 %18, i1 false
%20 = icmp sgt i32 %11, %14
%21 = select i1 %19, i1 %20, i1 false
br i1 %21, label %22, label %32
22: ; preds = %10
%23 = tail call i32 (...) @__VERIFIER_nondet_int()
%24 = icmp eq i32 %23, 0
%25 = tail call i32 (...) @__VERIFIER_nondet_int()
br i1 %24, label %28, label %26
26: ; preds = %22
%27 = tail call i32 (...) @__VERIFIER_nondet_int()
br label %28
28: ; preds = %22, %26
%29 = phi i32 [ %27, %26 ], [ %13, %22 ]
%30 = phi i32 [ %13, %26 ], [ %12, %22 ]
%31 = icmp sgt i32 %25, %5
br i1 %31, label %32, label %10
32: ; preds = %28, %10, %0
ret i32 0
}