#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 main(int argc, char *argv[]) {
  int a[4];
  int b[4] = {2, 6, 3, 8};
  a[0] = 3;
  a[1] = 2;
  a[2] = 7;
  a[3] = 9;
  printf("a values are: %d, %d, %d, %d\n", a[0], a[1], a[2], a[3]);
  printf("b values are: %d, %d, %d, %d\n", b[0], b[1], b[2], b[3]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xed3(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xed0(%rip),%rax
mov    %rax,-0x28(%rbp)
movl   $0x3,-0x20(%rbp)
movl   $0x2,-0x1c(%rbp)
movl   $0x7,-0x18(%rbp)
movl   $0x9,-0x14(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xea4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x24(%rbp),%r8d
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x3,%esi
mov    $0x2,%edx
mov    $0x7,%ecx
mov    $0x9,%r8d
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x2,%esi
mov    $0x6,%edx
mov    $0x3,%ecx
mov    $0x8,%r8d
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

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