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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double fabs(double);
int sqrt(double);
int odev2_(double *a, double *b, double *c__, double *rt1, double *rt2,
           double *cs1, double *sn1) {
  double d__1;
  double ab, df, cs, ct, tb, sm, tn, rt, adf, acs;
  int sgn1, sgn2;
  double acmn, acmx;
  sm = *a + *c__;
  df = *a - *c__;
  adf = fabs(df);
  tb = *b + *b;
  ab = fabs(tb);
  if (fabs(*a) > fabs(*c__)) {
    acmx = *a;
    acmn = *c__;
  } else {
    acmx = *c__;
    acmn = *a;
  }
  if (adf > ab) {
    d__1 = ab / adf;
    rt = adf * sqrt(d__1 * d__1 + 1.);
  } else if (adf < ab) {
    d__1 = adf / ab;
    rt = ab * sqrt(d__1 * d__1 + 1.);
  } else {
    rt = ab * sqrt(2.);
  }
  if (sm < 0.) {
    *rt1 = (sm - rt) * .5;
    sgn1 = -1;
    *rt2 = acmx / *rt1 * acmn - *b / *rt1 * *b;
  } else if (sm > 0.) {
    *rt1 = (sm + rt) * .5;
    sgn1 = 1;
    *rt2 = acmx / *rt1 * acmn - *b / *rt1 * *b;
  } else {
    *rt1 = rt * .5;
    *rt2 = rt * -.5;
    sgn1 = 1;
  }
  if (df >= 0.) {
    cs = df + rt;
    sgn2 = 1;
  } else {
    cs = df - rt;
    sgn2 = -1;
  }
  acs = fabs(cs);
  if (acs > ab) {
    ct = -tb / cs;
    *sn1 = 1. / sqrt(ct * ct + 1.);
    *cs1 = ct * *sn1;
  } else {
    if (ab == 0.) {
      *cs1 = 1.;
      *sn1 = 0.;
    } else {
      tn = -cs / tb;
      *cs1 = 1. / sqrt(tn * tn + 1.);
      *sn1 = tn * *cs1;
    }
  }
  if (sgn1 == sgn2) {
    tn = *cs1;
    *cs1 = -(*sn1);
    *sn1 = tn;
  }
  return 0;
}


