#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 main() {
  int x;
  int y;
  if (!(x < y))
    return 0;
  while (x < y) {
    if (x < 0)
      x = x + 7;
    else
      x = x + 10;
    if (y < 0)
      y = y - 10;
    else
      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
jl     1137 <main+0x27>
movl   $0x0,-0x4(%rbp)
jmp    11c5 <main+0xb5>
jmp    113c <main+0x2c>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    118f <main+0x7f>
cmpl   $0x0,-0x8(%rbp)
jge    1160 <main+0x50>
mov    -0x8(%rbp),%eax
add    $0x7,%eax
mov    %eax,-0x8(%rbp)
jmp    1169 <main+0x59>
mov    -0x8(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    1181 <main+0x71>
mov    -0xc(%rbp),%eax
sub    $0xa,%eax
mov    %eax,-0xc(%rbp)
jmp    118a <main+0x7a>
mov    -0xc(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0xc(%rbp)
jmp    113c <main+0x2c>
mov    -0x8(%rbp),%ecx
xor    %eax,%eax
cmp    -0xc(%rbp),%ecx
mov    %al,-0xd(%rbp)
jl     11b1 <main+0xa1>
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>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
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
br i1 %6, label %8, label %7
7: ; preds = %0
store i32 0, i32* %1
br label %45
8: ; preds = %0
br label %9
9: ; preds = %31, %8
%10 = load i32, i32* %2
%11 = load i32, i32* %3
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %32
13: ; preds = %9
%14 = load i32, i32* %2
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 7
store i32 %18, i32* %2
br label %22
19: ; preds = %13
%20 = load i32, i32* %2
%21 = add nsw i32 %20, 10
store i32 %21, i32* %2
br label %22
22: ; preds = %19, %16
%23 = load i32, i32* %3
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load i32, i32* %3
%27 = sub nsw i32 %26, 10
store i32 %27, i32* %3
br label %31
28: ; preds = %22
%29 = load i32, i32* %3
%30 = add nsw i32 %29, 3
store i32 %30, i32* %3
br label %31
31: ; preds = %28, %25
br label %9
32: ; preds = %9
%33 = load i32, i32* %2
%34 = load i32, i32* %3
%35 = icmp sge i32 %33, %34
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load i32, i32* %2
%38 = load i32, i32* %3
%39 = add nsw i32 %38, 16
%40 = icmp sle i32 %37, %39
br label %41
41: ; preds = %36, %32
%42 = phi i1 [ false, %32 ], [ %40, %36 ]
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 %43)
store i32 0, i32* %1
br label %45
45: ; preds = %41, %7
%46 = load i32, i32* %1
ret i32 %46
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}