#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 log(double);
double logarithmic_value(double *pars, double *r) {
  double x, y, z;
  x = pars[5] * r[0] + pars[6] * r[1] + pars[7] * r[2];
  y = pars[8] * r[0] + pars[9] * r[1] + pars[10] * r[2];
  z = pars[11] * r[0] + pars[12] * r[1] + pars[13] * r[2];
  return 0.5 * pars[0] * pars[0] *
         log(pars[1] * pars[1] + x * x / (pars[2] * pars[2]) +
             y * y / (pars[3] * pars[3]) + z * z / (pars[4] * pars[4]));
}


x86 assembly (clang, -O0):
<logarithmic_value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x40(%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x48(%rax),%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x50(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x58(%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x8(%rbp),%rax
movsd  0x60(%rax),%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x68(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movsd  0xdf6(%rip),%xmm0
mulsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm2
movsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm3
mov    -0x8(%rbp),%rax
mulsd  0x10(%rax),%xmm3
divsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x8(%rbp),%rax
mulsd  0x18(%rax),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  -0x28(%rbp),%xmm1
mulsd  -0x28(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm2
mov    -0x8(%rbp),%rax
mulsd  0x20(%rax),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
call   1030 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<logarithmic_value>:
push   %rax
movsd  (%rsi),%xmm2
movsd  0x8(%rsi),%xmm3
movsd  0x30(%rdi),%xmm0
mulsd  %xmm3,%xmm0
movsd  0x28(%rdi),%xmm4
mulsd  %xmm2,%xmm4
addsd  %xmm0,%xmm4
movsd  0x10(%rsi),%xmm0
movsd  0x38(%rdi),%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm4,%xmm1
movsd  0x48(%rdi),%xmm4
movhpd 0x60(%rdi),%xmm4
unpcklpd %xmm3,%xmm3
movsd  0x40(%rdi),%xmm5
movhpd 0x58(%rdi),%xmm5
mulpd  %xmm3,%xmm4
unpcklpd %xmm2,%xmm2
mulpd  %xmm5,%xmm2
addpd  %xmm4,%xmm2
movsd  0x50(%rdi),%xmm3
movhpd 0x68(%rdi),%xmm3
unpcklpd %xmm0,%xmm0
mulpd  %xmm3,%xmm0
addpd  %xmm2,%xmm0
movsd  (%rdi),%xmm2
movsd  0x8(%rdi),%xmm3
movsd  0xe6f(%rip),%xmm4
mulsd  %xmm2,%xmm4
mulsd  %xmm2,%xmm4
movsd  %xmm4,(%rsp)
mulsd  %xmm1,%xmm1
movsd  0x10(%rdi),%xmm2
mulsd  %xmm2,%xmm2
divsd  %xmm2,%xmm1
mulsd  %xmm3,%xmm3
addsd  %xmm1,%xmm3
mulpd  %xmm0,%xmm0
movupd 0x18(%rdi),%xmm1
mulpd  %xmm1,%xmm1
divpd  %xmm1,%xmm0
addsd  %xmm0,%xmm3
unpckhpd %xmm0,%xmm0
addsd  %xmm3,%xmm0
call   1030 <log@plt>
mulsd  (%rsp),%xmm0
pop    %rax
ret

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

LLVM IR (-O2):
define double @logarithmic_value(double* nocapture %0, double* nocapture %1) {
%3 = getelementptr inbounds double, double* %0, i64 5
%4 = load double, double* %3
%5 = load double, double* %1
%6 = getelementptr inbounds double, double* %0, i64 6
%7 = load double, double* %6
%8 = getelementptr inbounds double, double* %1, i64 1
%9 = load double, double* %8
%10 = fmul double %7, %9
%11 = tail call double @llvm.fmuladd.f64(double %4, double %5, double %10)
%12 = getelementptr inbounds double, double* %0, i64 7
%13 = load double, double* %12
%14 = getelementptr inbounds double, double* %1, i64 2
%15 = load double, double* %14
%16 = tail call double @llvm.fmuladd.f64(double %13, double %15, double %11)
%17 = getelementptr inbounds double, double* %0, i64 8
%18 = load double, double* %17
%19 = getelementptr inbounds double, double* %0, i64 9
%20 = load double, double* %19
%21 = getelementptr inbounds double, double* %0, i64 10
%22 = load double, double* %21
%23 = getelementptr inbounds double, double* %0, i64 11
%24 = load double, double* %23
%25 = getelementptr inbounds double, double* %0, i64 12
%26 = load double, double* %25
%27 = insertelement <2 x double> poison, double %9, i64 0
%28 = shufflevector <2 x double> %27, <2 x double> poison, <2 x i32> zeroinitializer
%29 = insertelement <2 x double> poison, double %20, i64 0
%30 = insertelement <2 x double> %29, double %26, i64 1
%31 = fmul <2 x double> %28, %30
%32 = insertelement <2 x double> poison, double %18, i64 0
%33 = insertelement <2 x double> %32, double %24, i64 1
%34 = insertelement <2 x double> poison, double %5, i64 0
%35 = shufflevector <2 x double> %34, <2 x double> poison, <2 x i32> zeroinitializer
%36 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %33, <2 x double> %35, <2 x double> %31)
%37 = getelementptr inbounds double, double* %0, i64 13
%38 = load double, double* %37
%39 = insertelement <2 x double> poison, double %22, i64 0
%40 = insertelement <2 x double> %39, double %38, i64 1
%41 = insertelement <2 x double> poison, double %15, i64 0
%42 = shufflevector <2 x double> %41, <2 x double> poison, <2 x i32> zeroinitializer
%43 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %40, <2 x double> %42, <2 x double> %36)
%44 = load double, double* %0
%45 = fmul double %44, 5.000000e-01
%46 = fmul double %44, %45
%47 = getelementptr inbounds double, double* %0, i64 1
%48 = load double, double* %47
%49 = fmul double %16, %16
%50 = getelementptr inbounds double, double* %0, i64 2
%51 = load double, double* %50
%52 = fmul double %51, %51
%53 = fdiv double %49, %52
%54 = tail call double @llvm.fmuladd.f64(double %48, double %48, double %53)
%55 = getelementptr inbounds double, double* %0, i64 3
%56 = fmul <2 x double> %43, %43
%57 = bitcast double* %55 to <2 x double>*
%58 = load <2 x double>, <2 x double>* %57
%59 = fmul <2 x double> %58, %58
%60 = fdiv <2 x double> %56, %59
%61 = extractelement <2 x double> %60, i64 0
%62 = fadd double %54, %61
%63 = extractelement <2 x double> %60, i64 1
%64 = fadd double %62, %63
%65 = tail call double @log(double %64)
%66 = fmul double %46, %65
ret double %66
}