#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*/ dotest(int, int, int, int, int *);
int main() {
  {
    int r1[2] = {6, 766};
    dotest(2000, 8000, 1000, 1.5, r1);
  }
  {
    int r1[2] = {0, 4000};
    dotest(12000, 8000, 1000, 1.5, r1);
  }
  {
    int r1[2] = {8, 597};
    dotest(8000, 12000, 500, 1, r1);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0xee1(%rip),%rax
mov    %rax,-0x8(%rbp)
lea    -0x8(%rbp),%r8
mov    $0x7d0,%edi
mov    $0x1f40,%esi
mov    $0x3e8,%edx
mov    $0x1,%ecx
call   1030 <dotest@plt>
mov    0xec1(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x10(%rbp),%r8
mov    $0x2ee0,%edi
mov    $0x1f40,%esi
mov    $0x3e8,%edx
mov    $0x1,%ecx
call   1030 <dotest@plt>
mov    0xea1(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    -0x18(%rbp),%r8
mov    $0x1f40,%edi
mov    $0x2ee0,%esi
mov    $0x1f4,%edx
mov    $0x1,%ecx
call   1030 <dotest@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movabs $0x2fe00000006,%rax
mov    %rax,(%rsp)
mov    %rsp,%r8
mov    $0x7d0,%edi
mov    $0x1f40,%esi
mov    $0x3e8,%edx
mov    $0x1,%ecx
call   1030 <dotest@plt>
movabs $0xfa000000000,%rax
mov    %rax,(%rsp)
mov    %rsp,%r8
mov    $0x2ee0,%edi
mov    $0x1f40,%esi
mov    $0x3e8,%edx
mov    $0x1,%ecx
call   1030 <dotest@plt>
movabs $0x25500000008,%rax
mov    %rax,(%rsp)
mov    %rsp,%r8
mov    $0x1f40,%edi
mov    $0x2ee0,%esi
mov    $0x1f4,%edx
mov    $0x1,%ecx
call   1030 <dotest@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.main.r1 = [2 x i32] [i32 6, i32 766]
@__const.main.r1.1 = [2 x i32] [i32 0, i32 4000]
@__const.main.r1.2 = [2 x i32] [i32 8, i32 597]
define i32 @main() {
%1 = alloca [2 x i32]
%2 = alloca [2 x i32]
%3 = alloca [2 x i32]
%4 = bitcast [2 x i32]* %1 to i8*
%5 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 0
%6 = call i32 @dotest(i32 2000, i32 8000, i32 1000, i32 1, i32* %5)
%7 = bitcast [2 x i32]* %2 to i8*
%8 = getelementptr inbounds [2 x i32], [2 x i32]* %2, i64 0, i64 0
%9 = call i32 @dotest(i32 12000, i32 8000, i32 1000, i32 1, i32* %8)
%10 = bitcast [2 x i32]* %3 to i8*
%11 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%12 = call i32 @dotest(i32 8000, i32 12000, i32 500, i32 1, i32* %11)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = bitcast i64* %1 to i8*
store i64 3289944948742, i64* %1
%5 = bitcast i64* %1 to i32*
%6 = call i32 @dotest(i32 2000, i32 8000, i32 1000, i32 1, i32* %5)
%7 = bitcast i64* %2 to i8*
store i64 17179869184000, i64* %2
%8 = bitcast i64* %2 to i32*
%9 = call i32 @dotest(i32 12000, i32 8000, i32 1000, i32 1, i32* %8)
%10 = bitcast i64* %3 to i8*
store i64 2564095475720, i64* %3
%11 = bitcast i64* %3 to i32*
%12 = call i32 @dotest(i32 8000, i32 12000, i32 500, i32 1, i32* %11)
ret i32 0
}