double gbs(int fCall, double S, double X, double T, double r, double b,
           double v) {
  double vst, d1, d2, ebrt, ert, result;
  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));
  assert(((r) == (r)) && (r) >= 0.0 && (r) <= 1000.0);
  assert(((b) == (b)) && (b) >= -1000.0 && (b) <= 1000.0);
  assert(((v) == (v)) && (v) >= 0.0000001 && v <= 100.99999);
  vst = v * sqrt(T);
  assert(((vst) == (vst)));
  d1 = (log(S / X) + (b + ((v) * (v)) / 2.0) * T) / vst;
  d2 = d1 - vst;
  ebrt = exp((b - r) * T);
  ert = exp(-r * T);
  if (fCall)
    result = S * ebrt * cnd(d1) - X * ert * cnd(d2);
  else
    result = X * ert * cnd(-d2) - S * ebrt * cnd(-d1);
  assert(((result) == (result)));
  return result;
}


x86 assembly (clang, -O0):
<gbs>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%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  -0x10(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x10(%rbp),%xmm0
mov    %al,-0x69(%rbp)
jne    11c6 <gbs+0x76>
jp     11c6 <gbs+0x76>
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe5a(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x69(%rbp)
jb     11c6 <gbs+0x76>
movsd  0xe4d(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
setae  %al
mov    %al,-0x69(%rbp)
mov    -0x69(%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,-0x6a(%rbp)
jne    121f <gbs+0xcf>
jp     121f <gbs+0xcf>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe01(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x6a(%rbp)
jb     121f <gbs+0xcf>
movsd  0xdf4(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
setae  %al
mov    %al,-0x6a(%rbp)
mov    -0x6a(%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,-0x6b(%rbp)
jne    1278 <gbs+0x128>
jp     1278 <gbs+0x128>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
movsd  0xdb8(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x6b(%rbp)
jb     1278 <gbs+0x128>
movsd  0xdab(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
setae  %al
mov    %al,-0x6b(%rbp)
mov    -0x6b(%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,-0x6c(%rbp)
jne    12cc <gbs+0x17c>
jp     12cc <gbs+0x17c>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x6c(%rbp)
jb     12cc <gbs+0x17c>
movsd  0xd5f(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
setae  %al
mov    %al,-0x6c(%rbp)
mov    -0x6c(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x30(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x30(%rbp),%xmm0
mov    %al,-0x6d(%rbp)
jne    1325 <gbs+0x1d5>
jp     1325 <gbs+0x1d5>
movsd  -0x30(%rbp),%xmm0
xor    %eax,%eax
movsd  0xd23(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x6d(%rbp)
jb     1325 <gbs+0x1d5>
movsd  0xd06(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
setae  %al
mov    %al,-0x6d(%rbp)
mov    -0x6d(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x38(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x38(%rbp),%xmm0
mov    %al,-0x6e(%rbp)
jne    137e <gbs+0x22e>
jp     137e <gbs+0x22e>
movsd  -0x38(%rbp),%xmm0
xor    %eax,%eax
movsd  0xcd2(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x6e(%rbp)
jb     137e <gbs+0x22e>
movsd  0xcc5(%rip),%xmm0
ucomisd -0x38(%rbp),%xmm0
setae  %al
mov    %al,-0x6e(%rbp)
mov    -0x6e(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
ucomisd -0x40(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x10(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
call   1050 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
mulsd  -0x38(%rbp),%xmm2
movsd  0xc47(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x30(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,-0x60(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1500 <gbs+0x3b0>
movsd  -0x10(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
movsd  -0x90(%rbp),%xmm1
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0x80(%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,-0x68(%rbp)
jmp    15ba <gbs+0x46a>
movsd  -0x18(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0xa0(%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>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
movsd  -0xa8(%rbp),%xmm1
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  -0x98(%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,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
ucomisd -0x68(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x68(%rbp),%xmm0
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gbs>:
push   %rbx
sub    $0x60,%rsp
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xe9c(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xe97(%rip),%xmm6
movsd  %xmm0,0x48(%rsp)
ucomisd %xmm0,%xmm6
movaps %xmm5,0x30(%rsp)
movsd  %xmm4,0x10(%rsp)
movaps %xmm3,0x20(%rsp)
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x18(%rsp)
mov    %edi,%ebx
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x18(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xe43(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe3e(%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 0xe1e(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe19(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
xorpd  %xmm1,%xmm1
movapd 0x20(%rsp),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
movsd  0xdf5(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %cl
and    %al,%cl
movzbl %cl,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x10(%rsp),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xdd5(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xdc0(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movapd 0x30(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xda8(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xda3(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x8(%rsp),%xmm0
ucomisd 0xd92(%rip),%xmm0
jb     12c4 <gbs+0x174>
movsd  0x8(%rsp),%xmm0
sqrtsd %xmm0,%xmm0
jmp    12cf <gbs+0x17f>
movsd  0x8(%rsp),%xmm0
call   1070 <sqrt@plt>
movapd 0x30(%rsp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x50(%rsp)
xor    %edi,%edi
ucomisd %xmm0,%xmm0
setnp  %dil
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x48(%rsp),%xmm0
divsd  0x18(%rsp),%xmm0
call   1050 <log@plt>
movapd 0x30(%rsp),%xmm3
mulsd  %xmm3,%xmm3
mulsd  0xd2d(%rip),%xmm3
movsd  0x10(%rsp),%xmm1
addsd  %xmm1,%xmm3
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm3
movapd %xmm2,%xmm4
addsd  %xmm0,%xmm3
movsd  0x50(%rsp),%xmm2
divsd  %xmm2,%xmm3
movapd %xmm3,0x30(%rsp)
movapd %xmm3,%xmm0
subsd  %xmm2,%xmm0
movapd %xmm0,0x50(%rsp)
subsd  0x20(%rsp),%xmm1
mulsd  %xmm4,%xmm1
movapd %xmm1,%xmm0
call   1040 <exp@plt>
movsd  %xmm0,0x10(%rsp)
movapd 0x20(%rsp),%xmm0
xorpd  0xcdc(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1040 <exp@plt>
test   %ebx,%ebx
je     13db <gbs+0x28b>
movsd  0x10(%rsp),%xmm1
mulsd  0x48(%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x20(%rsp)
movaps 0x30(%rsp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movaps 0x50(%rsp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x20(%rsp),%xmm1
mulsd  0x18(%rsp),%xmm1
jmp    1433 <gbs+0x2e3>
mulsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movaps 0x50(%rsp),%xmm0
xorps  0xc5d(%rip),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movaps 0x30(%rsp),%xmm0
xorps  0xc37(%rip),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0x48(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x8(%rsp),%xmm0
subsd  %xmm1,%xmm0
xor    %edi,%edi
movsd  %xmm0,0x8(%rsp)
ucomisd %xmm0,%xmm0
setnp  %dil
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x8(%rsp),%xmm0
add    $0x60,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define double @gbs(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)
%29 = fcmp oge double %4, 0.000000e+00
%30 = fcmp ole double %4, 1.000000e+03
%31 = and i1 %29, %30
%32 = zext i1 %31 to i32
%33 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %32)
%34 = fcmp ord double %5, 0.000000e+00
%35 = fcmp oge double %5, -1.000000e+03
%36 = and i1 %34, %35
%37 = fcmp ole double %5, 1.000000e+03
%38 = and i1 %37, %36
%39 = zext i1 %38 to i32
%40 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %39)
%41 = fcmp ord double %6, 0.000000e+00
%42 = fcmp oge double %6, 0x3E7AD7F29ABCAF48
%43 = and i1 %41, %42
%44 = fcmp ole double %6, 0x40593FFFD60E94EE
%45 = and i1 %44, %43
%46 = zext i1 %45 to i32
%47 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %46)
%48 = tail call double @sqrt(double %3)
%49 = fmul double %48, %6
%50 = fcmp ord double %49, 0.000000e+00
%51 = zext i1 %50 to i32
%52 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %51)
%53 = fdiv double %1, %2
%54 = tail call double @log(double %53)
%55 = fmul double %6, %6
%56 = fmul double %55, 5.000000e-01
%57 = fadd double %56, %5
%58 = tail call double @llvm.fmuladd.f64(double %57, double %3, double %54)
%59 = fdiv double %58, %49
%60 = fsub double %59, %49
%61 = fsub double %5, %4
%62 = fmul double %61, %3
%63 = tail call double @exp(double %62)
%64 = fneg double %4
%65 = fmul double %64, %3
%66 = tail call double @exp(double %65)
%67 = icmp eq i32 %0, 0
br i1 %67, label %78, label %68
68: ; preds = %7
%69 = fmul double %63, %1
%70 = tail call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %59)
%71 = sitofp i32 %70 to double
%72 = tail call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %60)
%73 = sitofp i32 %72 to double
%74 = fneg double %66
%75 = fmul double %74, %2
%76 = fmul double %75, %73
%77 = tail call double @llvm.fmuladd.f64(double %69, double %71, double %76)
br label %90
78: ; preds = %7
%79 = fmul double %66, %2
%80 = fneg double %60
%81 = tail call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %80)
%82 = sitofp i32 %81 to double
%83 = fneg double %59
%84 = tail call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %83)
%85 = sitofp i32 %84 to double
%86 = fneg double %63
%87 = fmul double %86, %1
%88 = fmul double %87, %85
%89 = tail call double @llvm.fmuladd.f64(double %79, double %82, double %88)
br label %90
90: ; preds = %78, %68
%91 = phi double [ %77, %68 ], [ %89, %78 ]
%92 = fcmp ord double %91, 0.000000e+00
%93 = zext i1 %92 to i32
%94 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %93)
ret double %91
}