#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 const);
int /*<<< orphan*/ power_1(double *, double const *, double const *);
void vpair_value(const double r, const double *p, double *f) {
  double power = 0.0;
  double x = r * r;
  x *= x;
  power_1(&power, &r, &p[1]);
  *f = 14.4 *
       (p[0] / power -
        0.5 * (p[4] * p[3] * p[3] + p[5] * p[2] * p[2] / x) * exp(-r / p[6]));
}


x86 assembly (clang, -O0):
<vpair_value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x10(%rbp),%rdx
add    $0x8,%rdx
lea    -0x20(%rbp),%rdi
lea    -0x8(%rbp),%rsi
call   1030 <power_1@plt>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  0x18(%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x10(%rax),%xmm0
divsd  -0x28(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe3b(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x10(%rbp),%rax
divsd  0x30(%rax),%xmm0
call   1040 <exp@plt>
movsd  -0x38(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x30(%rbp),%xmm0
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xdcc(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vpair_value>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  %xmm0,0x18(%rsp)
movq   $0x0,0x10(%rsp)
mulsd  %xmm0,%xmm0
mulsd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0x8(%rdi),%rdx
lea    0x10(%rsp),%rdi
lea    0x18(%rsp),%rsi
call   1030 <power_1@plt>
movsd  (%rbx),%xmm1
movsd  0x10(%rbx),%xmm0
divsd  0x10(%rsp),%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  0x18(%rbx),%xmm1
movsd  0x20(%rbx),%xmm3
mulsd  %xmm1,%xmm3
movsd  0x28(%rbx),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
divsd  0x8(%rsp),%xmm2
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  %xmm3,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
xorpd  0xe51(%rip),%xmm0
divsd  0x30(%rbx),%xmm0
call   1040 <exp@plt>
movsd  0x8(%rsp),%xmm1
mulsd  0xe49(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x20(%rsp),%xmm1
mulsd  0xe3f(%rip),%xmm1
movsd  %xmm1,(%r14)
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @vpair_value(double %0, double* %1, double* %2) {
%4 = alloca double
%5 = alloca double*
%6 = alloca double*
%7 = alloca double
%8 = alloca double
store double %0, double* %4
store double* %1, double** %5
store double* %2, double** %6
store double 0.000000e+00, double* %7
%9 = load double, double* %4
%10 = load double, double* %4
%11 = fmul double %9, %10
store double %11, double* %8
%12 = load double, double* %8
%13 = load double, double* %8
%14 = fmul double %13, %12
store double %14, double* %8
%15 = load double*, double** %5
%16 = getelementptr inbounds double, double* %15, i64 1
%17 = call i32 @power_1(double* %7, double* %4, double* %16)
%18 = load double*, double** %5
%19 = getelementptr inbounds double, double* %18, i64 0
%20 = load double, double* %19
%21 = load double, double* %7
%22 = fdiv double %20, %21
%23 = load double*, double** %5
%24 = getelementptr inbounds double, double* %23, i64 4
%25 = load double, double* %24
%26 = load double*, double** %5
%27 = getelementptr inbounds double, double* %26, i64 3
%28 = load double, double* %27
%29 = fmul double %25, %28
%30 = load double*, double** %5
%31 = getelementptr inbounds double, double* %30, i64 3
%32 = load double, double* %31
%33 = load double*, double** %5
%34 = getelementptr inbounds double, double* %33, i64 5
%35 = load double, double* %34
%36 = load double*, double** %5
%37 = getelementptr inbounds double, double* %36, i64 2
%38 = load double, double* %37
%39 = fmul double %35, %38
%40 = load double*, double** %5
%41 = getelementptr inbounds double, double* %40, i64 2
%42 = load double, double* %41
%43 = fmul double %39, %42
%44 = load double, double* %8
%45 = fdiv double %43, %44
%46 = call double @llvm.fmuladd.f64(double %29, double %32, double %45)
%47 = fmul double 5.000000e-01, %46
%48 = load double, double* %4
%49 = fneg double %48
%50 = load double*, double** %5
%51 = getelementptr inbounds double, double* %50, i64 6
%52 = load double, double* %51
%53 = fdiv double %49, %52
%54 = call double @exp(double %53)
%55 = fneg double %47
%56 = call double @llvm.fmuladd.f64(double %55, double %54, double %22)
%57 = fmul double 1.440000e+01, %56
%58 = load double*, double** %6
store double %57, double* %58
ret void
}

LLVM IR (-O2):
define void @vpair_value(double %0, double* %1, double* nocapture writeonly %2) {
%4 = alloca double
%5 = alloca double
store double %0, double* %4
%6 = bitcast double* %5 to i8*
store double 0.000000e+00, double* %5
%7 = fmul double %0, %0
%8 = fmul double %7, %7
%9 = getelementptr inbounds double, double* %1, i64 1
%10 = call i32 @power_1(double* %5, double* %4, double* %9)
%11 = load double, double* %1
%12 = load double, double* %5
%13 = fdiv double %11, %12
%14 = getelementptr inbounds double, double* %1, i64 4
%15 = load double, double* %14
%16 = getelementptr inbounds double, double* %1, i64 3
%17 = load double, double* %16
%18 = fmul double %15, %17
%19 = getelementptr inbounds double, double* %1, i64 5
%20 = load double, double* %19
%21 = getelementptr inbounds double, double* %1, i64 2
%22 = load double, double* %21
%23 = fmul double %20, %22
%24 = fmul double %22, %23
%25 = fdiv double %24, %8
%26 = call double @llvm.fmuladd.f64(double %18, double %17, double %25)
%27 = load double, double* %4
%28 = fneg double %27
%29 = getelementptr inbounds double, double* %1, i64 6
%30 = load double, double* %29
%31 = fdiv double %28, %30
%32 = call double @exp(double %31)
%33 = fmul double %26, -5.000000e-01
%34 = call double @llvm.fmuladd.f64(double %33, double %32, double %13)
%35 = fmul double %34, 1.440000e+01
store double %35, double* %2
ret void
}