#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 argc, char *argv[]) {
  int i, j, k;
  while (i < 10 && j < 10 || i == k) {
    printf("1\n");
    while (k < 20) {
      printf("2\n");
      while (j < 20) {
        printf("3\n");
      }
      printf("4\n");
    }
    printf("5\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0xa,-0x14(%rbp)
jge    113f <main+0x2f>
mov    $0x1,%al
cmpl   $0xa,-0x18(%rbp)
mov    %al,-0x1d(%rbp)
jl     114b <main+0x3b>
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
sete   %al
mov    %al,-0x1d(%rbp)
mov    -0x1d(%rbp),%al
test   $0x1,%al
jne    115b <main+0x4b>
jmp    11ba <main+0xaa>
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x14,-0x1c(%rbp)
jge    11a9 <main+0x99>
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x14,-0x18(%rbp)
jge    1198 <main+0x88>
lea    0xe78(%rip),%rdi
call   1030 <printf@plt>
jmp    117d <main+0x6d>
lea    0xe6a(%rip),%rdi
call   1030 <printf@plt>
jmp    1167 <main+0x57>
lea    0xe5c(%rip),%rdi
call   1030 <printf@plt>
jmp    1126 <main+0x16>
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"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %9
9: ; preds = %35, %2
%10 = load i32, i32* %6
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, i32* %7
%14 = icmp slt i32 %13, 10
br i1 %14, label %19, label %15
15: ; preds = %12, %9
%16 = load i32, i32* %6
%17 = load i32, i32* %8
%18 = icmp eq i32 %16, %17
br label %19
19: ; preds = %15, %12
%20 = phi i1 [ true, %12 ], [ %18, %15 ]
br i1 %20, label %21, label %37
21: ; preds = %19
%22 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %23
23: ; preds = %33, %21
%24 = load i32, i32* %8
%25 = icmp slt i32 %24, 20
br i1 %25, label %26, label %35
26: ; preds = %23
%27 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %28
28: ; preds = %31, %26
%29 = load i32, i32* %7
%30 = icmp slt i32 %29, 20
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %28
33: ; preds = %28
%34 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %23
35: ; preds = %23
%36 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %9
37: ; preds = %19
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}