double rq_pricing_double_barrier(short in, short call, double S, double X,
                                 double L, double H, double r_dom, double r_for,
                                 double sigma, double tau_e, double tau_d) {
  double delta1 = 0.0;
  double delta2 = 0.0;
  double b = r_dom - r_for;
  double E = L * exp(delta1 * tau_e);
  double F = H * exp(delta1 * tau_e);
  double sum1 = 0.0;
  double sum2 = 0.0;
  double value = 0.0;
  double prevValue = 0.0;
  int n = 0;
  double ret = 0.0;
  int max = 6;
  double d1;
  double d2;
  double d3;
  double d4;
  double mu1;
  double mu2;
  double mu3;
  double diff = 0.0;
  double lvalue = 0.0;
  double a1 = 0.0;
  double a2 = 0.0;
  n = 0;
  if (call) {
    do {
      d1 = (log(S * pow(H, (2.0 * n)) / (X * pow(L, (2.0 * n)))) +
            (b + (sigma * sigma) / 2.0) * tau_e) /
           (sigma * sqrt(tau_e));
      d2 = (log(S * pow(H, (2.0 * n)) / (F * pow(L, (2.0 * n)))) +
            (b + (sigma * sigma) / 2.0) * tau_e) /
           (sigma * sqrt(tau_e));
      d3 = (log(pow(L, (2.0 * n + 2.0)) / (X * S * pow(H, (2.0 * n)))) +
            (b + (sigma * sigma) / 2.0) * tau_e) /
           (sigma * sqrt(tau_e));
      d4 = (log(pow(L, (2.0 * n + 2.0)) / (F * S * pow(H, (2.0 * n)))) +
            (b + (sigma * sigma) / 2.0) * tau_e) /
           (sigma * sqrt(tau_e));
      mu1 = 2.0 * (b - delta2 - n * (delta1 - delta2)) / (sigma * sigma) + 1;
      mu2 = 2.0 * n * (delta1 - delta2) / (sigma * sigma);
      mu3 = 2.0 * (b - delta2 + n * (delta1 - delta2)) / (sigma * sigma) + 1;
      sum1 =
          sum1 +
          pow((pow(H, n) / pow(L, n)), mu1) * pow((L / S), mu2) *
              (rq_pricing_cumul_norm_dist(d1) -
               rq_pricing_cumul_norm_dist(d2)) -
          pow((pow(L, (n + 1)) / (pow(H, n) * S)), mu3) *
              (rq_pricing_cumul_norm_dist(d3) - rq_pricing_cumul_norm_dist(d4));
      sum2 = sum2 +
             pow((pow(H, n) / pow(L, n)), (mu1 - 2.0)) * pow((L / S), mu2) *
                 (rq_pricing_cumul_norm_dist(d1 - sigma * sqrt(tau_e)) -
                  rq_pricing_cumul_norm_dist(d2 - sigma * sqrt(tau_e))) -
             pow((pow(L, (n + 1)) / (pow(H, n) * S)), (mu3 - 2.0)) *
                 (rq_pricing_cumul_norm_dist(d3 - sigma * sqrt(tau_e)) -
                  rq_pricing_cumul_norm_dist(d4 - sigma * sqrt(tau_e)));
      if (n >= 0) {
        n++;
        prevValue = value;
        value = S * exp(-r_for * tau_e) * sum1 - X * exp(-r_dom * tau_e) * sum2;
        diff = fabs(value - prevValue);
      }
      n *= -1;
    } while (fabs(n) < max && diff > 0.0000005);
  } else {
    do {
      double d1 = (log(S * pow(H, (2.0 * n)) / (E * pow(L, (2.0 * n)))) +
                   (b + (sigma * sigma) / 2.0) * tau_e) /
                  (sigma * sqrt(tau_e));
      double d2 = (log(S * pow(H, (2.0 * n)) / (X * pow(L, (2.0 * n)))) +
                   (b + (sigma * sigma) / 2.0) * tau_e) /
                  (sigma * sqrt(tau_e));
      double d3 = (log(pow(L, (2.0 * n + 2.0)) / (E * S * pow(H, (2.0 * n)))) +
                   (b + (sigma * sigma) / 2.0) * tau_e) /
                  (sigma * sqrt(tau_e));
      double d4 = (log(pow(L, (2.0 * n + 2.0)) / (X * S * pow(H, (2.0 * n)))) +
                   (b + (sigma * sigma) / 2.0) * tau_e) /
                  (sigma * sqrt(tau_e));
      double mu1 =
          2.0 * (b - delta2 - n * (delta1 - delta2)) / (sigma * sigma) + 1;
      double mu2 = 2.0 * n * (delta1 - delta2) / (sigma * sigma);
      double mu3 =
          2.0 * (b - delta2 + n * (delta1 - delta2)) / (sigma * sigma) + 1;
      sum1 =
          sum1 +
          pow((pow(H, n) / pow(L, n)), mu1) * pow((L / S), mu2) *
              (rq_pricing_cumul_norm_dist(d1) -
               rq_pricing_cumul_norm_dist(d2)) -
          pow((pow(L, (n + 1)) / (pow(H, n) * S)), mu3) *
              (rq_pricing_cumul_norm_dist(d3) - rq_pricing_cumul_norm_dist(d4));
      sum2 = sum2 +
             pow((pow(H, n) / pow(L, n)), (mu1 - 2.0)) * pow((L / S), mu2) *
                 (rq_pricing_cumul_norm_dist(d1 - sigma * sqrt(tau_e)) -
                  rq_pricing_cumul_norm_dist(d2 - sigma * sqrt(tau_e))) -
             pow((pow(L, (n + 1)) / (pow(H, n) * S)), (mu3 - 2.0)) *
                 (rq_pricing_cumul_norm_dist(d3 - sigma * sqrt(tau_e)) -
                  rq_pricing_cumul_norm_dist(d4 - sigma * sqrt(tau_e)));
      if (n >= 0) {
        n++;
        prevValue = value;
        value = X * exp(-r_dom * tau_e) * sum2 - S * exp(-r_for * tau_e) * sum1;
        diff = fabs(value - prevValue);
      }
      n *= -1;
    } while (fabs(n) < max && diff > 0.0000005);
  }
  if (!in)
    ret = value;
  else
    ret =
        rq_pricing_blackscholes(call, S, X, r_dom, r_for, sigma, tau_e, tau_d) -
        value;
  return ret;
}


