#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*/ __VERIFIER_error();
scalar_t__ nd();
int main() {
  int x = 0;
  int y = 1;
  while (nd()) {
    int nx = x;
    int ny = y;
    if (nd()) {
      if (nx < 32) {
        nx += 2;
        ny += 2;
      } else {
        nx++;
        break;
      }
    }
    x = nx;
    y = ny;
  }
  if (!(x <= y)) {
    __VERIFIER_error();
  };
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
mov    $0x0,%al
call   1030 <nd@plt>
cmp    $0x0,%rax
je     11b0 <main+0x90>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1030 <nd@plt>
cmp    $0x0,%rax
je     119f <main+0x7f>
cmpl   $0x20,-0x10(%rbp)
jge    118c <main+0x6c>
mov    -0x10(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x14(%rbp)
jmp    119a <main+0x7a>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11b0 <main+0x90>
jmp    119f <main+0x7f>
mov    -0x10(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    113d <main+0x1d>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    11c3 <main+0xa3>
mov    $0x0,%al
call   1040 <__VERIFIER_error@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <nd@plt>
test   %rax,%rax
je     116e <main+0x4e>
mov    $0x1,%ebx
xor    %ebp,%ebp
jmp    1152 <main+0x32>
nopl   0x0(%rax,%rax,1)
add    $0x2,%ebp
add    $0x2,%ebx
xor    %eax,%eax
call   1030 <nd@plt>
test   %rax,%rax
je     1163 <main+0x43>
xor    %eax,%eax
call   1030 <nd@plt>
test   %rax,%rax
je     1146 <main+0x26>
cmp    $0x1f,%ebp
jle    1140 <main+0x20>
cmp    %ebx,%ebp
jle    116e <main+0x4e>
xor    %eax,%eax
call   1040 <__VERIFIER_error@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
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
store i32 0, i32* %2
store i32 1, i32* %3
br label %6
6: ; preds = %26, %0
%7 = call i64 (...) @nd()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %29
9: ; preds = %6
%10 = load i32, i32* %2
store i32 %10, i32* %4
%11 = load i32, i32* %3
store i32 %11, i32* %5
%12 = call i64 (...) @nd()
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %26
14: ; preds = %9
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 32
br i1 %16, label %17, label %22
17: ; preds = %14
%18 = load i32, i32* %4
%19 = add nsw i32 %18, 2
store i32 %19, i32* %4
%20 = load i32, i32* %5
%21 = add nsw i32 %20, 2
store i32 %21, i32* %5
br label %25
22: ; preds = %14
%23 = load i32, i32* %4
%24 = add nsw i32 %23, 1
store i32 %24, i32* %4
br label %29
25: ; preds = %17
br label %26
26: ; preds = %25, %9
%27 = load i32, i32* %4
store i32 %27, i32* %2
%28 = load i32, i32* %5
store i32 %28, i32* %3
br label %6
29: ; preds = %22, %6
%30 = load i32, i32* %2
%31 = load i32, i32* %3
%32 = icmp sle i32 %30, %31
br i1 %32, label %35, label %33
33: ; preds = %29
%34 = call i32 (...) @__VERIFIER_error()
br label %35
35: ; preds = %33, %29
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 (...) @nd()
%2 = icmp eq i64 %1, 0
br i1 %2, label %24, label %3
3: ; preds = %0, %13
%4 = phi i32 [ %15, %13 ], [ 1, %0 ]
%5 = phi i32 [ %14, %13 ], [ 0, %0 ]
%6 = tail call i64 (...) @nd()
%7 = icmp eq i64 %6, 0
br i1 %7, label %13, label %8
8: ; preds = %3
%9 = icmp slt i32 %5, 32
br i1 %9, label %10, label %18
10: ; preds = %8
%11 = add nsw i32 %5, 2
%12 = add nsw i32 %4, 2
br label %13
13: ; preds = %3, %10
%14 = phi i32 [ %11, %10 ], [ %5, %3 ]
%15 = phi i32 [ %12, %10 ], [ %4, %3 ]
%16 = tail call i64 (...) @nd()
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %3
18: ; preds = %13, %8
%19 = phi i32 [ %14, %13 ], [ %5, %8 ]
%20 = phi i32 [ %15, %13 ], [ %4, %8 ]
%21 = icmp sgt i32 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = tail call i32 (...) @__VERIFIER_error()
br label %24
24: ; preds = %0, %22, %18
ret i32 0
}