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


x86 assembly (clang, -O0):
<black76>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%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  -0x18(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x18(%rbp),%xmm0
mov    %al,-0x51(%rbp)
jne    11c1 <black76+0x71>
jp     11c1 <black76+0x71>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe5f(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x51(%rbp)
jb     11c1 <black76+0x71>
movsd  0xe52(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
setae  %al
mov    %al,-0x51(%rbp)
mov    -0x51(%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,-0x52(%rbp)
jne    121a <black76+0xca>
jp     121a <black76+0xca>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe16(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x52(%rbp)
jb     121a <black76+0xca>
movsd  0xe09(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
setae  %al
mov    %al,-0x52(%rbp)
mov    -0x52(%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,-0x53(%rbp)
jne    126e <black76+0x11e>
jp     126e <black76+0x11e>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x53(%rbp)
jb     126e <black76+0x11e>
movsd  0xdbd(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
setae  %al
mov    %al,-0x53(%rbp)
mov    -0x53(%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,-0x54(%rbp)
jne    12c7 <black76+0x177>
jp     12c7 <black76+0x177>
movsd  -0x30(%rbp),%xmm0
xor    %eax,%eax
movsd  0xd81(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x54(%rbp)
jb     12c7 <black76+0x177>
movsd  0xd74(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
setae  %al
mov    %al,-0x54(%rbp)
mov    -0x54(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
call   1050 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  0xd19(%rip),%xmm2
divsd  %xmm2,%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     13fc <black76+0x2ac>
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,-0x68(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x40(%rbp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%rbp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
movsd  -0x80(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
movsd  -0x70(%rbp),%xmm3
movsd  -0x68(%rbp),%xmm0
cvtsi2sd %eax,%xmm4
mulsd  %xmm4,%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    14e6 <black76+0x396>
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,-0x88(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x98(%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>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
movsd  -0xa0(%rbp),%xmm2
ff
movsd  -0x98(%rbp),%xmm1
ff
movsd  -0x90(%rbp),%xmm3
ff
movsd  -0x88(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm4
mulsd  %xmm4,%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
ucomisd -0x50(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x50(%rbp),%xmm0
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<black76>:
push   %rbx
sub    $0x50,%rsp
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xe9c(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe97(%rip),%xmm5
movsd  %xmm1,0x28(%rsp)
ucomisd %xmm1,%xmm5
movaps %xmm4,0x10(%rsp)
movaps %xmm3,0x40(%rsp)
movsd  %xmm2,0x8(%rsp)
movsd  %xmm0,0x20(%rsp)
mov    %edi,%ebx
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 0xe59(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe54(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
xorpd  %xmm0,%xmm0
movapd 0x40(%rsp),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
movsd  0xe30(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %cl
and    %al,%cl
movzbl %cl,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movapd 0x10(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xe10(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe0b(%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 0xdfa(%rip),%xmm0
jb     1254 <black76+0x104>
movsd  0x8(%rsp),%xmm0
sqrtsd %xmm0,%xmm0
jmp    125f <black76+0x10f>
movsd  0x8(%rsp),%xmm0
call   1070 <sqrt@plt>
movsd  0x28(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movapd 0x10(%rsp),%xmm3
mulsd  %xmm3,%xmm0
movsd  %xmm0,0x30(%rsp)
movapd %xmm2,%xmm0
divsd  %xmm1,%xmm0
call   1050 <log@plt>
movapd 0x10(%rsp),%xmm2
mulsd  %xmm2,%xmm2
mulsd  0xd9e(%rip),%xmm2
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
movsd  0x30(%rsp),%xmm3
divsd  %xmm3,%xmm2
movapd %xmm2,0x10(%rsp)
movapd %xmm2,%xmm0
subsd  %xmm3,%xmm0
movapd %xmm0,0x30(%rsp)
movapd 0x40(%rsp),%xmm0
xorpd  0xd7c(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1040 <exp@plt>
movsd  %xmm0,0x8(%rsp)
test   %ebx,%ebx
je     1327 <black76+0x1d7>
movaps 0x10(%rsp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x10(%rsp)
movaps 0x30(%rsp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x28(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
mulsd  0x10(%rsp),%xmm1
jmp    1373 <black76+0x223>
movaps 0x30(%rsp),%xmm0
xorps  0xd1d(%rip),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x40(%rsp)
movaps 0x10(%rsp),%xmm0
xorps  0xcfd(%rip),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x20(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
mulsd  0x40(%rsp),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
xor    %edi,%edi
ucomisd %xmm1,%xmm1
setnp  %dil
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x8(%rsp),%xmm0
add    $0x50,%rsp
pop    %rbx
ret

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

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