#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, j, k;
  char coolbuf[100];
  for (i = 0; i < 10; i++) {
    for (j = 0; j < 10; j++) {
      coolbuf[i + 10 * j] = i + 10 * j;
    }
  }
  for (k = 0; k < 100; k++) {
    printf("%d ", coolbuf[k]);
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    117f <main+0x6f>
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    116c <main+0x5c>
mov    -0x8(%rbp),%eax
imul   $0xa,-0xc(%rbp),%ecx
add    %ecx,%eax
mov    %al,%cl
mov    -0x8(%rbp),%eax
imul   $0xa,-0xc(%rbp),%edx
add    %edx,%eax
cltq
mov    %cl,-0x80(%rbp,%rax,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113a <main+0x2a>
jmp    1171 <main+0x61>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1129 <main+0x19>
movl   $0x0,-0x10(%rbp)
cmpl   $0x64,-0x10(%rbp)
jge    11b5 <main+0xa5>
movslq -0x10(%rbp),%rax
movsbl -0x80(%rbp,%rax,1),%esi
lea    0xe60(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1186 <main+0x76>
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x68,%rsp
movw   $0x100,(%rsp)
movw   $0xb0a,0xa(%rsp)
movw   $0x1514,0x14(%rsp)
movw   $0x1f1e,0x1e(%rsp)
movw   $0x2928,0x28(%rsp)
movw   $0x3332,0x32(%rsp)
movw   $0x3d3c,0x3c(%rsp)
movw   $0x4746,0x46(%rsp)
movw   $0x5150,0x50(%rsp)
movw   $0x5b5a,0x5a(%rsp)
movb   $0x2,0x2(%rsp)
movb   $0xc,0xc(%rsp)
movb   $0x16,0x16(%rsp)
movb   $0x20,0x20(%rsp)
movb   $0x2a,0x2a(%rsp)
movb   $0x34,0x34(%rsp)
movb   $0x3e,0x3e(%rsp)
movb   $0x48,0x48(%rsp)
movb   $0x52,0x52(%rsp)
movb   $0x5c,0x5c(%rsp)
movw   $0x403,0x3(%rsp)
movw   $0xe0d,0xd(%rsp)
movw   $0x1817,0x17(%rsp)
movw   $0x2221,0x21(%rsp)
movw   $0x2c2b,0x2b(%rsp)
movw   $0x3635,0x35(%rsp)
movw   $0x403f,0x3f(%rsp)
movw   $0x4a49,0x49(%rsp)
movw   $0x5453,0x53(%rsp)
movw   $0x5e5d,0x5d(%rsp)
movb   $0x5,0x5(%rsp)
movb   $0xf,0xf(%rsp)
movb   $0x19,0x19(%rsp)
movb   $0x23,0x23(%rsp)
movb   $0x2d,0x2d(%rsp)
movb   $0x37,0x37(%rsp)
movb   $0x41,0x41(%rsp)
movb   $0x4b,0x4b(%rsp)
movb   $0x55,0x55(%rsp)
movb   $0x5f,0x5f(%rsp)
movb   $0x6,0x6(%rsp)
movb   $0x10,0x10(%rsp)
movb   $0x1a,0x1a(%rsp)
movb   $0x24,0x24(%rsp)
movb   $0x2e,0x2e(%rsp)
movb   $0x38,0x38(%rsp)
movb   $0x42,0x42(%rsp)
movb   $0x4c,0x4c(%rsp)
movb   $0x56,0x56(%rsp)
movb   $0x60,0x60(%rsp)
movb   $0x7,0x7(%rsp)
movb   $0x11,0x11(%rsp)
movb   $0x1b,0x1b(%rsp)
movb   $0x25,0x25(%rsp)
movb   $0x2f,0x2f(%rsp)
movb   $0x39,0x39(%rsp)
movb   $0x43,0x43(%rsp)
movb   $0x4d,0x4d(%rsp)
movb   $0x57,0x57(%rsp)
movb   $0x61,0x61(%rsp)
movb   $0x8,0x8(%rsp)
movb   $0x12,0x12(%rsp)
movb   $0x1c,0x1c(%rsp)
movb   $0x26,0x26(%rsp)
movb   $0x30,0x30(%rsp)
movb   $0x3a,0x3a(%rsp)
movb   $0x44,0x44(%rsp)
movb   $0x4e,0x4e(%rsp)
movb   $0x58,0x58(%rsp)
movb   $0x62,0x62(%rsp)
movb   $0x9,0x9(%rsp)
movb   $0x13,0x13(%rsp)
movb   $0x1d,0x1d(%rsp)
movb   $0x27,0x27(%rsp)
movb   $0x31,0x31(%rsp)
movb   $0x3b,0x3b(%rsp)
movb   $0x45,0x45(%rsp)
movb   $0x4f,0x4f(%rsp)
movb   $0x59,0x59(%rsp)
movb   $0x63,0x63(%rsp)
lea    0xd1b(%rip),%r14
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
movsbl (%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    $0x64,%rbx
jne    12f0 <main+0x1d0>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d \00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [100 x i8]
store i32 0, i32* %1
store i32 0, i32* %2
br label %6
6: ; preds = %29, %0
%7 = load i32, i32* %2
%8 = icmp slt i32 %7, 10
br i1 %8, label %9, label %32
9: ; preds = %6
store i32 0, i32* %3
br label %10
10: ; preds = %25, %9
%11 = load i32, i32* %3
%12 = icmp slt i32 %11, 10
br i1 %12, label %13, label %28
13: ; preds = %10
%14 = load i32, i32* %2
%15 = load i32, i32* %3
%16 = mul nsw i32 10, %15
%17 = add nsw i32 %14, %16
%18 = trunc i32 %17 to i8
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = mul nsw i32 10, %20
%22 = add nsw i32 %19, %21
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 %23
store i8 %18, i8* %24
br label %25
25: ; preds = %13
%26 = load i32, i32* %3
%27 = add nsw i32 %26, 1
store i32 %27, i32* %3
br label %10
28: ; preds = %10
br label %29
29: ; preds = %28
%30 = load i32, i32* %2
%31 = add nsw i32 %30, 1
store i32 %31, i32* %2
br label %6
32: ; preds = %6
store i32 0, i32* %4
br label %33
33: ; preds = %43, %32
%34 = load i32, i32* %4
%35 = icmp slt i32 %34, 100
br i1 %35, label %36, label %46
36: ; preds = %33
%37 = load i32, i32* %4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 %38
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %41)
br label %43
43: ; preds = %36
%44 = load i32, i32* %4
%45 = add nsw i32 %44, 1
store i32 %45, i32* %4
br label %33
46: ; preds = %33
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d \00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
store i8 0, i8* %2
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 10
store i8 10, i8* %3
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 20
store i8 20, i8* %4
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 30
store i8 30, i8* %5
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 40
store i8 40, i8* %6
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 50
store i8 50, i8* %7
%8 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 60
store i8 60, i8* %8
%9 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 70
store i8 70, i8* %9
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 80
store i8 80, i8* %10
%11 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 90
store i8 90, i8* %11
%12 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 1
store i8 1, i8* %12
%13 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 11
store i8 11, i8* %13
%14 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 21
store i8 21, i8* %14
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 31
store i8 31, i8* %15
%16 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 41
store i8 41, i8* %16
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 51
store i8 51, i8* %17
%18 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 61
store i8 61, i8* %18
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 71
store i8 71, i8* %19
%20 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 81
store i8 81, i8* %20
%21 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 91
store i8 91, i8* %21
%22 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 2
store i8 2, i8* %22
%23 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 12
store i8 12, i8* %23
%24 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 22
store i8 22, i8* %24
%25 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 32
store i8 32, i8* %25
%26 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 42
store i8 42, i8* %26
%27 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 52
store i8 52, i8* %27
%28 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 62
store i8 62, i8* %28
%29 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 72
store i8 72, i8* %29
%30 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 82
store i8 82, i8* %30
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 92
store i8 92, i8* %31
%32 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 3
store i8 3, i8* %32
%33 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 13
store i8 13, i8* %33
%34 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 23
store i8 23, i8* %34
%35 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 33
store i8 33, i8* %35
%36 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 43
store i8 43, i8* %36
%37 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 53
store i8 53, i8* %37
%38 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 63
store i8 63, i8* %38
%39 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 73
store i8 73, i8* %39
%40 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 83
store i8 83, i8* %40
%41 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 93
store i8 93, i8* %41
%42 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 4
store i8 4, i8* %42
%43 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 14
store i8 14, i8* %43
%44 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 24
store i8 24, i8* %44
%45 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 34
store i8 34, i8* %45
%46 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 44
store i8 44, i8* %46
%47 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 54
store i8 54, i8* %47
%48 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 64
store i8 64, i8* %48
%49 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 74
store i8 74, i8* %49
%50 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 84
store i8 84, i8* %50
%51 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 94
store i8 94, i8* %51
%52 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 5
store i8 5, i8* %52
%53 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 15
store i8 15, i8* %53
%54 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 25
store i8 25, i8* %54
%55 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 35
store i8 35, i8* %55
%56 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 45
store i8 45, i8* %56
%57 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 55
store i8 55, i8* %57
%58 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 65
store i8 65, i8* %58
%59 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 75
store i8 75, i8* %59
%60 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 85
store i8 85, i8* %60
%61 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 95
store i8 95, i8* %61
%62 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 6
store i8 6, i8* %62
%63 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 16
store i8 16, i8* %63
%64 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 26
store i8 26, i8* %64
%65 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 36
store i8 36, i8* %65
%66 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 46
store i8 46, i8* %66
%67 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 56
store i8 56, i8* %67
%68 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 66
store i8 66, i8* %68
%69 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 76
store i8 76, i8* %69
%70 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 86
store i8 86, i8* %70
%71 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 96
store i8 96, i8* %71
%72 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 7
store i8 7, i8* %72
%73 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 17
store i8 17, i8* %73
%74 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 27
store i8 27, i8* %74
%75 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 37
store i8 37, i8* %75
%76 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 47
store i8 47, i8* %76
%77 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 57
store i8 57, i8* %77
%78 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 67
store i8 67, i8* %78
%79 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 77
store i8 77, i8* %79
%80 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 87
store i8 87, i8* %80
%81 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 97
store i8 97, i8* %81
%82 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 8
store i8 8, i8* %82
%83 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 18
store i8 18, i8* %83
%84 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 28
store i8 28, i8* %84
%85 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 38
store i8 38, i8* %85
%86 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 48
store i8 48, i8* %86
%87 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 58
store i8 58, i8* %87
%88 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 68
store i8 68, i8* %88
%89 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 78
store i8 78, i8* %89
%90 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 88
store i8 88, i8* %90
%91 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 98
store i8 98, i8* %91
%92 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 9
store i8 9, i8* %92
%93 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 19
store i8 19, i8* %93
%94 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 29
store i8 29, i8* %94
%95 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 39
store i8 39, i8* %95
%96 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 49
store i8 49, i8* %96
%97 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 59
store i8 59, i8* %97
%98 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 69
store i8 69, i8* %98
%99 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 79
store i8 79, i8* %99
%100 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 89
store i8 89, i8* %100
%101 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 99
store i8 99, i8* %101
br label %102
102: ; preds = %0, %102
%103 = phi i64 [ 0, %0 ], [ %108, %102 ]
%104 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 %103
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %106)
%108 = add nuw nsw i64 %103, 1
%109 = icmp eq i64 %108, 100
br i1 %109, label %110, label %102
110: ; preds = %102
%111 = tail call i32 @putchar(i32 10)
ret i32 0
}