#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 */
typedef int /*<<< orphan*/ numbers3;
typedef int /*<<< orphan*/ numbers2;
typedef int /*<<< orphan*/ numbers;

/* Variables and functions */
int /*<<< orphan*/ doIt(int *, int);
int main() {
  int numbers[] = {0, 0, 1, 7, 4, 6};
  int sizeVectorNumbers = sizeof(numbers) / sizeof(int);
  doIt(numbers, sizeVectorNumbers);
  int numbers2[] = {70, 4, 4, 4, 6, 8, 9};
  int sizeVectorNumbers2 = sizeof(numbers2) / sizeof(int);
  doIt(numbers2, sizeVectorNumbers2);
  int numbers3[] = {10, 4, 10, 8, 6, 8, 6, 8, 0, 10, 12};
  int sizeVectorNumbers3 = sizeof(numbers3) / sizeof(int);
  doIt(numbers3, sizeVectorNumbers3);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xec1(%rip),%rax
mov    %rax,-0x10(%rbp)
movl   $0x6,-0x24(%rbp)
lea    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1040 <doIt@plt>
mov    0xeb3(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xeb0(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xead(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeab(%rip),%eax
mov    %eax,-0x28(%rbp)
movl   $0x7,-0x44(%rbp)
lea    -0x40(%rbp),%rdi
mov    -0x44(%rbp),%esi
call   1040 <doIt@plt>
lea    -0x70(%rbp),%rdi
lea    0xe92(%rip),%rsi
mov    $0x2c,%edx
call   1030 <memcpy@plt>
movl   $0xb,-0x74(%rbp)
lea    -0x70(%rbp),%rdi
mov    -0x74(%rbp),%esi
call   1040 <doIt@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x78,%rsp
mov    0xef5(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0xed9(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
mov    $0x6,%esi
call   1030 <doIt@plt>
movups 0xeed(%rip),%xmm0
movups %xmm0,0x2c(%rsp)
movaps 0xed5(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
lea    0x20(%rsp),%rdi
mov    $0x7,%esi
call   1030 <doIt@plt>
movups 0xef6(%rip),%xmm0
movups %xmm0,0x5c(%rsp)
movaps 0xede(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xec2(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
lea    0x40(%rsp),%rdi
mov    $0xb,%esi
call   1030 <doIt@plt>
xor    %eax,%eax
add    $0x78,%rsp
ret

LLVM IR (-O0):
@__const.main.numbers = [6 x i32] [i32 0, i32 0, i32 1, i32 7, i32 4, i32 6]
@__const.main.numbers2 = [7 x i32] [i32 70, i32 4, i32 4, i32 4, i32 6, i32 8, i32 9]
@__const.main.numbers3 = [11 x i32] [i32 10, i32 4, i32 10, i32 8, i32 6, i32 8, i32 6, i32 8, i32 0, i32 10, i32 12]
define i32 @main() {
%1 = alloca i32
%2 = alloca [6 x i32]
%3 = alloca i32
%4 = alloca [7 x i32]
%5 = alloca i32
%6 = alloca [11 x i32]
%7 = alloca i32
store i32 0, i32* %1
%8 = bitcast [6 x i32]* %2 to i8*
store i32 6, i32* %3
%9 = getelementptr inbounds [6 x i32], [6 x i32]* %2, i64 0, i64 0
%10 = load i32, i32* %3
%11 = call i32 @doIt(i32* %9, i32 %10)
%12 = bitcast [7 x i32]* %4 to i8*
store i32 7, i32* %5
%13 = getelementptr inbounds [7 x i32], [7 x i32]* %4, i64 0, i64 0
%14 = load i32, i32* %5
%15 = call i32 @doIt(i32* %13, i32 %14)
%16 = bitcast [11 x i32]* %6 to i8*
store i32 11, i32* %7
%17 = getelementptr inbounds [11 x i32], [11 x i32]* %6, i64 0, i64 0
%18 = load i32, i32* %7
%19 = call i32 @doIt(i32* %17, i32 %18)
ret i32 0
}

LLVM IR (-O2):
@__const.main.numbers = [6 x i32] [i32 0, i32 0, i32 1, i32 7, i32 4, i32 6]
@__const.main.numbers2 = [7 x i32] [i32 70, i32 4, i32 4, i32 4, i32 6, i32 8, i32 9]
@__const.main.numbers3 = [11 x i32] [i32 10, i32 4, i32 10, i32 8, i32 6, i32 8, i32 6, i32 8, i32 0, i32 10, i32 12]
define i32 @main() {
%1 = alloca [6 x i32]
%2 = alloca [7 x i32]
%3 = alloca [11 x i32]
%4 = bitcast [6 x i32]* %1 to i8*
%5 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 0
%6 = call i32 @doIt(i32* %5, i32 6)
%7 = bitcast [7 x i32]* %2 to i8*
%8 = getelementptr inbounds [7 x i32], [7 x i32]* %2, i64 0, i64 0
%9 = call i32 @doIt(i32* %8, i32 7)
%10 = bitcast [11 x i32]* %3 to i8*
%11 = getelementptr inbounds [11 x i32], [11 x i32]* %3, i64 0, i64 0
%12 = call i32 @doIt(i32* %11, i32 11)
ret i32 0
}