#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);
main() {
  int a[] = {0, 1, 2, 3, 4, 5};
  printf("%d %d %d %d %d  %d", a[0], a[1], a[2], a[3], a[4], a[5]);
  a[5, 2] = 7;
  printf("%d %d %d %d %d  %d", a[0], a[1], a[2], a[3], a[4], a[5]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0xee1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xede(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xedb(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x10(%rbp),%r9d
mov    -0xc(%rbp),%eax
lea    0xec4(%rip),%rdi
mov    %eax,(%rsp)
call   1030 <printf@plt>
movl   $0x7,-0x18(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x10(%rbp),%r9d
mov    -0xc(%rbp),%eax
lea    0xe9a(%rip),%rdi
mov    %eax,(%rsp)
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movl   $0x5,(%rsp)
lea    0xedd(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    $0x3,%r8d
mov    $0x4,%r9d
call   1030 <printf@plt>
movl   $0x5,(%rsp)
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x7,%ecx
mov    $0x3,%r8d
mov    $0x4,%r9d
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

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