#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(void) {
  int i = 0;
  printf("c1 c2 c3 c4 c5 c6 c7 c8 c9 c0\n");
  for (i = 0; i < 10; i++) {
    printf("%0.2d %0.2d %0.2d %0.2d %0.2d %0.2d %0.2d %0.2d %0.2d %0.2d\n", i,
           i + 1, i + 2, i + 3, i + 4, i + 5, i + 6, i + 7, i + 8, i + 9);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x30,%rsp
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0xa,-0x18(%rbp)
jge    11bd <main+0xad>
mov    -0x18(%rbp),%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
mov    -0x18(%rbp),%ecx
add    $0x2,%ecx
mov    -0x18(%rbp),%r8d
add    $0x3,%r8d
mov    -0x18(%rbp),%r9d
add    $0x4,%r9d
mov    -0x18(%rbp),%r14d
add    $0x5,%r14d
mov    -0x18(%rbp),%ebx
add    $0x6,%ebx
mov    -0x18(%rbp),%r11d
add    $0x7,%r11d
mov    -0x18(%rbp),%r10d
add    $0x8,%r10d
mov    -0x18(%rbp),%eax
add    $0x9,%eax
lea    0xe8d(%rip),%rdi
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    113e <main+0x2e>
mov    -0x14(%rbp),%eax
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf15(%rip),%rdi
call   1030 <puts@plt>
sub    $0x8,%rsp
lea    0xec8(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0x3,%r8d
mov    $0x4,%r9d
xor    %eax,%eax
push   $0x9
push   $0x8
push   $0x7
push   $0x6
push   $0x5
call   1040 <printf@plt>
add    $0x28,%rsp
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
mov    $0x5,%r9d
xor    %eax,%eax
push   $0xa
push   $0x9
push   $0x8
push   $0x7
push   $0x6
call   1040 <printf@plt>
add    $0x28,%rsp
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
xor    %eax,%eax
push   $0xb
push   $0xa
push   $0x9
push   $0x8
push   $0x7
call   1040 <printf@plt>
add    $0x28,%rsp
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x4,%edx
mov    $0x5,%ecx
mov    $0x6,%r8d
mov    $0x7,%r9d
xor    %eax,%eax
push   $0xc
push   $0xb
push   $0xa
push   $0x9
push   $0x8
call   1040 <printf@plt>
add    $0x28,%rsp
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x5,%edx
mov    $0x6,%ecx
mov    $0x7,%r8d
mov    $0x8,%r9d
xor    %eax,%eax
push   $0xd
push   $0xc
push   $0xb
push   $0xa
push   $0x9
call   1040 <printf@plt>
add    $0x28,%rsp
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x6,%edx
mov    $0x7,%ecx
mov    $0x8,%r8d
mov    $0x9,%r9d
xor    %eax,%eax
push   $0xe
push   $0xd
push   $0xc
push   $0xb
push   $0xa
call   1040 <printf@plt>
add    $0x28,%rsp
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0x7,%edx
mov    $0x8,%ecx
mov    $0x9,%r8d
mov    $0xa,%r9d
xor    %eax,%eax
push   $0xf
push   $0xe
push   $0xd
push   $0xc
push   $0xb
call   1040 <printf@plt>
add    $0x28,%rsp
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0x8,%edx
mov    $0x9,%ecx
mov    $0xa,%r8d
mov    $0xb,%r9d
xor    %eax,%eax
push   $0x10
push   $0xf
push   $0xe
push   $0xd
push   $0xc
call   1040 <printf@plt>
add    $0x28,%rsp
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x9,%edx
mov    $0xa,%ecx
mov    $0xb,%r8d
mov    $0xc,%r9d
xor    %eax,%eax
push   $0x11
push   $0x10
push   $0xf
push   $0xe
push   $0xd
call   1040 <printf@plt>
add    $0x28,%rsp
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0xa,%edx
mov    $0xb,%ecx
mov    $0xc,%r8d
mov    $0xd,%r9d
xor    %eax,%eax
push   $0x12
push   $0x11
push   $0x10
push   $0xf
push   $0xe
call   1040 <printf@plt>
add    $0x30,%rsp
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [31 x i8] c"c1 c2 c3 c4 c5 c6 c7 c8 c9 c0\0A\00"
@.str.1 = [61 x i8] c"%0.2d %0.2d %0.2d %0.2d %0.2d %0.2d %0.2d %0.2d %0.2d %0.2d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %4
4: ; preds = %28, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 10
br i1 %6, label %7, label %31
7: ; preds = %4
%8 = load i32, i32* %2
%9 = load i32, i32* %2
%10 = add nsw i32 %9, 1
%11 = load i32, i32* %2
%12 = add nsw i32 %11, 2
%13 = load i32, i32* %2
%14 = add nsw i32 %13, 3
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 4
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 5
%19 = load i32, i32* %2
%20 = add nsw i32 %19, 6
%21 = load i32, i32* %2
%22 = add nsw i32 %21, 7
%23 = load i32, i32* %2
%24 = add nsw i32 %23, 8
%25 = load i32, i32* %2
%26 = add nsw i32 %25, 9
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i32 %8, i32 %10, i32 %12, i32 %14, i32 %16, i32 %18, i32 %20, i32 %22, i32 %24, i32 %26)
br label %28
28: ; preds = %7
%29 = load i32, i32* %2
%30 = add nsw i32 %29, 1
store i32 %30, i32* %2
br label %4
31: ; preds = %4
%32 = load i32, i32* %1
ret i32 %32
}

LLVM IR (-O2):
@.str.1 = [61 x i8] c"%0.2d %0.2d %0.2d %0.2d %0.2d %0.2d %0.2d %0.2d %0.2d %0.2d\0A\00"
@str = [30 x i8] c"c1 c2 c3 c4 c5 c6 c7 c8 c9 c0\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18)
ret i32 0
}