#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_pF(double *a, double a_a, double *p, double *out) {
  double tmp10, tmp15, tmp4, tmp5, tmp6, tmp8, tmp9, v_0, v_1, v_2;
  v_0 = p[0] - a[0];
  v_1 = p[1] - a[1];
  v_2 = p[2] - a[2];
  tmp4 = v_1 * v_1;
  tmp5 = v_0 * v_0;
  tmp6 = v_2 * v_2;
  tmp15 = pow(a_a, 2.25) * exp(-a_a * (tmp4 + tmp5 + tmp6));
  tmp8 = tmp15 * tmp5;
  tmp9 = tmp15 * tmp4;
  tmp10 = tmp15 * v_2;
  out[0] = v_2 * (-2.20823713394864 * tmp8 - 2.20823713394864 * tmp9) +
           1.47215808929909 * tmp10 * tmp6;
  tmp6 = 3.60603613949341 * tmp15 * tmp6;
  tmp5 = tmp15 * tmp5 * v_0;
  out[1] = -0.901509034873353 * tmp5 + v_0 * (tmp6 - 0.901509034873353 * tmp9);
  tmp15 = tmp15 * tmp4 * v_1;
  out[2] = -0.901509034873353 * tmp15 + v_1 * (tmp6 - 0.901509034873353 * tmp8);
  out[3] = v_2 * (2.85082188141996 * tmp8 - 2.85082188141996 * tmp9);
  out[4] = 5.70164376283992 * tmp10 * v_0 * v_1;
  out[5] = 1.16384315950667 * tmp5 - 3.49152947852002 * tmp9 * v_0;
  out[6] = -1.16384315950667 * tmp15 + 3.49152947852002 * tmp8 * v_1;
}


x86 assembly (clang, -O0):
<gint1_fn_pF>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%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,-0x60(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
subsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x8(%rbp),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x60(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x70(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe97(%rip),%xmm1
call   1040 <pow@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x38(%rbp),%xmm1
addsd  -0x40(%rbp),%xmm1
addsd  -0x48(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  0xe01(%rip),%xmm1
mulsd  -0x58(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xdd5(%rip),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  0xdbd(%rip),%xmm1
mulsd  -0x28(%rbp),%xmm1
mulsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  0xd93(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm3
movsd  -0x58(%rbp),%xmm2
movsd  0xd4c(%rip),%xmm4
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xd38(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm3
movsd  -0x50(%rbp),%xmm2
movsd  0xcf7(%rip),%xmm4
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xce3(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x70(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
movsd  0xcb8(%rip),%xmm2
mulsd  -0x58(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
movsd  0xc94(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
movsd  0xc6f(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
movsd  -0x40(%rbp),%xmm0
movsd  0xc3a(%rip),%xmm1
mulsd  -0x58(%rbp),%xmm1
mulsd  -0x60(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xc19(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
movsd  -0x30(%rbp),%xmm0
movsd  0xbf3(%rip),%xmm1
mulsd  -0x50(%rbp),%xmm1
mulsd  -0x68(%rbp),%xmm1
movsd  0xbd9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gint1_fn_pF>:
push   %rbx
sub    $0x80,%rsp
movsd  (%rsi),%xmm2
subsd  (%rdi),%xmm2
movapd %xmm2,0x70(%rsp)
mov    %rdx,%rbx
movaps %xmm0,0x30(%rsp)
movupd 0x8(%rsi),%xmm1
movupd 0x8(%rdi),%xmm3
subpd  %xmm3,%xmm1
movapd %xmm1,0x60(%rsp)
unpcklpd %xmm1,%xmm2
movapd %xmm2,0x50(%rsp)
mulpd  %xmm2,%xmm2
movapd %xmm2,0x10(%rsp)
unpckhpd %xmm1,%xmm1
movapd %xmm1,0x40(%rsp)
mulsd  %xmm1,%xmm1
movapd %xmm1,0x20(%rsp)
movsd  0xe7e(%rip),%xmm1
call   1040 <pow@plt>
movsd  %xmm0,0x8(%rsp)
movapd 0x30(%rsp),%xmm2
xorpd  0xea5(%rip),%xmm2
movapd 0x10(%rsp),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
addsd  0x20(%rsp),%xmm0
mulsd  %xmm2,%xmm0
call   1030 <exp@plt>
mulsd  0x8(%rsp),%xmm0
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0x10(%rsp),%xmm1
movapd 0x40(%rsp),%xmm7
movapd %xmm7,%xmm2
mulsd  %xmm0,%xmm2
movapd %xmm1,%xmm3
unpckhpd %xmm1,%xmm3
movsd  0xe1a(%rip),%xmm4
movapd %xmm3,%xmm5
mulsd  %xmm4,%xmm5
mulsd  %xmm1,%xmm4
addsd  %xmm5,%xmm4
movsd  0xe0a(%rip),%xmm5
mulsd  %xmm2,%xmm5
movapd 0x20(%rsp),%xmm6
mulsd  %xmm6,%xmm5
mulsd  %xmm7,%xmm4
addsd  %xmm5,%xmm4
mulsd  0xdf4(%rip),%xmm0
movsd  %xmm4,(%rbx)
mulsd  %xmm6,%xmm0
movapd 0x50(%rsp),%xmm7
movapd %xmm7,%xmm4
mulpd  %xmm1,%xmm4
movapd %xmm1,%xmm5
shufpd $0x1,%xmm1,%xmm5
unpcklpd %xmm0,%xmm0
movapd 0xe01(%rip),%xmm6
mulpd  %xmm6,%xmm5
addpd  %xmm0,%xmm5
mulpd  %xmm7,%xmm5
mulpd  %xmm4,%xmm6
addpd  %xmm5,%xmm6
movupd %xmm6,0x8(%rbx)
mulsd  0xdb0(%rip),%xmm3
movsd  0xdb0(%rip),%xmm0
mulsd  %xmm1,%xmm0
addsd  %xmm3,%xmm0
mulsd  0xda8(%rip),%xmm2
mulsd  0x70(%rsp),%xmm2
unpcklpd %xmm2,%xmm0
movapd 0x60(%rsp),%xmm2
shufpd $0x1,%xmm2,%xmm2
mulpd  %xmm0,%xmm2
movupd %xmm2,0x18(%rbx)
mulpd  0xdb2(%rip),%xmm1
shufpd $0x1,%xmm1,%xmm1
mulpd  %xmm7,%xmm1
mulpd  0xdb1(%rip),%xmm4
addpd  %xmm1,%xmm4
movupd %xmm4,0x28(%rbx)
add    $0x80,%rsp
pop    %rbx
ret

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

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