#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;
  if (i == 1337) {
    printf("1\n");
    goto next;
  }
  while (i < 15) {
    j = 0;
    while (j < 30) {
      printf("2\n");
      j++;
    }
    printf("3\n");
    j = 0;
    while (j < 20) {
      if (j == 10) {
      next:
        printf("4\n");
      }
      j++;
    }
    printf("5\n");
    j = 0;
    while (j < 30) {
      printf("6\n");
      j++;
    }
    i++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x539,-0x8(%rbp)
jne    113d <main+0x2d>
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
jmp    11a3 <main+0x93>
jmp    1142 <main+0x32>
cmpl   $0xf,-0x8(%rbp)
jge    1202 <main+0xf2>
movl   $0x0,-0xc(%rbp)
cmpl   $0x1e,-0xc(%rbp)
jge    1177 <main+0x67>
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1153 <main+0x43>
lea    0xe88(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x14,-0xc(%rbp)
jge    11bd <main+0xad>
cmpl   $0xa,-0xc(%rbp)
jne    11af <main+0x9f>
jmp    11a3 <main+0x93>
lea    0xe5f(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    118a <main+0x7a>
lea    0xe48(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x1e,-0xc(%rbp)
jge    11f4 <main+0xe4>
lea    0xe2e(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11d0 <main+0xc0>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1142 <main+0x32>
xor    %eax,%eax
add    $0x10,%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
store i32 0, i32* %1
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, 1337
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %29
8: ; preds = %0
br label %9
9: ; preds = %43, %8
%10 = load i32, i32* %2
%11 = icmp slt i32 %10, 15
br i1 %11, label %12, label %46
12: ; preds = %9
store i32 0, i32* %3
br label %13
13: ; preds = %16, %12
%14 = load i32, i32* %3
%15 = icmp slt i32 %14, 30
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%18 = load i32, i32* %3
%19 = add nsw i32 %18, 1
store i32 %19, i32* %3
br label %13
20: ; preds = %13
%21 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %22
22: ; preds = %31, %20
%23 = load i32, i32* %3
%24 = icmp slt i32 %23, 20
br i1 %24, label %25, label %34
25: ; preds = %22
%26 = load i32, i32* %3
%27 = icmp eq i32 %26, 10
br i1 %27, label %28, label %31
28: ; preds = %25
br label %29
29: ; preds = %28, %6
%30 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %31
31: ; preds = %29, %25
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 1
store i32 %33, i32* %3
br label %22
34: ; preds = %22
%35 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %3
br label %36
36: ; preds = %39, %34
%37 = load i32, i32* %3
%38 = icmp slt i32 %37, 30
br i1 %38, label %39, label %43
39: ; preds = %36
%40 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%41 = load i32, i32* %3
%42 = add nsw i32 %41, 1
store i32 %42, i32* %3
br label %36
43: ; preds = %36
%44 = load i32, i32* %2
%45 = add nsw i32 %44, 1
store i32 %45, i32* %2
br label %9
46: ; preds = %9
ret i32 0
}

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