#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double critical_value(int, double, double, double, double, double, double);
double exp(double);
double log(double);
double rq_pricing_cumul_bivar_norm_dist(double, double, double);
double rq_pricing_cumul_norm_dist(double);
double sqrt(double);
double rq_pricing_compound(int outer_call, int inner_call, double S,
                           double X_outer, double X_inner, double T_outer,
                           double T_inner, double r, double rf, double v) {
  double y1;
  double y2;
  double z1;
  double z2;
  double I;
  double rho;
  double b = r - rf;
  double ret = 0.0;
  I = critical_value(inner_call, X_inner, X_outer, T_inner - T_outer, r, b, v);
  rho = sqrt(T_outer / T_inner);
  y1 = (log(S / I) + (b + (v * v) / 2) * T_outer) / (v * sqrt(T_outer));
  y2 = y1 - v * sqrt(T_outer);
  z1 = (log(S / X_inner) + (b + (v * v) / 2) * T_inner) / (v * sqrt(T_inner));
  z2 = z1 - v * sqrt(T_inner);
  if (outer_call && inner_call)
    ret = S * exp((b - r) * T_inner) *
              rq_pricing_cumul_bivar_norm_dist(z1, y1, rho) -
          X_inner * exp(-r * T_inner) *
              rq_pricing_cumul_bivar_norm_dist(z2, y2, rho) -
          X_outer * exp(-r * T_outer) * rq_pricing_cumul_norm_dist(y2);
  else if (!outer_call && inner_call)
    ret = X_inner * exp(-r * T_inner) *
              rq_pricing_cumul_bivar_norm_dist(z2, -y2, -rho) -
          S * exp((b - r) * T_inner) *
              rq_pricing_cumul_bivar_norm_dist(z1, -y1, -rho) +
          X_outer * exp(-r * T_outer) * rq_pricing_cumul_norm_dist(-y2);
  else if (outer_call && !inner_call)
    ret = X_inner * exp(-r * T_inner) *
              rq_pricing_cumul_bivar_norm_dist(-z2, -y2, rho) -
          S * exp((b - r) * T_inner) *
              rq_pricing_cumul_bivar_norm_dist(-z1, -y1, rho) -
          X_outer * exp(-r * T_outer) * rq_pricing_cumul_norm_dist(-y2);
  else
    ret = S * exp((b - r) * T_inner) *
              rq_pricing_cumul_bivar_norm_dist(-z1, y1, -rho) -
          X_inner * exp(-r * T_inner) *
              rq_pricing_cumul_bivar_norm_dist(-z2, y2, -rho) +
          exp(-r * T_outer) * X_outer * rq_pricing_cumul_norm_dist(y2);
  return ret;
}


