#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*/ print_int(int);
int /*<<< orphan*/ print_string(char *);
void main(void) {
  int x[10], y[10];
  int u;
  x[4] = 1111;
  x[5] = 2222;
  x[6] = 3333;
  y[7] = 4444;
  y[8] = 5555;
  y[9] = 6666;
  u = x[4];
  print_int(u);
  print_string("\n");
  u = x[5];
  print_int(u);
  print_string("\n");
  u = x[6];
  print_int(u);
  print_string("\n");
  u = y[7];
  print_int(u);
  print_string("\n");
  u = y[8];
  print_int(u);
  print_string("\n");
  u = y[9];
  print_int(u);
  print_string("\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x457,-0x20(%rbp)
movl   $0x8ae,-0x1c(%rbp)
movl   $0xd05,-0x18(%rbp)
movl   $0x115c,-0x44(%rbp)
movl   $0x15b3,-0x40(%rbp)
movl   $0x1a0a,-0x3c(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%edi
call   1040 <print_int@plt>
lea    0xe99(%rip),%rdi
call   1030 <print_string@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%edi
call   1040 <print_int@plt>
lea    0xe7f(%rip),%rdi
call   1030 <print_string@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%edi
call   1040 <print_int@plt>
lea    0xe65(%rip),%rdi
call   1030 <print_string@plt>
mov    -0x44(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%edi
call   1040 <print_int@plt>
lea    0xe4b(%rip),%rdi
call   1030 <print_string@plt>
mov    -0x40(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%edi
call   1040 <print_int@plt>
lea    0xe31(%rip),%rdi
call   1030 <print_string@plt>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%edi
call   1040 <print_int@plt>
lea    0xe17(%rip),%rdi
call   1030 <print_string@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x457,%edi
call   1040 <print_int@plt>
lea    0xece(%rip),%rbx
mov    %rbx,%rdi
call   1030 <print_string@plt>
mov    $0x8ae,%edi
call   1040 <print_int@plt>
mov    %rbx,%rdi
call   1030 <print_string@plt>
mov    $0xd05,%edi
call   1040 <print_int@plt>
mov    %rbx,%rdi
call   1030 <print_string@plt>
mov    $0x115c,%edi
call   1040 <print_int@plt>
mov    %rbx,%rdi
call   1030 <print_string@plt>
mov    $0x15b3,%edi
call   1040 <print_int@plt>
mov    %rbx,%rdi
call   1030 <print_string@plt>
mov    $0x1a0a,%edi
call   1040 <print_int@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <print_string@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define void @main() {
%1 = alloca [10 x i32]
%2 = alloca [10 x i32]
%3 = alloca i32
%4 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
store i32 1111, i32* %4
%5 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
store i32 2222, i32* %5
%6 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
store i32 3333, i32* %6
%7 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 7
store i32 4444, i32* %7
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 8
store i32 5555, i32* %8
%9 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 9
store i32 6666, i32* %9
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%11 = load i32, i32* %10
store i32 %11, i32* %3
%12 = load i32, i32* %3
%13 = call i32 @print_int(i32 %12)
%14 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%16 = load i32, i32* %15
store i32 %16, i32* %3
%17 = load i32, i32* %3
%18 = call i32 @print_int(i32 %17)
%19 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%21 = load i32, i32* %20
store i32 %21, i32* %3
%22 = load i32, i32* %3
%23 = call i32 @print_int(i32 %22)
%24 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%25 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 7
%26 = load i32, i32* %25
store i32 %26, i32* %3
%27 = load i32, i32* %3
%28 = call i32 @print_int(i32 %27)
%29 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%30 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 8
%31 = load i32, i32* %30
store i32 %31, i32* %3
%32 = load i32, i32* %3
%33 = call i32 @print_int(i32 %32)
%34 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%35 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 9
%36 = load i32, i32* %35
store i32 %36, i32* %3
%37 = load i32, i32* %3
%38 = call i32 @print_int(i32 %37)
%39 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
define void @main() {
%1 = tail call i32 @print_int(i32 1111)
%2 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @print_int(i32 2222)
%4 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @print_int(i32 3333)
%6 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @print_int(i32 4444)
%8 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @print_int(i32 5555)
%10 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @print_int(i32 6666)
%12 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}