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


x86 assembly (clang, -O0):
<blackscholes>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%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  -0x18(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x18(%rbp),%xmm0
mov    %al,-0x51(%rbp)
jne    11c1 <blackscholes+0x71>
jp     11c1 <blackscholes+0x71>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe5f(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x51(%rbp)
jb     11c1 <blackscholes+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 <blackscholes+0xca>
jp     121a <blackscholes+0xca>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe06(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x52(%rbp)
jb     121a <blackscholes+0xca>
movsd  0xdf9(%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    1273 <blackscholes+0x123>
jp     1273 <blackscholes+0x123>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
movsd  0xdbd(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x53(%rbp)
jb     1273 <blackscholes+0x123>
movsd  0xdb0(%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 <blackscholes+0x177>
jp     12c7 <blackscholes+0x177>
movsd  -0x30(%rbp),%xmm0
xor    %eax,%eax
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x54(%rbp)
jb     12c7 <blackscholes+0x177>
movsd  0xd64(%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  -0x38(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x38(%rbp),%xmm0
mov    %al,-0x55(%rbp)
jne    1320 <blackscholes+0x1d0>
jp     1320 <blackscholes+0x1d0>
movsd  -0x38(%rbp),%xmm0
xor    %eax,%eax
movsd  0xd28(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x55(%rbp)
jb     1320 <blackscholes+0x1d0>
movsd  0xd1b(%rip),%xmm0
ucomisd -0x38(%rbp),%xmm0
setae  %al
mov    %al,-0x55(%rbp)
mov    -0x55(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x38(%rbp),%xmm0
xor    %eax,%eax
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x56(%rbp)
jbe    1374 <blackscholes+0x224>
movsd  0xccf(%rip),%xmm0
ucomisd -0x38(%rbp),%xmm0
setae  %al
mov    %al,-0x56(%rbp)
mov    -0x56(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1050 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
mulsd  -0x38(%rbp),%xmm2
movsd  0xc6f(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x28(%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)
cmpl   $0x0,-0xc(%rbp)
je     14b5 <blackscholes+0x365>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x48(%rbp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
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  -0x80(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
movsd  -0x78(%rbp),%xmm1
movsd  -0x70(%rbp),%xmm0
movsd  -0x68(%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,-0x8(%rbp)
jmp    15a2 <blackscholes+0x452>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xa0(%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  -0xa0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%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,-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>
movsd  -0x98(%rbp),%xmm1
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x88(%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,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<blackscholes>:
push   %rbp
push   %rbx
sub    $0x58,%rsp
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xe9b(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xe96(%rip),%xmm5
movsd  %xmm0,0x18(%rsp)
ucomisd %xmm0,%xmm5
movaps %xmm4,0x20(%rsp)
movaps %xmm3,0x40(%rsp)
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x10(%rsp)
mov    %edi,%ebx
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 0xe48(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe43(%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 0xe23(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe1e(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
xorpd  %xmm0,%xmm0
xor    %ebp,%ebp
movapd 0x40(%rsp),%xmm1
ucomisd %xmm0,%xmm1
setae  %bpl
movsd  0xdf7(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %bpl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movapd 0x20(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xdd6(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xdd1(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movapd 0x20(%rsp),%xmm1
ucomisd 0xdbf(%rip),%xmm1
seta   %al
movsd  0xda4(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %cl
and    %al,%cl
movzbl %cl,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x8(%rsp),%xmm0
ucomisd 0xd93(%rip),%xmm0
jb     12c3 <blackscholes+0x173>
movsd  0x8(%rsp),%xmm0
sqrtsd %xmm0,%xmm0
jmp    12ce <blackscholes+0x17e>
movsd  0x8(%rsp),%xmm0
call   1070 <sqrt@plt>
movsd  0x18(%rsp),%xmm2
movsd  0x10(%rsp),%xmm1
mulsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movapd %xmm2,%xmm0
divsd  %xmm1,%xmm0
call   1050 <log@plt>
movapd 0x20(%rsp),%xmm2
mulsd  %xmm2,%xmm2
mulsd  0xd3b(%rip),%xmm2
movapd 0x40(%rsp),%xmm1
addsd  %xmm1,%xmm2
mulsd  0x8(%rsp),%xmm2
addsd  %xmm0,%xmm2
movapd %xmm2,%xmm0
movsd  0x30(%rsp),%xmm3
divsd  %xmm3,%xmm0
movapd %xmm0,%xmm2
subsd  %xmm3,%xmm2
movapd %xmm2,0x30(%rsp)
test   %ebx,%ebx
je     139d <blackscholes+0x24d>
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x20(%rsp)
movapd 0x40(%rsp),%xmm0
xorpd  0xcf5(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,0x8(%rsp)
movaps 0x30(%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  0x18(%rsp),%xmm0
mulsd  0x20(%rsp),%xmm0
jmp    1412 <blackscholes+0x2c2>
xorpd  0xcab(%rip),%xmm1
mulsd  0x8(%rsp),%xmm1
movapd %xmm0,0x20(%rsp)
movapd %xmm1,%xmm0
call   1040 <exp@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movaps 0x30(%rsp),%xmm0
xorps  0xc7e(%rip),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movaps 0x20(%rsp),%xmm0
xorps  0xc58(%rip),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0x18(%rsp),%xmm1
movsd  0x8(%rsp),%xmm0
subsd  %xmm1,%xmm0
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define double @blackscholes(i32 %0, double %1, double %2, double %3, double %4, double %5) {
%7 = alloca double
%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
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
%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, 0x3EB0C6F7A0B5ED8D
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load double, double* %10
%38 = fcmp ole double %37, 1.000000e+12
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, 0x3F2596179C29D2CE
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = load double, double* %11
%51 = fcmp ole double %50, 2.000000e+01
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, 0.000000e+00
br i1 %61, label %62, label %65
62: ; preds = %59
%63 = load double, double* %12
%64 = fcmp ole double %63, 1.000000e+03
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* %13
%70 = load double, double* %13
%71 = fcmp oeq double %69, %70
br i1 %71, label %72, label %78
72: ; preds = %65
%73 = load double, double* %13
%74 = fcmp oge double %73, 0x3E7AD7F29ABCAF48
br i1 %74, label %75, label %78
75: ; preds = %72
%76 = load double, double* %13
%77 = fcmp ole double %76, 0x40593FFFD60E94EE
br label %78
78: ; preds = %75, %72, %65
%79 = phi i1 [ false, %72 ], [ false, %65 ], [ %77, %75 ]
%80 = zext i1 %79 to i32
%81 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %80)
%82 = load double, double* %12
%83 = fcmp oge double %82, 0.000000e+00
%84 = zext i1 %83 to i32
%85 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %84)
%86 = load double, double* %13
%87 = fcmp ogt double %86, 0.000000e+00
br i1 %87, label %88, label %91
88: ; preds = %78
%89 = load double, double* %13
%90 = fcmp ole double %89, 1.000000e+02
br label %91
91: ; preds = %88, %78
%92 = phi i1 [ false, %78 ], [ %90, %88 ]
%93 = zext i1 %92 to i32
%94 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %93)
%95 = load double, double* %13
%96 = load double, double* %11
%97 = call double @sqrt(double %96)
%98 = fmul double %95, %97
store double %98, double* %14
%99 = load double, double* %9
%100 = load double, double* %10
%101 = fdiv double %99, %100
%102 = call double @log(double %101)
%103 = load double, double* %12
%104 = load double, double* %13
%105 = load double, double* %13
%106 = fmul double %104, %105
%107 = fdiv double %106, 2.000000e+00
%108 = fadd double %103, %107
%109 = load double, double* %11
%110 = call double @llvm.fmuladd.f64(double %108, double %109, double %102)
%111 = load double, double* %14
%112 = fdiv double %110, %111
store double %112, double* %15
%113 = load double, double* %15
%114 = load double, double* %14
%115 = fsub double %113, %114
store double %115, double* %16
%116 = load i32, i32* %8
%117 = icmp ne i32 %116, 0
br i1 %117, label %118, label %136
118: ; preds = %91
%119 = load double, double* %9
%120 = load double, double* %15
%121 = call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %120)
%122 = sitofp i32 %121 to double
%123 = load double, double* %10
%124 = load double, double* %12
%125 = fneg double %124
%126 = load double, double* %11
%127 = fmul double %125, %126
%128 = call double @exp(double %127)
%129 = fmul double %123, %128
%130 = load double, double* %16
%131 = call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %130)
%132 = sitofp i32 %131 to double
%133 = fmul double %129, %132
%134 = fneg double %133
%135 = call double @llvm.fmuladd.f64(double %119, double %122, double %134)
store double %135, double* %7
br label %156
136: ; preds = %91
%137 = load double, double* %10
%138 = load double, double* %12
%139 = fneg double %138
%140 = load double, double* %11
%141 = fmul double %139, %140
%142 = call double @exp(double %141)
%143 = fmul double %137, %142
%144 = load double, double* %16
%145 = fneg double %144
%146 = call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %145)
%147 = sitofp i32 %146 to double
%148 = load double, double* %9
%149 = load double, double* %15
%150 = fneg double %149
%151 = call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %150)
%152 = sitofp i32 %151 to double
%153 = fmul double %148, %152
%154 = fneg double %153
%155 = call double @llvm.fmuladd.f64(double %143, double %147, double %154)
store double %155, double* %7
br label %156
156: ; preds = %136, %118
%157 = load double, double* %7
ret double %157
}

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