x86 assembly (clang, -O0):
<rq_pricing_compound>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1c0,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%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  %xmm6,-0x40(%rbp)
movsd  %xmm7,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x8(%rbp),%edi
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
subsd  -0x28(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm3
movsd  -0x80(%rbp),%xmm4
movsd  -0x48(%rbp),%xmm5
call   1070 <critical_value@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x28(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x10(%rbp),%xmm0
divsd  -0x70(%rbp),%xmm0
call   1060 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
mulsd  -0x48(%rbp),%xmm2
movsd  0xde0(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x28(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0xc8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xc0(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0xb8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xb0(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
call   1060 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
mulsd  -0x48(%rbp),%xmm2
movsd  0xd08(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x30(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0xa8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xa0(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x98(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x90(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1546 <rq_pricing_compound+0x3e6>
cmpl   $0x0,-0x8(%rbp)
je     1546 <rq_pricing_compound+0x3e6>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x108(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x30(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x100(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  -0xf8(%rbp),%xmm1
ff
movsd  -0xf0(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0xe8(%rbp),%xmm0
ff
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  -0xd8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xd0(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
jmp    1b11 <rq_pricing_compound+0x9b1>
cmpl   $0x0,-0x4(%rbp)
jne    1741 <rq_pricing_compound+0x5e1>
cmpl   $0x0,-0x8(%rbp)
je     1741 <rq_pricing_compound+0x5e1>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x30(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x148(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  -0x78(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x140(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  -0x78(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  -0x138(%rbp),%xmm1
ff
movsd  -0x130(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0x128(%rbp),%xmm0
ff
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x120(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  -0x118(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x110(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
jmp    1b0c <rq_pricing_compound+0x9ac>
cmpl   $0x0,-0x4(%rbp)
je     1953 <rq_pricing_compound+0x7f3>
cmpl   $0x0,-0x8(%rbp)
jne    1953 <rq_pricing_compound+0x7f3>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x188(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x30(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x188(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x168(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x58(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  -0x78(%rbp),%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  %xmm0,-0x170(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x180(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x180(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x178(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x50(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  -0x78(%rbp),%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  -0x178(%rbp),%xmm1
ff
movsd  -0x170(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0x168(%rbp),%xmm0
ff
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x158(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x160(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x160(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x150(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  -0x158(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x150(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
jmp    1b07 <rq_pricing_compound+0x9a7>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x1c0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x1c0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1a0(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x50(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  %xmm0,-0x1a8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x1b8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x30(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x1b8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1b0(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x58(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  -0x1b0(%rbp),%xmm1
ff
movsd  -0x1a8(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0x1a0(%rbp),%xmm0
ff
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x198(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1050 <exp@plt>
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x190(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  -0x198(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x190(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
jmp    1b0c <rq_pricing_compound+0x9ac>
jmp    1b11 <rq_pricing_compound+0x9b1>
movsd  -0x88(%rbp),%xmm0
ff
add    $0x1c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rq_pricing_compound>:
push   %rbp
push   %rbx
sub    $0xb8,%rsp
movaps %xmm7,%xmm8
movapd %xmm4,%xmm7
movsd  %xmm4,0x8(%rsp)
movsd  %xmm3,(%rsp)
movsd  %xmm0,0x20(%rsp)
mov    %esi,%ebx
mov    %edi,%ebp
movapd %xmm5,%xmm4
subsd  %xmm6,%xmm4
subsd  %xmm3,%xmm7
mov    %esi,%edi
movsd  %xmm2,0x28(%rsp)
movapd %xmm2,%xmm0
movsd  %xmm1,0x90(%rsp)
movapd %xmm7,%xmm2
movapd %xmm5,0x60(%rsp)
movapd %xmm5,%xmm3
movapd %xmm4,0xa0(%rsp)
movaps %xmm8,0x40(%rsp)
movaps %xmm8,%xmm5
call   1070 <critical_value@plt>
movapd %xmm0,%xmm2
movsd  (%rsp),%xmm0
divsd  0x8(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     11ec <rq_pricing_compound+0x8c>
sqrtsd %xmm0,%xmm0
jmp    11fd <rq_pricing_compound+0x9d>
movsd  %xmm2,0x10(%rsp)
call   1080 <sqrt@plt>
movsd  0x10(%rsp),%xmm2
movapd %xmm0,0x70(%rsp)
movsd  0x20(%rsp),%xmm0
divsd  %xmm2,%xmm0
call   1060 <log@plt>
movapd %xmm0,%xmm6
movapd 0x40(%rsp),%xmm3
movapd %xmm3,%xmm1
mulsd  %xmm3,%xmm1
mulsd  0xdd4(%rip),%xmm1
addsd  0xa0(%rsp),%xmm1
movsd  (%rsp),%xmm0
xorps  %xmm4,%xmm4
sqrtsd %xmm0,%xmm4
ucomisd 0xdbf(%rip),%xmm0
movapd %xmm4,%xmm5
movapd %xmm1,0x10(%rsp)
movsd  %xmm6,0x30(%rsp)
jae    1292 <rq_pricing_compound+0x132>
movsd  (%rsp),%xmm0
movsd  %xmm4,0x80(%rsp)
call   1080 <sqrt@plt>
movsd  0x30(%rsp),%xmm6
movsd  0x80(%rsp),%xmm4
movapd 0x40(%rsp),%xmm3
movapd 0x10(%rsp),%xmm1
movapd %xmm0,%xmm5
movsd  (%rsp),%xmm0
movapd %xmm1,%xmm2
mulsd  %xmm0,%xmm2
xorpd  %xmm7,%xmm7
ucomisd %xmm7,%xmm0
jae    12dc <rq_pricing_compound+0x17c>
movsd  (%rsp),%xmm0
movapd %xmm2,0x50(%rsp)
movsd  %xmm5,0x98(%rsp)
call   1080 <sqrt@plt>
movsd  0x30(%rsp),%xmm6
movsd  0x98(%rsp),%xmm5
movapd 0x40(%rsp),%xmm3
movapd 0x50(%rsp),%xmm2
movapd %xmm0,%xmm4
movsd  %xmm4,0x80(%rsp)
addsd  %xmm6,%xmm2
movapd %xmm2,0x50(%rsp)
mulsd  %xmm3,%xmm5
movsd  %xmm5,0x98(%rsp)
movapd 0xd0c(%rip),%xmm0
xorpd  %xmm3,%xmm0
movapd %xmm0,0x30(%rsp)
movsd  0x20(%rsp),%xmm0
divsd  0x28(%rsp),%xmm0
call   1060 <log@plt>
movsd  0x8(%rsp),%xmm1
movapd 0x10(%rsp),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm0,%xmm3
xorps  %xmm6,%xmm6
sqrtsd %xmm1,%xmm6
ucomisd 0xcc6(%rip),%xmm1
movapd %xmm6,%xmm0
jae    1375 <rq_pricing_compound+0x215>
movapd %xmm1,%xmm0
movapd %xmm3,0x10(%rsp)
movsd  %xmm6,0xb0(%rsp)
call   1080 <sqrt@plt>
movsd  0xb0(%rsp),%xmm6
movapd 0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm1
movapd 0x50(%rsp),%xmm4
divsd  0x98(%rsp),%xmm4
movsd  0x80(%rsp),%xmm5
movapd 0x40(%rsp),%xmm2
mulsd  %xmm2,%xmm5
mulsd  %xmm2,%xmm0
divsd  %xmm0,%xmm3
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
movapd %xmm3,0x10(%rsp)
movapd %xmm4,0x50(%rsp)
jae    13e6 <rq_pricing_compound+0x286>
movapd %xmm1,%xmm0
movsd  %xmm5,0x80(%rsp)
call   1080 <sqrt@plt>
movsd  0x80(%rsp),%xmm5
movapd 0x50(%rsp),%xmm4
movapd 0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm1
movapd %xmm0,%xmm6
movapd %xmm4,%xmm2
subsd  %xmm5,%xmm2
movapd 0x30(%rsp),%xmm0
mulsd  %xmm6,%xmm0
addsd  %xmm3,%xmm0
test   %ebp,%ebp
movapd %xmm2,0x40(%rsp)
movapd %xmm0,0x30(%rsp)
je     14f7 <rq_pricing_compound+0x397>
test   %ebx,%ebx
je     14f7 <rq_pricing_compound+0x397>
movapd 0xa0(%rsp),%xmm0
subsd  0x60(%rsp),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <exp@plt>
mulsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movaps 0x10(%rsp),%xmm0
movaps 0x50(%rsp),%xmm1
movaps 0x70(%rsp),%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  %xmm0,0x10(%rsp)
movapd 0x60(%rsp),%xmm1
xorpd  0xbac(%rip),%xmm1
movapd %xmm1,0x60(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x50(%rsp)
movapd 0x30(%rsp),%xmm0
movaps 0x40(%rsp),%xmm1
movaps 0x70(%rsp),%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  0x50(%rsp),%xmm1
mulsd  0x28(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
mulsd  0x20(%rsp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rsp)
movapd 0x60(%rsp),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,(%rsp)
movapd 0x40(%rsp),%xmm0
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  (%rsp),%xmm1
mulsd  0x90(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
jmp    1719 <rq_pricing_compound+0x5b9>
test   %ebp,%ebp
jne    1608 <rq_pricing_compound+0x4a8>
test   %ebx,%ebx
je     1608 <rq_pricing_compound+0x4a8>
movapd 0x60(%rsp),%xmm5
xorpd  0xafb(%rip),%xmm5
movapd %xmm5,0x80(%rsp)
movapd %xmm5,%xmm0
mulsd  %xmm1,%xmm0
call   1050 <exp@plt>
mulsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movaps 0x40(%rsp),%xmm1
movaps 0xacd(%rip),%xmm0
xorps  %xmm0,%xmm1
movaps %xmm1,0x40(%rsp)
movaps 0x70(%rsp),%xmm2
xorps  %xmm0,%xmm2
movaps %xmm2,0x70(%rsp)
movaps 0x30(%rsp),%xmm0
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  %xmm0,0x30(%rsp)
movapd 0xa0(%rsp),%xmm0
subsd  0x60(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x8(%rsp)
movaps 0x50(%rsp),%xmm1
xorps  0xa7c(%rip),%xmm1
movapd 0x10(%rsp),%xmm0
movaps 0x70(%rsp),%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  0x8(%rsp),%xmm1
mulsd  0x20(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x30(%rsp),%xmm0
mulsd  0x28(%rsp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x30(%rsp)
movapd 0x80(%rsp),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
mulsd  0x90(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movapd 0x40(%rsp),%xmm0
call   1030 <rq_pricing_cumul_norm_dist@plt>
mulsd  0x10(%rsp),%xmm0
addsd  0x30(%rsp),%xmm0
jmp    171d <rq_pricing_compound+0x5bd>
test   %ebp,%ebp
je     1727 <rq_pricing_compound+0x5c7>
test   %ebx,%ebx
jne    1727 <rq_pricing_compound+0x5c7>
movapd 0x60(%rsp),%xmm0
xorpd  0x9ea(%rip),%xmm0
movapd %xmm0,0x80(%rsp)
mulsd  %xmm1,%xmm0
call   1050 <exp@plt>
mulsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movaps 0x30(%rsp),%xmm0
movaps 0x9c0(%rip),%xmm2
xorps  %xmm2,%xmm0
movaps 0x40(%rsp),%xmm1
xorps  %xmm2,%xmm1
movaps %xmm1,0x40(%rsp)
movaps 0x70(%rsp),%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  %xmm0,0x30(%rsp)
movapd 0xa0(%rsp),%xmm0
subsd  0x60(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x8(%rsp)
movapd 0x10(%rsp),%xmm0
movapd 0x972(%rip),%xmm2
xorpd  %xmm2,%xmm0
movapd 0x50(%rsp),%xmm1
xorpd  %xmm2,%xmm1
movaps 0x70(%rsp),%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  0x8(%rsp),%xmm1
mulsd  0x20(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x30(%rsp),%xmm0
mulsd  0x28(%rsp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x30(%rsp)
movapd 0x80(%rsp),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x10(%rsp)
movapd 0x40(%rsp),%xmm0
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  0x10(%rsp),%xmm1
mulsd  0x90(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x30(%rsp),%xmm0
subsd  %xmm1,%xmm0
add    $0xb8,%rsp
pop    %rbx
pop    %rbp
ret
movapd 0xa0(%rsp),%xmm0
subsd  0x60(%rsp),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <exp@plt>
mulsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movaps 0x8be(%rip),%xmm1
movaps 0x10(%rsp),%xmm0
xorps  %xmm1,%xmm0
movaps 0x70(%rsp),%xmm2
xorps  %xmm1,%xmm2
movaps %xmm2,0x70(%rsp)
movaps 0x50(%rsp),%xmm1
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  %xmm0,0x10(%rsp)
movapd 0x60(%rsp),%xmm1
xorpd  0x88b(%rip),%xmm1
movapd %xmm1,0x60(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <exp@plt>
movsd  %xmm0,0x50(%rsp)
movapd 0x30(%rsp),%xmm0
xorpd  0x862(%rip),%xmm0
movaps 0x40(%rsp),%xmm1
movaps 0x70(%rsp),%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  0x50(%rsp),%xmm1
mulsd  0x28(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
mulsd  0x20(%rsp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rsp)
movapd 0x60(%rsp),%xmm0
mulsd  (%rsp),%xmm0
call   1050 <exp@plt>
mulsd  0x90(%rsp),%xmm0
movsd  %xmm0,(%rsp)
movapd 0x40(%rsp),%xmm0
call   1030 <rq_pricing_cumul_norm_dist@plt>
mulsd  (%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
jmp    171d <rq_pricing_compound+0x5bd>

LLVM IR (-O0):
define double @rq_pricing_compound(i32 %0, i32 %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9) {
%11 = alloca i32
%12 = alloca i32
%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
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
store i32 %0, i32* %11
store i32 %1, i32* %12
store double %2, double* %13
store double %3, double* %14
store double %4, double* %15
store double %5, double* %16
store double %6, double* %17
store double %7, double* %18
store double %8, double* %19
store double %9, double* %20
%29 = load double, double* %18
%30 = load double, double* %19
%31 = fsub double %29, %30
store double %31, double* %27
store double 0.000000e+00, double* %28
%32 = load i32, i32* %12
%33 = load double, double* %15
%34 = load double, double* %14
%35 = load double, double* %17
%36 = load double, double* %16
%37 = fsub double %35, %36
%38 = load double, double* %18
%39 = load double, double* %27
%40 = load double, double* %20
%41 = call double @critical_value(i32 %32, double %33, double %34, double %37, double %38, double %39, double %40)
store double %41, double* %25
%42 = load double, double* %16
%43 = load double, double* %17
%44 = fdiv double %42, %43
%45 = call double @sqrt(double %44)
store double %45, double* %26
%46 = load double, double* %13
%47 = load double, double* %25
%48 = fdiv double %46, %47
%49 = call double @log(double %48)
%50 = load double, double* %27
%51 = load double, double* %20
%52 = load double, double* %20
%53 = fmul double %51, %52
%54 = fdiv double %53, 2.000000e+00
%55 = fadd double %50, %54
%56 = load double, double* %16
%57 = call double @llvm.fmuladd.f64(double %55, double %56, double %49)
%58 = load double, double* %20
%59 = load double, double* %16
%60 = call double @sqrt(double %59)
%61 = fmul double %58, %60
%62 = fdiv double %57, %61
store double %62, double* %21
%63 = load double, double* %21
%64 = load double, double* %20
%65 = load double, double* %16
%66 = call double @sqrt(double %65)
%67 = fneg double %64
%68 = call double @llvm.fmuladd.f64(double %67, double %66, double %63)
store double %68, double* %22
%69 = load double, double* %13
%70 = load double, double* %15
%71 = fdiv double %69, %70
%72 = call double @log(double %71)
%73 = load double, double* %27
%74 = load double, double* %20
%75 = load double, double* %20
%76 = fmul double %74, %75
%77 = fdiv double %76, 2.000000e+00
%78 = fadd double %73, %77
%79 = load double, double* %17
%80 = call double @llvm.fmuladd.f64(double %78, double %79, double %72)
%81 = load double, double* %20
%82 = load double, double* %17
%83 = call double @sqrt(double %82)
%84 = fmul double %81, %83
%85 = fdiv double %80, %84
store double %85, double* %23
%86 = load double, double* %23
%87 = load double, double* %20
%88 = load double, double* %17
%89 = call double @sqrt(double %88)
%90 = fneg double %87
%91 = call double @llvm.fmuladd.f64(double %90, double %89, double %86)
store double %91, double* %24
%92 = load i32, i32* %11
%93 = icmp ne i32 %92, 0
br i1 %93, label %94, label %135
94: ; preds = %10
%95 = load i32, i32* %12
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %135
97: ; preds = %94
%98 = load double, double* %13
%99 = load double, double* %27
%100 = load double, double* %18
%101 = fsub double %99, %100
%102 = load double, double* %17
%103 = fmul double %101, %102
%104 = call double @exp(double %103)
%105 = fmul double %98, %104
%106 = load double, double* %23
%107 = load double, double* %21
%108 = load double, double* %26
%109 = call double @rq_pricing_cumul_bivar_norm_dist(double %106, double %107, double %108)
%110 = load double, double* %15
%111 = load double, double* %18
%112 = fneg double %111
%113 = load double, double* %17
%114 = fmul double %112, %113
%115 = call double @exp(double %114)
%116 = fmul double %110, %115
%117 = load double, double* %24
%118 = load double, double* %22
%119 = load double, double* %26
%120 = call double @rq_pricing_cumul_bivar_norm_dist(double %117, double %118, double %119)
%121 = fmul double %116, %120
%122 = fneg double %121
%123 = call double @llvm.fmuladd.f64(double %105, double %109, double %122)
%124 = load double, double* %14
%125 = load double, double* %18
%126 = fneg double %125
%127 = load double, double* %16
%128 = fmul double %126, %127
%129 = call double @exp(double %128)
%130 = fmul double %124, %129
%131 = load double, double* %22
%132 = call double @rq_pricing_cumul_norm_dist(double %131)
%133 = fneg double %130
%134 = call double @llvm.fmuladd.f64(double %133, double %132, double %123)
store double %134, double* %28
br label %275
135: ; preds = %94, %10
%136 = load i32, i32* %11
%137 = icmp ne i32 %136, 0
br i1 %137, label %183, label %138
138: ; preds = %135
%139 = load i32, i32* %12
%140 = icmp ne i32 %139, 0
br i1 %140, label %141, label %183
141: ; preds = %138
%142 = load double, double* %15
%143 = load double, double* %18
%144 = fneg double %143
%145 = load double, double* %17
%146 = fmul double %144, %145
%147 = call double @exp(double %146)
%148 = fmul double %142, %147
%149 = load double, double* %24
%150 = load double, double* %22
%151 = fneg double %150
%152 = load double, double* %26
%153 = fneg double %152
%154 = call double @rq_pricing_cumul_bivar_norm_dist(double %149, double %151, double %153)
%155 = load double, double* %13
%156 = load double, double* %27
%157 = load double, double* %18
%158 = fsub double %156, %157
%159 = load double, double* %17
%160 = fmul double %158, %159
%161 = call double @exp(double %160)
%162 = fmul double %155, %161
%163 = load double, double* %23
%164 = load double, double* %21
%165 = fneg double %164
%166 = load double, double* %26
%167 = fneg double %166
%168 = call double @rq_pricing_cumul_bivar_norm_dist(double %163, double %165, double %167)
%169 = fmul double %162, %168
%170 = fneg double %169
%171 = call double @llvm.fmuladd.f64(double %148, double %154, double %170)
%172 = load double, double* %14
%173 = load double, double* %18
%174 = fneg double %173
%175 = load double, double* %16
%176 = fmul double %174, %175
%177 = call double @exp(double %176)
%178 = fmul double %172, %177
%179 = load double, double* %22
%180 = fneg double %179
%181 = call double @rq_pricing_cumul_norm_dist(double %180)
%182 = call double @llvm.fmuladd.f64(double %178, double %181, double %171)
store double %182, double* %28
br label %274
183: ; preds = %138, %135
%184 = load i32, i32* %11
%185 = icmp ne i32 %184, 0
br i1 %185, label %186, label %232
186: ; preds = %183
%187 = load i32, i32* %12
%188 = icmp ne i32 %187, 0
br i1 %188, label %232, label %189
189: ; preds = %186
%190 = load double, double* %15
%191 = load double, double* %18
%192 = fneg double %191
%193 = load double, double* %17
%194 = fmul double %192, %193
%195 = call double @exp(double %194)
%196 = fmul double %190, %195
%197 = load double, double* %24
%198 = fneg double %197
%199 = load double, double* %22
%200 = fneg double %199
%201 = load double, double* %26
%202 = call double @rq_pricing_cumul_bivar_norm_dist(double %198, double %200, double %201)
%203 = load double, double* %13
%204 = load double, double* %27
%205 = load double, double* %18
%206 = fsub double %204, %205
%207 = load double, double* %17
%208 = fmul double %206, %207
%209 = call double @exp(double %208)
%210 = fmul double %203, %209
%211 = load double, double* %23
%212 = fneg double %211
%213 = load double, double* %21
%214 = fneg double %213
%215 = load double, double* %26
%216 = call double @rq_pricing_cumul_bivar_norm_dist(double %212, double %214, double %215)
%217 = fmul double %210, %216
%218 = fneg double %217
%219 = call double @llvm.fmuladd.f64(double %196, double %202, double %218)
%220 = load double, double* %14
%221 = load double, double* %18
%222 = fneg double %221
%223 = load double, double* %16
%224 = fmul double %222, %223
%225 = call double @exp(double %224)
%226 = fmul double %220, %225
%227 = load double, double* %22
%228 = fneg double %227
%229 = call double @rq_pricing_cumul_norm_dist(double %228)
%230 = fneg double %226
%231 = call double @llvm.fmuladd.f64(double %230, double %229, double %219)
store double %231, double* %28
br label %273
232: ; preds = %186, %183
%233 = load double, double* %13
%234 = load double, double* %27
%235 = load double, double* %18
%236 = fsub double %234, %235
%237 = load double, double* %17
%238 = fmul double %236, %237
%239 = call double @exp(double %238)
%240 = fmul double %233, %239
%241 = load double, double* %23
%242 = fneg double %241
%243 = load double, double* %21
%244 = load double, double* %26
%245 = fneg double %244
%246 = call double @rq_pricing_cumul_bivar_norm_dist(double %242, double %243, double %245)
%247 = load double, double* %15
%248 = load double, double* %18
%249 = fneg double %248
%250 = load double, double* %17
%251 = fmul double %249, %250
%252 = call double @exp(double %251)
%253 = fmul double %247, %252
%254 = load double, double* %24
%255 = fneg double %254
%256 = load double, double* %22
%257 = load double, double* %26
%258 = fneg double %257
%259 = call double @rq_pricing_cumul_bivar_norm_dist(double %255, double %256, double %258)
%260 = fmul double %253, %259
%261 = fneg double %260
%262 = call double @llvm.fmuladd.f64(double %240, double %246, double %261)
%263 = load double, double* %18
%264 = fneg double %263
%265 = load double, double* %16
%266 = fmul double %264, %265
%267 = call double @exp(double %266)
%268 = load double, double* %14
%269 = fmul double %267, %268
%270 = load double, double* %22
%271 = call double @rq_pricing_cumul_norm_dist(double %270)
%272 = call double @llvm.fmuladd.f64(double %269, double %271, double %262)
store double %272, double* %28
br label %273
273: ; preds = %232, %189
br label %274
274: ; preds = %273, %141
br label %275
275: ; preds = %274, %97
%276 = load double, double* %28
ret double %276
}

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