#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*/ assert(int);
int /*<<< orphan*/ assume(int);
int main() {
  int x;
  int y;
  assume(x < y);
  while (x < y) {
    if (x < 0 && y < 0) {
      x = x + 7;
      y = y - 10;
    } else if (x >= 0 && y < 0) {
      x = x + 10;
      y = y - 10;
    } else if (x < 0 && y >= 0) {
      x = x + 7;
      y = y + 3;
    } else {
      x = x + 10;
      y = y + 3;
    }
  }
  assert(x >= y && x <= y + 16);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assume@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11f0 <main+0xd0>
cmpl   $0x0,-0x8(%rbp)
jge    1179 <main+0x59>
cmpl   $0x0,-0xc(%rbp)
jge    1179 <main+0x59>
mov    -0x8(%rbp),%eax
add    $0x7,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
sub    $0xa,%eax
mov    %eax,-0xc(%rbp)
jmp    11eb <main+0xcb>
cmpl   $0x0,-0x8(%rbp)
jl     11a4 <main+0x84>
cmpl   $0x0,-0xc(%rbp)
jge    11a4 <main+0x84>
mov    -0x8(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
sub    $0xa,%eax
mov    %eax,-0xc(%rbp)
jmp    11e6 <main+0xc6>
cmpl   $0x0,-0x8(%rbp)
jge    11cf <main+0xaf>
cmpl   $0x0,-0xc(%rbp)
jl     11cf <main+0xaf>
mov    -0x8(%rbp),%eax
add    $0x7,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0xc(%rbp)
jmp    11e1 <main+0xc1>
mov    -0x8(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0xc(%rbp)
jmp    11e6 <main+0xc6>
jmp    11eb <main+0xcb>
jmp    1142 <main+0x22>
mov    -0x8(%rbp),%ecx
xor    %eax,%eax
cmp    -0xc(%rbp),%ecx
mov    %al,-0xd(%rbp)
jl     1212 <main+0xf2>
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    $0x10,%ecx
cmp    %ecx,%eax
setle  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1040 <assume@plt>
xor    %edi,%edi
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = load i32, i32* %2
%5 = load i32, i32* %3
%6 = icmp slt i32 %4, %5
%7 = zext i1 %6 to i32
%8 = call i32 @assume(i32 %7)
br label %9
9: ; preds = %53, %0
%10 = load i32, i32* %2
%11 = load i32, i32* %3
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %54
13: ; preds = %9
%14 = load i32, i32* %2
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %24
16: ; preds = %13
%17 = load i32, i32* %3
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = load i32, i32* %2
%21 = add nsw i32 %20, 7
store i32 %21, i32* %2
%22 = load i32, i32* %3
%23 = sub nsw i32 %22, 10
store i32 %23, i32* %3
br label %53
24: ; preds = %16, %13
%25 = load i32, i32* %2
%26 = icmp sge i32 %25, 0
br i1 %26, label %27, label %35
27: ; preds = %24
%28 = load i32, i32* %3
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %27
%31 = load i32, i32* %2
%32 = add nsw i32 %31, 10
store i32 %32, i32* %2
%33 = load i32, i32* %3
%34 = sub nsw i32 %33, 10
store i32 %34, i32* %3
br label %52
35: ; preds = %27, %24
%36 = load i32, i32* %2
%37 = icmp slt i32 %36, 0
br i1 %37, label %38, label %46
38: ; preds = %35
%39 = load i32, i32* %3
%40 = icmp sge i32 %39, 0
br i1 %40, label %41, label %46
41: ; preds = %38
%42 = load i32, i32* %2
%43 = add nsw i32 %42, 7
store i32 %43, i32* %2
%44 = load i32, i32* %3
%45 = add nsw i32 %44, 3
store i32 %45, i32* %3
br label %51
46: ; preds = %38, %35
%47 = load i32, i32* %2
%48 = add nsw i32 %47, 10
store i32 %48, i32* %2
%49 = load i32, i32* %3
%50 = add nsw i32 %49, 3
store i32 %50, i32* %3
br label %51
51: ; preds = %46, %41
br label %52
52: ; preds = %51, %30
br label %53
53: ; preds = %52, %19
br label %9
54: ; preds = %9
%55 = load i32, i32* %2
%56 = load i32, i32* %3
%57 = icmp sge i32 %55, %56
br i1 %57, label %58, label %63
58: ; preds = %54
%59 = load i32, i32* %2
%60 = load i32, i32* %3
%61 = add nsw i32 %60, 16
%62 = icmp sle i32 %59, %61
br label %63
63: ; preds = %58, %54
%64 = phi i1 [ false, %54 ], [ %62, %58 ]
%65 = zext i1 %64 to i32
%66 = call i32 @assert(i32 %65)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assume(i32 0)
%2 = tail call i32 @assert(i32 0)
ret i32 0
}