extern double BAWbisection(int fCall, double S, double X, double T, double r,
                           double b, double price) {
  double vLow = 0.1;
  double vHigh = 1.0;
  const double epsilon = 0.000001;
  double vi;
  assert(((S) == (S)) && (S) >= 0.000001 && (S) <= 1000000000000.0);
  assert(((X) == (X)) && (X) >= 0.000001 && (X) <= 1000000000000.0);
  assert(((T) == (T)) && (T) >= (1.0 / (253.0 * 24.0)) && (T) <= (20.0));
  for (;;) {
    double val;
    const double cLow = BAWAmericanApprox(fCall, S, X, T, r, b, vLow);
    const double cHigh = BAWAmericanApprox(fCall, S, X, T, r, b, vHigh);
    if (cLow == cHigh) {
      return 0.0;
    } else if ((cHigh - cLow) < 0.001) {
      return 0.0;
    }
    vi = vLow + (price - cLow) * (vHigh - vLow) / (cHigh - cLow);
    if (vi < 0.0 || vi > 1.0) {
      return 0.0;
    }
    assert(((vi) == (vi)));
    val = BAWAmericanApprox(fCall, S, X, T, r, b, vi);
    if (fabs(price - val) <= epsilon)
      break;
    else if (val < price)
      vLow = vi;
    else
      vHigh = vi;
  }
  return vi;
}


