#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 */
double exp(double);
double pow(double, double);
void gint1_fn_cF(double *a, double a_a, double *p, double *out) {
  double tmp11, tmp2, tmp3, tmp4, tmp6, tmp7, v_0, v_1, v_2;
  v_0 = p[0] - a[0];
  v_1 = p[1] - a[1];
  v_2 = p[2] - a[2];
  tmp2 = v_2 * v_2;
  tmp3 = v_1 * v_1;
  tmp4 = v_0 * v_0;
  tmp11 = pow(a_a, 2.25) * exp(-a_a * (tmp2 + tmp3 + tmp4));
  tmp7 = tmp11 * v_0;
  out[0] = 1.47215808929909 * tmp4 * tmp7;
  tmp6 = tmp11 * v_1;
  out[1] = 3.29184556129898 * tmp4 * tmp6;
  v_2 = tmp11 * v_2;
  out[2] = 3.29184556129898 * tmp4 * v_2;
  out[3] = 3.29184556129898 * tmp3 * tmp7;
  out[4] = 5.70164376283992 * v_0 * v_1 * v_2;
  out[5] = 3.29184556129898 * tmp2 * tmp7;
  out[6] = 1.47215808929909 * tmp3 * tmp6;
  out[7] = 3.29184556129898 * tmp3 * v_2;
  out[8] = 3.29184556129898 * tmp2 * tmp6;
  out[9] = 1.47215808929909 * tmp2 * v_2;
}


