int main() {
  int n0 = 1;
  int n1 = 1;
  int n2 = 1;
  int i = 0;
  int k = 0;
  while (i < n0) {
    i = 1;
    k = 1;
  }
  i = 0;
  while (i < n1) {
    i = 1;
    k = 2;
  }
  i = 0;
  while (i < n2) {
    i = 1;
    k = 3;
  }
  i = 0;
  while (i < n2) {
    i = 1;
    k = 2;
  }
  i = 0;
  while (i < n1) {
    i = 1;
    k = 1;
  }
  i = 0;
  while (i < n0) {
    i++;
    k--;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    114d <main+0x4d>
movl   $0x1,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    112e <main+0x2e>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1173 <main+0x73>
movl   $0x1,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
jmp    1154 <main+0x54>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1199 <main+0x99>
movl   $0x1,-0x14(%rbp)
movl   $0x3,-0x18(%rbp)
jmp    117a <main+0x7a>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    11bf <main+0xbf>
movl   $0x1,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
jmp    11a0 <main+0xa0>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11e5 <main+0xe5>
movl   $0x1,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    11c6 <main+0xc6>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    120f <main+0x10f>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    11ec <main+0xec>
xor    %eax,%eax
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
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
store i32 1, i32* %3
store i32 1, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
br label %7
7: ; preds = %11, %0
%8 = load i32, i32* %5
%9 = load i32, i32* %2
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %7
store i32 1, i32* %5
store i32 1, i32* %6
br label %7
12: ; preds = %7
store i32 0, i32* %5
br label %13
13: ; preds = %17, %12
%14 = load i32, i32* %5
%15 = load i32, i32* %3
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 1, i32* %5
store i32 2, i32* %6
br label %13
18: ; preds = %13
store i32 0, i32* %5
br label %19
19: ; preds = %23, %18
%20 = load i32, i32* %5
%21 = load i32, i32* %4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %24
23: ; preds = %19
store i32 1, i32* %5
store i32 3, i32* %6
br label %19
24: ; preds = %19
store i32 0, i32* %5
br label %25
25: ; preds = %29, %24
%26 = load i32, i32* %5
%27 = load i32, i32* %4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 1, i32* %5
store i32 2, i32* %6
br label %25
30: ; preds = %25
store i32 0, i32* %5
br label %31
31: ; preds = %35, %30
%32 = load i32, i32* %5
%33 = load i32, i32* %3
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %31
store i32 1, i32* %5
store i32 1, i32* %6
br label %31
36: ; preds = %31
store i32 0, i32* %5
br label %37
37: ; preds = %41, %36
%38 = load i32, i32* %5
%39 = load i32, i32* %2
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %46
41: ; preds = %37
%42 = load i32, i32* %5
%43 = add nsw i32 %42, 1
store i32 %43, i32* %5
%44 = load i32, i32* %6
%45 = add nsw i32 %44, -1
store i32 %45, i32* %6
br label %37
46: ; preds = %37
ret i32 0
}

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