x86 assembly (clang, -O0):
<BAWbisection>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0xc(%rbp)
movsd  %xmm0,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
movsd  %xmm2,-0x28(%rbp)
movsd  %xmm3,-0x30(%rbp)
movsd  %xmm4,-0x38(%rbp)
movsd  %xmm5,-0x40(%rbp)
movsd  0xebc(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xea7(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe92(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x18(%rbp),%xmm0
mov    %al,-0x79(%rbp)
jne    11bd <BAWbisection+0x9d>
jp     11bd <BAWbisection+0x9d>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe63(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x79(%rbp)
jb     11bd <BAWbisection+0x9d>
movsd  0xe66(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
setae  %al
mov    %al,-0x79(%rbp)
mov    -0x79(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x20(%rbp),%xmm0
mov    %al,-0x7a(%rbp)
jne    1216 <BAWbisection+0xf6>
jp     1216 <BAWbisection+0xf6>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe0a(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x7a(%rbp)
jb     1216 <BAWbisection+0xf6>
movsd  0xe0d(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
setae  %al
mov    %al,-0x7a(%rbp)
mov    -0x7a(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x28(%rbp),%xmm0
mov    %al,-0x7b(%rbp)
jne    126f <BAWbisection+0x14f>
jp     126f <BAWbisection+0x14f>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
movsd  0xdd1(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x7b(%rbp)
jb     126f <BAWbisection+0x14f>
movsd  0xdc4(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
setae  %al
mov    %al,-0x7b(%rbp)
mov    -0x7b(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0xc(%rbp),%edi
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x38(%rbp),%xmm4
movsd  -0x48(%rbp),%xmm5
mov    $0x6,%al
call   1030 <BAWAmericanApprox@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0xc(%rbp),%edi
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x38(%rbp),%xmm4
movsd  -0x50(%rbp),%xmm5
mov    $0x6,%al
call   1030 <BAWAmericanApprox@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x70(%rbp),%xmm0
ucomisd -0x78(%rbp),%xmm0
jne    1303 <BAWbisection+0x1e3>
jp     1303 <BAWbisection+0x1e3>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1453 <BAWbisection+0x333>
movsd  -0x78(%rbp),%xmm1
subsd  -0x70(%rbp),%xmm1
movsd  0xd1b(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    132c <BAWbisection+0x20c>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1453 <BAWbisection+0x333>
jmp    1331 <BAWbisection+0x211>
movsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
subsd  -0x70(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
subsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm1
movsd  -0x78(%rbp),%xmm2
subsd  -0x70(%rbp),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x60(%rbp),%xmm0
ja     138a <BAWbisection+0x26a>
movsd  -0x60(%rbp),%xmm0
movsd  0xc88(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1397 <BAWbisection+0x277>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1453 <BAWbisection+0x333>
movsd  -0x60(%rbp),%xmm0
ucomisd -0x60(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0xc(%rbp),%edi
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x38(%rbp),%xmm4
movsd  -0x60(%rbp),%xmm5
mov    $0x6,%al
call   1030 <BAWAmericanApprox@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm1
subsd  -0x68(%rbp),%xmm1
movaps 0xc49(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  0xbfd(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     1412 <BAWbisection+0x2f2>
jmp    1449 <BAWbisection+0x329>
movsd  -0x68(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1435 <BAWbisection+0x315>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
jmp    143f <BAWbisection+0x31f>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    1444 <BAWbisection+0x324>
jmp    127e <BAWbisection+0x15e>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BAWbisection>:
push   %rbx
sub    $0x60,%rsp
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xecc(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xec7(%rip),%xmm6
movsd  %xmm0,0x28(%rsp)
ucomisd %xmm0,%xmm6
movsd  %xmm5,0x40(%rsp)
movsd  %xmm4,0x20(%rsp)
movsd  %xmm3,0x18(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
mov    %edi,%ebx
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1040 <assert@plt>
movsd  0x8(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xe71(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe6c(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1040 <assert@plt>
movsd  0x10(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xe4c(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe47(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1040 <assert@plt>
movsd  0xe34(%rip),%xmm5
movsd  0xe34(%rip),%xmm0
movapd %xmm0,0x50(%rsp)
jmp    1221 <BAWbisection+0x101>
nopl   0x0(%rax)
cmpltsd %xmm3,%xmm0
movapd 0x50(%rsp),%xmm3
andpd  %xmm0,%xmm3
andnpd %xmm2,%xmm0
orpd   %xmm0,%xmm3
movapd %xmm3,0x50(%rsp)
movapd %xmm1,%xmm5
mov    %ebx,%edi
movsd  0x28(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
movsd  0x20(%rsp),%xmm4
movsd  %xmm5,0x48(%rsp)
mov    $0x6,%al
call   1030 <BAWAmericanApprox@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x30(%rsp)
mov    %ebx,%edi
movsd  0x28(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
movsd  0x20(%rsp),%xmm4
movaps 0x50(%rsp),%xmm5
mov    $0x6,%al
call   1030 <BAWAmericanApprox@plt>
movsd  0x30(%rsp),%xmm3
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm3
jne    12a3 <BAWbisection+0x183>
jnp    138d <BAWbisection+0x26d>
subsd  %xmm3,%xmm1
movsd  0xd81(%rip),%xmm2
ucomisd %xmm1,%xmm2
ja     138d <BAWbisection+0x26d>
movsd  0x40(%rsp),%xmm0
subsd  %xmm3,%xmm0
movapd 0x50(%rsp),%xmm3
movsd  0x48(%rsp),%xmm2
subsd  %xmm2,%xmm3
mulsd  %xmm0,%xmm3
divsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
xorpd  %xmm0,%xmm0
ucomisd %xmm3,%xmm0
ja     138d <BAWbisection+0x26d>
ucomisd 0xd33(%rip),%xmm3
ja     138d <BAWbisection+0x26d>
xor    %edi,%edi
ucomisd %xmm3,%xmm3
setnp  %dil
xor    %eax,%eax
movapd %xmm3,0x30(%rsp)
call   1040 <assert@plt>
mov    %ebx,%edi
movsd  0x28(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
movsd  0x20(%rsp),%xmm4
movaps 0x30(%rsp),%xmm5
mov    $0x6,%al
call   1030 <BAWAmericanApprox@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x40(%rsp),%xmm3
movapd %xmm3,%xmm1
subsd  %xmm0,%xmm1
andpd  0xce5(%rip),%xmm1
movsd  0xc9d(%rip),%xmm2
ucomisd %xmm1,%xmm2
jae    1388 <BAWbisection+0x268>
ucomisd %xmm0,%xmm3
movapd 0x30(%rsp),%xmm2
movapd %xmm2,%xmm1
ja     1200 <BAWbisection+0xe0>
movsd  0x48(%rsp),%xmm1
jmp    1200 <BAWbisection+0xe0>
movaps 0x30(%rsp),%xmm0
add    $0x60,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define double @BAWbisection(i32 %0, double %1, double %2, double %3, double %4, double %5, double %6) {
%8 = fcmp ord double %1, 0.000000e+00
%9 = fcmp oge double %1, 0x3EB0C6F7A0B5ED8D
%10 = and i1 %8, %9
%11 = fcmp ole double %1, 1.000000e+12
%12 = and i1 %11, %10
%13 = zext i1 %12 to i32
%14 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %13)
%15 = fcmp ord double %2, 0.000000e+00
%16 = fcmp oge double %2, 0x3EB0C6F7A0B5ED8D
%17 = and i1 %15, %16
%18 = fcmp ole double %2, 1.000000e+12
%19 = and i1 %18, %17
%20 = zext i1 %19 to i32
%21 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %20)
%22 = fcmp ord double %3, 0.000000e+00
%23 = fcmp oge double %3, 0x3F2596179C29D2CE
%24 = and i1 %22, %23
%25 = fcmp ole double %3, 2.000000e+01
%26 = and i1 %25, %24
%27 = zext i1 %26 to i32
%28 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %27)
br label %29
29: ; preds = %58, %7
%30 = phi double [ 1.000000e+00, %7 ], [ %60, %58 ]
%31 = phi double [ 1.000000e-01, %7 ], [ %61, %58 ]
%32 = tail call i32 (i32, double, double, double, double, double, double, ...) bitcast (i32 (...)* @BAWAmericanApprox to i32 (i32, double, double, double, double, double, double, ...)*)(i32 %0, double %1, double %2, double %3, double %4, double %5, double %31)
%33 = sitofp i32 %32 to double
%34 = tail call i32 (i32, double, double, double, double, double, double, ...) bitcast (i32 (...)* @BAWAmericanApprox to i32 (i32, double, double, double, double, double, double, ...)*)(i32 %0, double %1, double %2, double %3, double %4, double %5, double %30)
%35 = sitofp i32 %34 to double
%36 = fcmp oeq double %33, %35
br i1 %36, label %62, label %37
37: ; preds = %29
%38 = fsub double %35, %33
%39 = fcmp olt double %38, 1.000000e-03
br i1 %39, label %62, label %40
40: ; preds = %37
%41 = fsub double %6, %33
%42 = fsub double %30, %31
%43 = fmul double %42, %41
%44 = fdiv double %43, %38
%45 = fadd double %31, %44
%46 = fcmp olt double %45, 0.000000e+00
%47 = fcmp ogt double %45, 1.000000e+00
%48 = or i1 %46, %47
br i1 %48, label %62, label %49
49: ; preds = %40
%50 = fcmp ord double %45, 0.000000e+00
%51 = zext i1 %50 to i32
%52 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %51)
%53 = tail call i32 (i32, double, double, double, double, double, double, ...) bitcast (i32 (...)* @BAWAmericanApprox to i32 (i32, double, double, double, double, double, double, ...)*)(i32 %0, double %1, double %2, double %3, double %4, double %5, double %45)
%54 = sitofp i32 %53 to double
%55 = fsub double %6, %54
%56 = tail call double @llvm.fabs.f64(double %55)
%57 = fcmp ugt double %56, 0x3EB0C6F7A0B5ED8D
br i1 %57, label %58, label %62
58: ; preds = %49
%59 = fcmp olt double %54, %6
%60 = select i1 %59, double %30, double %45
%61 = select i1 %59, double %45, double %31
br label %29
62: ; preds = %40, %37, %29, %49
%63 = phi double [ %45, %49 ], [ 0.000000e+00, %29 ], [ 0.000000e+00, %37 ], [ 0.000000e+00, %40 ]
ret double %63
}