x86 assembly (clang, -O0):
<odev2_>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
movaps 0xe93(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movaps 0xe69(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movaps 0xe51(%rip),%xmm1
pand   %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
movaps 0xe3e(%rip),%xmm2
pand   %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    11f5 <odev2_+0xe5>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
jmp    1215 <odev2_+0x105>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
ucomisd -0x40(%rbp),%xmm0
jbe    127a <odev2_+0x16a>
movsd  -0x40(%rbp),%xmm0
divsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xdc1(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movsd  -0xa8(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
jmp    1317 <odev2_+0x207>
movsd  -0x80(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    12e3 <odev2_+0x1d3>
movsd  -0x80(%rbp),%xmm0
divsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd58(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movsd  -0xb0(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
jmp    1312 <odev2_+0x202>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0xd18(%rip),%xmm0
call   1030 <sqrt@plt>
movsd  -0xb8(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
jmp    1317 <odev2_+0x207>
xorps  %xmm0,%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    13a9 <odev2_+0x299>
movsd  -0x68(%rbp),%xmm0
subsd  -0x78(%rbp),%xmm0
movsd  0xcf1(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0xffffffff,-0x8c(%rbp)
ff ff ff
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
divsd  (%rax),%xmm0
movsd  -0x98(%rbp),%xmm2
ff
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x20(%rbp),%rax
divsd  (%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1478 <odev2_+0x368>
movsd  -0x68(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    143f <odev2_+0x32f>
movsd  -0x68(%rbp),%xmm0
addsd  -0x78(%rbp),%xmm0
movsd  0xc5b(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x8c(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
divsd  (%rax),%xmm0
movsd  -0x98(%rbp),%xmm2
ff
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x20(%rbp),%rax
divsd  (%rax),%xmm1
mov    -0x10(%rbp),%rax
mulsd  (%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1473 <odev2_+0x363>
movsd  0xbe1(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  0xbc4(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x8c(%rbp)
jmp    1478 <odev2_+0x368>
movsd  -0x48(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     14a8 <odev2_+0x398>
movsd  -0x48(%rbp),%xmm0
addsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x1,-0x90(%rbp)
jmp    14c1 <odev2_+0x3b1>
movsd  -0x48(%rbp),%xmm0
subsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0xffffffff,-0x90(%rbp)
ff ff ff
movsd  -0x50(%rbp),%xmm0
movaps 0xb33(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
ucomisd -0x40(%rbp),%xmm0
jbe    1563 <odev2_+0x453>
movsd  -0x60(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xaf0(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
cvtsi2sd %eax,%xmm1
movsd  0xadb(%rip),%xmm0
divsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x58(%rbp),%xmm0
mov    0x10(%rbp),%rax
mulsd  (%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1612 <odev2_+0x502>
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    159b <odev2_+0x48b>
jp     159b <odev2_+0x48b>
mov    -0x30(%rbp),%rax
movsd  0xa91(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
jmp    160d <odev2_+0x4fd>
movsd  -0x50(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xa41(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
cvtsi2sd %eax,%xmm1
movsd  0xa2c(%rip),%xmm0
divsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x70(%rbp),%xmm0
mov    -0x30(%rbp),%rax
mulsd  (%rax),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1612 <odev2_+0x502>
mov    -0x8c(%rbp),%eax
cmp    -0x90(%rbp),%eax
jne    1665 <odev2_+0x555>
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x70(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<odev2_>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x70,%rsp
mov    %rsi,%rbx
movsd  (%rdi),%xmm7
movsd  (%rdx),%xmm0
movapd %xmm7,%xmm5
subsd  %xmm0,%xmm5
movapd 0xec9(%rip),%xmm6
movapd %xmm5,%xmm3
andpd  %xmm6,%xmm3
movsd  (%rsi),%xmm2
addsd  %xmm2,%xmm2
movapd %xmm2,%xmm4
andpd  %xmm6,%xmm4
movapd %xmm7,%xmm1
andpd  %xmm6,%xmm1
andpd  %xmm0,%xmm6
ucomisd %xmm6,%xmm1
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
cmpltsd %xmm1,%xmm6
movapd %xmm6,%xmm1
andpd  %xmm0,%xmm1
andnpd %xmm7,%xmm6
movapd %xmm7,%xmm8
ja     1185 <odev2_+0x75>
movapd %xmm0,%xmm8
orpd   %xmm1,%xmm6
addsd  %xmm0,%xmm7
ucomisd %xmm4,%xmm3
movapd %xmm2,(%rsp)
movapd %xmm5,0x50(%rsp)
movapd %xmm4,0x30(%rsp)
movsd  %xmm8,0x18(%rsp)
movapd %xmm6,0x40(%rsp)
movapd %xmm7,0x60(%rsp)
jbe    11d3 <odev2_+0xc3>
movapd %xmm4,%xmm0
divsd  %xmm3,%xmm0
mulsd  %xmm0,%xmm0
addsd  0xe5d(%rip),%xmm0
movapd %xmm3,0x20(%rsp)
jmp    11fd <odev2_+0xed>
ucomisd %xmm3,%xmm4
jbe    11ef <odev2_+0xdf>
divsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm3
addsd  0xe3f(%rip),%xmm3
movapd %xmm3,%xmm0
jmp    11f7 <odev2_+0xe7>
movsd  0xe29(%rip),%xmm0
movapd %xmm4,0x20(%rsp)
call   1030 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x20(%rsp),%xmm0
xorpd  %xmm1,%xmm1
movapd 0x60(%rsp),%xmm6
ucomisd %xmm6,%xmm1
jbe    1262 <odev2_+0x152>
subsd  %xmm0,%xmm6
mulsd  0xe05(%rip),%xmm6
movsd  %xmm6,(%r12)
movsd  0x18(%rsp),%xmm5
divsd  %xmm6,%xmm5
movsd  (%rbx),%xmm1
movapd %xmm1,%xmm2
divsd  %xmm6,%xmm2
mulsd  %xmm1,%xmm2
mulsd  0x40(%rsp),%xmm5
subsd  %xmm2,%xmm5
mov    $0xffffffff,%ebx
movapd 0x50(%rsp),%xmm3
jmp    12cd <odev2_+0x1bd>
ucomisd %xmm1,%xmm6
movapd 0x50(%rsp),%xmm3
movsd  0x18(%rsp),%xmm5
movapd 0x40(%rsp),%xmm4
jbe    12aa <odev2_+0x19a>
addsd  %xmm0,%xmm6
mulsd  0xdaa(%rip),%xmm6
movsd  %xmm6,(%r12)
divsd  %xmm6,%xmm5
movsd  (%rbx),%xmm1
movapd %xmm1,%xmm2
divsd  %xmm6,%xmm2
mulsd  %xmm1,%xmm2
mulsd  %xmm4,%xmm5
subsd  %xmm2,%xmm5
jmp    12c8 <odev2_+0x1b8>
movsd  0xd7e(%rip),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%r12)
movsd  0xd74(%rip),%xmm5
mulsd  %xmm0,%xmm5
mov    $0x1,%ebx
movapd 0x30(%rsp),%xmm4
mov    0xa0(%rsp),%r12
movsd  %xmm5,(%r15)
xorpd  %xmm1,%xmm1
xor    %eax,%eax
ucomisd %xmm1,%xmm3
setae  %al
movapd 0xd1b(%rip),%xmm2
xorpd  %xmm0,%xmm2
xorpd  %xmm5,%xmm5
cmpnlesd %xmm3,%xmm5
andpd  %xmm5,%xmm2
andnpd %xmm0,%xmm5
orpd   %xmm2,%xmm5
addsd  %xmm3,%xmm5
lea    (%rax,%rax,1),%ebp
add    $0xffffffff,%ebp
movapd 0xce0(%rip),%xmm0
andpd  %xmm5,%xmm0
ucomisd %xmm4,%xmm0
jbe    137a <odev2_+0x26a>
movapd (%rsp),%xmm0
xorpd  0xcd9(%rip),%xmm0
divsd  %xmm5,%xmm0
movapd %xmm0,(%rsp)
mulsd  %xmm0,%xmm0
addsd  0xcdc(%rip),%xmm0
call   1030 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0xcc8(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%r12)
mulsd  (%rsp),%xmm1
movsd  %xmm1,(%r14)
cmp    %ebp,%ebx
je     13a0 <odev2_+0x290>
jmp    13be <odev2_+0x2ae>
movapd (%rsp),%xmm0
ucomisd %xmm1,%xmm0
jne    13cd <odev2_+0x2bd>
jp     13cd <odev2_+0x2bd>
movabs $0x3ff0000000000000,%rax
mov    %rax,(%r14)
movq   $0x0,(%r12)
cmp    %ebp,%ebx
jne    13be <odev2_+0x2ae>
movsd  (%r14),%xmm0
movsd  (%r12),%xmm1
xorpd  0xc5d(%rip),%xmm1
movlpd %xmm1,(%r14)
movsd  %xmm0,(%r12)
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
xorpd  0xc3b(%rip),%xmm5
divsd  %xmm0,%xmm5
movapd %xmm5,(%rsp)
movapd %xmm5,%xmm0
mulsd  %xmm5,%xmm0
addsd  0xc3a(%rip),%xmm0
call   1030 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0xc26(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%r14)
mulsd  (%rsp),%xmm1
movsd  %xmm1,(%r12)
cmp    %ebp,%ebx
je     13a0 <odev2_+0x290>
jmp    13be <odev2_+0x2ae>

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

LLVM IR (-O2):
define i32 @odev2_(double* nocapture %0, double* nocapture %1, double* nocapture %2, double* nocapture writeonly %3, double* nocapture writeonly %4, double* nocapture %5, double* nocapture %6) {
%8 = load double, double* %0
%9 = load double, double* %2
%10 = fadd double %8, %9
%11 = fsub double %8, %9
%12 = tail call double @llvm.fabs.f64(double %11)
%13 = load double, double* %1
%14 = fadd double %13, %13
%15 = tail call double @llvm.fabs.f64(double %14)
%16 = tail call double @llvm.fabs.f64(double %8)
%17 = tail call double @llvm.fabs.f64(double %9)
%18 = fcmp ogt double %16, %17
%19 = select i1 %18, double %9, double %8
%20 = select i1 %18, double %8, double %9
%21 = fcmp ogt double %12, %15
br i1 %21, label %22, label %25
22: ; preds = %7
%23 = fdiv double %15, %12
%24 = tail call double @llvm.fmuladd.f64(double %23, double %23, double 1.000000e+00)
br label %30
25: ; preds = %7
%26 = fcmp olt double %12, %15
br i1 %26, label %27, label %30
27: ; preds = %25
%28 = fdiv double %12, %15
%29 = tail call double @llvm.fmuladd.f64(double %28, double %28, double 1.000000e+00)
br label %30
30: ; preds = %25, %27, %22
%31 = phi double [ %29, %27 ], [ %24, %22 ], [ 2.000000e+00, %25 ]
%32 = phi double [ %15, %27 ], [ %12, %22 ], [ %15, %25 ]
%33 = tail call i32 @sqrt(double %31)
%34 = sitofp i32 %33 to double
%35 = fmul double %32, %34
%36 = fcmp olt double %10, 0.000000e+00
br i1 %36, label %37, label %46
37: ; preds = %30
%38 = fsub double %10, %35
%39 = fmul double %38, 5.000000e-01
store double %39, double* %3
%40 = fdiv double %20, %39
%41 = load double, double* %1
%42 = fneg double %41
%43 = fdiv double %42, %39
%44 = fmul double %41, %43
%45 = tail call double @llvm.fmuladd.f64(double %40, double %19, double %44)
br label %60
46: ; preds = %30
%47 = fcmp ogt double %10, 0.000000e+00
br i1 %47, label %48, label %57
48: ; preds = %46
%49 = fadd double %10, %35
%50 = fmul double %49, 5.000000e-01
store double %50, double* %3
%51 = fdiv double %20, %50
%52 = load double, double* %1
%53 = fneg double %52
%54 = fdiv double %53, %50
%55 = fmul double %52, %54
%56 = tail call double @llvm.fmuladd.f64(double %51, double %19, double %55)
br label %60
57: ; preds = %46
%58 = fmul double %35, 5.000000e-01
store double %58, double* %3
%59 = fmul double %35, -5.000000e-01
br label %60
60: ; preds = %48, %57, %37
%61 = phi double [ %56, %48 ], [ %59, %57 ], [ %45, %37 ]
%62 = phi i32 [ 1, %48 ], [ 1, %57 ], [ -1, %37 ]
store double %61, double* %4
%63 = fcmp ult double %11, 0.000000e+00
%64 = fneg double %35
%65 = select i1 %63, double %64, double %35
%66 = fadd double %11, %65
%67 = select i1 %63, i32 -1, i32 1
%68 = tail call double @llvm.fabs.f64(double %66)
%69 = fcmp ogt double %68, %15
br i1 %69, label %70, label %78
70: ; preds = %60
%71 = fneg double %14
%72 = fdiv double %71, %66
%73 = tail call double @llvm.fmuladd.f64(double %72, double %72, double 1.000000e+00)
%74 = tail call i32 @sqrt(double %73)
%75 = sitofp i32 %74 to double
%76 = fdiv double 1.000000e+00, %75
store double %76, double* %6
%77 = fmul double %72, %76
store double %77, double* %5
br label %89
78: ; preds = %60
%79 = fcmp oeq double %14, 0.000000e+00
br i1 %79, label %80, label %81
80: ; preds = %78
store double 1.000000e+00, double* %5
store double 0.000000e+00, double* %6
br label %89
81: ; preds = %78
%82 = fneg double %66
%83 = fdiv double %82, %14
%84 = tail call double @llvm.fmuladd.f64(double %83, double %83, double 1.000000e+00)
%85 = tail call i32 @sqrt(double %84)
%86 = sitofp i32 %85 to double
%87 = fdiv double 1.000000e+00, %86
store double %87, double* %5
%88 = fmul double %83, %87
store double %88, double* %6
br label %89
89: ; preds = %80, %81, %70
%90 = icmp eq i32 %62, %67
br i1 %90, label %91, label %95
91: ; preds = %89
%92 = load double, double* %5
%93 = load double, double* %6
%94 = fneg double %93
store double %94, double* %5
store double %92, double* %6
br label %95
95: ; preds = %91, %89
ret i32 0
}