#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;
  int y;
  x = __VERIFIER_nondet_int();
  y = __VERIFIER_nondet_int();
  if (x + y > 1) {
    while (x > 0) {
      x = x + x + y;
      y = y - 1;
    }
  }
  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)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
cmp    $0x1,%eax
jle    1170 <main+0x60>
jmp    1147 <main+0x37>
cmpl   $0x0,-0x8(%rbp)
jle    116b <main+0x5b>
mov    -0x8(%rbp),%eax
add    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1147 <main+0x37>
jmp    1170 <main+0x60>
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
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %ebx,%ebx
jle    1155 <main+0x45>
lea    (%rax,%rbx,1),%ecx
cmp    $0x2,%ecx
jl     1155 <main+0x45>
mov    %eax,%ecx
add    $0x1,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    (%rcx,%rbx,2),%edx
add    $0xffffffff,%edx
lea    (%rax,%rbx,2),%esi
add    $0xffffffff,%eax
add    $0xffffffff,%ecx
mov    %esi,%ebx
test   %edx,%edx
jg     1140 <main+0x30>
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
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, i32* %3
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = add nsw i32 %6, %7
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %23
10: ; preds = %0
br label %11
11: ; preds = %14, %10
%12 = load i32, i32* %2
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %22
14: ; preds = %11
%15 = load i32, i32* %2
%16 = load i32, i32* %2
%17 = add nsw i32 %15, %16
%18 = load i32, i32* %3
%19 = add nsw i32 %17, %18
store i32 %19, i32* %2
%20 = load i32, i32* %3
%21 = sub nsw i32 %20, 1
store i32 %21, i32* %3
br label %11
22: ; preds = %11
br label %23
23: ; preds = %22, %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 = add nsw i32 %2, %1
%4 = icmp sgt i32 %3, 1
%5 = icmp sgt i32 %1, 0
%6 = and i1 %5, %4
br i1 %6, label %7, label %14
7: ; preds = %0, %7
%8 = phi i32 [ %11, %7 ], [ %1, %0 ]
%9 = phi i32 [ %12, %7 ], [ %2, %0 ]
%10 = shl nuw nsw i32 %8, 1
%11 = add nsw i32 %10, %9
%12 = add nsw i32 %9, -1
%13 = icmp sgt i32 %11, 0
br i1 %13, label %7, label %14
14: ; preds = %7, %0
ret i32 0
}