double SimpleChooser(double S, double X, double t1, double T2, double r,
                     double b, double v) {
  double d, y, result;
  assert(((S) == (S)) && (S) >= 0.000001 && (S) <= 1000000000000.0);
  assert(((X) == (X)) && (X) >= 0.000001 && (X) <= 1000000000000.0);
  assert(((t1) == (t1)) && (t1) >= (1.0 / (253.0 * 24.0)) && (t1) <= (20.0));
  assert(((T2) == (T2)) && (T2) >= (1.0 / (253.0 * 24.0)) && (T2) <= (20.0));
  assert(((r) == (r)) && (r) >= 0.0 && (r) <= 1000.0);
  assert(((b) == (b)) && (b) >= -1000.0 && (b) <= 1000.0);
  assert(((v) == (v)) && (v) >= 0.0000001 && v <= 100.99999);
  d = (log(S / X) + (b + ((v) * (v)) / 2.0) * T2) / (v * sqrt(T2));
  y = (log(S / X) + b * T2 + ((v) * (v)) * t1 / 2.0) / (v * sqrt(t1));
  result = S * exp((b - r) * T2) * cnd(d) -
           X * exp(-r * T2) * cnd(d - v * sqrt(T2)) -
           S * exp((b - r) * T2) * cnd(-y) +
           X * exp(-r * T2) * cnd(-y + v * sqrt(t1));
  assert(((result) == (result)));
  return result;
}


