#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*/ hpfn2_(int *, double *, double *, double *);
int main(int argc, char *argv[]) {
  int a = 23;
  double b = 4.789;
  double c[3];
  c[0] = 1.23;
  c[1] = 2.46;
  c[2] = 3.69;
  double d[4];
  d[0] = 4;
  d[1] = 3;
  d[2] = 2;
  d[3] = 1;
  hpfn2_(&a, &b, c, d);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x17,-0x14(%rbp)
movsd  0xf03(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xeee(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xed9(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xec4(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xeaf(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe9a(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe85(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe70(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
lea    -0x40(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    -0x14(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1030 <hpfn2_@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x58,%rsp
movl   $0x17,0x4(%rsp)
movabs $0x401327ef9db22d0e,%rax
27 13 40
mov    %rax,0x8(%rsp)
movaps 0xece(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movabs $0x400d851eb851eb85,%rax
85 0d 40
mov    %rax,0x20(%rsp)
movaps 0xec3(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xec7(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
lea    0x4(%rsp),%rdi
lea    0x8(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0x30(%rsp),%rcx
call   1030 <hpfn2_@plt>
xor    %eax,%eax
add    $0x58,%rsp
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca double
%8 = alloca [3 x double]
%9 = alloca [4 x double]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 23, i32* %6
store double 4.789000e+00, double* %7
%10 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 0
store double 1.230000e+00, double* %10
%11 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 1
store double 2.460000e+00, double* %11
%12 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 2
store double 3.690000e+00, double* %12
%13 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 0
store double 4.000000e+00, double* %13
%14 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 1
store double 3.000000e+00, double* %14
%15 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 2
store double 2.000000e+00, double* %15
%16 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 3
store double 1.000000e+00, double* %16
%17 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0, i64 0
%18 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 0
%19 = call i32 @hpfn2_(i32* %6, double* %7, double* %17, double* %18)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca double
%5 = alloca [3 x double]
%6 = alloca [4 x double]
%7 = bitcast i32* %3 to i8*
store i32 23, i32* %3
%8 = bitcast double* %4 to i8*
store double 4.789000e+00, double* %4
%9 = bitcast [3 x double]* %5 to i8*
%10 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 0
%11 = bitcast [3 x double]* %5 to <2 x double>*
store <2 x double> <double 1.230000e+00, double 2.460000e+00>, <2 x double>* %11
%12 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 2
store double 3.690000e+00, double* %12
%13 = bitcast [4 x double]* %6 to i8*
%14 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 0
%15 = bitcast [4 x double]* %6 to <2 x double>*
store <2 x double> <double 4.000000e+00, double 3.000000e+00>, <2 x double>* %15
%16 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 2
%17 = bitcast double* %16 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 1.000000e+00>, <2 x double>* %17
%18 = call i32 @hpfn2_(i32* %3, double* %4, double* %10, double* %14)
ret i32 0
}