#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 */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ stderr;
void stub1(double *, double *, int, int, void *);
double dlevmar_R2(void (*func)(double *p, double *hx, int m, int n,
                               void *adata),
                  double *p, double *x, int m, int n, void *adata) {
  register int i;
  register double tmp;
  double SSerr, SStot, *hx, xavg;
  if ((hx = (double *)malloc(n * sizeof(double))) == NULL) {
    fprintf(stderr, "memory allocation request failed in "
                    "dlevmar_R2"
                    "()\n");
    exit(1);
  }
  (*func)(p, hx, m, n, adata);
  for (i = n, tmp = 0.0; i-- > 0;)
    tmp += x[i];
  xavg = tmp / (double)n;
  if (x)
    for (i = n, SSerr = SStot = 0.0; i-- > 0;) {
      tmp = x[i] - hx[i];
      SSerr += tmp * tmp;
      tmp = x[i] - xavg;
      SStot += tmp * tmp;
    }
  else
    for (i = n, SSerr = SStot = 0.0; i-- > 0;) {
      tmp = -hx[i];
      SSerr += tmp * tmp;
      tmp = -xavg;
      SStot += tmp * tmp;
    }
  free(hx);
  return (1.0) - SSerr / SStot;
}


x86 assembly (clang, -O0):
<dlevmar_R2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x50(%rbp)
cmp    $0x0,%rax
jne    119b <dlevmar_R2+0x5b>
mov    0x2e5d(%rip),%rax
mov    (%rax),%edi
lea    0xe7c(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    -0x28(%rbp),%r8
call   *%rax
mov    -0x20(%rbp),%eax
mov    %eax,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x2c(%rbp)
cmp    $0x0,%eax
jle    11f1 <dlevmar_R2+0xb1>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    11c1 <dlevmar_R2+0x81>
movsd  -0x38(%rbp),%xmm0
cvtsi2sdl -0x20(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     12b1 <dlevmar_R2+0x171>
mov    -0x20(%rbp),%eax
mov    %eax,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x2c(%rbp)
cmp    $0x0,%eax
jle    12ac <dlevmar_R2+0x16c>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x2c(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
jmp    1225 <dlevmar_R2+0xe5>
jmp    1367 <dlevmar_R2+0x227>
mov    -0x20(%rbp),%eax
mov    %eax,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x2c(%rbp)
cmp    $0x0,%eax
jle    1362 <dlevmar_R2+0x222>
mov    -0x50(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x58(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
jmp    12c7 <dlevmar_R2+0x187>
jmp    1367 <dlevmar_R2+0x227>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
movsd  -0x40(%rbp),%xmm1
divsd  -0x48(%rbp),%xmm1
movsd  0xc7e(%rip),%xmm0
subsd  %xmm1,%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dlevmar_R2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,(%rsp)
mov    %r8d,%r12d
mov    %ecx,%ebp
mov    %rdx,%rbx
mov    %rsi,%r15
mov    %rdi,%r13
lea    0x0(,%r12,8),%edi
call   1050 <malloc@plt>
test   %rax,%rax
je     12f9 <dlevmar_R2+0x1b9>
mov    %rax,%r14
mov    %r15,%rdi
mov    %rax,%rsi
mov    %ebp,%edx
mov    %r12d,%ecx
mov    (%rsp),%r8
call   *%r13
xorpd  %xmm3,%xmm3
test   %r12d,%r12d
jle    12c0 <dlevmar_R2+0x180>
mov    %r12d,%eax
lea    -0x1(%rax),%rcx
mov    %rax,%rsi
xorpd  %xmm0,%xmm0
mov    %rax,%rdx
and    $0x3,%rsi
je     11c1 <dlevmar_R2+0x81>
nop
add    $0xffffffffffffffff,%rdx
mov    %edx,%edi
addsd  (%rbx,%rdi,8),%xmm0
add    $0xffffffffffffffff,%rsi
jne    11b0 <dlevmar_R2+0x70>
cmp    $0x3,%rcx
jb     11ff <dlevmar_R2+0xbf>
mov    $0xfffffffe,%esi
nopl   0x0(%rax)
lea    (%rdx,%rsi,1),%edi
add    $0x1,%edi
addsd  (%rbx,%rdi,8),%xmm0
lea    (%rdx,%rsi,1),%edi
addsd  (%rbx,%rdi,8),%xmm0
lea    -0x3(%rdx),%rdi
mov    %edi,%ebp
addsd  (%rbx,%rbp,8),%xmm0
add    $0xfffffffffffffffc,%rdx
mov    %edx,%ebp
addsd  (%rbx,%rbp,8),%xmm0
cmp    $0x1,%rdi
ja     11d0 <dlevmar_R2+0x90>
test   %r12d,%r12d
jle    12c0 <dlevmar_R2+0x180>
cvtsi2sd %r12d,%xmm1
divsd  %xmm1,%xmm0
unpcklpd %xmm0,%xmm0
test   $0x1,%al
jne    1227 <dlevmar_R2+0xe7>
xorpd  %xmm3,%xmm3
test   %rcx,%rcx
jne    1255 <dlevmar_R2+0x115>
jmp    12c0 <dlevmar_R2+0x180>
add    $0xffffffffffffffff,%rax
mov    %eax,%edx
movsd  (%rbx,%rdx,8),%xmm1
unpcklpd %xmm1,%xmm1
movapd %xmm0,%xmm2
movlpd (%r14,%rdx,8),%xmm2
subpd  %xmm2,%xmm1
mulpd  %xmm1,%xmm1
xorpd  %xmm3,%xmm3
addpd  %xmm1,%xmm3
test   %rcx,%rcx
je     12c0 <dlevmar_R2+0x180>
add    $0xfffffffffffffffe,%rax
nopl   0x0(%rax)
lea    0x1(%rax),%rcx
mov    %ecx,%edx
movsd  (%rbx,%rdx,8),%xmm1
unpcklpd %xmm1,%xmm1
movapd %xmm0,%xmm2
movlpd (%r14,%rdx,8),%xmm2
subpd  %xmm2,%xmm1
mulpd  %xmm1,%xmm1
addpd  %xmm3,%xmm1
mov    %eax,%edx
shl    $0x3,%rdx
movsd  (%rbx,%rdx,1),%xmm2
unpcklpd %xmm2,%xmm2
movapd %xmm0,%xmm3
movlpd (%r14,%rdx,1),%xmm3
subpd  %xmm3,%xmm2
mulpd  %xmm2,%xmm2
movapd %xmm2,%xmm3
addpd  %xmm1,%xmm3
add    $0xfffffffffffffffe,%rax
cmp    $0x1,%rcx
ja     1260 <dlevmar_R2+0x120>
addpd  %xmm1,%xmm2
movapd %xmm2,%xmm3
movapd %xmm3,(%rsp)
mov    %r14,%rdi
call   1030 <free@plt>
movapd (%rsp),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
divsd  %xmm0,%xmm1
movsd  0xd1a(%rip),%xmm0
subsd  %xmm1,%xmm0
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2ce0(%rip),%rax
mov    (%rax),%edi
lea    0xcff(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [50 x i8] c"memory allocation request failed in dlevmar_R2()\0A\00"
define double @dlevmar_R2(void (double*, double*, i32, i32, i8*)* %0, double* %1, double* %2, i32 %3, i32 %4, i8* %5) {
%7 = alloca void (double*, double*, i32, i32, i8*)*
%8 = alloca double*
%9 = alloca double*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i32
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double*
%18 = alloca double
store void (double*, double*, i32, i32, i8*)* %0, void (double*, double*, i32, i32, i8*)** %7
store double* %1, double** %8
store double* %2, double** %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i8* %5, i8** %12
%19 = load i32, i32* %11
%20 = sext i32 %19 to i64
%21 = mul i64 %20, 8
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 %22)
%24 = inttoptr i64 %23 to double*
store double* %24, double** %17
%25 = icmp eq double* %24, null
br i1 %25, label %26, label %30
26: ; preds = %6
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%29 = call i32 @exit(i32 1)
unreachable
30: ; preds = %6
%31 = load void (double*, double*, i32, i32, i8*)*, void (double*, double*, i32, i32, i8*)** %7
%32 = load double*, double** %8
%33 = load double*, double** %17
%34 = load i32, i32* %10
%35 = load i32, i32* %11
%36 = load i8*, i8** %12
%37 = load i32, i32* %11
store i32 %37, i32* %13
store double 0.000000e+00, double* %14
br label %38
38: ; preds = %42, %30
%39 = load i32, i32* %13
%40 = add nsw i32 %39, -1
store i32 %40, i32* %13
%41 = icmp sgt i32 %39, 0
br i1 %41, label %42, label %50
42: ; preds = %38
%43 = load double*, double** %9
%44 = load i32, i32* %13
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, double* %43, i64 %45
%47 = load double, double* %46
%48 = load double, double* %14
%49 = fadd double %48, %47
store double %49, double* %14
br label %38
50: ; preds = %38
%51 = load double, double* %14
%52 = load i32, i32* %11
%53 = sitofp i32 %52 to double
%54 = fdiv double %51, %53
store double %54, double* %18
%55 = load double*, double** %9
%56 = icmp ne double* %55, null
br i1 %56, label %57, label %91
57: ; preds = %50
%58 = load i32, i32* %11
store i32 %58, i32* %13
store double 0.000000e+00, double* %16
store double 0.000000e+00, double* %15
br label %59
59: ; preds = %63, %57
%60 = load i32, i32* %13
%61 = add nsw i32 %60, -1
store i32 %61, i32* %13
%62 = icmp sgt i32 %60, 0
br i1 %62, label %63, label %90
63: ; preds = %59
%64 = load double*, double** %9
%65 = load i32, i32* %13
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, double* %64, i64 %66
%68 = load double, double* %67
%69 = load double*, double** %17
%70 = load i32, i32* %13
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, double* %69, i64 %71
%73 = load double, double* %72
%74 = fsub double %68, %73
store double %74, double* %14
%75 = load double, double* %14
%76 = load double, double* %14
%77 = load double, double* %15
%78 = call double @llvm.fmuladd.f64(double %75, double %76, double %77)
store double %78, double* %15
%79 = load double*, double** %9
%80 = load i32, i32* %13
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, double* %79, i64 %81
%83 = load double, double* %82
%84 = load double, double* %18
%85 = fsub double %83, %84
store double %85, double* %14
%86 = load double, double* %14
%87 = load double, double* %14
%88 = load double, double* %16
%89 = call double @llvm.fmuladd.f64(double %86, double %87, double %88)
store double %89, double* %16
br label %59
90: ; preds = %59
br label %115
91: ; preds = %50
%92 = load i32, i32* %11
store i32 %92, i32* %13
store double 0.000000e+00, double* %16
store double 0.000000e+00, double* %15
br label %93
93: ; preds = %97, %91
%94 = load i32, i32* %13
%95 = add nsw i32 %94, -1
store i32 %95, i32* %13
%96 = icmp sgt i32 %94, 0
br i1 %96, label %97, label %114
97: ; preds = %93
%98 = load double*, double** %17
%99 = load i32, i32* %13
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, double* %98, i64 %100
%102 = load double, double* %101
%103 = fneg double %102
store double %103, double* %14
%104 = load double, double* %14
%105 = load double, double* %14
%106 = load double, double* %15
%107 = call double @llvm.fmuladd.f64(double %104, double %105, double %106)
store double %107, double* %15
%108 = load double, double* %18
%109 = fneg double %108
store double %109, double* %14
%110 = load double, double* %14
%111 = load double, double* %14
%112 = load double, double* %16
%113 = call double @llvm.fmuladd.f64(double %110, double %111, double %112)
store double %113, double* %16
br label %93
114: ; preds = %93
br label %115
115: ; preds = %114, %90
%116 = load double*, double** %17
%117 = call i32 @free(double* %116)
%118 = load double, double* %15
%119 = load double, double* %16
%120 = fdiv double %118, %119
%121 = fsub double 1.000000e+00, %120
ret double %121
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [50 x i8] c"memory allocation request failed in dlevmar_R2()\0A\00"
define double @dlevmar_R2(void (double*, double*, i32, i32, i8*)* nocapture %0, double* %1, double* %2, i32 %3, i32 %4, i8* %5) {
%7 = shl i32 %4, 3
%8 = tail call i64 @malloc(i32 %7)
%9 = inttoptr i64 %8 to double*
%10 = icmp eq i64 %8, 0
br i1 %10, label %11, label %15
11: ; preds = %6
%12 = load i32, i32* @stderr
%13 = tail call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%14 = tail call i32 @exit(i32 1)
unreachable
15: ; preds = %6
tail call void %0(double* %1, double* %9, i32 %3, i32 %4, i8* %5)
%16 = icmp sgt i32 %4, 0
br i1 %16, label %17, label %117
17: ; preds = %15
%18 = zext i32 %4 to i64
%19 = add nsw i64 %18, -1
%20 = and i64 %18, 3
%21 = icmp eq i64 %20, 0
br i1 %21, label %33, label %22
22: ; preds = %17, %22
%23 = phi i64 [ %26, %22 ], [ %18, %17 ]
%24 = phi double [ %30, %22 ], [ 0.000000e+00, %17 ]
%25 = phi i64 [ %31, %22 ], [ 0, %17 ]
%26 = add nsw i64 %23, -1
%27 = and i64 %26, 4294967295
%28 = getelementptr inbounds double, double* %2, i64 %27
%29 = load double, double* %28
%30 = fadd double %24, %29
%31 = add i64 %25, 1
%32 = icmp eq i64 %31, %20
br i1 %32, label %33, label %22
33: ; preds = %22, %17
%34 = phi i64 [ %18, %17 ], [ %26, %22 ]
%35 = phi double [ 0.000000e+00, %17 ], [ %30, %22 ]
%36 = phi double [ undef, %17 ], [ %30, %22 ]
%37 = icmp ult i64 %19, 3
br i1 %37, label %62, label %38
38: ; preds = %33, %38
%39 = phi i64 [ %56, %38 ], [ %34, %33 ]
%40 = phi double [ %60, %38 ], [ %35, %33 ]
%41 = add i64 %39, 4294967295
%42 = and i64 %41, 4294967295
%43 = getelementptr inbounds double, double* %2, i64 %42
%44 = load double, double* %43
%45 = fadd double %40, %44
%46 = add i64 %39, 4294967294
%47 = and i64 %46, 4294967295
%48 = getelementptr inbounds double, double* %2, i64 %47
%49 = load double, double* %48
%50 = fadd double %45, %49
%51 = add nsw i64 %39, -3
%52 = and i64 %51, 4294967295
%53 = getelementptr inbounds double, double* %2, i64 %52
%54 = load double, double* %53
%55 = fadd double %50, %54
%56 = add nsw i64 %39, -4
%57 = and i64 %56, 4294967295
%58 = getelementptr inbounds double, double* %2, i64 %57
%59 = load double, double* %58
%60 = fadd double %55, %59
%61 = icmp ugt i64 %51, 1
br i1 %61, label %38, label %62
62: ; preds = %38, %33
%63 = phi double [ %36, %33 ], [ %60, %38 ]
br i1 %16, label %64, label %117
64: ; preds = %62
%65 = sitofp i32 %4 to double
%66 = fdiv double %63, %65
%67 = zext i32 %4 to i64
%68 = insertelement <2 x double> poison, double %66, i64 1
%69 = and i64 %18, 1
%70 = icmp eq i64 %69, 0
br i1 %70, label %84, label %71
71: ; preds = %64
%72 = add nsw i64 %67, -1
%73 = and i64 %72, 4294967295
%74 = getelementptr inbounds double, double* %2, i64 %73
%75 = load double, double* %74
%76 = getelementptr inbounds double, double* %9, i64 %73
%77 = load double, double* %76
%78 = insertelement <2 x double> poison, double %75, i64 0
%79 = shufflevector <2 x double> %78, <2 x double> poison, <2 x i32> zeroinitializer
%80 = insertelement <2 x double> %68, double %77, i64 0
%81 = fsub <2 x double> %79, %80
%82 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %81, <2 x double> %81, <2 x double> zeroinitializer)
%83 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %81, <2 x double> %81, <2 x double> zeroinitializer)
br label %84
84: ; preds = %71, %64
%85 = phi i64 [ %67, %64 ], [ %72, %71 ]
%86 = phi <2 x double> [ zeroinitializer, %64 ], [ %82, %71 ]
%87 = phi <2 x double> [ undef, %64 ], [ %83, %71 ]
%88 = icmp eq i64 %19, 0
br i1 %88, label %117, label %89
89: ; preds = %84, %89
%90 = phi i64 [ %103, %89 ], [ %85, %84 ]
%91 = phi <2 x double> [ %113, %89 ], [ %86, %84 ]
%92 = add nsw i64 %90, -1
%93 = and i64 %92, 4294967295
%94 = getelementptr inbounds double, double* %2, i64 %93
%95 = load double, double* %94
%96 = getelementptr inbounds double, double* %9, i64 %93
%97 = load double, double* %96
%98 = insertelement <2 x double> poison, double %95, i64 0
%99 = shufflevector <2 x double> %98, <2 x double> poison, <2 x i32> zeroinitializer
%100 = insertelement <2 x double> %68, double %97, i64 0
%101 = fsub <2 x double> %99, %100
%102 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %101, <2 x double> %101, <2 x double> %91)
%103 = add nsw i64 %90, -2
%104 = and i64 %103, 4294967295
%105 = getelementptr inbounds double, double* %2, i64 %104
%106 = load double, double* %105
%107 = getelementptr inbounds double, double* %9, i64 %104
%108 = load double, double* %107
%109 = insertelement <2 x double> poison, double %106, i64 0
%110 = shufflevector <2 x double> %109, <2 x double> poison, <2 x i32> zeroinitializer
%111 = insertelement <2 x double> %68, double %108, i64 0
%112 = fsub <2 x double> %110, %111
%113 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %112, <2 x double> %112, <2 x double> %102)
%114 = icmp ugt i64 %92, 1
br i1 %114, label %89, label %115
115: ; preds = %89
%116 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %112, <2 x double> %112, <2 x double> %102)
br label %117
117: ; preds = %115, %84, %15, %62
%118 = phi <2 x double> [ zeroinitializer, %62 ], [ zeroinitializer, %15 ], [ %87, %84 ], [ %116, %115 ]
%119 = tail call i32 @free(double* %9)
%120 = extractelement <2 x double> %118, i64 0
%121 = extractelement <2 x double> %118, i64 1
%122 = fdiv double %120, %121
%123 = fsub double 1.000000e+00, %122
ret double %123
}