#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*/ print_char(char);
int /*<<< orphan*/ print_int(int);
int main() {
  int i = 0;
  int j = 10;
  int k = 15;
  for (i = 0; i <= 5; i++) {
    while (j <= 15) {
      do {
        print_char('k');
        print_char(':');
        print_char(' ');
        print_int(k);
        print_char('\n');
        k++;
      } while (k <= 20);
      print_char('j');
      print_char(':');
      print_char(' ');
      print_int(j);
      print_char('\n');
      j++;
    }
    print_char('i');
    print_char(':');
    print_char(' ');
    print_int(i);
    print_char('\n');
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0xa,-0xc(%rbp)
movl   $0xf,-0x10(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jg     1228 <main+0x108>
jmp    115a <main+0x3a>
cmpl   $0xf,-0xc(%rbp)
jg     11ea <main+0xca>
jmp    1169 <main+0x49>
mov    $0x6b,%edi
call   1040 <print_char@plt>
mov    $0x3a,%edi
call   1040 <print_char@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    -0x10(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x14,-0x10(%rbp)
jle    1169 <main+0x49>
mov    $0x6a,%edi
call   1040 <print_char@plt>
mov    $0x3a,%edi
call   1040 <print_char@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    115a <main+0x3a>
mov    $0x69,%edi
call   1040 <print_char@plt>
mov    $0x3a,%edi
call   1040 <print_char@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    114b <main+0x2b>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %r14d,%r14d
mov    $0xa,%r15d
mov    $0xf,%ebp
jmp    117e <main+0x5e>
nopw   0x0(%rax,%rax,1)
mov    $0x69,%edi
call   1040 <print_char@plt>
mov    $0x3a,%edi
call   1040 <print_char@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    %r14d,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
add    $0x1,%r14d
cmp    $0x6,%r14d
je     121b <main+0xfb>
cmp    $0xf,%r15d
ja     1140 <main+0x20>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ebp,%ebx
cmp    $0x15,%ebp
mov    $0x14,%ebp
cmovge %ebx,%ebp
add    $0x1,%ebp
mov    $0x6b,%edi
call   1040 <print_char@plt>
mov    $0x3a,%edi
call   1040 <print_char@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    %ebx,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
add    $0x1,%ebx
cmp    %ebx,%ebp
jne    11a0 <main+0x80>
mov    $0x6a,%edi
call   1040 <print_char@plt>
mov    $0x3a,%edi
call   1040 <print_char@plt>
mov    $0x20,%edi
call   1040 <print_char@plt>
mov    %r15d,%edi
call   1030 <print_int@plt>
mov    $0xa,%edi
call   1040 <print_char@plt>
add    $0x1,%r15d
cmp    $0x10,%r15d
jne    1190 <main+0x70>
mov    $0x10,%r15d
jmp    1140 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 10, i32* %3
store i32 15, i32* %4
store i32 0, i32* %2
br label %5
5: ; preds = %41, %0
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 5
br i1 %7, label %8, label %44
8: ; preds = %5
br label %9
9: ; preds = %25, %8
%10 = load i32, i32* %3
%11 = icmp sle i32 %10, 15
br i1 %11, label %12, label %34
12: ; preds = %9
br label %13
13: ; preds = %22, %12
%14 = call i32 @print_char(i8 signext 107)
%15 = call i32 @print_char(i8 signext 58)
%16 = call i32 @print_char(i8 signext 32)
%17 = load i32, i32* %4
%18 = call i32 @print_int(i32 %17)
%19 = call i32 @print_char(i8 signext 10)
%20 = load i32, i32* %4
%21 = add nsw i32 %20, 1
store i32 %21, i32* %4
br label %22
22: ; preds = %13
%23 = load i32, i32* %4
%24 = icmp sle i32 %23, 20
br i1 %24, label %13, label %25
25: ; preds = %22
%26 = call i32 @print_char(i8 signext 106)
%27 = call i32 @print_char(i8 signext 58)
%28 = call i32 @print_char(i8 signext 32)
%29 = load i32, i32* %3
%30 = call i32 @print_int(i32 %29)
%31 = call i32 @print_char(i8 signext 10)
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 1
store i32 %33, i32* %3
br label %9
34: ; preds = %9
%35 = call i32 @print_char(i8 signext 105)
%36 = call i32 @print_char(i8 signext 58)
%37 = call i32 @print_char(i8 signext 32)
%38 = load i32, i32* %2
%39 = call i32 @print_int(i32 %38)
%40 = call i32 @print_char(i8 signext 10)
br label %41
41: ; preds = %34
%42 = load i32, i32* %2
%43 = add nsw i32 %42, 1
store i32 %43, i32* %2
br label %5
44: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %0, %28
%2 = phi i32 [ 15, %0 ], [ %30, %28 ]
%3 = phi i32 [ 10, %0 ], [ %29, %28 ]
%4 = phi i32 [ 0, %0 ], [ %36, %28 ]
%5 = icmp ult i32 %3, 16
br i1 %5, label %6, label %28
6: ; preds = %1, %20
%7 = phi i32 [ %10, %20 ], [ %2, %1 ]
%8 = phi i32 [ %26, %20 ], [ %3, %1 ]
%9 = call i32 @llvm.smax.i32(i32 %7, i32 20)
%10 = add nuw i32 %9, 1
br label %11
11: ; preds = %6, %11
%12 = phi i32 [ %18, %11 ], [ %7, %6 ]
%13 = tail call i32 @print_char(i8 signext 107)
%14 = tail call i32 @print_char(i8 signext 58)
%15 = tail call i32 @print_char(i8 signext 32)
%16 = tail call i32 @print_int(i32 %12)
%17 = tail call i32 @print_char(i8 signext 10)
%18 = add i32 %12, 1
%19 = icmp eq i32 %12, %9
br i1 %19, label %20, label %11
20: ; preds = %11
%21 = tail call i32 @print_char(i8 signext 106)
%22 = tail call i32 @print_char(i8 signext 58)
%23 = tail call i32 @print_char(i8 signext 32)
%24 = tail call i32 @print_int(i32 %8)
%25 = tail call i32 @print_char(i8 signext 10)
%26 = add i32 %8, 1
%27 = icmp eq i32 %26, 16
br i1 %27, label %28, label %6
28: ; preds = %20, %1
%29 = phi i32 [ %3, %1 ], [ 16, %20 ]
%30 = phi i32 [ %2, %1 ], [ %10, %20 ]
%31 = tail call i32 @print_char(i8 signext 105)
%32 = tail call i32 @print_char(i8 signext 58)
%33 = tail call i32 @print_char(i8 signext 32)
%34 = tail call i32 @print_int(i32 %4)
%35 = tail call i32 @print_char(i8 signext 10)
%36 = add nuw nsw i32 %4, 1
%37 = icmp eq i32 %36, 6
br i1 %37, label %38, label %1
38: ; preds = %28
ret i32 0
}