#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*/ printf(char *);
int main() {
  int i, j, k, l;
  while (l < 1337) {
    if (i == 1) {
      printf("1\n");
      goto next;
    } else {
      printf("2\n");
    }
    while (i < 123) {
      while (j < 456) {
        while (k < 789) {
          if (i == j) {
          next:
            printf("3\n");
          } else {
            if (j == k) {
              printf("4\n");
            } else if (i == k) {
              printf("5\n");
            }
          }
          printf("6\n");
        }
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x539,-0x14(%rbp)
jge    1207 <main+0xf7>
cmpl   $0x1,-0x8(%rbp)
jne    1147 <main+0x37>
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
jmp    1197 <main+0x87>
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
jmp    1158 <main+0x48>
cmpl   $0x7b,-0x8(%rbp)
jge    1202 <main+0xf2>
jmp    1167 <main+0x57>
cmpl   $0x1c8,-0xc(%rbp)
jge    11fd <main+0xed>
jmp    1179 <main+0x69>
cmpl   $0x315,-0x10(%rbp)
jge    11f8 <main+0xe8>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    11a8 <main+0x98>
jmp    1197 <main+0x87>
lea    0xe68(%rip),%rdi
call   1030 <printf@plt>
jmp    11e7 <main+0xd7>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    11c5 <main+0xb5>
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
jmp    11e2 <main+0xd2>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    11dd <main+0xcd>
lea    0xe34(%rip),%rdi
call   1030 <printf@plt>
jmp    11e2 <main+0xd2>
jmp    11e7 <main+0xd7>
lea    0xe21(%rip),%rdi
call   1030 <printf@plt>
jmp    1179 <main+0x69>
jmp    1167 <main+0x57>
jmp    1158 <main+0x48>
jmp    111f <main+0xf>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [3 x i8] c"1\0A\00"
@.str.1 = [3 x i8] c"2\0A\00"
@.str.2 = [3 x i8] c"3\0A\00"
@.str.3 = [3 x i8] c"4\0A\00"
@.str.4 = [3 x i8] c"5\0A\00"
@.str.5 = [3 x i8] c"6\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
br label %6
6: ; preds = %53, %0
%7 = load i32, i32* %5
%8 = icmp slt i32 %7, 1337
br i1 %8, label %9, label %54
9: ; preds = %6
%10 = load i32, i32* %2
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %33
14: ; preds = %9
%15 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %16
16: ; preds = %14
br label %17
17: ; preds = %52, %16
%18 = load i32, i32* %2
%19 = icmp slt i32 %18, 123
br i1 %19, label %20, label %53
20: ; preds = %17
br label %21
21: ; preds = %51, %20
%22 = load i32, i32* %3
%23 = icmp slt i32 %22, 456
br i1 %23, label %24, label %52
24: ; preds = %21
br label %25
25: ; preds = %49, %24
%26 = load i32, i32* %4
%27 = icmp slt i32 %26, 789
br i1 %27, label %28, label %51
28: ; preds = %25
%29 = load i32, i32* %2
%30 = load i32, i32* %3
%31 = icmp eq i32 %29, %30
br i1 %31, label %32, label %35
32: ; preds = %28
br label %33
33: ; preds = %32, %12
%34 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %49
35: ; preds = %28
%36 = load i32, i32* %3
%37 = load i32, i32* %4
%38 = icmp eq i32 %36, %37
br i1 %38, label %39, label %41
39: ; preds = %35
%40 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %48
41: ; preds = %35
%42 = load i32, i32* %2
%43 = load i32, i32* %4
%44 = icmp eq i32 %42, %43
br i1 %44, label %45, label %47
45: ; preds = %41
%46 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %47
47: ; preds = %45, %41
br label %48
48: ; preds = %47, %39
br label %49
49: ; preds = %48, %33
%50 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %25
51: ; preds = %25
br label %21
52: ; preds = %21
br label %17
53: ; preds = %17
br label %6
54: ; preds = %6
ret i32 0
}

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