x86 assembly (clang, -O0):
<gint1_fn_cF>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
subsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x8(%rbp),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x60(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe62(%rip),%xmm1
call   1040 <pow@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x30(%rbp),%xmm1
addsd  -0x38(%rbp),%xmm1
addsd  -0x40(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xde4(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xdc3(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xd99(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  0xd7e(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
movsd  0xd6b(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
movsd  0xd43(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
movsd  0xd20(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
movsd  0xd0d(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
movsd  0xcf2(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x40(%rax)
movsd  0xccf(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x48(%rax)
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gint1_fn_cF>:
push   %rbx
sub    $0x60,%rsp
mov    %rdx,%rbx
movaps %xmm0,(%rsp)
movupd (%rsi),%xmm2
movupd (%rdi),%xmm1
subpd  %xmm1,%xmm2
movapd %xmm2,0x20(%rsp)
movsd  0x10(%rsi),%xmm1
subsd  0x10(%rdi),%xmm1
movapd %xmm1,0x50(%rsp)
mulsd  %xmm1,%xmm1
movapd %xmm1,0x40(%rsp)
movapd %xmm2,%xmm1
mulpd  %xmm2,%xmm1
movapd %xmm1,0x30(%rsp)
movsd  0xe92(%rip),%xmm1
call   1040 <pow@plt>
movapd (%rsp),%xmm2
xorpd  0xea0(%rip),%xmm2
movsd  %xmm0,0x18(%rsp)
movapd 0x20(%rsp),%xmm0
movapd %xmm0,%xmm1
movlpd 0xe70(%rip),%xmm1
mulpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  0x40(%rsp),%xmm0
addsd  0x30(%rsp),%xmm0
mulsd  %xmm2,%xmm0
call   1030 <exp@plt>
mulsd  0x18(%rsp),%xmm0
movapd 0x50(%rsp),%xmm2
mulsd  %xmm0,%xmm2
unpcklpd %xmm0,%xmm0
movapd 0x20(%rsp),%xmm4
mulpd  %xmm4,%xmm0
movapd 0x30(%rsp),%xmm3
unpcklpd %xmm3,%xmm3
mulpd  0xe42(%rip),%xmm3
movapd %xmm3,%xmm1
mulpd  %xmm0,%xmm1
movupd %xmm1,(%rbx)
unpckhpd %xmm3,%xmm3
mulsd  %xmm2,%xmm3
movsd  %xmm3,0x10(%rbx)
movapd %xmm4,%xmm3
unpckhpd 0xe2d(%rip),%xmm3
movapd (%rsp),%xmm5
mulpd  %xmm5,%xmm3
movapd %xmm0,%xmm1
unpcklpd %xmm2,%xmm1
movapd %xmm2,%xmm4
movapd %xmm3,%xmm2
shufpd $0x1,%xmm3,%xmm2
mulpd  %xmm1,%xmm2
movupd %xmm2,0x18(%rbx)
movapd 0x40(%rsp),%xmm2
movsd  %xmm2,%xmm5
mulpd  0xe04(%rip),%xmm5
movapd %xmm5,%xmm1
mulpd  %xmm0,%xmm1
movupd %xmm1,0x28(%rbx)
shufpd $0x1,%xmm5,%xmm3
movsd  %xmm4,%xmm0
mulpd  %xmm3,%xmm0
movupd %xmm0,0x38(%rbx)
movapd %xmm2,%xmm0
mulsd  0xd99(%rip),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,0x48(%rbx)
add    $0x60,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @gint1_fn_cF(double* %0, double %1, double* %2, double* %3) {
%5 = alloca double*
%6 = alloca double
%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 double
%16 = alloca double
%17 = alloca double
store double* %0, double** %5
store double %1, double* %6
store double* %2, double** %7
store double* %3, double** %8
%18 = load double*, double** %7
%19 = getelementptr inbounds double, double* %18, i64 0
%20 = load double, double* %19
%21 = load double*, double** %5
%22 = getelementptr inbounds double, double* %21, i64 0
%23 = load double, double* %22
%24 = fsub double %20, %23
store double %24, double* %15
%25 = load double*, double** %7
%26 = getelementptr inbounds double, double* %25, i64 1
%27 = load double, double* %26
%28 = load double*, double** %5
%29 = getelementptr inbounds double, double* %28, i64 1
%30 = load double, double* %29
%31 = fsub double %27, %30
store double %31, double* %16
%32 = load double*, double** %7
%33 = getelementptr inbounds double, double* %32, i64 2
%34 = load double, double* %33
%35 = load double*, double** %5
%36 = getelementptr inbounds double, double* %35, i64 2
%37 = load double, double* %36
%38 = fsub double %34, %37
store double %38, double* %17
%39 = load double, double* %17
%40 = load double, double* %17
%41 = fmul double %39, %40
store double %41, double* %10
%42 = load double, double* %16
%43 = load double, double* %16
%44 = fmul double %42, %43
store double %44, double* %11
%45 = load double, double* %15
%46 = load double, double* %15
%47 = fmul double %45, %46
store double %47, double* %12
%48 = load double, double* %6
%49 = call double @pow(double %48, double 2.250000e+00)
%50 = load double, double* %6
%51 = fneg double %50
%52 = load double, double* %10
%53 = load double, double* %11
%54 = fadd double %52, %53
%55 = load double, double* %12
%56 = fadd double %54, %55
%57 = fmul double %51, %56
%58 = call double @exp(double %57)
%59 = fmul double %49, %58
store double %59, double* %9
%60 = load double, double* %9
%61 = load double, double* %15
%62 = fmul double %60, %61
store double %62, double* %14
%63 = load double, double* %12
%64 = fmul double 0x3FF78DF5A4014D93, %63
%65 = load double, double* %14
%66 = fmul double %64, %65
%67 = load double*, double** %8
%68 = getelementptr inbounds double, double* %67, i64 0
store double %66, double* %68
%69 = load double, double* %9
%70 = load double, double* %16
%71 = fmul double %69, %70
store double %71, double* %13
%72 = load double, double* %12
%73 = fmul double 0x400A55B3202A1856, %72
%74 = load double, double* %13
%75 = fmul double %73, %74
%76 = load double*, double** %8
%77 = getelementptr inbounds double, double* %76, i64 1
store double %75, double* %77
%78 = load double, double* %9
%79 = load double, double* %17
%80 = fmul double %78, %79
store double %80, double* %17
%81 = load double, double* %12
%82 = fmul double 0x400A55B3202A1856, %81
%83 = load double, double* %17
%84 = fmul double %82, %83
%85 = load double*, double** %8
%86 = getelementptr inbounds double, double* %85, i64 2
store double %84, double* %86
%87 = load double, double* %11
%88 = fmul double 0x400A55B3202A1856, %87
%89 = load double, double* %14
%90 = fmul double %88, %89
%91 = load double*, double** %8
%92 = getelementptr inbounds double, double* %91, i64 3
store double %90, double* %92
%93 = load double, double* %15
%94 = fmul double 0x4016CE7BB3DB5BFE, %93
%95 = load double, double* %16
%96 = fmul double %94, %95
%97 = load double, double* %17
%98 = fmul double %96, %97
%99 = load double*, double** %8
%100 = getelementptr inbounds double, double* %99, i64 4
store double %98, double* %100
%101 = load double, double* %10
%102 = fmul double 0x400A55B3202A1856, %101
%103 = load double, double* %14
%104 = fmul double %102, %103
%105 = load double*, double** %8
%106 = getelementptr inbounds double, double* %105, i64 5
store double %104, double* %106
%107 = load double, double* %11
%108 = fmul double 0x3FF78DF5A4014D93, %107
%109 = load double, double* %13
%110 = fmul double %108, %109
%111 = load double*, double** %8
%112 = getelementptr inbounds double, double* %111, i64 6
store double %110, double* %112
%113 = load double, double* %11
%114 = fmul double 0x400A55B3202A1856, %113
%115 = load double, double* %17
%116 = fmul double %114, %115
%117 = load double*, double** %8
%118 = getelementptr inbounds double, double* %117, i64 7
store double %116, double* %118
%119 = load double, double* %10
%120 = fmul double 0x400A55B3202A1856, %119
%121 = load double, double* %13
%122 = fmul double %120, %121
%123 = load double*, double** %8
%124 = getelementptr inbounds double, double* %123, i64 8
store double %122, double* %124
%125 = load double, double* %10
%126 = fmul double 0x3FF78DF5A4014D93, %125
%127 = load double, double* %17
%128 = fmul double %126, %127
%129 = load double*, double** %8
%130 = getelementptr inbounds double, double* %129, i64 9
store double %128, double* %130
ret void
}

LLVM IR (-O2):
define void @gint1_fn_cF(double* nocapture %0, double %1, double* nocapture %2, double* nocapture writeonly %3) {
%5 = bitcast double* %2 to <2 x double>*
%6 = load <2 x double>, <2 x double>* %5
%7 = bitcast double* %0 to <2 x double>*
%8 = load <2 x double>, <2 x double>* %7
%9 = fsub <2 x double> %6, %8
%10 = getelementptr inbounds double, double* %2, i64 2
%11 = load double, double* %10
%12 = getelementptr inbounds double, double* %0, i64 2
%13 = load double, double* %12
%14 = fsub double %11, %13
%15 = fmul double %14, %14
%16 = fmul <2 x double> %9, %9
%17 = extractelement <2 x double> %16, i64 0
%18 = tail call double @pow(double %1, double 2.250000e+00)
%19 = fneg double %1
%20 = insertelement <2 x double> %9, double 0x4016CE7BB3DB5BFE, i64 0
%21 = fmul <2 x double> %9, %20
%22 = extractelement <2 x double> %21, i64 1
%23 = fadd double %22, %15
%24 = fadd double %17, %23
%25 = fmul double %24, %19
%26 = tail call double @exp(double %25)
%27 = fmul double %18, %26
%28 = insertelement <2 x double> poison, double %27, i64 0
%29 = shufflevector <2 x double> %28, <2 x double> poison, <2 x i32> zeroinitializer
%30 = fmul <2 x double> %9, %29
%31 = shufflevector <2 x double> %16, <2 x double> undef, <2 x i32> zeroinitializer
%32 = fmul <2 x double> %31, <double 0x3FF78DF5A4014D93, double 0x400A55B3202A1856>
%33 = fmul <2 x double> %32, %30
%34 = bitcast double* %3 to <2 x double>*
store <2 x double> %33, <2 x double>* %34
%35 = fmul double %14, %27
%36 = extractelement <2 x double> %32, i64 1
%37 = fmul double %36, %35
%38 = getelementptr inbounds double, double* %3, i64 2
store double %37, double* %38
%39 = getelementptr inbounds double, double* %3, i64 3
%40 = shufflevector <2 x double> <double poison, double 0x400A55B3202A1856>, <2 x double> %9, <2 x i32> <i32 3, i32 1>
%41 = fmul <2 x double> %21, %40
%42 = insertelement <2 x double> poison, double %35, i64 0
%43 = shufflevector <2 x double> %42, <2 x double> %30, <2 x i32> <i32 0, i32 2>
%44 = fmul <2 x double> %41, %43
%45 = shufflevector <2 x double> %44, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%46 = bitcast double* %39 to <2 x double>*
store <2 x double> %45, <2 x double>* %46
%47 = getelementptr inbounds double, double* %3, i64 5
%48 = insertelement <2 x double> %21, double %15, i64 0
%49 = fmul <2 x double> %48, <double 0x400A55B3202A1856, double 0x3FF78DF5A4014D93>
%50 = fmul <2 x double> %49, %30
%51 = bitcast double* %47 to <2 x double>*
store <2 x double> %50, <2 x double>* %51
%52 = getelementptr inbounds double, double* %3, i64 7
%53 = shufflevector <2 x double> %41, <2 x double> %49, <2 x i32> <i32 1, i32 2>
%54 = insertelement <2 x double> %30, double %35, i64 0
%55 = fmul <2 x double> %53, %54
%56 = bitcast double* %52 to <2 x double>*
store <2 x double> %55, <2 x double>* %56
%57 = fmul double %15, 0x3FF78DF5A4014D93
%58 = fmul double %57, %35
%59 = getelementptr inbounds double, double* %3, i64 9
store double %58, double* %59
ret void
}