#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 fabs(double);
double log(double);
double sqrt(double);
void fittingln(int n, double x[], double y[], double a[]) {
  int i;
  double ax, ay, dx, dy, u;
  for (i = 0, ax = ay = 0.0; i < n; i++) {
    ax += x[i];
    ay += log(y[i]);
  }
  ax /= n;
  ay /= n;
  for (i = 0, dx = dy = 0.0; i < n; i++) {
    u = log(x[i]) - ax;
    dx += u * u;
    dy += u * (log(y[i]) - ay);
  }
  a[0] = exp(ay - dy / dx * ax);
  a[1] = dy / dx;
  a[2] = a[6] = a[4] = 0.0;
  a[5] = 1.0e+30;
  for (i = 0; i < n; i++) {
    a[3] = a[0] * exp(a[1] * log(x[i]));
    u = fabs(y[i] - a[3]);
    a[2] += u * u;
    if (u > a[4])
      a[4] = u;
    if (u < a[5])
      a[5] = u;
    a[6] += u;
  }
  a[3] = sqrt(a[2] / n);
  a[6] /= n;
}


x86 assembly (clang, -O0):
<fittingln>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11ab <fittingln+0x7b>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1040 <log@plt>
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    115e <fittingln+0x2e>
cvtsi2sdl -0x4(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x24(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1275 <fittingln+0x145>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1040 <log@plt>
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1040 <log@plt>
movaps %xmm0,%xmm2
movsd  -0x58(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11e8 <fittingln+0xb8>
movsd  -0x38(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm0
divsd  -0x40(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <exp@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
divsd  -0x40(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x20(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x30(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x20(%rbp),%rax
movsd  0xd08(%rip),%xmm0
movsd  %xmm0,0x28(%rax)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1412 <fittingln+0x2e2>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1040 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
subsd  0x18(%rax),%xmm0
movaps 0xc90(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rax)
movsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
ucomisd 0x20(%rax),%xmm0
jbe    13cb <fittingln+0x29b>
movsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
movsd  -0x50(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x28(%rax),%xmm0
ucomisd %xmm1,%xmm0
jbe    13f1 <fittingln+0x2c1>
movsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
movsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
addsd  0x30(%rax),%xmm0
movsd  %xmm0,0x30(%rax)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1304 <fittingln+0x1d4>
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
cvtsi2sdl -0x4(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
cvtsi2sdl -0x4(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x30(%rax),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x30(%rax)
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fittingln>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rcx,%rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %edi,%r12d
mov    %edi,%r13d
test   %edi,%edi
jle    1226 <fittingln+0xf6>
xorpd  %xmm2,%xmm2
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
movapd %xmm2,0x10(%rsp)
movsd  (%r14,%rbp,8),%xmm0
movsd  (%r15,%rbp,8),%xmm1
movapd %xmm1,(%rsp)
call   1040 <log@plt>
movapd 0x10(%rsp),%xmm2
unpcklpd (%rsp),%xmm0
addpd  %xmm0,%xmm2
add    $0x1,%rbp
cmp    %rbp,%r13
jne    1160 <fittingln+0x30>
xorps  %xmm0,%xmm0
cvtsi2sd %r12d,%xmm0
movapd %xmm0,0x20(%rsp)
unpcklpd %xmm0,%xmm0
divpd  %xmm0,%xmm2
test   %r12d,%r12d
jle    123d <fittingln+0x10d>
xorpd  %xmm1,%xmm1
xor    %ebp,%ebp
movapd %xmm2,0x10(%rsp)
nop
movapd %xmm1,(%rsp)
movsd  (%r15,%rbp,8),%xmm0
call   1040 <log@plt>
movaps %xmm0,0x30(%rsp)
movsd  (%r14,%rbp,8),%xmm0
call   1040 <log@plt>
movapd 0x10(%rsp),%xmm2
unpcklpd 0x30(%rsp),%xmm0
subpd  %xmm2,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
mulpd  %xmm0,%xmm1
movapd (%rsp),%xmm0
addpd  %xmm1,%xmm0
movapd %xmm0,(%rsp)
movapd (%rsp),%xmm1
add    $0x1,%rbp
cmp    %rbp,%r13
jne    11c0 <fittingln+0x90>
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
divsd  %xmm0,%xmm1
jmp    1245 <fittingln+0x115>
cvtsi2sd %r12d,%xmm0
xorpd  %xmm2,%xmm2
movapd %xmm0,0x20(%rsp)
divsd  %xmm0,%xmm2
unpcklpd %xmm2,%xmm2
movsd  0xdbb(%rip),%xmm1
movapd %xmm1,(%rsp)
movapd %xmm2,%xmm0
unpckhpd %xmm2,%xmm0
mulsd  %xmm1,%xmm0
subsd  %xmm0,%xmm2
movapd %xmm2,%xmm0
call   1030 <exp@plt>
movapd (%rsp),%xmm1
movapd %xmm0,%xmm2
movsd  %xmm0,(%rbx)
movsd  %xmm1,0x8(%rbx)
movq   $0x0,0x30(%rbx)
movq   $0x0,0x10(%rbx)
xorpd  %xmm0,%xmm0
movhpd 0xd77(%rip),%xmm0
movupd %xmm0,0x20(%rbx)
xorpd  %xmm0,%xmm0
test   %r12d,%r12d
jle    1344 <fittingln+0x214>
add    $0xffffffffffffffff,%r13
xor    %ebp,%ebp
movsd  %xmm2,0x10(%rsp)
nop
movsd  (%r15,%rbp,8),%xmm0
call   1040 <log@plt>
mulsd  (%rsp),%xmm0
call   1030 <exp@plt>
movapd %xmm0,%xmm1
mulsd  0x10(%rsp),%xmm1
movsd  %xmm1,0x18(%rbx)
movsd  (%r14,%rbp,8),%xmm0
subsd  %xmm1,%xmm0
movapd %xmm0,%xmm1
andpd  0xd36(%rip),%xmm1
mulsd  %xmm0,%xmm0
addsd  0x10(%rbx),%xmm0
movsd  %xmm0,0x10(%rbx)
ucomisd 0x20(%rbx),%xmm1
jbe    1304 <fittingln+0x1d4>
movsd  %xmm1,0x20(%rbx)
movsd  0x28(%rbx),%xmm2
ucomisd %xmm1,%xmm2
jbe    1314 <fittingln+0x1e4>
movsd  %xmm1,0x28(%rbx)
movsd  0x30(%rbx),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x30(%rbx)
cmp    %rbp,%r13
je     1344 <fittingln+0x214>
movsd  (%rbx),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rbx),%xmm0
movapd %xmm0,(%rsp)
add    $0x1,%rbp
jmp    12b0 <fittingln+0x180>
divsd  0x20(%rsp),%xmm0
ucomisd 0xcbe(%rip),%xmm0
jb     135a <fittingln+0x22a>
sqrtsd %xmm0,%xmm0
jmp    135f <fittingln+0x22f>
call   1050 <sqrt@plt>
movsd  %xmm0,0x18(%rbx)
movsd  0x30(%rbx),%xmm0
divsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x30(%rbx)
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @fittingln(i32 %0, double* %1, double* %2, double* %3) {
%5 = alloca i32
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
store i32 %0, i32* %5
store double* %1, double** %6
store double* %2, double** %7
store double* %3, double** %8
store i32 0, i32* %9
store double 0.000000e+00, double* %11
store double 0.000000e+00, double* %10
br label %15
15: ; preds = %35, %4
%16 = load i32, i32* %9
%17 = load i32, i32* %5
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %38
19: ; preds = %15
%20 = load double*, double** %6
%21 = load i32, i32* %9
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, double* %20, i64 %22
%24 = load double, double* %23
%25 = load double, double* %10
%26 = fadd double %25, %24
store double %26, double* %10
%27 = load double*, double** %7
%28 = load i32, i32* %9
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, double* %27, i64 %29
%31 = load double, double* %30
%32 = call double @log(double %31)
%33 = load double, double* %11
%34 = fadd double %33, %32
store double %34, double* %11
br label %35
35: ; preds = %19
%36 = load i32, i32* %9
%37 = add nsw i32 %36, 1
store i32 %37, i32* %9
br label %15
38: ; preds = %15
%39 = load i32, i32* %5
%40 = sitofp i32 %39 to double
%41 = load double, double* %10
%42 = fdiv double %41, %40
store double %42, double* %10
%43 = load i32, i32* %5
%44 = sitofp i32 %43 to double
%45 = load double, double* %11
%46 = fdiv double %45, %44
store double %46, double* %11
store i32 0, i32* %9
store double 0.000000e+00, double* %13
store double 0.000000e+00, double* %12
br label %47
47: ; preds = %75, %38
%48 = load i32, i32* %9
%49 = load i32, i32* %5
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %78
51: ; preds = %47
%52 = load double*, double** %6
%53 = load i32, i32* %9
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, double* %52, i64 %54
%56 = load double, double* %55
%57 = call double @log(double %56)
%58 = load double, double* %10
%59 = fsub double %57, %58
store double %59, double* %14
%60 = load double, double* %14
%61 = load double, double* %14
%62 = load double, double* %12
%63 = call double @llvm.fmuladd.f64(double %60, double %61, double %62)
store double %63, double* %12
%64 = load double, double* %14
%65 = load double*, double** %7
%66 = load i32, i32* %9
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, double* %65, i64 %67
%69 = load double, double* %68
%70 = call double @log(double %69)
%71 = load double, double* %11
%72 = fsub double %70, %71
%73 = load double, double* %13
%74 = call double @llvm.fmuladd.f64(double %64, double %72, double %73)
store double %74, double* %13
br label %75
75: ; preds = %51
%76 = load i32, i32* %9
%77 = add nsw i32 %76, 1
store i32 %77, i32* %9
br label %47
78: ; preds = %47
%79 = load double, double* %11
%80 = load double, double* %13
%81 = load double, double* %12
%82 = fdiv double %80, %81
%83 = load double, double* %10
%84 = fneg double %82
%85 = call double @llvm.fmuladd.f64(double %84, double %83, double %79)
%86 = call double @exp(double %85)
%87 = load double*, double** %8
%88 = getelementptr inbounds double, double* %87, i64 0
store double %86, double* %88
%89 = load double, double* %13
%90 = load double, double* %12
%91 = fdiv double %89, %90
%92 = load double*, double** %8
%93 = getelementptr inbounds double, double* %92, i64 1
store double %91, double* %93
%94 = load double*, double** %8
%95 = getelementptr inbounds double, double* %94, i64 4
store double 0.000000e+00, double* %95
%96 = load double*, double** %8
%97 = getelementptr inbounds double, double* %96, i64 6
store double 0.000000e+00, double* %97
%98 = load double*, double** %8
%99 = getelementptr inbounds double, double* %98, i64 2
store double 0.000000e+00, double* %99
%100 = load double*, double** %8
%101 = getelementptr inbounds double, double* %100, i64 5
store double 1.000000e+30, double* %101
store i32 0, i32* %9
br label %102
102: ; preds = %165, %78
%103 = load i32, i32* %9
%104 = load i32, i32* %5
%105 = icmp slt i32 %103, %104
br i1 %105, label %106, label %168
106: ; preds = %102
%107 = load double*, double** %8
%108 = getelementptr inbounds double, double* %107, i64 0
%109 = load double, double* %108
%110 = load double*, double** %8
%111 = getelementptr inbounds double, double* %110, i64 1
%112 = load double, double* %111
%113 = load double*, double** %6
%114 = load i32, i32* %9
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, double* %113, i64 %115
%117 = load double, double* %116
%118 = call double @log(double %117)
%119 = fmul double %112, %118
%120 = call double @exp(double %119)
%121 = fmul double %109, %120
%122 = load double*, double** %8
%123 = getelementptr inbounds double, double* %122, i64 3
store double %121, double* %123
%124 = load double*, double** %7
%125 = load i32, i32* %9
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, double* %124, i64 %126
%128 = load double, double* %127
%129 = load double*, double** %8
%130 = getelementptr inbounds double, double* %129, i64 3
%131 = load double, double* %130
%132 = fsub double %128, %131
%133 = call double @llvm.fabs.f64(double %132)
store double %133, double* %14
%134 = load double, double* %14
%135 = load double, double* %14
%136 = load double*, double** %8
%137 = getelementptr inbounds double, double* %136, i64 2
%138 = load double, double* %137
%139 = call double @llvm.fmuladd.f64(double %134, double %135, double %138)
store double %139, double* %137
%140 = load double, double* %14
%141 = load double*, double** %8
%142 = getelementptr inbounds double, double* %141, i64 4
%143 = load double, double* %142
%144 = fcmp ogt double %140, %143
br i1 %144, label %145, label %149
145: ; preds = %106
%146 = load double, double* %14
%147 = load double*, double** %8
%148 = getelementptr inbounds double, double* %147, i64 4
store double %146, double* %148
br label %149
149: ; preds = %145, %106
%150 = load double, double* %14
%151 = load double*, double** %8
%152 = getelementptr inbounds double, double* %151, i64 5
%153 = load double, double* %152
%154 = fcmp olt double %150, %153
br i1 %154, label %155, label %159
155: ; preds = %149
%156 = load double, double* %14
%157 = load double*, double** %8
%158 = getelementptr inbounds double, double* %157, i64 5
store double %156, double* %158
br label %159
159: ; preds = %155, %149
%160 = load double, double* %14
%161 = load double*, double** %8
%162 = getelementptr inbounds double, double* %161, i64 6
%163 = load double, double* %162
%164 = fadd double %163, %160
store double %164, double* %162
br label %165
165: ; preds = %159
%166 = load i32, i32* %9
%167 = add nsw i32 %166, 1
store i32 %167, i32* %9
br label %102
168: ; preds = %102
%169 = load double*, double** %8
%170 = getelementptr inbounds double, double* %169, i64 2
%171 = load double, double* %170
%172 = load i32, i32* %5
%173 = sitofp i32 %172 to double
%174 = fdiv double %171, %173
%175 = call double @sqrt(double %174)
%176 = load double*, double** %8
%177 = getelementptr inbounds double, double* %176, i64 3
store double %175, double* %177
%178 = load i32, i32* %5
%179 = sitofp i32 %178 to double
%180 = load double*, double** %8
%181 = getelementptr inbounds double, double* %180, i64 6
%182 = load double, double* %181
%183 = fdiv double %182, %179
store double %183, double* %181
ret void
}

LLVM IR (-O2):
define void @fittingln(i32 %0, double* nocapture %1, double* nocapture %2, double* nocapture %3) {
%5 = icmp sgt i32 %0, 0
br i1 %5, label %11, label %6
6: ; preds = %4
%7 = sitofp i32 %0 to double
%8 = insertelement <2 x double> poison, double %7, i64 0
%9 = fdiv <2 x double> <double 0.000000e+00, double poison>, %8
%10 = shufflevector <2 x double> %9, <2 x double> poison, <2 x i32> zeroinitializer
br label %53
11: ; preds = %4
%12 = zext i32 %0 to i64
br label %13
13: ; preds = %11, %13
%14 = phi i64 [ 0, %11 ], [ %24, %13 ]
%15 = phi <2 x double> [ zeroinitializer, %11 ], [ %23, %13 ]
%16 = getelementptr inbounds double, double* %1, i64 %14
%17 = load double, double* %16
%18 = getelementptr inbounds double, double* %2, i64 %14
%19 = load double, double* %18
%20 = tail call double @log(double %19)
%21 = insertelement <2 x double> poison, double %20, i64 0
%22 = insertelement <2 x double> %21, double %17, i64 1
%23 = fadd <2 x double> %15, %22
%24 = add nuw nsw i64 %14, 1
%25 = icmp eq i64 %24, %12
br i1 %25, label %26, label %13
26: ; preds = %13
%27 = sitofp i32 %0 to double
%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 = fdiv <2 x double> %23, %29
br i1 %5, label %31, label %53
31: ; preds = %26
%32 = zext i32 %0 to i64
br label %33
33: ; preds = %31, %33
%34 = phi i64 [ 0, %31 ], [ %47, %33 ]
%35 = phi <2 x double> [ zeroinitializer, %31 ], [ %46, %33 ]
%36 = getelementptr inbounds double, double* %1, i64 %34
%37 = load double, double* %36
%38 = tail call double @log(double %37)
%39 = getelementptr inbounds double, double* %2, i64 %34
%40 = load double, double* %39
%41 = tail call double @log(double %40)
%42 = insertelement <2 x double> poison, double %41, i64 0
%43 = insertelement <2 x double> %42, double %38, i64 1
%44 = fsub <2 x double> %43, %30
%45 = shufflevector <2 x double> %44, <2 x double> undef, <2 x i32> <i32 1, i32 1>
%46 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %45, <2 x double> %44, <2 x double> %35)
%47 = add nuw nsw i64 %34, 1
%48 = icmp eq i64 %47, %32
br i1 %48, label %49, label %33
49: ; preds = %33
%50 = extractelement <2 x double> %46, i64 0
%51 = extractelement <2 x double> %46, i64 1
%52 = fdiv double %50, %51
br label %53
53: ; preds = %6, %49, %26
%54 = phi double [ %27, %49 ], [ %27, %26 ], [ %7, %6 ]
%55 = phi double [ %52, %49 ], [ 0x7FF8000000000000, %26 ], [ 0x7FF8000000000000, %6 ]
%56 = phi <2 x double> [ %30, %49 ], [ %30, %26 ], [ %10, %6 ]
%57 = fneg double %55
%58 = extractelement <2 x double> %56, i64 0
%59 = extractelement <2 x double> %56, i64 1
%60 = tail call double @llvm.fmuladd.f64(double %57, double %59, double %58)
%61 = tail call double @exp(double %60)
store double %61, double* %3
%62 = getelementptr inbounds double, double* %3, i64 1
store double %55, double* %62
%63 = getelementptr inbounds double, double* %3, i64 4
%64 = getelementptr inbounds double, double* %3, i64 6
store double 0.000000e+00, double* %64
%65 = getelementptr inbounds double, double* %3, i64 2
store double 0.000000e+00, double* %65
%66 = getelementptr inbounds double, double* %3, i64 5
%67 = bitcast double* %63 to <2 x double>*
store <2 x double> <double 0.000000e+00, double 1.000000e+30>, <2 x double>* %67
br i1 %5, label %68, label %102
68: ; preds = %53
%69 = getelementptr inbounds double, double* %3, i64 3
%70 = zext i32 %0 to i64
br label %71
71: ; preds = %99, %68
%72 = phi double [ %55, %68 ], [ %101, %99 ]
%73 = phi double [ %61, %68 ], [ %100, %99 ]
%74 = phi i64 [ 0, %68 ], [ %97, %99 ]
%75 = getelementptr inbounds double, double* %1, i64 %74
%76 = load double, double* %75
%77 = tail call double @log(double %76)
%78 = fmul double %72, %77
%79 = tail call double @exp(double %78)
%80 = fmul double %73, %79
store double %80, double* %69
%81 = getelementptr inbounds double, double* %2, i64 %74
%82 = load double, double* %81
%83 = fsub double %82, %80
%84 = tail call double @llvm.fabs.f64(double %83)
%85 = load double, double* %65
%86 = tail call double @llvm.fmuladd.f64(double %83, double %83, double %85)
store double %86, double* %65
%87 = load double, double* %63
%88 = fcmp ogt double %84, %87
br i1 %88, label %89, label %90
89: ; preds = %71
store double %84, double* %63
br label %90
90: ; preds = %89, %71
%91 = load double, double* %66
%92 = fcmp olt double %84, %91
br i1 %92, label %93, label %94
93: ; preds = %90
store double %84, double* %66
br label %94
94: ; preds = %93, %90
%95 = load double, double* %64
%96 = fadd double %84, %95
store double %96, double* %64
%97 = add nuw nsw i64 %74, 1
%98 = icmp eq i64 %97, %70
br i1 %98, label %102, label %99
99: ; preds = %94
%100 = load double, double* %3
%101 = load double, double* %62
br label %71
102: ; preds = %94, %53
%103 = phi double [ 0.000000e+00, %53 ], [ %86, %94 ]
%104 = fdiv double %103, %54
%105 = tail call double @sqrt(double %104)
%106 = getelementptr inbounds double, double* %3, i64 3
store double %105, double* %106
%107 = load double, double* %64
%108 = fdiv double %107, %54
store double %108, double* %64
ret void
}