x86 assembly (clang, -O0):
<SimpleChooser>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x8(%rbp),%xmm0
mov    %al,-0x51(%rbp)
jne    11c8 <SimpleChooser+0x78>
jp     11c8 <SimpleChooser+0x78>
movsd  -0x8(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe58(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x51(%rbp)
jb     11c8 <SimpleChooser+0x78>
movsd  0xe4b(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
setae  %al
mov    %al,-0x51(%rbp)
mov    -0x51(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x10(%rbp),%xmm0
mov    %al,-0x52(%rbp)
jne    1221 <SimpleChooser+0xd1>
jp     1221 <SimpleChooser+0xd1>
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
movsd  0xdff(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x52(%rbp)
jb     1221 <SimpleChooser+0xd1>
movsd  0xdf2(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
setae  %al
mov    %al,-0x52(%rbp)
mov    -0x52(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x18(%rbp),%xmm0
mov    %al,-0x53(%rbp)
jne    127a <SimpleChooser+0x12a>
jp     127a <SimpleChooser+0x12a>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
movsd  0xdb6(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x53(%rbp)
jb     127a <SimpleChooser+0x12a>
movsd  0xda9(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
setae  %al
mov    %al,-0x53(%rbp)
mov    -0x53(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x20(%rbp),%xmm0
mov    %al,-0x54(%rbp)
jne    12d3 <SimpleChooser+0x183>
jp     12d3 <SimpleChooser+0x183>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
movsd  0xd5d(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x54(%rbp)
jb     12d3 <SimpleChooser+0x183>
movsd  0xd50(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
setae  %al
mov    %al,-0x54(%rbp)
mov    -0x54(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x28(%rbp),%xmm0
mov    %al,-0x55(%rbp)
jne    1327 <SimpleChooser+0x1d7>
jp     1327 <SimpleChooser+0x1d7>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x55(%rbp)
jb     1327 <SimpleChooser+0x1d7>
movsd  0xd04(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
setae  %al
mov    %al,-0x55(%rbp)
mov    -0x55(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x30(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x30(%rbp),%xmm0
mov    %al,-0x56(%rbp)
jne    1380 <SimpleChooser+0x230>
jp     1380 <SimpleChooser+0x230>
movsd  -0x30(%rbp),%xmm0
xor    %eax,%eax
movsd  0xcc8(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x56(%rbp)
jb     1380 <SimpleChooser+0x230>
movsd  0xcab(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
setae  %al
mov    %al,-0x56(%rbp)
mov    -0x56(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x38(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x38(%rbp),%xmm0
mov    %al,-0x57(%rbp)
jne    13d9 <SimpleChooser+0x289>
jp     13d9 <SimpleChooser+0x289>
movsd  -0x38(%rbp),%xmm0
xor    %eax,%eax
movsd  0xc77(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x57(%rbp)
jb     13d9 <SimpleChooser+0x289>
movsd  0xc6a(%rip),%xmm0
ucomisd -0x38(%rbp),%xmm0
setae  %al
mov    %al,-0x57(%rbp)
mov    -0x57(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x8(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
call   1050 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
mulsd  -0x38(%rbp),%xmm2
movsd  0xc2f(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
call   1070 <sqrt@plt>
movsd  -0xf0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xe8(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
call   1050 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x38(%rbp),%xmm1
mulsd  -0x38(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  0xba0(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
call   1070 <sqrt@plt>
movsd  -0xe0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xd8(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0xd0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
call   1070 <sqrt@plt>
movsd  -0xc0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xb8(%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   1060 <cnd@plt>
movsd  -0xb0(%rbp),%xmm1
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
cvtsi2sd %eax,%xmm3
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x98(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x88(%rbp),%xmm1
ff
cvtsi2sd %eax,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x80(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x48(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1070 <sqrt@plt>
movsd  -0x78(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x70(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
movsd  -0x68(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
ucomisd -0x50(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
movsd  -0x50(%rbp),%xmm0
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SimpleChooser>:
sub    $0x78,%rsp
movsd  %xmm0,0x40(%rsp)
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xe97(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xe92(%rip),%xmm7
ucomisd %xmm0,%xmm7
movsd  %xmm6,0x18(%rsp)
movsd  %xmm5,(%rsp)
movaps %xmm4,0x50(%rsp)
movsd  %xmm3,0x10(%rsp)
movsd  %xmm2,0x48(%rsp)
movsd  %xmm1,0x28(%rsp)
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x28(%rsp),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xe40(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xe3b(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x48(%rsp),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xe1b(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xe16(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x10(%rsp),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xde6(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xde1(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
xorpd  %xmm0,%xmm0
movapd 0x50(%rsp),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
movsd  0xdbd(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %cl
and    %al,%cl
movzbl %cl,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  (%rsp),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xd9e(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xd89(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x18(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xd71(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xd6c(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
xor    %eax,%eax
call   1030 <assert@plt>
movsd  0x40(%rsp),%xmm0
divsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
call   1050 <log@plt>
movsd  0x18(%rsp),%xmm1
mulsd  %xmm1,%xmm1
movsd  0xd38(%rip),%xmm2
movapd %xmm1,0x30(%rsp)
mulsd  %xmm1,%xmm2
addsd  (%rsp),%xmm2
movsd  0x10(%rsp),%xmm1
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
movsd  %xmm2,0x20(%rsp)
movapd %xmm1,%xmm0
ucomisd 0xd11(%rip),%xmm1
jb     133f <SimpleChooser+0x1ef>
sqrtsd %xmm0,%xmm0
jmp    1344 <SimpleChooser+0x1f4>
call   1070 <sqrt@plt>
mulsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  0x8(%rsp),%xmm0
call   1050 <log@plt>
movsd  (%rsp),%xmm2
mulsd  0x10(%rsp),%xmm2
addsd  %xmm0,%xmm2
movsd  0x48(%rsp),%xmm0
movapd 0x30(%rsp),%xmm1
mulsd  %xmm0,%xmm1
mulsd  0xcb4(%rip),%xmm1
ucomisd 0xcb4(%rip),%xmm0
jb     139c <SimpleChooser+0x24c>
sqrtsd %xmm0,%xmm0
jmp    13b9 <SimpleChooser+0x269>
movapd %xmm1,0x30(%rsp)
movsd  %xmm2,0x8(%rsp)
call   1070 <sqrt@plt>
movsd  0x8(%rsp),%xmm2
movapd 0x30(%rsp),%xmm1
addsd  %xmm2,%xmm1
movapd %xmm1,0x30(%rsp)
mulsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x70(%rsp)
movsd  (%rsp),%xmm0
subsd  0x50(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,(%rsp)
call   1040 <exp@plt>
mulsd  0x40(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x68(%rsp)
movapd 0x50(%rsp),%xmm0
xorpd  0xc32(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
movapd %xmm0,0x50(%rsp)
call   1040 <exp@plt>
movsd  %xmm0,0x60(%rsp)
movsd  0x10(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     144b <SimpleChooser+0x2fb>
sqrtsd %xmm0,%xmm0
jmp    1450 <SimpleChooser+0x300>
call   1070 <sqrt@plt>
mulsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x60(%rsp),%xmm1
mulsd  0x28(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x8(%rsp),%xmm0
mulsd  0x68(%rsp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  (%rsp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,(%rsp)
movapd 0x30(%rsp),%xmm0
xorpd  0xb9b(%rip),%xmm0
divsd  0x70(%rsp),%xmm0
movapd %xmm0,0x30(%rsp)
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
mulsd  0x40(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x8(%rsp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movapd 0x50(%rsp),%xmm0
call   1040 <exp@plt>
mulsd  0x28(%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x48(%rsp),%xmm0
ucomisd 0xb36(%rip),%xmm0
jb     151a <SimpleChooser+0x3ca>
sqrtsd %xmm0,%xmm0
jmp    151f <SimpleChooser+0x3cf>
call   1070 <sqrt@plt>
movsd  0x18(%rsp),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x30(%rsp),%xmm1
movapd %xmm1,%xmm0
mov    $0x1,%al
call   1060 <cnd@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%rsp),%xmm1
movsd  %xmm1,(%rsp)
xor    %edi,%edi
ucomisd %xmm1,%xmm1
setnp  %dil
xor    %eax,%eax
call   1030 <assert@plt>
movsd  (%rsp),%xmm0
add    $0x78,%rsp
ret

LLVM IR (-O0):
define double @SimpleChooser(double %0, double %1, double %2, double %3, double %4, double %5, double %6) {
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
store double %0, double* %8
store double %1, double* %9
store double %2, double* %10
store double %3, double* %11
store double %4, double* %12
store double %5, double* %13
store double %6, double* %14
%18 = load double, double* %8
%19 = load double, double* %8
%20 = fcmp oeq double %18, %19
br i1 %20, label %21, label %27
21: ; preds = %7
%22 = load double, double* %8
%23 = fcmp oge double %22, 0x3EB0C6F7A0B5ED8D
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load double, double* %8
%26 = fcmp ole double %25, 1.000000e+12
br label %27
27: ; preds = %24, %21, %7
%28 = phi i1 [ false, %21 ], [ false, %7 ], [ %26, %24 ]
%29 = zext i1 %28 to i32
%30 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %29)
%31 = load double, double* %9
%32 = load double, double* %9
%33 = fcmp oeq double %31, %32
br i1 %33, label %34, label %40
34: ; preds = %27
%35 = load double, double* %9
%36 = fcmp oge double %35, 0x3EB0C6F7A0B5ED8D
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load double, double* %9
%39 = fcmp ole double %38, 1.000000e+12
br label %40
40: ; preds = %37, %34, %27
%41 = phi i1 [ false, %34 ], [ false, %27 ], [ %39, %37 ]
%42 = zext i1 %41 to i32
%43 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %42)
%44 = load double, double* %10
%45 = load double, double* %10
%46 = fcmp oeq double %44, %45
br i1 %46, label %47, label %53
47: ; preds = %40
%48 = load double, double* %10
%49 = fcmp oge double %48, 0x3F2596179C29D2CE
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = load double, double* %10
%52 = fcmp ole double %51, 2.000000e+01
br label %53
53: ; preds = %50, %47, %40
%54 = phi i1 [ false, %47 ], [ false, %40 ], [ %52, %50 ]
%55 = zext i1 %54 to i32
%56 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %55)
%57 = load double, double* %11
%58 = load double, double* %11
%59 = fcmp oeq double %57, %58
br i1 %59, label %60, label %66
60: ; preds = %53
%61 = load double, double* %11
%62 = fcmp oge double %61, 0x3F2596179C29D2CE
br i1 %62, label %63, label %66
63: ; preds = %60
%64 = load double, double* %11
%65 = fcmp ole double %64, 2.000000e+01
br label %66
66: ; preds = %63, %60, %53
%67 = phi i1 [ false, %60 ], [ false, %53 ], [ %65, %63 ]
%68 = zext i1 %67 to i32
%69 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %68)
%70 = load double, double* %12
%71 = load double, double* %12
%72 = fcmp oeq double %70, %71
br i1 %72, label %73, label %79
73: ; preds = %66
%74 = load double, double* %12
%75 = fcmp oge double %74, 0.000000e+00
br i1 %75, label %76, label %79
76: ; preds = %73
%77 = load double, double* %12
%78 = fcmp ole double %77, 1.000000e+03
br label %79
79: ; preds = %76, %73, %66
%80 = phi i1 [ false, %73 ], [ false, %66 ], [ %78, %76 ]
%81 = zext i1 %80 to i32
%82 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %81)
%83 = load double, double* %13
%84 = load double, double* %13
%85 = fcmp oeq double %83, %84
br i1 %85, label %86, label %92
86: ; preds = %79
%87 = load double, double* %13
%88 = fcmp oge double %87, -1.000000e+03
br i1 %88, label %89, label %92
89: ; preds = %86
%90 = load double, double* %13
%91 = fcmp ole double %90, 1.000000e+03
br label %92
92: ; preds = %89, %86, %79
%93 = phi i1 [ false, %86 ], [ false, %79 ], [ %91, %89 ]
%94 = zext i1 %93 to i32
%95 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %94)
%96 = load double, double* %14
%97 = load double, double* %14
%98 = fcmp oeq double %96, %97
br i1 %98, label %99, label %105
99: ; preds = %92
%100 = load double, double* %14
%101 = fcmp oge double %100, 0x3E7AD7F29ABCAF48
br i1 %101, label %102, label %105
102: ; preds = %99
%103 = load double, double* %14
%104 = fcmp ole double %103, 0x40593FFFD60E94EE
br label %105
105: ; preds = %102, %99, %92
%106 = phi i1 [ false, %99 ], [ false, %92 ], [ %104, %102 ]
%107 = zext i1 %106 to i32
%108 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %107)
%109 = load double, double* %8
%110 = load double, double* %9
%111 = fdiv double %109, %110
%112 = call double @log(double %111)
%113 = load double, double* %13
%114 = load double, double* %14
%115 = load double, double* %14
%116 = fmul double %114, %115
%117 = fdiv double %116, 2.000000e+00
%118 = fadd double %113, %117
%119 = load double, double* %11
%120 = call double @llvm.fmuladd.f64(double %118, double %119, double %112)
%121 = load double, double* %14
%122 = load double, double* %11
%123 = call double @sqrt(double %122)
%124 = fmul double %121, %123
%125 = fdiv double %120, %124
store double %125, double* %15
%126 = load double, double* %8
%127 = load double, double* %9
%128 = fdiv double %126, %127
%129 = call double @log(double %128)
%130 = load double, double* %13
%131 = load double, double* %11
%132 = call double @llvm.fmuladd.f64(double %130, double %131, double %129)
%133 = load double, double* %14
%134 = load double, double* %14
%135 = fmul double %133, %134
%136 = load double, double* %10
%137 = fmul double %135, %136
%138 = fdiv double %137, 2.000000e+00
%139 = fadd double %132, %138
%140 = load double, double* %14
%141 = load double, double* %10
%142 = call double @sqrt(double %141)
%143 = fmul double %140, %142
%144 = fdiv double %139, %143
store double %144, double* %16
%145 = load double, double* %8
%146 = load double, double* %13
%147 = load double, double* %12
%148 = fsub double %146, %147
%149 = load double, double* %11
%150 = fmul double %148, %149
%151 = call double @exp(double %150)
%152 = fmul double %145, %151
%153 = load double, double* %15
%154 = call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %153)
%155 = sitofp i32 %154 to double
%156 = load double, double* %9
%157 = load double, double* %12
%158 = fneg double %157
%159 = load double, double* %11
%160 = fmul double %158, %159
%161 = call double @exp(double %160)
%162 = fmul double %156, %161
%163 = load double, double* %15
%164 = load double, double* %14
%165 = load double, double* %11
%166 = call double @sqrt(double %165)
%167 = fneg double %164
%168 = call double @llvm.fmuladd.f64(double %167, double %166, double %163)
%169 = call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %168)
%170 = sitofp i32 %169 to double
%171 = fmul double %162, %170
%172 = fneg double %171
%173 = call double @llvm.fmuladd.f64(double %152, double %155, double %172)
%174 = load double, double* %8
%175 = load double, double* %13
%176 = load double, double* %12
%177 = fsub double %175, %176
%178 = load double, double* %11
%179 = fmul double %177, %178
%180 = call double @exp(double %179)
%181 = fmul double %174, %180
%182 = load double, double* %16
%183 = fneg double %182
%184 = call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %183)
%185 = sitofp i32 %184 to double
%186 = fneg double %181
%187 = call double @llvm.fmuladd.f64(double %186, double %185, double %173)
%188 = load double, double* %9
%189 = load double, double* %12
%190 = fneg double %189
%191 = load double, double* %11
%192 = fmul double %190, %191
%193 = call double @exp(double %192)
%194 = fmul double %188, %193
%195 = load double, double* %16
%196 = fneg double %195
%197 = load double, double* %14
%198 = load double, double* %10
%199 = call double @sqrt(double %198)
%200 = call double @llvm.fmuladd.f64(double %197, double %199, double %196)
%201 = call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %200)
%202 = sitofp i32 %201 to double
%203 = call double @llvm.fmuladd.f64(double %194, double %202, double %187)
store double %203, double* %17
%204 = load double, double* %17
%205 = load double, double* %17
%206 = fcmp oeq double %204, %205
%207 = zext i1 %206 to i32
%208 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %207)
%209 = load double, double* %17
ret double %209
}

LLVM IR (-O2):
define double @SimpleChooser(double %0, double %1, double %2, double %3, double %4, double %5, double %6) {
%8 = fcmp ord double %0, 0.000000e+00
%9 = fcmp oge double %0, 0x3EB0C6F7A0B5ED8D
%10 = and i1 %8, %9
%11 = fcmp ole double %0, 1.000000e+12
%12 = and i1 %11, %10
%13 = zext i1 %12 to i32
%14 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %13)
%15 = fcmp ord double %1, 0.000000e+00
%16 = fcmp oge double %1, 0x3EB0C6F7A0B5ED8D
%17 = and i1 %15, %16
%18 = fcmp ole double %1, 1.000000e+12
%19 = and i1 %18, %17
%20 = zext i1 %19 to i32
%21 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %20)
%22 = fcmp ord double %2, 0.000000e+00
%23 = fcmp oge double %2, 0x3F2596179C29D2CE
%24 = and i1 %22, %23
%25 = fcmp ole double %2, 2.000000e+01
%26 = and i1 %25, %24
%27 = zext i1 %26 to i32
%28 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %27)
%29 = fcmp ord double %3, 0.000000e+00
%30 = fcmp oge double %3, 0x3F2596179C29D2CE
%31 = and i1 %29, %30
%32 = fcmp ole double %3, 2.000000e+01
%33 = and i1 %32, %31
%34 = zext i1 %33 to i32
%35 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %34)
%36 = fcmp oge double %4, 0.000000e+00
%37 = fcmp ole double %4, 1.000000e+03
%38 = and i1 %36, %37
%39 = zext i1 %38 to i32
%40 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %39)
%41 = fcmp ord double %5, 0.000000e+00
%42 = fcmp oge double %5, -1.000000e+03
%43 = and i1 %41, %42
%44 = fcmp ole double %5, 1.000000e+03
%45 = and i1 %44, %43
%46 = zext i1 %45 to i32
%47 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %46)
%48 = fcmp ord double %6, 0.000000e+00
%49 = fcmp oge double %6, 0x3E7AD7F29ABCAF48
%50 = and i1 %48, %49
%51 = fcmp ole double %6, 0x40593FFFD60E94EE
%52 = and i1 %51, %50
%53 = zext i1 %52 to i32
%54 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %53)
%55 = fdiv double %0, %1
%56 = tail call double @log(double %55)
%57 = fmul double %6, %6
%58 = fmul double %57, 5.000000e-01
%59 = fadd double %58, %5
%60 = tail call double @llvm.fmuladd.f64(double %59, double %3, double %56)
%61 = tail call double @sqrt(double %3)
%62 = fmul double %61, %6
%63 = fdiv double %60, %62
%64 = tail call double @log(double %55)
%65 = tail call double @llvm.fmuladd.f64(double %5, double %3, double %64)
%66 = fmul double %57, %2
%67 = fmul double %66, 5.000000e-01
%68 = fadd double %67, %65
%69 = tail call double @sqrt(double %2)
%70 = fmul double %69, %6
%71 = fsub double %5, %4
%72 = fmul double %71, %3
%73 = tail call double @exp(double %72)
%74 = fmul double %73, %0
%75 = tail call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %63)
%76 = sitofp i32 %75 to double
%77 = fneg double %4
%78 = fmul double %77, %3
%79 = tail call double @exp(double %78)
%80 = tail call double @sqrt(double %3)
%81 = fneg double %6
%82 = tail call double @llvm.fmuladd.f64(double %81, double %80, double %63)
%83 = tail call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %82)
%84 = sitofp i32 %83 to double
%85 = fneg double %79
%86 = fmul double %85, %1
%87 = fmul double %86, %84
%88 = tail call double @llvm.fmuladd.f64(double %74, double %76, double %87)
%89 = tail call double @exp(double %72)
%90 = fneg double %68
%91 = fdiv double %90, %70
%92 = tail call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %91)
%93 = sitofp i32 %92 to double
%94 = fneg double %89
%95 = fmul double %94, %0
%96 = tail call double @llvm.fmuladd.f64(double %95, double %93, double %88)
%97 = tail call double @exp(double %78)
%98 = fmul double %97, %1
%99 = tail call double @sqrt(double %2)
%100 = tail call double @llvm.fmuladd.f64(double %6, double %99, double %91)
%101 = tail call i32 (double, ...) bitcast (i32 (...)* @cnd to i32 (double, ...)*)(double %100)
%102 = sitofp i32 %101 to double
%103 = tail call double @llvm.fmuladd.f64(double %98, double %102, double %96)
%104 = fcmp ord double %103, 0.000000e+00
%105 = zext i1 %104 to i32
%106 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %105)
ret double %103
}