#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 absMathInteger(int);
int main() {
  int i = __VERIFIER_nondet_int();
  int j = __VERIFIER_nondet_int();
  while (i - j >= 1) {
    int nondetNat = absMathInteger(__VERIFIER_nondet_int());
    i = i - nondetNat;
    int nondetPos = absMathInteger(__VERIFIER_nondet_int()) + 1;
    j = j + nondetPos;
  }
  return 0;
}


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@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
cmp    $0x1,%eax
jl     118e <main+0x6e>
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,%edi
call   1030 <absMathInteger@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x10(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,%edi
call   1030 <absMathInteger@plt>
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1143 <main+0x23>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int@plt>
cmp    %eax,%ebp
jle    1167 <main+0x47>
mov    %eax,%ebx
nopl   0x0(%rax)
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,%edi
call   1030 <absMathInteger@plt>
sub    %eax,%ebp
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,%edi
call   1030 <absMathInteger@plt>
add    %eax,%ebx
add    $0x1,%ebx
cmp    %ebx,%ebp
jg     1140 <main+0x20>
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
%6 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %6, i32* %2
%7 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %7, i32* %3
br label %8
8: ; preds = %13, %0
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = sub nsw i32 %9, %10
%12 = icmp sge i32 %11, 1
br i1 %12, label %13, label %25
13: ; preds = %8
%14 = call i32 (...) @__VERIFIER_nondet_int()
%15 = call i32 @absMathInteger(i32 %14)
store i32 %15, i32* %4
%16 = load i32, i32* %2
%17 = load i32, i32* %4
%18 = sub nsw i32 %16, %17
store i32 %18, i32* %2
%19 = call i32 (...) @__VERIFIER_nondet_int()
%20 = call i32 @absMathInteger(i32 %19)
%21 = add nsw i32 %20, 1
store i32 %21, i32* %5
%22 = load i32, i32* %3
%23 = load i32, i32* %5
%24 = add nsw i32 %22, %23
store i32 %24, i32* %3
br label %8
25: ; preds = %8
ret i32 0
}

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