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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0xee1(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xede(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    0xedb(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xed8(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed5(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xed2(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xecf(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xecc(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%ecx
mov    -0x4(%rbp),%r8d
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x24(%rbp),%r8d
lea    0xe8a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x40(%rbp),%esi
mov    -0x3c(%rbp),%edx
mov    -0x38(%rbp),%ecx
mov    -0x34(%rbp),%r8d
lea    0xe71(%rip),%rdi
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x4,%edx
mov    $0x5,%ecx
mov    $0x6,%r8d
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x5,%edx
mov    $0x6,%ecx
mov    $0x7,%r8d
pop    %rbx
jmp    1030 <printf@plt>

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

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