#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*/ sla_evp_(double *, double *, double *, double *, double *,
                            double *);
void slaEvp(double date, double deqx, double dvb[3], double dpb[3],
            double dvh[3], double dph[3]) {
  double DATE;
  double DEQX;
  double DVB[3];
  double DPB[3];
  double DVH[3];
  double DPH[3];
  int i;
  DATE = date;
  DEQX = deqx;
  sla_evp_(&DATE, &DEQX, (double *)DVB, (double *)DPB, (double *)DVH,
           (double *)DPH);
  for (i = 0; i < 3; i++) {
    dvb[i] = DVB[i];
    dpb[i] = DPB[i];
    dvh[i] = DVH[i];
    dph[i] = DPH[i];
  }
}


x86 assembly (clang, -O0):
<slaEvp>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    -0x60(%rbp),%rdx
lea    -0x80(%rbp),%rcx
lea    -0xa0(%rbp),%r8
lea    -0xc0(%rbp),%r9
lea    -0x38(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1030 <sla_evp_@plt>
movl   $0x0,-0xc4(%rbp)
cmpl   $0x3,-0xc4(%rbp)
jge    1211 <slaEvp+0x101>
movslq -0xc4(%rbp),%rax
movsd  -0x60(%rbp,%rax,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0xc4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movslq -0xc4(%rbp),%rax
movsd  -0x80(%rbp,%rax,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0xc4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movslq -0xc4(%rbp),%rax
movsd  -0xa0(%rbp,%rax,8),%xmm0
ff ff
mov    -0x28(%rbp),%rax
movslq -0xc4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movslq -0xc4(%rbp),%rax
movsd  -0xc0(%rbp,%rax,8),%xmm0
ff ff
mov    -0x30(%rbp),%rax
movslq -0xc4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1176 <slaEvp+0x66>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<slaEvp>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
movsd  %xmm0,0x8(%rsp)
movsd  %xmm1,(%rsp)
lea    0x8(%rsp),%rdi
mov    %rsp,%rsi
lea    0x70(%rsp),%rdx
lea    0x50(%rsp),%rcx
lea    0x30(%rsp),%r8
lea    0x10(%rsp),%r9
call   1030 <sla_evp_@plt>
movsd  0x70(%rsp),%xmm0
movsd  %xmm0,(%rbx)
movsd  0x50(%rsp),%xmm0
movsd  %xmm0,(%r12)
movsd  0x30(%rsp),%xmm0
movsd  %xmm0,(%r15)
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,(%r14)
movsd  0x78(%rsp),%xmm0
movsd  %xmm0,0x8(%rbx)
movsd  0x58(%rsp),%xmm0
movsd  %xmm0,0x8(%r12)
movsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x8(%r15)
movsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x8(%r14)
movsd  0x80(%rsp),%xmm0
movsd  %xmm0,0x10(%rbx)
movsd  0x60(%rsp),%xmm0
movsd  %xmm0,0x10(%r12)
movsd  0x40(%rsp),%xmm0
movsd  %xmm0,0x10(%r15)
movsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x10(%r14)
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @slaEvp(double %0, double %1, double* %2, double* %3, double* %4, double* %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double
%14 = alloca double
%15 = alloca [3 x double]
%16 = alloca [3 x double]
%17 = alloca [3 x double]
%18 = alloca [3 x double]
%19 = alloca i32
store double %0, double* %7
store double %1, double* %8
store double* %2, double** %9
store double* %3, double** %10
store double* %4, double** %11
store double* %5, double** %12
%20 = load double, double* %7
store double %20, double* %13
%21 = load double, double* %8
store double %21, double* %14
%22 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 0
%23 = getelementptr inbounds [3 x double], [3 x double]* %16, i64 0, i64 0
%24 = getelementptr inbounds [3 x double], [3 x double]* %17, i64 0, i64 0
%25 = getelementptr inbounds [3 x double], [3 x double]* %18, i64 0, i64 0
%26 = call i32 @sla_evp_(double* %13, double* %14, double* %22, double* %23, double* %24, double* %25)
store i32 0, i32* %19
br label %27
27: ; preds = %63, %6
%28 = load i32, i32* %19
%29 = icmp slt i32 %28, 3
br i1 %29, label %30, label %66
30: ; preds = %27
%31 = load i32, i32* %19
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 %32
%34 = load double, double* %33
%35 = load double*, double** %9
%36 = load i32, i32* %19
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, double* %35, i64 %37
store double %34, double* %38
%39 = load i32, i32* %19
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [3 x double], [3 x double]* %16, i64 0, i64 %40
%42 = load double, double* %41
%43 = load double*, double** %10
%44 = load i32, i32* %19
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, double* %43, i64 %45
store double %42, double* %46
%47 = load i32, i32* %19
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [3 x double], [3 x double]* %17, i64 0, i64 %48
%50 = load double, double* %49
%51 = load double*, double** %11
%52 = load i32, i32* %19
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, double* %51, i64 %53
store double %50, double* %54
%55 = load i32, i32* %19
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [3 x double], [3 x double]* %18, i64 0, i64 %56
%58 = load double, double* %57
%59 = load double*, double** %12
%60 = load i32, i32* %19
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, double* %59, i64 %61
store double %58, double* %62
br label %63
63: ; preds = %30
%64 = load i32, i32* %19
%65 = add nsw i32 %64, 1
store i32 %65, i32* %19
br label %27
66: ; preds = %27
ret void
}

LLVM IR (-O2):
define void @slaEvp(double %0, double %1, double* nocapture writeonly %2, double* nocapture writeonly %3, double* nocapture writeonly %4, double* nocapture writeonly %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca [3 x double]
%10 = alloca [3 x double]
%11 = alloca [3 x double]
%12 = alloca [3 x double]
%13 = bitcast double* %7 to i8*
%14 = bitcast double* %8 to i8*
%15 = bitcast [3 x double]* %9 to i8*
%16 = bitcast [3 x double]* %10 to i8*
%17 = bitcast [3 x double]* %11 to i8*
%18 = bitcast [3 x double]* %12 to i8*
store double %0, double* %7
store double %1, double* %8
%19 = getelementptr inbounds [3 x double], [3 x double]* %9, i64 0, i64 0
%20 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 0
%21 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0, i64 0
%22 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 0
%23 = call i32 @sla_evp_(double* %7, double* %8, double* %19, double* %20, double* %21, double* %22)
%24 = load double, double* %19
store double %24, double* %2
%25 = load double, double* %20
store double %25, double* %3
%26 = load double, double* %21
store double %26, double* %4
%27 = load double, double* %22
store double %27, double* %5
%28 = getelementptr inbounds [3 x double], [3 x double]* %9, i64 0, i64 1
%29 = load double, double* %28
%30 = getelementptr inbounds double, double* %2, i64 1
store double %29, double* %30
%31 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 1
%32 = load double, double* %31
%33 = getelementptr inbounds double, double* %3, i64 1
store double %32, double* %33
%34 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0, i64 1
%35 = load double, double* %34
%36 = getelementptr inbounds double, double* %4, i64 1
store double %35, double* %36
%37 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 1
%38 = load double, double* %37
%39 = getelementptr inbounds double, double* %5, i64 1
store double %38, double* %39
%40 = getelementptr inbounds [3 x double], [3 x double]* %9, i64 0, i64 2
%41 = load double, double* %40
%42 = getelementptr inbounds double, double* %2, i64 2
store double %41, double* %42
%43 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 2
%44 = load double, double* %43
%45 = getelementptr inbounds double, double* %3, i64 2
store double %44, double* %45
%46 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0, i64 2
%47 = load double, double* %46
%48 = getelementptr inbounds double, double* %4, i64 2
store double %47, double* %48
%49 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 2
%50 = load double, double* %49
%51 = getelementptr inbounds double, double* %5, i64 2
store double %50, double* %51
ret void
}