#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, int);
int main() {
  int hour, minute;
  hour = 0;
  while (hour < 12) {
    minute = 0;
    while (minute < 60) {
      printf("%02d:%02d\n", hour, minute);
      minute++;
    }
    hour++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xc,-0x8(%rbp)
jge    116f <main+0x5f>
movl   $0x0,-0xc(%rbp)
cmpl   $0x3c,-0xc(%rbp)
jge    1161 <main+0x51>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1137 <main+0x27>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xee3(%rip),%r14
nopl   (%rax)
mov    %r14,%rdi
xor    %esi,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x3c,%ebx
jne    1120 <main+0x10>
xor    %ebx,%ebx
lea    0xec3(%rip),%r14
nopl   (%rax)
mov    %r14,%rdi
mov    $0x1,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x3c,%ebx
jne    1140 <main+0x30>
xor    %ebx,%ebx
lea    0xea0(%rip),%r14
mov    %r14,%rdi
mov    $0x2,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x3c,%ebx
jne    1160 <main+0x50>
xor    %ebx,%ebx
lea    0xe80(%rip),%r14
mov    %r14,%rdi
mov    $0x3,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x3c,%ebx
jne    1180 <main+0x70>
xor    %ebx,%ebx
lea    0xe60(%rip),%r14
mov    %r14,%rdi
mov    $0x4,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x3c,%ebx
jne    11a0 <main+0x90>
xor    %ebx,%ebx
lea    0xe40(%rip),%r14
mov    %r14,%rdi
mov    $0x5,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x3c,%ebx
jne    11c0 <main+0xb0>
xor    %ebx,%ebx
lea    0xe20(%rip),%r14
mov    %r14,%rdi
mov    $0x6,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x3c,%ebx
jne    11e0 <main+0xd0>
xor    %ebx,%ebx
lea    0xe00(%rip),%r14
mov    %r14,%rdi
mov    $0x7,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x3c,%ebx
jne    1200 <main+0xf0>
xor    %ebx,%ebx
lea    0xde0(%rip),%r14
mov    %r14,%rdi
mov    $0x8,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x3c,%ebx
jne    1220 <main+0x110>
xor    %ebx,%ebx
lea    0xdc0(%rip),%r14
mov    %r14,%rdi
mov    $0x9,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x3c,%ebx
jne    1240 <main+0x130>
xor    %ebx,%ebx
lea    0xda0(%rip),%r14
mov    %r14,%rdi
mov    $0xa,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x3c,%ebx
jne    1260 <main+0x150>
xor    %ebx,%ebx
lea    0xd80(%rip),%r14
mov    %r14,%rdi
mov    $0xb,%esi
mov    %ebx,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0x3c,%ebx
jne    1280 <main+0x170>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [11 x i8] c"%02d:%02d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %4
4: ; preds = %17, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 12
br i1 %6, label %7, label %20
7: ; preds = %4
store i32 0, i32* %3
br label %8
8: ; preds = %11, %7
%9 = load i32, i32* %3
%10 = icmp slt i32 %9, 60
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %13)
%15 = load i32, i32* %3
%16 = add nsw i32 %15, 1
store i32 %16, i32* %3
br label %8
17: ; preds = %8
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 1
store i32 %19, i32* %2
br label %4
20: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"%02d:%02d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %4, %1 ]
%3 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 0, i32 %2)
%4 = add nuw nsw i32 %2, 1
%5 = icmp eq i32 %4, 60
br i1 %5, label %6, label %1
6: ; preds = %1, %6
%7 = phi i32 [ %9, %6 ], [ 0, %1 ]
%8 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 1, i32 %7)
%9 = add nuw nsw i32 %7, 1
%10 = icmp eq i32 %9, 60
br i1 %10, label %11, label %6
11: ; preds = %6, %11
%12 = phi i32 [ %14, %11 ], [ 0, %6 ]
%13 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 2, i32 %12)
%14 = add nuw nsw i32 %12, 1
%15 = icmp eq i32 %14, 60
br i1 %15, label %16, label %11
16: ; preds = %11, %16
%17 = phi i32 [ %19, %16 ], [ 0, %11 ]
%18 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 3, i32 %17)
%19 = add nuw nsw i32 %17, 1
%20 = icmp eq i32 %19, 60
br i1 %20, label %21, label %16
21: ; preds = %16, %21
%22 = phi i32 [ %24, %21 ], [ 0, %16 ]
%23 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 4, i32 %22)
%24 = add nuw nsw i32 %22, 1
%25 = icmp eq i32 %24, 60
br i1 %25, label %26, label %21
26: ; preds = %21, %26
%27 = phi i32 [ %29, %26 ], [ 0, %21 ]
%28 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 5, i32 %27)
%29 = add nuw nsw i32 %27, 1
%30 = icmp eq i32 %29, 60
br i1 %30, label %31, label %26
31: ; preds = %26, %31
%32 = phi i32 [ %34, %31 ], [ 0, %26 ]
%33 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 6, i32 %32)
%34 = add nuw nsw i32 %32, 1
%35 = icmp eq i32 %34, 60
br i1 %35, label %36, label %31
36: ; preds = %31, %36
%37 = phi i32 [ %39, %36 ], [ 0, %31 ]
%38 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 7, i32 %37)
%39 = add nuw nsw i32 %37, 1
%40 = icmp eq i32 %39, 60
br i1 %40, label %41, label %36
41: ; preds = %36, %41
%42 = phi i32 [ %44, %41 ], [ 0, %36 ]
%43 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 8, i32 %42)
%44 = add nuw nsw i32 %42, 1
%45 = icmp eq i32 %44, 60
br i1 %45, label %46, label %41
46: ; preds = %41, %46
%47 = phi i32 [ %49, %46 ], [ 0, %41 ]
%48 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 9, i32 %47)
%49 = add nuw nsw i32 %47, 1
%50 = icmp eq i32 %49, 60
br i1 %50, label %51, label %46
51: ; preds = %46, %51
%52 = phi i32 [ %54, %51 ], [ 0, %46 ]
%53 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 10, i32 %52)
%54 = add nuw nsw i32 %52, 1
%55 = icmp eq i32 %54, 60
br i1 %55, label %56, label %51
56: ; preds = %51, %56
%57 = phi i32 [ %59, %56 ], [ 0, %51 ]
%58 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 11, i32 %57)
%59 = add nuw nsw i32 %57, 1
%60 = icmp eq i32 %59, 60
br i1 %60, label %61, label %56
61: ; preds = %56
ret i32 0
}