#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*/ bar(long *);
void foo(void) {
  long int buf[10];
  buf[0] = 0x0808080808080808;
  buf[1] = 0x0808080808080808;
  buf[2] = 0x0808080808080808;
  buf[3] = 0x0808080808080808;
  buf[4] = 0x0808080808080808;
  buf[5] = 0x0808080808080808;
  buf[6] = 0x0808080808080808;
  buf[7] = 0x0808080808080808;
  buf[8] = 0x0808080808080808;
  buf[9] = 0x0808080808080808;
  bar(buf);
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movabs $0x808080808080808,%rax
08 08 08
mov    %rax,-0x50(%rbp)
movabs $0x808080808080808,%rax
08 08 08
mov    %rax,-0x48(%rbp)
movabs $0x808080808080808,%rax
08 08 08
mov    %rax,-0x40(%rbp)
movabs $0x808080808080808,%rax
08 08 08
mov    %rax,-0x38(%rbp)
movabs $0x808080808080808,%rax
08 08 08
mov    %rax,-0x30(%rbp)
movabs $0x808080808080808,%rax
08 08 08
mov    %rax,-0x28(%rbp)
movabs $0x808080808080808,%rax
08 08 08
mov    %rax,-0x20(%rbp)
movabs $0x808080808080808,%rax
08 08 08
mov    %rax,-0x18(%rbp)
movabs $0x808080808080808,%rax
08 08 08
mov    %rax,-0x10(%rbp)
movabs $0x808080808080808,%rax
08 08 08
mov    %rax,-0x8(%rbp)
lea    -0x50(%rbp),%rdi
call   1030 <bar@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
sub    $0x58,%rsp
movaps 0xee5(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
call   1030 <bar@plt>
add    $0x58,%rsp
ret

LLVM IR (-O0):
define void @foo() {
%1 = alloca [10 x i64]
%2 = getelementptr inbounds [10 x i64], [10 x i64]* %1, i64 0, i64 0
store i64 578721382704613384, i64* %2
%3 = getelementptr inbounds [10 x i64], [10 x i64]* %1, i64 0, i64 1
store i64 578721382704613384, i64* %3
%4 = getelementptr inbounds [10 x i64], [10 x i64]* %1, i64 0, i64 2
store i64 578721382704613384, i64* %4
%5 = getelementptr inbounds [10 x i64], [10 x i64]* %1, i64 0, i64 3
store i64 578721382704613384, i64* %5
%6 = getelementptr inbounds [10 x i64], [10 x i64]* %1, i64 0, i64 4
store i64 578721382704613384, i64* %6
%7 = getelementptr inbounds [10 x i64], [10 x i64]* %1, i64 0, i64 5
store i64 578721382704613384, i64* %7
%8 = getelementptr inbounds [10 x i64], [10 x i64]* %1, i64 0, i64 6
store i64 578721382704613384, i64* %8
%9 = getelementptr inbounds [10 x i64], [10 x i64]* %1, i64 0, i64 7
store i64 578721382704613384, i64* %9
%10 = getelementptr inbounds [10 x i64], [10 x i64]* %1, i64 0, i64 8
store i64 578721382704613384, i64* %10
%11 = getelementptr inbounds [10 x i64], [10 x i64]* %1, i64 0, i64 9
store i64 578721382704613384, i64* %11
%12 = getelementptr inbounds [10 x i64], [10 x i64]* %1, i64 0, i64 0
%13 = call i32 @bar(i64* %12)
ret void
}

LLVM IR (-O2):
define void @foo() {
%1 = alloca [10 x i64]
%2 = bitcast [10 x i64]* %1 to i8*
%3 = getelementptr inbounds [10 x i64], [10 x i64]* %1, i64 0, i64 0
%4 = bitcast [10 x i64]* %1 to i8*
%5 = call i32 @bar(i64* %3)
ret void
}