#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, m, n, o;
  while (i != 0) {
    if (j == 0) {
      while (l < 0) {
        printf("4\n");
      }
      printf("5\n");
    } else {
      printf("6\n");
      do {
        if (m < 0) {
          goto loop2end;
        }
      } while (n <= 0);
      while (o > 0) {
        printf("7\n");
      loop2end:
        printf("10\n");
      }
      printf("8\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     11cb <main+0xbb>
cmpl   $0x0,-0xc(%rbp)
jne    1164 <main+0x54>
jmp    1138 <main+0x28>
cmpl   $0x0,-0x14(%rbp)
jge    1153 <main+0x43>
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
jmp    1138 <main+0x28>
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
jmp    11c6 <main+0xb6>
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x18(%rbp)
jge    117f <main+0x6f>
jmp    11a9 <main+0x99>
jmp    1184 <main+0x74>
cmpl   $0x0,-0x1c(%rbp)
jle    1170 <main+0x60>
jmp    1193 <main+0x83>
cmpl   $0x0,-0x20(%rbp)
jle    11ba <main+0xaa>
lea    0xe65(%rip),%rdi
call   1030 <printf@plt>
lea    0xe5c(%rip),%rdi
call   1030 <printf@plt>
jmp    1193 <main+0x83>
lea    0xe4f(%rip),%rdi
call   1030 <printf@plt>
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"4\0A\00"
@.str.1 = [3 x i8] c"5\0A\00"
@.str.2 = [3 x i8] c"6\0A\00"
@.str.3 = [3 x i8] c"7\0A\00"
@.str.4 = [4 x i8] c"10\0A\00"
@.str.5 = [3 x i8] c"8\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
br label %9
9: ; preds = %43, %0
%10 = load i32, i32* %2
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %44
12: ; preds = %9
%13 = load i32, i32* %3
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %23
15: ; preds = %12
br label %16
16: ; preds = %19, %15
%17 = load i32, i32* %5
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %16
21: ; preds = %16
%22 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %43
23: ; preds = %12
%24 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %25
25: ; preds = %30, %23
%26 = load i32, i32* %6
%27 = icmp slt i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25
br label %39
29: ; preds = %25
br label %30
30: ; preds = %29
%31 = load i32, i32* %7
%32 = icmp sle i32 %31, 0
br i1 %32, label %25, label %33
33: ; preds = %30
br label %34
34: ; preds = %39, %33
%35 = load i32, i32* %8
%36 = icmp sgt i32 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %34
%38 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %39
39: ; preds = %37, %28
%40 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %34
41: ; preds = %34
%42 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %43
43: ; preds = %41, %21
br label %9
44: ; preds = %9
ret i32 0
}

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