x86 assembly (clang, -O0):
<rq_pricing_double_barrier>:
push   %rbp
mov    %rsp,%rbp
sub    $0x450,%rsp
mov    %si,%ax
mov    %di,%cx
movsd  0x10(%rbp),%xmm8
mov    %cx,-0x2(%rbp)
mov    %ax,-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  %xmm6,-0x40(%rbp)
movsd  %xmm7,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x30(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x148(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x140(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movl   $0x0,-0x94(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movl   $0x6,-0xa4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movl   $0x0,-0x94(%rbp)
cmpw   $0x0,-0x4(%rbp)
je     1d9a <rq_pricing_double_barrier+0xc3a>
jmp    12b1 <rq_pricing_double_barrier+0x151>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x2a8(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm2
ff
movsd  0x1d2d(%rip),%xmm1
mulsd  %xmm2,%xmm1
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x2a8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x298(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x2a0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm2
ff
movsd  0x1ceb(%rip),%xmm1
mulsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  -0x2a0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x298(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1060 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  -0x40(%rbp),%xmm2
movsd  0x1ca8(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x288(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x290(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x290(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x288(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x280(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm2
ff
movsd  0x1c2f(%rip),%xmm1
mulsd  %xmm2,%xmm1
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x280(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x270(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x278(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm2
ff
movsd  0x1bed(%rip),%xmm1
mulsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  -0x278(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x270(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1060 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  -0x40(%rbp),%xmm2
movsd  0x1baa(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x260(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x268(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x268(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x260(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
addsd  %xmm1,%xmm1
movsd  0x1b3a(%rip),%xmm2
addsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x250(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x258(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm2
ff
movsd  0x1b02(%rip),%xmm1
mulsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  -0x258(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x250(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1060 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  -0x40(%rbp),%xmm2
movsd  0x1abf(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x240(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x248(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x248(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x240(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
addsd  %xmm1,%xmm1
movsd  0x1a4f(%rip),%xmm2
addsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x230(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x238(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm2
ff
movsd  0x1a17(%rip),%xmm1
mulsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  -0x238(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x230(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1060 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  -0x40(%rbp),%xmm2
movsd  0x19d4(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x220(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x228(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x228(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x220(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
movsd  -0x50(%rbp),%xmm2
subsd  -0x58(%rbp),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0x193a(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  0x1928(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
cvtsi2sdl -0x94(%rbp),%xmm1
ff
movsd  0x1904(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x50(%rbp),%xmm1
subsd  -0x58(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
movsd  -0x50(%rbp),%xmm2
subsd  -0x58(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0x18b0(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  0x189e(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x200(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
call   1070 <pow@plt>
movsd  %xmm0,-0x218(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x218(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  -0xd0(%rbp),%xmm1
ff
call   1070 <pow@plt>
movsd  %xmm0,-0x210(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  -0xd8(%rbp),%xmm1
ff
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x210(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x208(%rbp)
movsd  -0xb0(%rbp),%xmm0
ff
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,-0x1f4(%rbp)
movsd  -0xb8(%rbp),%xmm0
ff
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  -0x208(%rbp),%xmm0
ff
movsd  -0x200(%rbp),%xmm1
ff
mov    %eax,%ecx
mov    -0x1f4(%rbp),%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x1e0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
mov    -0x94(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x1f0(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x1f0(%rbp),%xmm0
ff
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  -0xe0(%rbp),%xmm1
ff
call   1070 <pow@plt>
movsd  %xmm0,-0x1e8(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,-0x1d4(%rbp)
movsd  -0xc8(%rbp),%xmm0
ff
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  -0x1e8(%rbp),%xmm0
ff
movsd  -0x1e0(%rbp),%xmm1
ff
mov    %eax,%ecx
mov    -0x1d4(%rbp),%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x198(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
call   1070 <pow@plt>
movsd  %xmm0,-0x1d0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x1d0(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  -0xd0(%rbp),%xmm1
ff
movsd  0x1695(%rip),%xmm2
subsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x1c8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  -0xd8(%rbp),%xmm1
ff
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x1c8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1a0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x1c0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x1b8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x1c0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x1b8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,-0x18c(%rbp)
movsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1b0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x1b0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x1a8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  -0x1a0(%rbp),%xmm0
ff
movsd  -0x198(%rbp),%xmm1
ff
mov    %eax,%ecx
mov    -0x18c(%rbp),%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x158(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
mov    -0x94(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x188(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x188(%rbp),%xmm0
ff
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  -0xe0(%rbp),%xmm1
ff
movsd  0x150d(%rip),%xmm2
subsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x160(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0x180(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x178(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x180(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x178(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,-0x14c(%rbp)
movsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0x170(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x168(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x170(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x168(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  -0x160(%rbp),%xmm0
ff
movsd  -0x158(%rbp),%xmm1
ff
mov    %eax,%ecx
mov    -0x14c(%rbp),%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
cmpl   $0x0,-0x94(%rbp)
jl     1d30 <rq_pricing_double_barrier+0xbd0>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x2c8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x48(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x2c8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x2b0(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x2b8(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x2c0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x48(%rbp),%xmm0
call   1040 <exp@plt>
movsd  -0x2c0(%rbp),%xmm1
ff
movsd  -0x2b8(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0x2b0(%rbp),%xmm0
ff
mulsd  %xmm3,%xmm1
mulsd  -0x80(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
subsd  -0x90(%rbp),%xmm0
ff
movaps 0x12fc(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
imul   $0xffffffff,-0x94(%rbp),%eax
mov    %eax,-0x94(%rbp)
cvtsi2sdl -0x94(%rbp),%xmm1
ff
movaps 0x12d4(%rip),%xmm0
pand   %xmm0,%xmm1
cvtsi2sdl -0xa4(%rbp),%xmm0
ff
xor    %eax,%eax
ucomisd %xmm1,%xmm0
mov    %al,-0x2c9(%rbp)
jbe    1d87 <rq_pricing_double_barrier+0xc27>
movsd  -0xe8(%rbp),%xmm0
ff
movsd  0x1296(%rip),%xmm1
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x2c9(%rbp)
mov    -0x2c9(%rbp),%al
test   $0x1,%al
jne    12b1 <rq_pricing_double_barrier+0x151>
jmp    2888 <rq_pricing_double_barrier+0x1728>
jmp    1d9f <rq_pricing_double_barrier+0xc3f>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x428(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm2
ff
movsd  0x123f(%rip),%xmm1
mulsd  %xmm2,%xmm1
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x428(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x418(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x420(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm2
ff
movsd  0x11fd(%rip),%xmm1
mulsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  -0x420(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x418(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1060 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  -0x40(%rbp),%xmm2
movsd  0x11ba(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x408(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x410(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x410(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x408(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x400(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm2
ff
movsd  0x1141(%rip),%xmm1
mulsd  %xmm2,%xmm1
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x400(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x3f0(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x3f8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm2
ff
movsd  0x10ff(%rip),%xmm1
mulsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  -0x3f8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x3f0(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1060 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  -0x40(%rbp),%xmm2
movsd  0x10bc(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x3e0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x3e8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x3e8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x3e0(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
addsd  %xmm1,%xmm1
movsd  0x104c(%rip),%xmm2
addsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x3d0(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x3d8(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm2
ff
movsd  0x1014(%rip),%xmm1
mulsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  -0x3d8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x3d0(%rbp),%xmm0
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1060 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  -0x40(%rbp),%xmm2
movsd  0xfd1(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x3c0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x3c8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x3c8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x3c0(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
addsd  %xmm1,%xmm1
movsd  0xf61(%rip),%xmm2
addsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x3b0(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x3b8(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm2
ff
movsd  0xf29(%rip),%xmm1
mulsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  -0x3b8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x3b0(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1060 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
mulsd  -0x40(%rbp),%xmm2
movsd  0xee6(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x48(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x3a0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x3a8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x3a8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x3a0(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
movsd  -0x50(%rbp),%xmm2
subsd  -0x58(%rbp),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe4c(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  0xe3a(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
cvtsi2sdl -0x94(%rbp),%xmm1
ff
movsd  0xe16(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x50(%rbp),%xmm1
subsd  -0x58(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
movsd  -0x50(%rbp),%xmm2
subsd  -0x58(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xdc2(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  0xdb0(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x380(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
call   1070 <pow@plt>
movsd  %xmm0,-0x398(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x398(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  -0x128(%rbp),%xmm1
ff
call   1070 <pow@plt>
movsd  %xmm0,-0x390(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  -0x130(%rbp),%xmm1
ff
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x390(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x388(%rbp)
ff
movsd  -0x108(%rbp),%xmm0
ff
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,-0x374(%rbp)
movsd  -0x110(%rbp),%xmm0
ff
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  -0x388(%rbp),%xmm0
ff
movsd  -0x380(%rbp),%xmm1
ff
mov    %eax,%ecx
mov    -0x374(%rbp),%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x360(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
mov    -0x94(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x370(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x370(%rbp),%xmm0
ff
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x138(%rbp),%xmm1
ff
call   1070 <pow@plt>
movsd  %xmm0,-0x368(%rbp)
ff
movsd  -0x118(%rbp),%xmm0
ff
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,-0x354(%rbp)
movsd  -0x120(%rbp),%xmm0
ff
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  -0x368(%rbp),%xmm0
ff
movsd  -0x360(%rbp),%xmm1
ff
mov    %eax,%ecx
mov    -0x354(%rbp),%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x318(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
call   1070 <pow@plt>
movsd  %xmm0,-0x350(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x350(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  -0x128(%rbp),%xmm1
ff
movsd  0xba7(%rip),%xmm2
subsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x348(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  -0x130(%rbp),%xmm1
ff
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x348(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x320(%rbp)
ff
movsd  -0x108(%rbp),%xmm0
ff
movsd  %xmm0,-0x340(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x338(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x340(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x338(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,-0x30c(%rbp)
movsd  -0x110(%rbp),%xmm0
ff
movsd  %xmm0,-0x330(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x328(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x330(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x328(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  -0x320(%rbp),%xmm0
ff
movsd  -0x318(%rbp),%xmm1
ff
mov    %eax,%ecx
mov    -0x30c(%rbp),%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x2d8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
mov    -0x94(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x308(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x94(%rbp),%xmm1
ff
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x308(%rbp),%xmm0
ff
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x138(%rbp),%xmm1
ff
movsd  0xa1f(%rip),%xmm2
subsd  %xmm2,%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x2e0(%rbp)
ff
movsd  -0x118(%rbp),%xmm0
ff
movsd  %xmm0,-0x300(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x2f8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x300(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x2f8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,-0x2d0(%rbp)
movsd  -0x120(%rbp),%xmm0
ff
movsd  %xmm0,-0x2f0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x2e8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1080 <sqrt@plt>
movsd  -0x2f0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x2e8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  -0x2e0(%rbp),%xmm0
ff
movsd  -0x2d8(%rbp),%xmm1
ff
mov    %eax,%ecx
mov    -0x2d0(%rbp),%eax
sub    %ecx,%eax
cvtsi2sd %eax,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
cmpl   $0x0,-0x94(%rbp)
jl     281e <rq_pricing_double_barrier+0x16be>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x448(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x48(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x448(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x430(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x438(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x440(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x48(%rbp),%xmm0
call   1040 <exp@plt>
movsd  -0x440(%rbp),%xmm1
ff
movsd  -0x438(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0x430(%rbp),%xmm0
ff
mulsd  %xmm3,%xmm1
mulsd  -0x78(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
subsd  -0x90(%rbp),%xmm0
ff
movaps 0x80e(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
imul   $0xffffffff,-0x94(%rbp),%eax
mov    %eax,-0x94(%rbp)
cvtsi2sdl -0x94(%rbp),%xmm1
ff
movaps 0x7e6(%rip),%xmm0
pand   %xmm0,%xmm1
cvtsi2sdl -0xa4(%rbp),%xmm0
ff
xor    %eax,%eax
ucomisd %xmm1,%xmm0
mov    %al,-0x449(%rbp)
jbe    2875 <rq_pricing_double_barrier+0x1715>
movsd  -0xe8(%rbp),%xmm0
ff
movsd  0x7a8(%rip),%xmm1
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x449(%rbp)
mov    -0x449(%rbp),%al
test   $0x1,%al
jne    1d9f <rq_pricing_double_barrier+0xc3f>
jmp    2888 <rq_pricing_double_barrier+0x1728>
cmpw   $0x0,-0x2(%rbp)
jne    28a8 <rq_pricing_double_barrier+0x1748>
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
jmp    28ea <rq_pricing_double_barrier+0x178a>
movswl -0x4(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm3
movsd  -0x40(%rbp),%xmm4
movsd  -0x48(%rbp),%xmm5
movsd  0x10(%rbp),%xmm6
mov    $0x7,%al
call   1050 <rq_pricing_blackscholes@plt>
cvtsi2sd %eax,%xmm0
subsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
add    $0x450,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rq_pricing_double_barrier>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1d8,%rsp
movsd  %xmm7,(%rsp)
movaps %xmm6,0x120(%rsp)
movapd %xmm5,0x140(%rsp)
movapd %xmm4,0x130(%rsp)
movsd  %xmm3,0x8(%rsp)
movsd  %xmm2,0x28(%rsp)
movsd  %xmm1,0xb8(%rsp)
movsd  %xmm0,0x50(%rsp)
mov    %esi,%ebx
mov    %edi,%ebp
movapd %xmm4,%xmm0
subsd  %xmm5,%xmm0
movapd %xmm0,0x190(%rsp)
xorpd  %xmm0,%xmm0
mulsd  %xmm0,%xmm7
movsd  %xmm7,0x30(%rsp)
movapd %xmm7,%xmm0
call   1040 <exp@plt>
movsd  %xmm0,0xd0(%rsp)
movsd  0x30(%rsp),%xmm0
call   1040 <exp@plt>
movsd  0xb8(%rsp),%xmm7
movsd  0x50(%rsp),%xmm6
movsd  0x28(%rsp),%xmm4
movapd 0x130(%rsp),%xmm9
movapd 0x140(%rsp),%xmm8
movsd  (%rsp),%xmm5
movapd 0x120(%rsp),%xmm3
movapd %xmm3,%xmm1
mulsd  %xmm3,%xmm1
movsd  0x1dce(%rip),%xmm2
movapd %xmm1,0x1c0(%rsp)
mulsd  %xmm1,%xmm2
addsd  0x190(%rsp),%xmm2
movsd  %xmm2,0x158(%rsp)
movsd  0x8(%rsp),%xmm2
test   %bx,%bx
mov    %ebx,0x118(%rsp)
mov    %ebp,0x11c(%rsp)
je     1a83 <rq_pricing_double_barrier+0x923>
mulsd  %xmm2,%xmm0
movapd %xmm6,%xmm1
mulsd  %xmm7,%xmm1
movsd  %xmm1,0x100(%rsp)
movsd  %xmm0,0xd0(%rsp)
mulsd  %xmm6,%xmm0
movsd  %xmm0,0xf8(%rsp)
movapd %xmm4,%xmm0
divsd  %xmm6,%xmm0
movsd  %xmm0,0xd8(%rsp)
movapd 0x1d8e(%rip),%xmm0
movapd %xmm3,%xmm4
xorpd  %xmm0,%xmm4
movapd %xmm8,%xmm1
xorpd  %xmm0,%xmm1
mulsd  %xmm5,%xmm1
movapd %xmm1,0x160(%rsp)
xorpd  %xmm9,%xmm0
mulsd  %xmm5,%xmm0
movapd %xmm0,0x170(%rsp)
xorpd  %xmm0,%xmm0
movapd %xmm0,0xc0(%rsp)
xor    %r13d,%r13d
xorps  %xmm0,%xmm0
sqrtsd %xmm5,%xmm0
movsd  %xmm0,0x20(%rsp)
xorpd  %xmm6,%xmm6
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x88(%rsp)
movapd %xmm2,%xmm0
movapd %xmm4,0xe0(%rsp)
nopl   (%rax)
movapd %xmm6,0x180(%rsp)
xorps  %xmm1,%xmm1
cvtsi2sd %r13d,%xmm1
movsd  %xmm1,0x60(%rsp)
addsd  %xmm1,%xmm1
movsd  %xmm1,0x30(%rsp)
call   1070 <pow@plt>
mulsd  0x50(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0xb8(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1060 <log@plt>
movsd  %xmm0,0x18(%rsp)
xorpd  %xmm0,%xmm0
movsd  (%rsp),%xmm1
ucomisd %xmm0,%xmm1
movsd  0x20(%rsp),%xmm0
jae    13a4 <rq_pricing_double_barrier+0x244>
movsd  (%rsp),%xmm0
call   1080 <sqrt@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0x50(%rsp),%xmm0
movsd  %xmm0,0x48(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0xd0(%rsp),%xmm0
movsd  0x48(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1060 <log@plt>
movsd  %xmm0,0x48(%rsp)
movsd  (%rsp),%xmm0
ucomisd 0x1c29(%rip),%xmm0
movsd  0x20(%rsp),%xmm0
jae    1419 <rq_pricing_double_barrier+0x2b9>
movsd  (%rsp),%xmm0
call   1080 <sqrt@plt>
movsd  %xmm0,0xa0(%rsp)
movsd  0x30(%rsp),%xmm1
addsd  0x1bd8(%rip),%xmm1
movsd  0x28(%rsp),%xmm0
movsd  %xmm1,0x58(%rsp)
call   1070 <pow@plt>
movsd  %xmm0,0x40(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0x100(%rsp),%xmm0
movsd  0x40(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1060 <log@plt>
movapd %xmm0,%xmm1
movsd  (%rsp),%xmm2
ucomisd 0x1bab(%rip),%xmm2
movsd  0x20(%rsp),%xmm0
jae    14a7 <rq_pricing_double_barrier+0x347>
movapd %xmm2,%xmm0
movsd  %xmm1,0x40(%rsp)
call   1080 <sqrt@plt>
movsd  0x40(%rsp),%xmm1
movsd  (%rsp),%xmm2
movsd  0x158(%rsp),%xmm6
mulsd  %xmm2,%xmm6
movsd  %xmm6,0x70(%rsp)
movsd  0x18(%rsp),%xmm3
addsd  %xmm6,%xmm3
movapd 0x120(%rsp),%xmm5
movsd  0x10(%rsp),%xmm4
mulsd  %xmm5,%xmm4
divsd  %xmm4,%xmm3
movsd  %xmm3,0x18(%rsp)
movsd  0x48(%rsp),%xmm3
addsd  %xmm6,%xmm3
movsd  0xa0(%rsp),%xmm4
mulsd  %xmm5,%xmm4
divsd  %xmm4,%xmm3
movsd  %xmm3,0x48(%rsp)
addsd  %xmm6,%xmm1
mulsd  %xmm5,%xmm0
divsd  %xmm0,%xmm1
movsd  %xmm1,0x40(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x58(%rsp),%xmm1
call   1070 <pow@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0xf8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1060 <log@plt>
movapd %xmm0,%xmm1
addsd  0x70(%rsp),%xmm1
movsd  (%rsp),%xmm0
ucomisd 0x1ac1(%rip),%xmm0
movsd  0x20(%rsp),%xmm0
xorpd  %xmm3,%xmm3
jae    1595 <rq_pricing_double_barrier+0x435>
movsd  (%rsp),%xmm0
movsd  %xmm1,0x10(%rsp)
call   1080 <sqrt@plt>
movsd  0x10(%rsp),%xmm1
xorpd  %xmm3,%xmm3
mulsd  0x120(%rsp),%xmm0
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x60(%rsp),%xmm0
movapd %xmm0,%xmm6
movapd %xmm0,%xmm1
mulsd  %xmm3,%xmm6
movapd 0x190(%rsp),%xmm0
movapd %xmm0,%xmm4
subsd  %xmm6,%xmm4
addsd  %xmm4,%xmm4
xorpd  %xmm3,%xmm3
movapd 0x1c0(%rsp),%xmm5
divsd  %xmm5,%xmm4
movsd  0x1a28(%rip),%xmm2
addsd  %xmm2,%xmm4
movapd %xmm4,0xa0(%rsp)
movsd  0x30(%rsp),%xmm4
mulsd  %xmm3,%xmm4
divsd  %xmm5,%xmm4
movsd  %xmm4,0x30(%rsp)
addsd  %xmm0,%xmm6
addsd  %xmm6,%xmm6
divsd  %xmm5,%xmm6
addsd  %xmm2,%xmm6
movsd  %xmm6,0x58(%rsp)
movsd  0x8(%rsp),%xmm0
call   1070 <pow@plt>
movsd  %xmm0,0x70(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x60(%rsp),%xmm1
call   1070 <pow@plt>
movsd  0x70(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
movaps 0xa0(%rsp),%xmm1
call   1070 <pow@plt>
movapd %xmm0,0x1b0(%rsp)
movsd  0xd8(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
movaps %xmm0,0x1a0(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,0x9c(%rsp)
movsd  0x48(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,0x98(%rsp)
lea    0x1(%r13),%ebp
xorps  %xmm1,%xmm1
cvtsi2sd %ebp,%xmm1
movsd  0x28(%rsp),%xmm0
movsd  %xmm1,0x110(%rsp)
call   1070 <pow@plt>
movsd  %xmm0,0x70(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x60(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0x50(%rsp),%xmm0
movsd  0x70(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
movsd  0x58(%rsp),%xmm1
call   1070 <pow@plt>
movapd %xmm0,0x70(%rsp)
movsd  0x40(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,0x94(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,%ebx
movsd  0x8(%rsp),%xmm0
movsd  0x60(%rsp),%xmm1
call   1070 <pow@plt>
movsd  %xmm0,0x108(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x60(%rsp),%xmm1
call   1070 <pow@plt>
movsd  0x108(%rsp),%xmm2
divsd  %xmm0,%xmm2
movapd 0xa0(%rsp),%xmm1
addsd  0x18a8(%rip),%xmm1
movapd %xmm2,%xmm0
call   1070 <pow@plt>
movapd %xmm0,0xa0(%rsp)
movsd  0xd8(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
movaps %xmm0,0x30(%rsp)
movsd  (%rsp),%xmm0
ucomisd 0x1888(%rip),%xmm0
movsd  0x20(%rsp),%xmm0
jae    17ba <rq_pricing_double_barrier+0x65a>
movsd  (%rsp),%xmm0
call   1080 <sqrt@plt>
mulsd  0xe0(%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,%r14d
movsd  (%rsp),%xmm0
ucomisd 0x1850(%rip),%xmm0
movsd  0x20(%rsp),%xmm0
jae    17f2 <rq_pricing_double_barrier+0x692>
movsd  (%rsp),%xmm0
call   1080 <sqrt@plt>
mulsd  0xe0(%rsp),%xmm0
addsd  0x48(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,%r15d
movsd  0x28(%rsp),%xmm0
movsd  0x110(%rsp),%xmm1
call   1070 <pow@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x60(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0x50(%rsp),%xmm0
movsd  0x18(%rsp),%xmm2
divsd  %xmm0,%xmm2
movsd  0x58(%rsp),%xmm1
addsd  0x17c4(%rip),%xmm1
movapd %xmm2,%xmm0
call   1070 <pow@plt>
movapd %xmm0,0x60(%rsp)
movsd  (%rsp),%xmm0
ucomisd 0x17c0(%rip),%xmm0
movsd  0x20(%rsp),%xmm0
jae    1882 <rq_pricing_double_barrier+0x722>
movsd  (%rsp),%xmm0
call   1080 <sqrt@plt>
mulsd  0xe0(%rsp),%xmm0
addsd  0x40(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,%r12d
movsd  (%rsp),%xmm0
ucomisd 0x1788(%rip),%xmm0
movsd  0x20(%rsp),%xmm0
jae    18ba <rq_pricing_double_barrier+0x75a>
movsd  (%rsp),%xmm0
call   1080 <sqrt@plt>
movapd 0xa0(%rsp),%xmm1
unpcklpd 0x1b0(%rsp),%xmm1
movapd 0x30(%rsp),%xmm4
unpcklpd 0x1a0(%rsp),%xmm4
mulpd  %xmm1,%xmm4
movd   0x9c(%rsp),%xmm1
movd   %r14d,%xmm2
punpckldq %xmm1,%xmm2
movd   %r15d,%xmm1
movd   0x98(%rsp),%xmm3
punpckldq %xmm3,%xmm1
psubd  %xmm1,%xmm2
cvtdq2pd %xmm2,%xmm1
mulpd  %xmm4,%xmm1
movapd 0xc0(%rsp),%xmm2
addpd  %xmm1,%xmm2
movapd %xmm2,0xc0(%rsp)
mulsd  0xe0(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
movd   0x94(%rsp),%xmm0
movd   %r12d,%xmm1
punpckldq %xmm0,%xmm1
movd   %eax,%xmm0
movd   %ebx,%xmm2
punpckldq %xmm2,%xmm0
psubd  %xmm0,%xmm1
cvtdq2pd %xmm1,%xmm0
movapd 0xc0(%rsp),%xmm1
movapd 0x60(%rsp),%xmm2
unpcklpd 0x70(%rsp),%xmm2
mulpd  %xmm0,%xmm2
subpd  %xmm2,%xmm1
test   %r13d,%r13d
movapd %xmm1,0xc0(%rsp)
js     1a20 <rq_pricing_double_barrier+0x8c0>
movapd 0x160(%rsp),%xmm0
call   1040 <exp@plt>
mulsd  0x50(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movapd 0x170(%rsp),%xmm0
call   1040 <exp@plt>
mulsd  0xb8(%rsp),%xmm0
movapd 0xc0(%rsp),%xmm1
mulsd  %xmm1,%xmm0
unpckhpd %xmm1,%xmm1
mulsd  0x30(%rsp),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm6
subsd  0x88(%rsp),%xmm6
movapd 0x165f(%rip),%xmm5
andpd  %xmm5,%xmm6
movsd  %xmm1,0x88(%rsp)
movapd 0x140(%rsp),%xmm3
movapd 0x130(%rsp),%xmm2
movsd  0x8(%rsp),%xmm0
jmp    1a4c <rq_pricing_double_barrier+0x8ec>
nopl   0x0(%rax,%rax,1)
mov    %r13d,%ebp
movapd 0x140(%rsp),%xmm3
movapd 0x130(%rsp),%xmm2
movsd  0x8(%rsp),%xmm0
movapd 0x160d(%rip),%xmm5
movapd 0x180(%rsp),%xmm6
mov    %ebp,%r13d
neg    %r13d
xorps  %xmm1,%xmm1
cvtsi2sd %r13d,%xmm1
andpd  %xmm5,%xmm1
movsd  0x15ba(%rip),%xmm5
ucomisd %xmm1,%xmm5
jbe    229a <rq_pricing_double_barrier+0x113a>
ucomisd 0x15b0(%rip),%xmm6
ja     1320 <rq_pricing_double_barrier+0x1c0>
jmp    229a <rq_pricing_double_barrier+0x113a>
movsd  0xd0(%rsp),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,0xd0(%rsp)
mulsd  %xmm6,%xmm0
movsd  %xmm0,0x100(%rsp)
movapd %xmm6,%xmm0
mulsd  %xmm7,%xmm0
movsd  %xmm0,0xf8(%rsp)
movapd %xmm4,%xmm0
divsd  %xmm6,%xmm0
movsd  %xmm0,0xd8(%rsp)
movapd 0x1570(%rip),%xmm0
movapd %xmm3,%xmm4
xorpd  %xmm0,%xmm4
movapd %xmm9,%xmm1
xorpd  %xmm0,%xmm1
mulsd  %xmm5,%xmm1
movapd %xmm1,0x160(%rsp)
xorpd  %xmm8,%xmm0
mulsd  %xmm5,%xmm0
movapd %xmm0,0x170(%rsp)
xorpd  %xmm0,%xmm0
movapd %xmm0,0xc0(%rsp)
xor    %r13d,%r13d
xorps  %xmm0,%xmm0
sqrtsd %xmm5,%xmm0
movsd  %xmm0,0x20(%rsp)
xorpd  %xmm6,%xmm6
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x88(%rsp)
movapd %xmm2,%xmm0
movapd %xmm4,0xe0(%rsp)
nopl   0x0(%rax,%rax,1)
movapd %xmm6,0x180(%rsp)
xorps  %xmm1,%xmm1
cvtsi2sd %r13d,%xmm1
movsd  %xmm1,0x60(%rsp)
addsd  %xmm1,%xmm1
movsd  %xmm1,0x30(%rsp)
call   1070 <pow@plt>
mulsd  0x50(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0xd0(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1060 <log@plt>
movsd  %xmm0,0x18(%rsp)
xorpd  %xmm0,%xmm0
movsd  (%rsp),%xmm1
ucomisd %xmm0,%xmm1
movsd  0x20(%rsp),%xmm0
jae    1bc4 <rq_pricing_double_barrier+0xa64>
movsd  (%rsp),%xmm0
call   1080 <sqrt@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0x50(%rsp),%xmm0
movsd  %xmm0,0x48(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0xb8(%rsp),%xmm0
movsd  0x48(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1060 <log@plt>
movsd  %xmm0,0x48(%rsp)
movsd  (%rsp),%xmm0
ucomisd 0x1409(%rip),%xmm0
movsd  0x20(%rsp),%xmm0
jae    1c39 <rq_pricing_double_barrier+0xad9>
movsd  (%rsp),%xmm0
call   1080 <sqrt@plt>
movsd  %xmm0,0xa0(%rsp)
movsd  0x30(%rsp),%xmm1
addsd  0x13b8(%rip),%xmm1
movsd  0x28(%rsp),%xmm0
movsd  %xmm1,0x58(%rsp)
call   1070 <pow@plt>
movsd  %xmm0,0x40(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0x100(%rsp),%xmm0
movsd  0x40(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1060 <log@plt>
movapd %xmm0,%xmm1
movsd  (%rsp),%xmm2
ucomisd 0x138b(%rip),%xmm2
movsd  0x20(%rsp),%xmm0
jae    1cc7 <rq_pricing_double_barrier+0xb67>
movapd %xmm2,%xmm0
movsd  %xmm1,0x40(%rsp)
call   1080 <sqrt@plt>
movsd  0x40(%rsp),%xmm1
movsd  (%rsp),%xmm2
movsd  0x158(%rsp),%xmm6
mulsd  %xmm2,%xmm6
movsd  %xmm6,0x70(%rsp)
movsd  0x18(%rsp),%xmm3
addsd  %xmm6,%xmm3
movapd 0x120(%rsp),%xmm5
movsd  0x10(%rsp),%xmm4
mulsd  %xmm5,%xmm4
divsd  %xmm4,%xmm3
movsd  %xmm3,0x18(%rsp)
movsd  0x48(%rsp),%xmm3
addsd  %xmm6,%xmm3
movsd  0xa0(%rsp),%xmm4
mulsd  %xmm5,%xmm4
divsd  %xmm4,%xmm3
movsd  %xmm3,0x48(%rsp)
addsd  %xmm6,%xmm1
mulsd  %xmm5,%xmm0
divsd  %xmm0,%xmm1
movsd  %xmm1,0x40(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x58(%rsp),%xmm1
call   1070 <pow@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0xf8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1060 <log@plt>
movapd %xmm0,%xmm1
addsd  0x70(%rsp),%xmm1
movsd  (%rsp),%xmm0
ucomisd 0x12a1(%rip),%xmm0
movsd  0x20(%rsp),%xmm0
xorpd  %xmm3,%xmm3
jae    1db5 <rq_pricing_double_barrier+0xc55>
movsd  (%rsp),%xmm0
movsd  %xmm1,0x10(%rsp)
call   1080 <sqrt@plt>
movsd  0x10(%rsp),%xmm1
xorpd  %xmm3,%xmm3
mulsd  0x120(%rsp),%xmm0
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x60(%rsp),%xmm0
movapd %xmm0,%xmm6
movapd %xmm0,%xmm1
mulsd  %xmm3,%xmm6
movapd 0x190(%rsp),%xmm0
movapd %xmm0,%xmm4
subsd  %xmm6,%xmm4
addsd  %xmm4,%xmm4
xorpd  %xmm3,%xmm3
movapd 0x1c0(%rsp),%xmm5
divsd  %xmm5,%xmm4
movsd  0x1208(%rip),%xmm2
addsd  %xmm2,%xmm4
movapd %xmm4,0xa0(%rsp)
movsd  0x30(%rsp),%xmm4
mulsd  %xmm3,%xmm4
divsd  %xmm5,%xmm4
movsd  %xmm4,0x30(%rsp)
addsd  %xmm0,%xmm6
addsd  %xmm6,%xmm6
divsd  %xmm5,%xmm6
addsd  %xmm2,%xmm6
movsd  %xmm6,0x58(%rsp)
movsd  0x8(%rsp),%xmm0
call   1070 <pow@plt>
movsd  %xmm0,0x70(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x60(%rsp),%xmm1
call   1070 <pow@plt>
movsd  0x70(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
movaps 0xa0(%rsp),%xmm1
call   1070 <pow@plt>
movapd %xmm0,0x1b0(%rsp)
movsd  0xd8(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
movaps %xmm0,0x1a0(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,0x9c(%rsp)
movsd  0x48(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,0x98(%rsp)
lea    0x1(%r13),%r14d
xorps  %xmm1,%xmm1
cvtsi2sd %r14d,%xmm1
movsd  0x28(%rsp),%xmm0
movsd  %xmm1,0x110(%rsp)
call   1070 <pow@plt>
movsd  %xmm0,0x70(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x60(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0x50(%rsp),%xmm0
movsd  0x70(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
movsd  0x58(%rsp),%xmm1
call   1070 <pow@plt>
movapd %xmm0,0x70(%rsp)
movsd  0x40(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,0x94(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,%r15d
movsd  0x8(%rsp),%xmm0
movsd  0x60(%rsp),%xmm1
call   1070 <pow@plt>
movsd  %xmm0,0x108(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x60(%rsp),%xmm1
call   1070 <pow@plt>
movsd  0x108(%rsp),%xmm2
divsd  %xmm0,%xmm2
movapd 0xa0(%rsp),%xmm1
addsd  0x1086(%rip),%xmm1
movapd %xmm2,%xmm0
call   1070 <pow@plt>
movapd %xmm0,0xa0(%rsp)
movsd  0xd8(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
call   1070 <pow@plt>
movaps %xmm0,0x30(%rsp)
movsd  (%rsp),%xmm0
ucomisd 0x1066(%rip),%xmm0
movsd  0x20(%rsp),%xmm0
jae    1fdc <rq_pricing_double_barrier+0xe7c>
movsd  (%rsp),%xmm0
call   1080 <sqrt@plt>
mulsd  0xe0(%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,%ebp
movsd  (%rsp),%xmm0
ucomisd 0x102f(%rip),%xmm0
movsd  0x20(%rsp),%xmm0
jae    2013 <rq_pricing_double_barrier+0xeb3>
movsd  (%rsp),%xmm0
call   1080 <sqrt@plt>
mulsd  0xe0(%rsp),%xmm0
addsd  0x48(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,%ebx
movsd  0x28(%rsp),%xmm0
movsd  0x110(%rsp),%xmm1
call   1070 <pow@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x60(%rsp),%xmm1
call   1070 <pow@plt>
mulsd  0x50(%rsp),%xmm0
movsd  0x18(%rsp),%xmm2
divsd  %xmm0,%xmm2
movsd  0x58(%rsp),%xmm1
addsd  0xfa4(%rip),%xmm1
movapd %xmm2,%xmm0
call   1070 <pow@plt>
movapd %xmm0,0x60(%rsp)
movsd  (%rsp),%xmm0
ucomisd 0xfa0(%rip),%xmm0
movsd  0x20(%rsp),%xmm0
jae    20a2 <rq_pricing_double_barrier+0xf42>
movsd  (%rsp),%xmm0
call   1080 <sqrt@plt>
mulsd  0xe0(%rsp),%xmm0
addsd  0x40(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
mov    %eax,%r12d
movsd  (%rsp),%xmm0
ucomisd 0xf68(%rip),%xmm0
movsd  0x20(%rsp),%xmm0
jae    20da <rq_pricing_double_barrier+0xf7a>
movsd  (%rsp),%xmm0
call   1080 <sqrt@plt>
movapd 0xa0(%rsp),%xmm1
unpcklpd 0x1b0(%rsp),%xmm1
movapd 0x30(%rsp),%xmm4
unpcklpd 0x1a0(%rsp),%xmm4
mulpd  %xmm1,%xmm4
movd   0x9c(%rsp),%xmm1
movd   %ebp,%xmm2
punpckldq %xmm1,%xmm2
movd   %ebx,%xmm1
movd   0x98(%rsp),%xmm3
punpckldq %xmm3,%xmm1
psubd  %xmm1,%xmm2
cvtdq2pd %xmm2,%xmm1
mulpd  %xmm4,%xmm1
movapd 0xc0(%rsp),%xmm2
addpd  %xmm1,%xmm2
movapd %xmm2,0xc0(%rsp)
mulsd  0xe0(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1030 <rq_pricing_cumul_norm_dist@plt>
movd   0x94(%rsp),%xmm0
movd   %r12d,%xmm1
punpckldq %xmm0,%xmm1
movd   %eax,%xmm0
movd   %r15d,%xmm2
punpckldq %xmm2,%xmm0
psubd  %xmm0,%xmm1
cvtdq2pd %xmm1,%xmm0
movapd 0xc0(%rsp),%xmm1
movapd 0x60(%rsp),%xmm2
unpcklpd 0x70(%rsp),%xmm2
mulpd  %xmm0,%xmm2
subpd  %xmm2,%xmm1
test   %r13d,%r13d
movapd %xmm1,0xc0(%rsp)
js     2240 <rq_pricing_double_barrier+0x10e0>
movapd 0x160(%rsp),%xmm0
call   1040 <exp@plt>
mulsd  0xb8(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movapd 0x170(%rsp),%xmm0
call   1040 <exp@plt>
mulsd  0x50(%rsp),%xmm0
movapd 0xc0(%rsp),%xmm2
movapd %xmm2,%xmm1
unpckhpd %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movsd  0x30(%rsp),%xmm0
mulsd  %xmm2,%xmm0
subsd  %xmm1,%xmm0
movapd %xmm0,%xmm6
subsd  0x88(%rsp),%xmm6
movapd 0xe38(%rip),%xmm5
andpd  %xmm5,%xmm6
movsd  %xmm0,0x88(%rsp)
movapd 0x140(%rsp),%xmm3
movapd 0x130(%rsp),%xmm2
movsd  0x8(%rsp),%xmm0
jmp    226c <rq_pricing_double_barrier+0x110c>
nop
mov    %r13d,%r14d
movapd 0x140(%rsp),%xmm3
movapd 0x130(%rsp),%xmm2
movsd  0x8(%rsp),%xmm0
movapd 0xded(%rip),%xmm5
movapd 0x180(%rsp),%xmm6
mov    %r14d,%r13d
neg    %r13d
xorps  %xmm1,%xmm1
cvtsi2sd %r13d,%xmm1
andpd  %xmm5,%xmm1
movsd  0xd9a(%rip),%xmm5
ucomisd %xmm1,%xmm5
jbe    229a <rq_pricing_double_barrier+0x113a>
ucomisd 0xd94(%rip),%xmm6
ja     1b40 <rq_pricing_double_barrier+0x9e0>
cmpw   $0x0,0x11c(%rsp)
je     22ec <rq_pricing_double_barrier+0x118c>
movsd  0x210(%rsp),%xmm6
movswl 0x118(%rsp),%edi
movsd  0x50(%rsp),%xmm0
movsd  0xb8(%rsp),%xmm1
movapd 0x120(%rsp),%xmm4
movsd  (%rsp),%xmm5
mov    $0x7,%al
call   1050 <rq_pricing_blackscholes@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
subsd  0x88(%rsp),%xmm0
jmp    22f5 <rq_pricing_double_barrier+0x1195>
movsd  0x88(%rsp),%xmm0
add    $0x1d8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define double @rq_pricing_double_barrier(i16 signext %0, i16 signext %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10) {
%12 = alloca i16
%13 = alloca i16
%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
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca i32
%33 = alloca double
%34 = alloca i32
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca double
%39 = alloca double
%40 = alloca double
%41 = alloca double
%42 = alloca double
%43 = alloca double
%44 = alloca double
%45 = alloca double
%46 = alloca double
%47 = alloca double
%48 = alloca double
%49 = alloca double
%50 = alloca double
%51 = alloca double
%52 = alloca double
store i16 %0, i16* %12
store i16 %1, i16* %13
store double %2, double* %14
store double %3, double* %15
store double %4, double* %16
store double %5, double* %17
store double %6, double* %18
store double %7, double* %19
store double %8, double* %20
store double %9, double* %21
store double %10, double* %22
store double 0.000000e+00, double* %23
store double 0.000000e+00, double* %24
%53 = load double, double* %18
%54 = load double, double* %19
%55 = fsub double %53, %54
store double %55, double* %25
%56 = load double, double* %16
%57 = load double, double* %23
%58 = load double, double* %21
%59 = fmul double %57, %58
%60 = call double @exp(double %59)
%61 = fmul double %56, %60
store double %61, double* %26
%62 = load double, double* %17
%63 = load double, double* %23
%64 = load double, double* %21
%65 = fmul double %63, %64
%66 = call double @exp(double %65)
%67 = fmul double %62, %66
store double %67, double* %27
store double 0.000000e+00, double* %28
store double 0.000000e+00, double* %29
store double 0.000000e+00, double* %30
store double 0.000000e+00, double* %31
store i32 0, i32* %32
store double 0.000000e+00, double* %33
store i32 6, i32* %34
store double 0.000000e+00, double* %42
store double 0.000000e+00, double* %43
store double 0.000000e+00, double* %44
store double 0.000000e+00, double* %45
store i32 0, i32* %32
%68 = load i16, i16* %13
%69 = icmp ne i16 %68, 0
br i1 %69, label %70, label %391
70: ; preds = %11
br label %71
71: ; preds = %388, %70
%72 = load double, double* %14
%73 = load double, double* %17
%74 = load i32, i32* %32
%75 = sitofp i32 %74 to double
%76 = fmul double 2.000000e+00, %75
%77 = call double @pow(double %73, double %76)
%78 = fmul double %72, %77
%79 = load double, double* %15
%80 = load double, double* %16
%81 = load i32, i32* %32
%82 = sitofp i32 %81 to double
%83 = fmul double 2.000000e+00, %82
%84 = call double @pow(double %80, double %83)
%85 = fmul double %79, %84
%86 = fdiv double %78, %85
%87 = call double @log(double %86)
%88 = load double, double* %25
%89 = load double, double* %20
%90 = load double, double* %20
%91 = fmul double %89, %90
%92 = fdiv double %91, 2.000000e+00
%93 = fadd double %88, %92
%94 = load double, double* %21
%95 = call double @llvm.fmuladd.f64(double %93, double %94, double %87)
%96 = load double, double* %20
%97 = load double, double* %21
%98 = call double @sqrt(double %97)
%99 = fmul double %96, %98
%100 = fdiv double %95, %99
store double %100, double* %35
%101 = load double, double* %14
%102 = load double, double* %17
%103 = load i32, i32* %32
%104 = sitofp i32 %103 to double
%105 = fmul double 2.000000e+00, %104
%106 = call double @pow(double %102, double %105)
%107 = fmul double %101, %106
%108 = load double, double* %27
%109 = load double, double* %16
%110 = load i32, i32* %32
%111 = sitofp i32 %110 to double
%112 = fmul double 2.000000e+00, %111
%113 = call double @pow(double %109, double %112)
%114 = fmul double %108, %113
%115 = fdiv double %107, %114
%116 = call double @log(double %115)
%117 = load double, double* %25
%118 = load double, double* %20
%119 = load double, double* %20
%120 = fmul double %118, %119
%121 = fdiv double %120, 2.000000e+00
%122 = fadd double %117, %121
%123 = load double, double* %21
%124 = call double @llvm.fmuladd.f64(double %122, double %123, double %116)
%125 = load double, double* %20
%126 = load double, double* %21
%127 = call double @sqrt(double %126)
%128 = fmul double %125, %127
%129 = fdiv double %124, %128
store double %129, double* %36
%130 = load double, double* %16
%131 = load i32, i32* %32
%132 = sitofp i32 %131 to double
%133 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %132, double 2.000000e+00)
%134 = call double @pow(double %130, double %133)
%135 = load double, double* %15
%136 = load double, double* %14
%137 = fmul double %135, %136
%138 = load double, double* %17
%139 = load i32, i32* %32
%140 = sitofp i32 %139 to double
%141 = fmul double 2.000000e+00, %140
%142 = call double @pow(double %138, double %141)
%143 = fmul double %137, %142
%144 = fdiv double %134, %143
%145 = call double @log(double %144)
%146 = load double, double* %25
%147 = load double, double* %20
%148 = load double, double* %20
%149 = fmul double %147, %148
%150 = fdiv double %149, 2.000000e+00
%151 = fadd double %146, %150
%152 = load double, double* %21
%153 = call double @llvm.fmuladd.f64(double %151, double %152, double %145)
%154 = load double, double* %20
%155 = load double, double* %21
%156 = call double @sqrt(double %155)
%157 = fmul double %154, %156
%158 = fdiv double %153, %157
store double %158, double* %37
%159 = load double, double* %16
%160 = load i32, i32* %32
%161 = sitofp i32 %160 to double
%162 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %161, double 2.000000e+00)
%163 = call double @pow(double %159, double %162)
%164 = load double, double* %27
%165 = load double, double* %14
%166 = fmul double %164, %165
%167 = load double, double* %17
%168 = load i32, i32* %32
%169 = sitofp i32 %168 to double
%170 = fmul double 2.000000e+00, %169
%171 = call double @pow(double %167, double %170)
%172 = fmul double %166, %171
%173 = fdiv double %163, %172
%174 = call double @log(double %173)
%175 = load double, double* %25
%176 = load double, double* %20
%177 = load double, double* %20
%178 = fmul double %176, %177
%179 = fdiv double %178, 2.000000e+00
%180 = fadd double %175, %179
%181 = load double, double* %21
%182 = call double @llvm.fmuladd.f64(double %180, double %181, double %174)
%183 = load double, double* %20
%184 = load double, double* %21
%185 = call double @sqrt(double %184)
%186 = fmul double %183, %185
%187 = fdiv double %182, %186
store double %187, double* %38
%188 = load double, double* %25
%189 = load double, double* %24
%190 = fsub double %188, %189
%191 = load i32, i32* %32
%192 = sitofp i32 %191 to double
%193 = load double, double* %23
%194 = load double, double* %24
%195 = fsub double %193, %194
%196 = fneg double %192
%197 = call double @llvm.fmuladd.f64(double %196, double %195, double %190)
%198 = fmul double 2.000000e+00, %197
%199 = load double, double* %20
%200 = load double, double* %20
%201 = fmul double %199, %200
%202 = fdiv double %198, %201
%203 = fadd double %202, 1.000000e+00
store double %203, double* %39
%204 = load i32, i32* %32
%205 = sitofp i32 %204 to double
%206 = fmul double 2.000000e+00, %205
%207 = load double, double* %23
%208 = load double, double* %24
%209 = fsub double %207, %208
%210 = fmul double %206, %209
%211 = load double, double* %20
%212 = load double, double* %20
%213 = fmul double %211, %212
%214 = fdiv double %210, %213
store double %214, double* %40
%215 = load double, double* %25
%216 = load double, double* %24
%217 = fsub double %215, %216
%218 = load i32, i32* %32
%219 = sitofp i32 %218 to double
%220 = load double, double* %23
%221 = load double, double* %24
%222 = fsub double %220, %221
%223 = call double @llvm.fmuladd.f64(double %219, double %222, double %217)
%224 = fmul double 2.000000e+00, %223
%225 = load double, double* %20
%226 = load double, double* %20
%227 = fmul double %225, %226
%228 = fdiv double %224, %227
%229 = fadd double %228, 1.000000e+00
store double %229, double* %41
%230 = load double, double* %28
%231 = load double, double* %17
%232 = load i32, i32* %32
%233 = sitofp i32 %232 to double
%234 = call double @pow(double %231, double %233)
%235 = load double, double* %16
%236 = load i32, i32* %32
%237 = sitofp i32 %236 to double
%238 = call double @pow(double %235, double %237)
%239 = fdiv double %234, %238
%240 = load double, double* %39
%241 = call double @pow(double %239, double %240)
%242 = load double, double* %16
%243 = load double, double* %14
%244 = fdiv double %242, %243
%245 = load double, double* %40
%246 = call double @pow(double %244, double %245)
%247 = fmul double %241, %246
%248 = load double, double* %35
%249 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %248)
%250 = load double, double* %36
%251 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %250)
%252 = sub nsw i32 %249, %251
%253 = sitofp i32 %252 to double
%254 = call double @llvm.fmuladd.f64(double %247, double %253, double %230)
%255 = load double, double* %16
%256 = load i32, i32* %32
%257 = add nsw i32 %256, 1
%258 = sitofp i32 %257 to double
%259 = call double @pow(double %255, double %258)
%260 = load double, double* %17
%261 = load i32, i32* %32
%262 = sitofp i32 %261 to double
%263 = call double @pow(double %260, double %262)
%264 = load double, double* %14
%265 = fmul double %263, %264
%266 = fdiv double %259, %265
%267 = load double, double* %41
%268 = call double @pow(double %266, double %267)
%269 = load double, double* %37
%270 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %269)
%271 = load double, double* %38
%272 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %271)
%273 = sub nsw i32 %270, %272
%274 = sitofp i32 %273 to double
%275 = fneg double %268
%276 = call double @llvm.fmuladd.f64(double %275, double %274, double %254)
store double %276, double* %28
%277 = load double, double* %29
%278 = load double, double* %17
%279 = load i32, i32* %32
%280 = sitofp i32 %279 to double
%281 = call double @pow(double %278, double %280)
%282 = load double, double* %16
%283 = load i32, i32* %32
%284 = sitofp i32 %283 to double
%285 = call double @pow(double %282, double %284)
%286 = fdiv double %281, %285
%287 = load double, double* %39
%288 = fsub double %287, 2.000000e+00
%289 = call double @pow(double %286, double %288)
%290 = load double, double* %16
%291 = load double, double* %14
%292 = fdiv double %290, %291
%293 = load double, double* %40
%294 = call double @pow(double %292, double %293)
%295 = fmul double %289, %294
%296 = load double, double* %35
%297 = load double, double* %20
%298 = load double, double* %21
%299 = call double @sqrt(double %298)
%300 = fneg double %297
%301 = call double @llvm.fmuladd.f64(double %300, double %299, double %296)
%302 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %301)
%303 = load double, double* %36
%304 = load double, double* %20
%305 = load double, double* %21
%306 = call double @sqrt(double %305)
%307 = fneg double %304
%308 = call double @llvm.fmuladd.f64(double %307, double %306, double %303)
%309 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %308)
%310 = sub nsw i32 %302, %309
%311 = sitofp i32 %310 to double
%312 = call double @llvm.fmuladd.f64(double %295, double %311, double %277)
%313 = load double, double* %16
%314 = load i32, i32* %32
%315 = add nsw i32 %314, 1
%316 = sitofp i32 %315 to double
%317 = call double @pow(double %313, double %316)
%318 = load double, double* %17
%319 = load i32, i32* %32
%320 = sitofp i32 %319 to double
%321 = call double @pow(double %318, double %320)
%322 = load double, double* %14
%323 = fmul double %321, %322
%324 = fdiv double %317, %323
%325 = load double, double* %41
%326 = fsub double %325, 2.000000e+00
%327 = call double @pow(double %324, double %326)
%328 = load double, double* %37
%329 = load double, double* %20
%330 = load double, double* %21
%331 = call double @sqrt(double %330)
%332 = fneg double %329
%333 = call double @llvm.fmuladd.f64(double %332, double %331, double %328)
%334 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %333)
%335 = load double, double* %38
%336 = load double, double* %20
%337 = load double, double* %21
%338 = call double @sqrt(double %337)
%339 = fneg double %336
%340 = call double @llvm.fmuladd.f64(double %339, double %338, double %335)
%341 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %340)
%342 = sub nsw i32 %334, %341
%343 = sitofp i32 %342 to double
%344 = fneg double %327
%345 = call double @llvm.fmuladd.f64(double %344, double %343, double %312)
store double %345, double* %29
%346 = load i32, i32* %32
%347 = icmp sge i32 %346, 0
br i1 %347, label %348, label %375
348: ; preds = %71
%349 = load i32, i32* %32
%350 = add nsw i32 %349, 1
store i32 %350, i32* %32
%351 = load double, double* %30
store double %351, double* %31
%352 = load double, double* %14
%353 = load double, double* %19
%354 = fneg double %353
%355 = load double, double* %21
%356 = fmul double %354, %355
%357 = call double @exp(double %356)
%358 = fmul double %352, %357
%359 = load double, double* %28
%360 = load double, double* %15
%361 = load double, double* %18
%362 = fneg double %361
%363 = load double, double* %21
%364 = fmul double %362, %363
%365 = call double @exp(double %364)
%366 = fmul double %360, %365
%367 = load double, double* %29
%368 = fmul double %366, %367
%369 = fneg double %368
%370 = call double @llvm.fmuladd.f64(double %358, double %359, double %369)
store double %370, double* %30
%371 = load double, double* %30
%372 = load double, double* %31
%373 = fsub double %371, %372
%374 = call double @llvm.fabs.f64(double %373)
store double %374, double* %42
br label %375
375: ; preds = %348, %71
%376 = load i32, i32* %32
%377 = mul nsw i32 %376, -1
store i32 %377, i32* %32
br label %378
378: ; preds = %375
%379 = load i32, i32* %32
%380 = sitofp i32 %379 to double
%381 = call double @llvm.fabs.f64(double %380)
%382 = load i32, i32* %34
%383 = sitofp i32 %382 to double
%384 = fcmp olt double %381, %383
br i1 %384, label %385, label %388
385: ; preds = %378
%386 = load double, double* %42
%387 = fcmp ogt double %386, 5.000000e-07
br label %388
388: ; preds = %385, %378
%389 = phi i1 [ false, %378 ], [ %387, %385 ]
br i1 %389, label %71, label %390
390: ; preds = %388
br label %712
391: ; preds = %11
br label %392
392: ; preds = %709, %391
%393 = load double, double* %14
%394 = load double, double* %17
%395 = load i32, i32* %32
%396 = sitofp i32 %395 to double
%397 = fmul double 2.000000e+00, %396
%398 = call double @pow(double %394, double %397)
%399 = fmul double %393, %398
%400 = load double, double* %26
%401 = load double, double* %16
%402 = load i32, i32* %32
%403 = sitofp i32 %402 to double
%404 = fmul double 2.000000e+00, %403
%405 = call double @pow(double %401, double %404)
%406 = fmul double %400, %405
%407 = fdiv double %399, %406
%408 = call double @log(double %407)
%409 = load double, double* %25
%410 = load double, double* %20
%411 = load double, double* %20
%412 = fmul double %410, %411
%413 = fdiv double %412, 2.000000e+00
%414 = fadd double %409, %413
%415 = load double, double* %21
%416 = call double @llvm.fmuladd.f64(double %414, double %415, double %408)
%417 = load double, double* %20
%418 = load double, double* %21
%419 = call double @sqrt(double %418)
%420 = fmul double %417, %419
%421 = fdiv double %416, %420
store double %421, double* %46
%422 = load double, double* %14
%423 = load double, double* %17
%424 = load i32, i32* %32
%425 = sitofp i32 %424 to double
%426 = fmul double 2.000000e+00, %425
%427 = call double @pow(double %423, double %426)
%428 = fmul double %422, %427
%429 = load double, double* %15
%430 = load double, double* %16
%431 = load i32, i32* %32
%432 = sitofp i32 %431 to double
%433 = fmul double 2.000000e+00, %432
%434 = call double @pow(double %430, double %433)
%435 = fmul double %429, %434
%436 = fdiv double %428, %435
%437 = call double @log(double %436)
%438 = load double, double* %25
%439 = load double, double* %20
%440 = load double, double* %20
%441 = fmul double %439, %440
%442 = fdiv double %441, 2.000000e+00
%443 = fadd double %438, %442
%444 = load double, double* %21
%445 = call double @llvm.fmuladd.f64(double %443, double %444, double %437)
%446 = load double, double* %20
%447 = load double, double* %21
%448 = call double @sqrt(double %447)
%449 = fmul double %446, %448
%450 = fdiv double %445, %449
store double %450, double* %47
%451 = load double, double* %16
%452 = load i32, i32* %32
%453 = sitofp i32 %452 to double
%454 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %453, double 2.000000e+00)
%455 = call double @pow(double %451, double %454)
%456 = load double, double* %26
%457 = load double, double* %14
%458 = fmul double %456, %457
%459 = load double, double* %17
%460 = load i32, i32* %32
%461 = sitofp i32 %460 to double
%462 = fmul double 2.000000e+00, %461
%463 = call double @pow(double %459, double %462)
%464 = fmul double %458, %463
%465 = fdiv double %455, %464
%466 = call double @log(double %465)
%467 = load double, double* %25
%468 = load double, double* %20
%469 = load double, double* %20
%470 = fmul double %468, %469
%471 = fdiv double %470, 2.000000e+00
%472 = fadd double %467, %471
%473 = load double, double* %21
%474 = call double @llvm.fmuladd.f64(double %472, double %473, double %466)
%475 = load double, double* %20
%476 = load double, double* %21
%477 = call double @sqrt(double %476)
%478 = fmul double %475, %477
%479 = fdiv double %474, %478
store double %479, double* %48
%480 = load double, double* %16
%481 = load i32, i32* %32
%482 = sitofp i32 %481 to double
%483 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %482, double 2.000000e+00)
%484 = call double @pow(double %480, double %483)
%485 = load double, double* %15
%486 = load double, double* %14
%487 = fmul double %485, %486
%488 = load double, double* %17
%489 = load i32, i32* %32
%490 = sitofp i32 %489 to double
%491 = fmul double 2.000000e+00, %490
%492 = call double @pow(double %488, double %491)
%493 = fmul double %487, %492
%494 = fdiv double %484, %493
%495 = call double @log(double %494)
%496 = load double, double* %25
%497 = load double, double* %20
%498 = load double, double* %20
%499 = fmul double %497, %498
%500 = fdiv double %499, 2.000000e+00
%501 = fadd double %496, %500
%502 = load double, double* %21
%503 = call double @llvm.fmuladd.f64(double %501, double %502, double %495)
%504 = load double, double* %20
%505 = load double, double* %21
%506 = call double @sqrt(double %505)
%507 = fmul double %504, %506
%508 = fdiv double %503, %507
store double %508, double* %49
%509 = load double, double* %25
%510 = load double, double* %24
%511 = fsub double %509, %510
%512 = load i32, i32* %32
%513 = sitofp i32 %512 to double
%514 = load double, double* %23
%515 = load double, double* %24
%516 = fsub double %514, %515
%517 = fneg double %513
%518 = call double @llvm.fmuladd.f64(double %517, double %516, double %511)
%519 = fmul double 2.000000e+00, %518
%520 = load double, double* %20
%521 = load double, double* %20
%522 = fmul double %520, %521
%523 = fdiv double %519, %522
%524 = fadd double %523, 1.000000e+00
store double %524, double* %50
%525 = load i32, i32* %32
%526 = sitofp i32 %525 to double
%527 = fmul double 2.000000e+00, %526
%528 = load double, double* %23
%529 = load double, double* %24
%530 = fsub double %528, %529
%531 = fmul double %527, %530
%532 = load double, double* %20
%533 = load double, double* %20
%534 = fmul double %532, %533
%535 = fdiv double %531, %534
store double %535, double* %51
%536 = load double, double* %25
%537 = load double, double* %24
%538 = fsub double %536, %537
%539 = load i32, i32* %32
%540 = sitofp i32 %539 to double
%541 = load double, double* %23
%542 = load double, double* %24
%543 = fsub double %541, %542
%544 = call double @llvm.fmuladd.f64(double %540, double %543, double %538)
%545 = fmul double 2.000000e+00, %544
%546 = load double, double* %20
%547 = load double, double* %20
%548 = fmul double %546, %547
%549 = fdiv double %545, %548
%550 = fadd double %549, 1.000000e+00
store double %550, double* %52
%551 = load double, double* %28
%552 = load double, double* %17
%553 = load i32, i32* %32
%554 = sitofp i32 %553 to double
%555 = call double @pow(double %552, double %554)
%556 = load double, double* %16
%557 = load i32, i32* %32
%558 = sitofp i32 %557 to double
%559 = call double @pow(double %556, double %558)
%560 = fdiv double %555, %559
%561 = load double, double* %50
%562 = call double @pow(double %560, double %561)
%563 = load double, double* %16
%564 = load double, double* %14
%565 = fdiv double %563, %564
%566 = load double, double* %51
%567 = call double @pow(double %565, double %566)
%568 = fmul double %562, %567
%569 = load double, double* %46
%570 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %569)
%571 = load double, double* %47
%572 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %571)
%573 = sub nsw i32 %570, %572
%574 = sitofp i32 %573 to double
%575 = call double @llvm.fmuladd.f64(double %568, double %574, double %551)
%576 = load double, double* %16
%577 = load i32, i32* %32
%578 = add nsw i32 %577, 1
%579 = sitofp i32 %578 to double
%580 = call double @pow(double %576, double %579)
%581 = load double, double* %17
%582 = load i32, i32* %32
%583 = sitofp i32 %582 to double
%584 = call double @pow(double %581, double %583)
%585 = load double, double* %14
%586 = fmul double %584, %585
%587 = fdiv double %580, %586
%588 = load double, double* %52
%589 = call double @pow(double %587, double %588)
%590 = load double, double* %48
%591 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %590)
%592 = load double, double* %49
%593 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %592)
%594 = sub nsw i32 %591, %593
%595 = sitofp i32 %594 to double
%596 = fneg double %589
%597 = call double @llvm.fmuladd.f64(double %596, double %595, double %575)
store double %597, double* %28
%598 = load double, double* %29
%599 = load double, double* %17
%600 = load i32, i32* %32
%601 = sitofp i32 %600 to double
%602 = call double @pow(double %599, double %601)
%603 = load double, double* %16
%604 = load i32, i32* %32
%605 = sitofp i32 %604 to double
%606 = call double @pow(double %603, double %605)
%607 = fdiv double %602, %606
%608 = load double, double* %50
%609 = fsub double %608, 2.000000e+00
%610 = call double @pow(double %607, double %609)
%611 = load double, double* %16
%612 = load double, double* %14
%613 = fdiv double %611, %612
%614 = load double, double* %51
%615 = call double @pow(double %613, double %614)
%616 = fmul double %610, %615
%617 = load double, double* %46
%618 = load double, double* %20
%619 = load double, double* %21
%620 = call double @sqrt(double %619)
%621 = fneg double %618
%622 = call double @llvm.fmuladd.f64(double %621, double %620, double %617)
%623 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %622)
%624 = load double, double* %47
%625 = load double, double* %20
%626 = load double, double* %21
%627 = call double @sqrt(double %626)
%628 = fneg double %625
%629 = call double @llvm.fmuladd.f64(double %628, double %627, double %624)
%630 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %629)
%631 = sub nsw i32 %623, %630
%632 = sitofp i32 %631 to double
%633 = call double @llvm.fmuladd.f64(double %616, double %632, double %598)
%634 = load double, double* %16
%635 = load i32, i32* %32
%636 = add nsw i32 %635, 1
%637 = sitofp i32 %636 to double
%638 = call double @pow(double %634, double %637)
%639 = load double, double* %17
%640 = load i32, i32* %32
%641 = sitofp i32 %640 to double
%642 = call double @pow(double %639, double %641)
%643 = load double, double* %14
%644 = fmul double %642, %643
%645 = fdiv double %638, %644
%646 = load double, double* %52
%647 = fsub double %646, 2.000000e+00
%648 = call double @pow(double %645, double %647)
%649 = load double, double* %48
%650 = load double, double* %20
%651 = load double, double* %21
%652 = call double @sqrt(double %651)
%653 = fneg double %650
%654 = call double @llvm.fmuladd.f64(double %653, double %652, double %649)
%655 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %654)
%656 = load double, double* %49
%657 = load double, double* %20
%658 = load double, double* %21
%659 = call double @sqrt(double %658)
%660 = fneg double %657
%661 = call double @llvm.fmuladd.f64(double %660, double %659, double %656)
%662 = call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %661)
%663 = sub nsw i32 %655, %662
%664 = sitofp i32 %663 to double
%665 = fneg double %648
%666 = call double @llvm.fmuladd.f64(double %665, double %664, double %633)
store double %666, double* %29
%667 = load i32, i32* %32
%668 = icmp sge i32 %667, 0
br i1 %668, label %669, label %696
669: ; preds = %392
%670 = load i32, i32* %32
%671 = add nsw i32 %670, 1
store i32 %671, i32* %32
%672 = load double, double* %30
store double %672, double* %31
%673 = load double, double* %15
%674 = load double, double* %18
%675 = fneg double %674
%676 = load double, double* %21
%677 = fmul double %675, %676
%678 = call double @exp(double %677)
%679 = fmul double %673, %678
%680 = load double, double* %29
%681 = load double, double* %14
%682 = load double, double* %19
%683 = fneg double %682
%684 = load double, double* %21
%685 = fmul double %683, %684
%686 = call double @exp(double %685)
%687 = fmul double %681, %686
%688 = load double, double* %28
%689 = fmul double %687, %688
%690 = fneg double %689
%691 = call double @llvm.fmuladd.f64(double %679, double %680, double %690)
store double %691, double* %30
%692 = load double, double* %30
%693 = load double, double* %31
%694 = fsub double %692, %693
%695 = call double @llvm.fabs.f64(double %694)
store double %695, double* %42
br label %696
696: ; preds = %669, %392
%697 = load i32, i32* %32
%698 = mul nsw i32 %697, -1
store i32 %698, i32* %32
br label %699
699: ; preds = %696
%700 = load i32, i32* %32
%701 = sitofp i32 %700 to double
%702 = call double @llvm.fabs.f64(double %701)
%703 = load i32, i32* %34
%704 = sitofp i32 %703 to double
%705 = fcmp olt double %702, %704
br i1 %705, label %706, label %709
706: ; preds = %699
%707 = load double, double* %42
%708 = fcmp ogt double %707, 5.000000e-07
br label %709
709: ; preds = %706, %699
%710 = phi i1 [ false, %699 ], [ %708, %706 ]
br i1 %710, label %392, label %711
711: ; preds = %709
br label %712
712: ; preds = %711, %390
%713 = load i16, i16* %12
%714 = icmp ne i16 %713, 0
br i1 %714, label %717, label %715
715: ; preds = %712
%716 = load double, double* %30
store double %716, double* %33
br label %731
717: ; preds = %712
%718 = load i16, i16* %13
%719 = sext i16 %718 to i32
%720 = load double, double* %14
%721 = load double, double* %15
%722 = load double, double* %18
%723 = load double, double* %19
%724 = load double, double* %20
%725 = load double, double* %21
%726 = load double, double* %22
%727 = call i32 (i32, double, double, double, double, double, double, double, ...) bitcast (i32 (...)* @rq_pricing_blackscholes to i32 (i32, double, double, double, double, double, double, double, ...)*)(i32 %719, double %720, double %721, double %722, double %723, double %724, double %725, double %726)
%728 = sitofp i32 %727 to double
%729 = load double, double* %30
%730 = fsub double %728, %729
store double %730, double* %33
br label %731
731: ; preds = %717, %715
%732 = load double, double* %33
ret double %732
}

LLVM IR (-O2):
define double @rq_pricing_double_barrier(i16 signext %0, i16 signext %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10) {
%12 = fsub double %6, %7
%13 = fmul double %9, 0.000000e+00
%14 = tail call double @exp(double %13)
%15 = fmul double %14, %4
%16 = tail call double @exp(double %13)
%17 = fmul double %16, %5
%18 = icmp eq i16 %1, 0
%19 = fmul double %8, %8
%20 = fmul double %19, 5.000000e-01
%21 = fadd double %12, %20
br i1 %18, label %31, label %22
22: ; preds = %11
%23 = fmul double %2, %3
%24 = fmul double %17, %2
%25 = fdiv double %4, %2
%26 = fneg double %8
%27 = fneg double %7
%28 = fmul double %27, %9
%29 = fneg double %6
%30 = fmul double %29, %9
br label %40
31: ; preds = %11
%32 = fmul double %15, %2
%33 = fmul double %2, %3
%34 = fdiv double %4, %2
%35 = fneg double %8
%36 = fneg double %6
%37 = fmul double %36, %9
%38 = fneg double %7
%39 = fmul double %38, %9
br label %182
40: ; preds = %22, %172
%41 = phi double [ %173, %172 ], [ 0.000000e+00, %22 ]
%42 = phi i32 [ %176, %172 ], [ 0, %22 ]
%43 = phi double [ %175, %172 ], [ 0.000000e+00, %22 ]
%44 = phi <2 x double> [ %158, %172 ], [ zeroinitializer, %22 ]
%45 = sitofp i32 %42 to double
%46 = fmul double %45, 2.000000e+00
%47 = tail call double @pow(double %5, double %46)
%48 = fmul double %47, %2
%49 = tail call double @pow(double %4, double %46)
%50 = fmul double %49, %3
%51 = fdiv double %48, %50
%52 = tail call double @log(double %51)
%53 = tail call double @llvm.fmuladd.f64(double %21, double %9, double %52)
%54 = tail call double @sqrt(double %9)
%55 = fmul double %54, %8
%56 = fdiv double %53, %55
%57 = tail call double @pow(double %5, double %46)
%58 = fmul double %57, %2
%59 = tail call double @pow(double %4, double %46)
%60 = fmul double %17, %59
%61 = fdiv double %58, %60
%62 = tail call double @log(double %61)
%63 = tail call double @llvm.fmuladd.f64(double %21, double %9, double %62)
%64 = tail call double @sqrt(double %9)
%65 = fmul double %64, %8
%66 = fdiv double %63, %65
%67 = tail call double @llvm.fmuladd.f64(double %45, double 2.000000e+00, double 2.000000e+00)
%68 = tail call double @pow(double %4, double %67)
%69 = tail call double @pow(double %5, double %46)
%70 = fmul double %23, %69
%71 = fdiv double %68, %70
%72 = tail call double @log(double %71)
%73 = tail call double @llvm.fmuladd.f64(double %21, double %9, double %72)
%74 = tail call double @sqrt(double %9)
%75 = fmul double %74, %8
%76 = fdiv double %73, %75
%77 = tail call double @pow(double %4, double %67)
%78 = tail call double @pow(double %5, double %46)
%79 = fmul double %24, %78
%80 = fdiv double %77, %79
%81 = tail call double @log(double %80)
%82 = tail call double @llvm.fmuladd.f64(double %21, double %9, double %81)
%83 = tail call double @sqrt(double %9)
%84 = fmul double %83, %8
%85 = fdiv double %82, %84
%86 = fneg double %45
%87 = tail call double @llvm.fmuladd.f64(double %86, double 0.000000e+00, double %12)
%88 = fmul double %87, 2.000000e+00
%89 = fdiv double %88, %19
%90 = fadd double %89, 1.000000e+00
%91 = fmul double %46, 0.000000e+00
%92 = fdiv double %91, %19
%93 = tail call double @llvm.fmuladd.f64(double %45, double 0.000000e+00, double %12)
%94 = fmul double %93, 2.000000e+00
%95 = fdiv double %94, %19
%96 = fadd double %95, 1.000000e+00
%97 = tail call double @pow(double %5, double %45)
%98 = tail call double @pow(double %4, double %45)
%99 = fdiv double %97, %98
%100 = tail call double @pow(double %99, double %90)
%101 = tail call double @pow(double %25, double %92)
%102 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %56)
%103 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %66)
%104 = add nsw i32 %42, 1
%105 = sitofp i32 %104 to double
%106 = tail call double @pow(double %4, double %105)
%107 = tail call double @pow(double %5, double %45)
%108 = fmul double %107, %2
%109 = fdiv double %106, %108
%110 = tail call double @pow(double %109, double %96)
%111 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %76)
%112 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %85)
%113 = tail call double @pow(double %5, double %45)
%114 = tail call double @pow(double %4, double %45)
%115 = fdiv double %113, %114
%116 = fadd double %90, -2.000000e+00
%117 = tail call double @pow(double %115, double %116)
%118 = tail call double @pow(double %25, double %92)
%119 = insertelement <2 x double> poison, double %117, i64 0
%120 = insertelement <2 x double> %119, double %100, i64 1
%121 = insertelement <2 x double> poison, double %118, i64 0
%122 = insertelement <2 x double> %121, double %101, i64 1
%123 = fmul <2 x double> %120, %122
%124 = tail call double @sqrt(double %9)
%125 = tail call double @llvm.fmuladd.f64(double %26, double %124, double %56)
%126 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %125)
%127 = tail call double @sqrt(double %9)
%128 = tail call double @llvm.fmuladd.f64(double %26, double %127, double %66)
%129 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %128)
%130 = insertelement <2 x i32> poison, i32 %126, i64 0
%131 = insertelement <2 x i32> %130, i32 %102, i64 1
%132 = insertelement <2 x i32> poison, i32 %129, i64 0
%133 = insertelement <2 x i32> %132, i32 %103, i64 1
%134 = sub nsw <2 x i32> %131, %133
%135 = sitofp <2 x i32> %134 to <2 x double>
%136 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %123, <2 x double> %135, <2 x double> %44)
%137 = tail call double @pow(double %4, double %105)
%138 = tail call double @pow(double %5, double %45)
%139 = fmul double %138, %2
%140 = fdiv double %137, %139
%141 = fadd double %96, -2.000000e+00
%142 = tail call double @pow(double %140, double %141)
%143 = tail call double @sqrt(double %9)
%144 = tail call double @llvm.fmuladd.f64(double %26, double %143, double %76)
%145 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %144)
%146 = tail call double @sqrt(double %9)
%147 = tail call double @llvm.fmuladd.f64(double %26, double %146, double %85)
%148 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %147)
%149 = insertelement <2 x i32> poison, i32 %145, i64 0
%150 = insertelement <2 x i32> %149, i32 %111, i64 1
%151 = insertelement <2 x i32> poison, i32 %148, i64 0
%152 = insertelement <2 x i32> %151, i32 %112, i64 1
%153 = sub nsw <2 x i32> %150, %152
%154 = sitofp <2 x i32> %153 to <2 x double>
%155 = insertelement <2 x double> poison, double %142, i64 0
%156 = insertelement <2 x double> %155, double %110, i64 1
%157 = fneg <2 x double> %156
%158 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %157, <2 x double> %154, <2 x double> %136)
%159 = icmp sgt i32 %42, -1
br i1 %159, label %160, label %172
160: ; preds = %40
%161 = tail call double @exp(double %28)
%162 = fmul double %161, %2
%163 = tail call double @exp(double %30)
%164 = fneg double %163
%165 = fmul double %164, %3
%166 = extractelement <2 x double> %158, i64 0
%167 = fmul double %166, %165
%168 = extractelement <2 x double> %158, i64 1
%169 = tail call double @llvm.fmuladd.f64(double %162, double %168, double %167)
%170 = fsub double %169, %43
%171 = tail call double @llvm.fabs.f64(double %170)
br label %172
172: ; preds = %160, %40
%173 = phi double [ %171, %160 ], [ %41, %40 ]
%174 = phi i32 [ %104, %160 ], [ %42, %40 ]
%175 = phi double [ %169, %160 ], [ %43, %40 ]
%176 = sub nsw i32 0, %174
%177 = sitofp i32 %176 to double
%178 = tail call double @llvm.fabs.f64(double %177)
%179 = fcmp olt double %178, 6.000000e+00
%180 = fcmp ogt double %173, 5.000000e-07
%181 = select i1 %179, i1 %180, i1 false
br i1 %181, label %40, label %324
182: ; preds = %31, %314
%183 = phi double [ %315, %314 ], [ 0.000000e+00, %31 ]
%184 = phi i32 [ %318, %314 ], [ 0, %31 ]
%185 = phi double [ %317, %314 ], [ 0.000000e+00, %31 ]
%186 = phi <2 x double> [ %300, %314 ], [ zeroinitializer, %31 ]
%187 = sitofp i32 %184 to double
%188 = fmul double %187, 2.000000e+00
%189 = tail call double @pow(double %5, double %188)
%190 = fmul double %189, %2
%191 = tail call double @pow(double %4, double %188)
%192 = fmul double %15, %191
%193 = fdiv double %190, %192
%194 = tail call double @log(double %193)
%195 = tail call double @llvm.fmuladd.f64(double %21, double %9, double %194)
%196 = tail call double @sqrt(double %9)
%197 = fmul double %196, %8
%198 = fdiv double %195, %197
%199 = tail call double @pow(double %5, double %188)
%200 = fmul double %199, %2
%201 = tail call double @pow(double %4, double %188)
%202 = fmul double %201, %3
%203 = fdiv double %200, %202
%204 = tail call double @log(double %203)
%205 = tail call double @llvm.fmuladd.f64(double %21, double %9, double %204)
%206 = tail call double @sqrt(double %9)
%207 = fmul double %206, %8
%208 = fdiv double %205, %207
%209 = tail call double @llvm.fmuladd.f64(double %187, double 2.000000e+00, double 2.000000e+00)
%210 = tail call double @pow(double %4, double %209)
%211 = tail call double @pow(double %5, double %188)
%212 = fmul double %32, %211
%213 = fdiv double %210, %212
%214 = tail call double @log(double %213)
%215 = tail call double @llvm.fmuladd.f64(double %21, double %9, double %214)
%216 = tail call double @sqrt(double %9)
%217 = fmul double %216, %8
%218 = fdiv double %215, %217
%219 = tail call double @pow(double %4, double %209)
%220 = tail call double @pow(double %5, double %188)
%221 = fmul double %33, %220
%222 = fdiv double %219, %221
%223 = tail call double @log(double %222)
%224 = tail call double @llvm.fmuladd.f64(double %21, double %9, double %223)
%225 = tail call double @sqrt(double %9)
%226 = fmul double %225, %8
%227 = fdiv double %224, %226
%228 = fneg double %187
%229 = tail call double @llvm.fmuladd.f64(double %228, double 0.000000e+00, double %12)
%230 = fmul double %229, 2.000000e+00
%231 = fdiv double %230, %19
%232 = fadd double %231, 1.000000e+00
%233 = fmul double %188, 0.000000e+00
%234 = fdiv double %233, %19
%235 = tail call double @llvm.fmuladd.f64(double %187, double 0.000000e+00, double %12)
%236 = fmul double %235, 2.000000e+00
%237 = fdiv double %236, %19
%238 = fadd double %237, 1.000000e+00
%239 = tail call double @pow(double %5, double %187)
%240 = tail call double @pow(double %4, double %187)
%241 = fdiv double %239, %240
%242 = tail call double @pow(double %241, double %232)
%243 = tail call double @pow(double %34, double %234)
%244 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %198)
%245 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %208)
%246 = add nsw i32 %184, 1
%247 = sitofp i32 %246 to double
%248 = tail call double @pow(double %4, double %247)
%249 = tail call double @pow(double %5, double %187)
%250 = fmul double %249, %2
%251 = fdiv double %248, %250
%252 = tail call double @pow(double %251, double %238)
%253 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %218)
%254 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %227)
%255 = tail call double @pow(double %5, double %187)
%256 = tail call double @pow(double %4, double %187)
%257 = fdiv double %255, %256
%258 = fadd double %232, -2.000000e+00
%259 = tail call double @pow(double %257, double %258)
%260 = tail call double @pow(double %34, double %234)
%261 = insertelement <2 x double> poison, double %259, i64 0
%262 = insertelement <2 x double> %261, double %242, i64 1
%263 = insertelement <2 x double> poison, double %260, i64 0
%264 = insertelement <2 x double> %263, double %243, i64 1
%265 = fmul <2 x double> %262, %264
%266 = tail call double @sqrt(double %9)
%267 = tail call double @llvm.fmuladd.f64(double %35, double %266, double %198)
%268 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %267)
%269 = tail call double @sqrt(double %9)
%270 = tail call double @llvm.fmuladd.f64(double %35, double %269, double %208)
%271 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %270)
%272 = insertelement <2 x i32> poison, i32 %268, i64 0
%273 = insertelement <2 x i32> %272, i32 %244, i64 1
%274 = insertelement <2 x i32> poison, i32 %271, i64 0
%275 = insertelement <2 x i32> %274, i32 %245, i64 1
%276 = sub nsw <2 x i32> %273, %275
%277 = sitofp <2 x i32> %276 to <2 x double>
%278 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %265, <2 x double> %277, <2 x double> %186)
%279 = tail call double @pow(double %4, double %247)
%280 = tail call double @pow(double %5, double %187)
%281 = fmul double %280, %2
%282 = fdiv double %279, %281
%283 = fadd double %238, -2.000000e+00
%284 = tail call double @pow(double %282, double %283)
%285 = tail call double @sqrt(double %9)
%286 = tail call double @llvm.fmuladd.f64(double %35, double %285, double %218)
%287 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %286)
%288 = tail call double @sqrt(double %9)
%289 = tail call double @llvm.fmuladd.f64(double %35, double %288, double %227)
%290 = tail call i32 (double, ...) bitcast (i32 (...)* @rq_pricing_cumul_norm_dist to i32 (double, ...)*)(double %289)
%291 = insertelement <2 x i32> poison, i32 %287, i64 0
%292 = insertelement <2 x i32> %291, i32 %253, i64 1
%293 = insertelement <2 x i32> poison, i32 %290, i64 0
%294 = insertelement <2 x i32> %293, i32 %254, i64 1
%295 = sub nsw <2 x i32> %292, %294
%296 = sitofp <2 x i32> %295 to <2 x double>
%297 = insertelement <2 x double> poison, double %284, i64 0
%298 = insertelement <2 x double> %297, double %252, i64 1
%299 = fneg <2 x double> %298
%300 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %299, <2 x double> %296, <2 x double> %278)
%301 = icmp sgt i32 %184, -1
br i1 %301, label %302, label %314
302: ; preds = %182
%303 = tail call double @exp(double %37)
%304 = fmul double %303, %3
%305 = tail call double @exp(double %39)
%306 = fneg double %305
%307 = fmul double %306, %2
%308 = extractelement <2 x double> %300, i64 1
%309 = fmul double %308, %307
%310 = extractelement <2 x double> %300, i64 0
%311 = tail call double @llvm.fmuladd.f64(double %304, double %310, double %309)
%312 = fsub double %311, %185
%313 = tail call double @llvm.fabs.f64(double %312)
br label %314
314: ; preds = %302, %182
%315 = phi double [ %313, %302 ], [ %183, %182 ]
%316 = phi i32 [ %246, %302 ], [ %184, %182 ]
%317 = phi double [ %311, %302 ], [ %185, %182 ]
%318 = sub nsw i32 0, %316
%319 = sitofp i32 %318 to double
%320 = tail call double @llvm.fabs.f64(double %319)
%321 = fcmp olt double %320, 6.000000e+00
%322 = fcmp ogt double %315, 5.000000e-07
%323 = select i1 %321, i1 %322, i1 false
br i1 %323, label %182, label %324
324: ; preds = %172, %314
%325 = phi double [ %317, %314 ], [ %175, %172 ]
%326 = icmp eq i16 %0, 0
br i1 %326, label %332, label %327
327: ; preds = %324
%328 = sext i16 %1 to i32
%329 = tail call i32 (i32, double, double, double, double, double, double, double, ...) bitcast (i32 (...)* @rq_pricing_blackscholes to i32 (i32, double, double, double, double, double, double, double, ...)*)(i32 %328, double %2, double %3, double %6, double %7, double %8, double %9, double %10)
%330 = sitofp i32 %329 to double
%331 = fsub double %330, %325
br label %332
332: ; preds = %324, %327
%333 = phi double [ %331, %327 ], [ %325, %324 ]
ret double %333
}