#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 *, unsigned int);
void main() {
  int data[] = {0, 1, 2, 3, 4, 5, 6};
  printf("%u\n", (unsigned)data);
  printf("%u\n", (unsigned)(data + 1));
  double numbers[] = {0.57721566, 1.61803398, 2.71828183, 3.1415965};
  printf("%u\n", (unsigned)numbers);
  printf("%u\n", (unsigned)(numbers + 1));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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    0xed9(%rip),%eax
mov    %eax,-0x8(%rbp)
lea    -0x20(%rbp),%rax
mov    %eax,%esi
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
lea    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %eax,%esi
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
mov    0xeaf(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xeac(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xea9(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xea6(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    -0x40(%rbp),%rax
mov    %eax,%esi
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
lea    -0x40(%rbp),%rax
add    $0x8,%rax
mov    %eax,%esi
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x48,%rsp
movups 0xeee(%rip),%xmm0
movups %xmm0,0xc(%rsp)
movaps 0xed6(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rbx
lea    0xee4(%rip),%r14
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
or     $0x4,%ebx
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
movaps 0xeda(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xebe(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
lea    0x20(%rsp),%rbx
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
or     $0x8,%ebx
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.data = [7 x i32] [i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6]
@.str = [4 x i8] c"%u\0A\00"
@__const.main.numbers = [4 x double] [double 0x3FE2788CF9CE0CBE, double 0x3FF9E377993EAAE1, double 0x4005BF0A8B4949CB, double 0x400921FD5885D313]
define void @main() {
%1 = alloca [7 x i32]
%2 = alloca [4 x double]
%3 = bitcast [7 x i32]* %1 to i8*
%4 = getelementptr inbounds [7 x i32], [7 x i32]* %1, i64 0, i64 0
%5 = ptrtoint i32* %4 to i32
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = getelementptr inbounds [7 x i32], [7 x i32]* %1, i64 0, i64 0
%8 = getelementptr inbounds i32, i32* %7, i64 1
%9 = ptrtoint i32* %8 to i32
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = bitcast [4 x double]* %2 to i8*
%12 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%13 = ptrtoint double* %12 to i32
%14 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %13)
%15 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%16 = getelementptr inbounds double, double* %15, i64 1
%17 = ptrtoint double* %16 to i32
%18 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %17)
ret void
}

LLVM IR (-O2):
@__const.main.data = [7 x i32] [i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6]
@.str = [4 x i8] c"%u\0A\00"
@__const.main.numbers = [4 x double] [double 0x3FE2788CF9CE0CBE, double 0x3FF9E377993EAAE1, double 0x4005BF0A8B4949CB, double 0x400921FD5885D313]
define void @main() {
%1 = alloca [7 x i32]
%2 = alloca [4 x double]
%3 = bitcast [7 x i32]* %1 to i8*
%4 = ptrtoint [7 x i32]* %1 to i64
%5 = trunc i64 %4 to i32
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = getelementptr inbounds [7 x i32], [7 x i32]* %1, i64 0, i64 1
%8 = ptrtoint i32* %7 to i64
%9 = trunc i64 %8 to i32
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = bitcast [4 x double]* %2 to i8*
%12 = ptrtoint [4 x double]* %2 to i64
%13 = trunc i64 %12 to i32
%14 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %13)
%15 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 1
%16 = ptrtoint double* %15 to i64
%17 = trunc i64 %16 to i32
%18 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %17)
ret void
}