double GapOption(int fCall, double S, double X1, double X2, double T, double r,
                 double b, double v) {
  double vsqrtT, d1, d2, result;
  assert(((S) == (S)) && (S) >= 0.000001 && (S) <= 1000000000000.0);
  assert(((X1) == (X1)) && (X1) >= 0.000001 && (X1) <= 1000000000000.0);
  assert(((X2) == (X2)) && (X2) >= 0.000001 && (X2) <= 1000000000000.0);
  assert(((T) == (T)) && (T) >= (1.0 / (253.0 * 24.0)) && (T) <= (20.0));
  vsqrtT = v * sqrt(T);
  d1 = (log(S / X1) + (b + ((v) * (v)) / 2.0) * T) / vsqrtT;
  d2 = d1 - vsqrtT;
  if (fCall)
    result = S * exp((b - r) * T) * cnd(d1) - X2 * exp(-r * T) * cnd(d2);
  else
    result = X2 * exp(-r * T) * cnd(-d2) - S * exp((b - r) * T) * cnd(-d1);
  return result;
}


x86 assembly (clang, -O0):
<GapOption>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  %xmm4,-0x30(%rbp)
movsd  %xmm5,-0x38(%rbp)
movsd  %xmm6,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x10(%rbp),%xmm0
mov    %al,-0x61(%rbp)
jne    11cb <GapOption+0x7b>
jp     11cb <GapOption+0x7b>
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe55(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x61(%rbp)
jb     11cb <GapOption+0x7b>
movsd  0xe48(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
setae  %al
mov    %al,-0x61(%rbp)
mov    -0x61(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x18(%rbp),%xmm0
mov    %al,-0x62(%rbp)
jne    1224 <GapOption+0xd4>
jp     1224 <GapOption+0xd4>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
movsd  0xdfc(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x62(%rbp)
jb     1224 <GapOption+0xd4>
movsd  0xdef(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
setae  %al
mov    %al,-0x62(%rbp)
mov    -0x62(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x20(%rbp),%xmm0
mov    %al,-0x63(%rbp)
jne    127d <GapOption+0x12d>
jp     127d <GapOption+0x12d>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
movsd  0xda3(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x63(%rbp)
jb     127d <GapOption+0x12d>
movsd  0xd96(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
setae  %al
mov    %al,-0x63(%rbp)
mov    -0x63(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x28(%rbp),%xmm0
mov    %al,-0x64(%rbp)
jne    12d6 <GapOption+0x186>
jp     12d6 <GapOption+0x186>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
movsd  0xd5a(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x64(%rbp)
jb     12d6 <GapOption+0x186>
movsd  0xd4d(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
setae  %al
mov    %al,-0x64(%rbp)
mov    -0x64(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
call   1050 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  -0x40(%rbp),%xmm2
movsd  0xced(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x28(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
subsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     144e <GapOption+0x2fe>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x98(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x90(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0x80(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
cvtsi2sd %eax,%xmm3
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    1566 <GapOption+0x416>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0xc0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
movsd  -0xb0(%rbp),%xmm1
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
cvtsi2sd %eax,%xmm3
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GapOption>:
push   %rbx
sub    $0x60,%rsp
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xe9c(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xe97(%rip),%xmm7
movsd  %xmm0,0x18(%rsp)
ucomisd %xmm0,%xmm7
movaps %xmm6,0x30(%rsp)
movsd  %xmm5,0x48(%rsp)
movaps %xmm4,0x50(%rsp)
movsd  %xmm3,0x8(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x20(%rsp)
mov    %edi,%ebx
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x20(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xe3d(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe38(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x10(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xe08(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe03(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x8(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xde3(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xdde(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
xorpd  %xmm0,%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jb     1269 <GapOption+0x119>
movsd  0x8(%rsp),%xmm0
sqrtsd %xmm0,%xmm0
jmp    1274 <GapOption+0x124>
movsd  0x8(%rsp),%xmm0
call   1070 <sqrt@plt>
movsd  0x18(%rsp),%xmm3
movapd 0x30(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x20(%rsp)
movapd %xmm3,%xmm0
divsd  %xmm2,%xmm0
call   1050 <log@plt>
movapd 0x30(%rsp),%xmm3
mulsd  %xmm3,%xmm3
mulsd  0xd71(%rip),%xmm3
movsd  0x48(%rsp),%xmm1
addsd  %xmm1,%xmm3
mulsd  0x8(%rsp),%xmm3
addsd  %xmm0,%xmm3
movsd  0x20(%rsp),%xmm2
divsd  %xmm2,%xmm3
movapd %xmm3,0x30(%rsp)
movapd %xmm3,%xmm0
subsd  %xmm2,%xmm0
movapd %xmm0,0x20(%rsp)
test   %ebx,%ebx
je     1376 <GapOption+0x226>
subsd  0x50(%rsp),%xmm1
mulsd  0x8(%rsp),%xmm1
movapd %xmm1,%xmm0
call   1040 <exp@plt>
mulsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movaps 0x30(%rsp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movapd 0x50(%rsp),%xmm0
xorpd  0xcf9(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,0x8(%rsp)
movaps 0x20(%rsp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  0x10(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x30(%rsp),%xmm0
jmp    140e <GapOption+0x2be>
movapd 0x50(%rsp),%xmm0
xorpd  0xcac(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1040 <exp@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movaps 0x20(%rsp),%xmm0
xorps  0xc89(%rip),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x48(%rsp),%xmm0
subsd  0x50(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,0x8(%rsp)
movaps 0x30(%rsp),%xmm0
xorps  0xc46(%rip),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  0x18(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
subsd  %xmm1,%xmm0
add    $0x60,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @GapOption(i32 %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = alloca i32
%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
%19 = alloca double
%20 = alloca double
store i32 %0, i32* %9
store double %1, double* %10
store double %2, double* %11
store double %3, double* %12
store double %4, double* %13
store double %5, double* %14
store double %6, double* %15
store double %7, double* %16
%21 = load double, double* %10
%22 = load double, double* %10
%23 = fcmp oeq double %21, %22
br i1 %23, label %24, label %30
24: ; preds = %8
%25 = load double, double* %10
%26 = fcmp oge double %25, 0x3EB0C6F7A0B5ED8D
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load double, double* %10
%29 = fcmp ole double %28, 1.000000e+12
br label %30
30: ; preds = %27, %24, %8
%31 = phi i1 [ false, %24 ], [ false, %8 ], [ %29, %27 ]
%32 = zext i1 %31 to i32
%33 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %32)
%34 = load double, double* %11
%35 = load double, double* %11
%36 = fcmp oeq double %34, %35
br i1 %36, label %37, label %43
37: ; preds = %30
%38 = load double, double* %11
%39 = fcmp oge double %38, 0x3EB0C6F7A0B5ED8D
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load double, double* %11
%42 = fcmp ole double %41, 1.000000e+12
br label %43
43: ; preds = %40, %37, %30
%44 = phi i1 [ false, %37 ], [ false, %30 ], [ %42, %40 ]
%45 = zext i1 %44 to i32
%46 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %45)
%47 = load double, double* %12
%48 = load double, double* %12
%49 = fcmp oeq double %47, %48
br i1 %49, label %50, label %56
50: ; preds = %43
%51 = load double, double* %12
%52 = fcmp oge double %51, 0x3EB0C6F7A0B5ED8D
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load double, double* %12
%55 = fcmp ole double %54, 1.000000e+12
br label %56
56: ; preds = %53, %50, %43
%57 = phi i1 [ false, %50 ], [ false, %43 ], [ %55, %53 ]
%58 = zext i1 %57 to i32
%59 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %58)
%60 = load double, double* %13
%61 = load double, double* %13
%62 = fcmp oeq double %60, %61
br i1 %62, label %63, label %69
63: ; preds = %56
%64 = load double, double* %13
%65 = fcmp oge double %64, 0x3F2596179C29D2CE
br i1 %65, label %66, label %69
66: ; preds = %63
%67 = load double, double* %13
%68 = fcmp ole double %67, 2.000000e+01
br label %69
69: ; preds = %66, %63, %56
%70 = phi i1 [ false, %63 ], [ false, %56 ], [ %68, %66 ]
%71 = zext i1 %70 to i32
%72 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %71)
%73 = load double, double* %16
%74 = load double, double* %13
%75 = call double @sqrt(double %74)
%76 = fmul double %73, %75
store double %76, double* %17
%77 = load double, double* %10
%78 = load double, double* %11
%79 = fdiv double %77, %78
%80 = call double @log(double %79)
%81 = load double, double* %15
%82 = load double, double* %16
%83 = load double, double* %16
%84 = fmul double %82, %83
%85 = fdiv double %84, 2.000000e+00
%86 = fadd double %81, %85
%87 = load double, double* %13
%88 = call double @llvm.fmuladd.f64(double %86, double %87, double %80)
%89 = load double, double* %17
%90 = fdiv double %88, %89
store double %90, double* %18
%91 = load double, double* %18
%92 = load double, double* %17
%93 = fsub double %91, %92
store double %93, double* %19
%94 = load i32, i32* %9
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %121
96: ; preds = %69
%97 = load double, double* %10
%98 = load double, double* %15
%99 = load double, double* %14
%100 = fsub double %98, %99
%101 = load double, double* %13
%102 = fmul double %100, %101
%103 = call double @exp(double %102)
%104 = fmul double %97, %103
%105 = load double, double* %18
%106 = call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %105)
%107 = sitofp i32 %106 to double
%108 = load double, double* %12
%109 = load double, double* %14
%110 = fneg double %109
%111 = load double, double* %13
%112 = fmul double %110, %111
%113 = call double @exp(double %112)
%114 = fmul double %108, %113
%115 = load double, double* %19
%116 = call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %115)
%117 = sitofp i32 %116 to double
%118 = fmul double %114, %117
%119 = fneg double %118
%120 = call double @llvm.fmuladd.f64(double %104, double %107, double %119)
store double %120, double* %20
br label %148
121: ; preds = %69
%122 = load double, double* %12
%123 = load double, double* %14
%124 = fneg double %123
%125 = load double, double* %13
%126 = fmul double %124, %125
%127 = call double @exp(double %126)
%128 = fmul double %122, %127
%129 = load double, double* %19
%130 = fneg double %129
%131 = call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %130)
%132 = sitofp i32 %131 to double
%133 = load double, double* %10
%134 = load double, double* %15
%135 = load double, double* %14
%136 = fsub double %134, %135
%137 = load double, double* %13
%138 = fmul double %136, %137
%139 = call double @exp(double %138)
%140 = fmul double %133, %139
%141 = load double, double* %18
%142 = fneg double %141
%143 = call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %142)
%144 = sitofp i32 %143 to double
%145 = fmul double %140, %144
%146 = fneg double %145
%147 = call double @llvm.fmuladd.f64(double %128, double %132, double %146)
store double %147, double* %20
br label %148
148: ; preds = %121, %96
%149 = load double, double* %20
ret double %149
}

LLVM IR (-O2):
define double @GapOption(i32 %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7) {
%9 = fcmp ord double %1, 0.000000e+00
%10 = fcmp oge double %1, 0x3EB0C6F7A0B5ED8D
%11 = and i1 %9, %10
%12 = fcmp ole double %1, 1.000000e+12
%13 = and i1 %12, %11
%14 = zext i1 %13 to i32
%15 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %14)
%16 = fcmp ord double %2, 0.000000e+00
%17 = fcmp oge double %2, 0x3EB0C6F7A0B5ED8D
%18 = and i1 %16, %17
%19 = fcmp ole double %2, 1.000000e+12
%20 = and i1 %19, %18
%21 = zext i1 %20 to i32
%22 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %21)
%23 = fcmp ord double %3, 0.000000e+00
%24 = fcmp oge double %3, 0x3EB0C6F7A0B5ED8D
%25 = and i1 %23, %24
%26 = fcmp ole double %3, 1.000000e+12
%27 = and i1 %26, %25
%28 = zext i1 %27 to i32
%29 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %28)
%30 = fcmp ord double %4, 0.000000e+00
%31 = fcmp oge double %4, 0x3F2596179C29D2CE
%32 = and i1 %30, %31
%33 = fcmp ole double %4, 2.000000e+01
%34 = and i1 %33, %32
%35 = zext i1 %34 to i32
%36 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %35)
%37 = tail call double @sqrt(double %4)
%38 = fmul double %37, %7
%39 = fdiv double %1, %2
%40 = tail call double @log(double %39)
%41 = fmul double %7, %7
%42 = fmul double %41, 5.000000e-01
%43 = fadd double %42, %6
%44 = tail call double @llvm.fmuladd.f64(double %43, double %4, double %40)
%45 = fdiv double %44, %38
%46 = fsub double %45, %38
%47 = icmp eq i32 %0, 0
br i1 %47, label %64, label %48
48: ; preds = %8
%49 = fsub double %6, %5
%50 = fmul double %49, %4
%51 = tail call double @exp(double %50)
%52 = fmul double %51, %1
%53 = tail call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %45)
%54 = sitofp i32 %53 to double
%55 = fneg double %5
%56 = fmul double %55, %4
%57 = tail call double @exp(double %56)
%58 = tail call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %46)
%59 = sitofp i32 %58 to double
%60 = fneg double %57
%61 = fmul double %60, %3
%62 = fmul double %61, %59
%63 = tail call double @llvm.fmuladd.f64(double %52, double %54, double %62)
br label %82
64: ; preds = %8
%65 = fneg double %5
%66 = fmul double %65, %4
%67 = tail call double @exp(double %66)
%68 = fmul double %67, %3
%69 = fneg double %46
%70 = tail call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %69)
%71 = sitofp i32 %70 to double
%72 = fsub double %6, %5
%73 = fmul double %72, %4
%74 = tail call double @exp(double %73)
%75 = fneg double %45
%76 = tail call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %75)
%77 = sitofp i32 %76 to double
%78 = fneg double %74
%79 = fmul double %78, %1
%80 = fmul double %79, %77
%81 = tail call double @llvm.fmuladd.f64(double %68, double %71, double %80)
br label %82
82: ; preds = %64, %48
%83 = phi double [ %63, %48 ], [ %81, %64 ]
ret double %83
}