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


x86 assembly (clang, -O0):
<merton73>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%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,-0x51(%rbp)
jne    11c6 <merton73+0x76>
jp     11c6 <merton73+0x76>
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe5a(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x51(%rbp)
jb     11c6 <merton73+0x76>
movsd  0xe4d(%rip),%xmm0
ucomisd -0x10(%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  -0x18(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x18(%rbp),%xmm0
mov    %al,-0x52(%rbp)
jne    121f <merton73+0xcf>
jp     121f <merton73+0xcf>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe01(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x52(%rbp)
jb     121f <merton73+0xcf>
movsd  0xdf4(%rip),%xmm0
ucomisd -0x18(%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  -0x20(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x20(%rbp),%xmm0
mov    %al,-0x53(%rbp)
jne    1278 <merton73+0x128>
jp     1278 <merton73+0x128>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
movsd  0xdb8(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x53(%rbp)
jb     1278 <merton73+0x128>
movsd  0xdab(%rip),%xmm0
ucomisd -0x20(%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  -0x28(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x28(%rbp),%xmm0
mov    %al,-0x54(%rbp)
jne    12cc <merton73+0x17c>
jp     12cc <merton73+0x17c>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x54(%rbp)
jb     12cc <merton73+0x17c>
movsd  0xd5f(%rip),%xmm0
ucomisd -0x28(%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    1325 <merton73+0x1d5>
jp     1325 <merton73+0x1d5>
movsd  -0x38(%rbp),%xmm0
xor    %eax,%eax
movsd  0xd23(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x55(%rbp)
jb     1325 <merton73+0x1d5>
movsd  0xd16(%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  -0x10(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
call   1050 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
mulsd  -0x38(%rbp),%xmm2
movsd  0xcd6(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1070 <sqrt@plt>
movsd  -0x78(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x70(%rbp),%xmm0
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1070 <sqrt@plt>
movsd  -0x68(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x60(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     14fe <merton73+0x3ae>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x98(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x48(%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,-0x50(%rbp)
jmp    1628 <merton73+0x4d8>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%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,-0xa8(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0xc0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%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  -0xb8(%rbp),%xmm1
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  -0xa8(%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,-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    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<merton73>:
push   %rbx
sub    $0x60,%rsp
movsd  %xmm0,0x18(%rsp)
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xe96(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xe91(%rip),%xmm6
ucomisd %xmm0,%xmm6
movsd  %xmm5,(%rsp)
movaps %xmm4,0x50(%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),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xe44(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xe3f(%rip),%xmm1
ucomisd %xmm0,%xmm1
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 0xe1f(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe1a(%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  0xdf6(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %cl
and    %al,%cl
movzbl %cl,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  (%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xdd7(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xdd2(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x18(%rsp),%xmm0
divsd  0x10(%rsp),%xmm0
call   1050 <log@plt>
movsd  (%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
movapd 0x40(%rsp),%xmm1
subsd  0x50(%rsp),%xmm1
movapd %xmm3,%xmm4
mulsd  %xmm3,%xmm4
mulsd  0xd8f(%rip),%xmm4
addsd  %xmm1,%xmm4
xorpd  %xmm1,%xmm1
mulsd  %xmm2,%xmm4
addsd  %xmm0,%xmm4
sqrtsd %xmm2,%xmm5
ucomisd %xmm1,%xmm2
movapd %xmm5,%xmm0
jae    12f7 <merton73+0x1a7>
movapd %xmm2,%xmm0
movapd %xmm4,0x20(%rsp)
movsd  %xmm5,0x30(%rsp)
call   1070 <sqrt@plt>
movsd  0x30(%rsp),%xmm5
xorpd  %xmm1,%xmm1
movapd 0x20(%rsp),%xmm4
movsd  (%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
mulsd  %xmm3,%xmm0
divsd  %xmm0,%xmm4
ucomisd %xmm1,%xmm2
movapd %xmm4,0x20(%rsp)
jae    1329 <merton73+0x1d9>
movapd %xmm2,%xmm0
call   1070 <sqrt@plt>
movapd 0x20(%rsp),%xmm4
movsd  (%rsp),%xmm3
movsd  0x8(%rsp),%xmm2
movapd %xmm0,%xmm5
mulsd  %xmm5,%xmm3
subsd  %xmm3,%xmm4
movapd %xmm4,0x30(%rsp)
test   %ebx,%ebx
je     13c1 <merton73+0x271>
movapd 0x50(%rsp),%xmm0
xorpd  0xcf3(%rip),%xmm0
mulsd  %xmm2,%xmm0
call   1040 <exp@plt>
mulsd  0x18(%rsp),%xmm0
movsd  %xmm0,(%rsp)
movaps 0x20(%rsp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movapd 0x40(%rsp),%xmm0
xorpd  0xcb4(%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
jmp    144e <merton73+0x2fe>
movapd 0x40(%rsp),%xmm0
xorpd  0xc71(%rip),%xmm0
mulsd  %xmm2,%xmm0
call   1040 <exp@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movaps 0x30(%rsp),%xmm0
xorps  0xc50(%rip),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,(%rsp)
movapd 0x50(%rsp),%xmm0
xorpd  0xc29(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,0x8(%rsp)
movaps 0x20(%rsp),%xmm0
xorps  0xc0c(%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  (%rsp),%xmm0
subsd  %xmm1,%xmm0
xor    %edi,%edi
movsd  %xmm0,(%rsp)
ucomisd %xmm0,%xmm0
setnp  %dil
xor    %eax,%eax
call   1030 <assert@plt>
movsd  (%rsp),%xmm0
add    $0x60,%rsp
pop    %rbx
ret

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

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