#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, int, int, int, int, int, int,
                          int);
int main() {
  int a[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
  printf("Values are %d, %d, %d, %d, %d, %d, %d, %d, %d, %d\n", a[0], a[1],
         a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x60,%rsp
movl   $0x0,-0x14(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xec3(%rip),%rsi
mov    $0x28,%edx
call   1040 <memcpy@plt>
mov    -0x40(%rbp),%esi
mov    -0x3c(%rbp),%edx
mov    -0x38(%rbp),%ecx
mov    -0x34(%rbp),%r8d
mov    -0x30(%rbp),%r9d
mov    -0x2c(%rbp),%r14d
mov    -0x28(%rbp),%ebx
mov    -0x24(%rbp),%r11d
mov    -0x20(%rbp),%r10d
mov    -0x1c(%rbp),%eax
lea    0xeb7(%rip),%rdi
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
sub    $0x8,%rsp
lea    0xee4(%rip),%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
mov    $0x5,%r9d
push   $0xa
push   $0x9
push   $0x8
push   $0x7
push   $0x6
call   1030 <printf@plt>
add    $0x30,%rsp
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.main.a = [10 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10]
@.str = [51 x i8] c"Values are %d, %d, %d, %d, %d, %d, %d, %d, %d, %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
store i32 0, i32* %1
%3 = bitcast [10 x i32]* %2 to i8*
%4 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%5 = load i32, i32* %4
%6 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 1
%7 = load i32, i32* %6
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 2
%9 = load i32, i32* %8
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 3
%11 = load i32, i32* %10
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 4
%13 = load i32, i32* %12
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 5
%15 = load i32, i32* %14
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 6
%17 = load i32, i32* %16
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 7
%19 = load i32, i32* %18
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 8
%21 = load i32, i32* %20
%22 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 9
%23 = load i32, i32* %22
%24 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %7, i32 %9, i32 %11, i32 %13, i32 %15, i32 %17, i32 %19, i32 %21, i32 %23)
ret i32 0
}

LLVM IR (-O2):
@.str = [51 x i8] c"Values are %d, %d, %d, %d, %d, %d, %d, %d, %d, %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10)
ret i32 0
}