#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);
double sqrt(double);
int quad_roots(double a, double b, double c, double t0, double t1, double *t) {
  if (fabs(a) < (fabs(b) > fabs(c) ? fabs(b) : fabs(c)) * 1.0e-8 ||
      fabs(a) < 1.0e-16) {
    if (fabs(b) < fabs(c) * 1.0e-8)
      return 0;
    t[0] = -c / b;
    return t[0] > t0 && t[0] < t1;
  }
  double p = b / a;
  double q = c / a;
  double det = 0.25 * p - q;
  if (det < 0)
    return 0;
  det = sqrt(det);
  if (p > 0.0)
    t[0] = -0.5 * p - det;
  else
    t[0] = -0.5 * p + det;
  if (fabs(t[0]) < 1.0e-8)
    return t[0] > t0 && t[0] < t1;
  t[1] = q / t[0];
  if (t[0] <= t0 || t[0] >= t1) {
    t[0] = t[1];
    return t[0] > t0 && t[0] < t1;
  }
  if (t[1] <= t0 || t[1] >= t1)
    return 1;
  if (t[0] > t[1]) {
    double tmp = t[1];
    t[1] = t[0];
    t[0] = tmp;
  }
  return fabs(t[0] - t[1]) < 1.0e-8 ? 1 : 2;
}


x86 assembly (clang, -O0):
<quad_roots>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  %xmm4,-0x30(%rbp)
mov    %rdi,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
movaps 0xebf(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x18(%rbp),%xmm0
movaps 0xeaa(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
movaps 0xe9a(%rip),%xmm2
pand   %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    118e <quad_roots+0x7e>
movsd  -0x18(%rbp),%xmm0
movaps 0xe80(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
jmp    11a3 <quad_roots+0x93>
movsd  -0x20(%rbp),%xmm0
movaps 0xe66(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm0
movsd  0xe5b(%rip),%xmm2
mulsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
ja     11e5 <quad_roots+0xd5>
movsd  -0x10(%rbp),%xmm1
movaps 0xe31(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  0xe3d(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    128f <quad_roots+0x17f>
movsd  -0x18(%rbp),%xmm1
movaps 0xe0f(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movaps 0xdff(%rip),%xmm2
pand   %xmm2,%xmm0
movsd  0xe03(%rip),%xmm2
mulsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    1227 <quad_roots+0x117>
movl   $0x0,-0x4(%rbp)
jmp    1525 <quad_roots+0x415>
movsd  -0x20(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x18(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
xor    %eax,%eax
ucomisd -0x28(%rbp),%xmm0
mov    %al,-0x69(%rbp)
jbe    127f <quad_roots+0x16f>
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x30(%rbp),%xmm0
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x69(%rbp)
mov    -0x69(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    1525 <quad_roots+0x415>
movsd  -0x18(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x20(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xd4a(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x50(%rbp),%xmm0
jbe    12fd <quad_roots+0x1ed>
movl   $0x0,-0x4(%rbp)
jmp    1525 <quad_roots+0x415>
movsd  -0x50(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    135c <quad_roots+0x24c>
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xce1(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    137e <quad_roots+0x26e>
movsd  -0x40(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
movsd  0xcba(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm1
movaps 0xc73(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  0xc77(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    13e2 <quad_roots+0x2d2>
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
xor    %eax,%eax
ucomisd -0x28(%rbp),%xmm0
mov    %al,-0x6a(%rbp)
jbe    13d2 <quad_roots+0x2c2>
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x30(%rbp),%xmm0
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x6a(%rbp)
mov    -0x6a(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    1525 <quad_roots+0x415>
movsd  -0x48(%rbp),%xmm0
mov    -0x38(%rbp),%rax
divsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x28(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jae    1422 <quad_roots+0x312>
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd -0x30(%rbp),%xmm0
jb     1472 <quad_roots+0x362>
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
xor    %eax,%eax
ucomisd -0x28(%rbp),%xmm0
mov    %al,-0x6b(%rbp)
jbe    1462 <quad_roots+0x352>
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x30(%rbp),%xmm0
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x6b(%rbp)
mov    -0x6b(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    1525 <quad_roots+0x415>
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm1
movsd  -0x28(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jae    149e <quad_roots+0x38e>
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm0
ucomisd -0x30(%rbp),%xmm0
jb     14aa <quad_roots+0x39a>
movl   $0x1,-0x4(%rbp)
jmp    1525 <quad_roots+0x415>
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
ucomisd 0x8(%rax),%xmm0
jbe    14ed <quad_roots+0x3dd>
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x58(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x38(%rbp),%rax
subsd  0x8(%rax),%xmm1
movaps 0xafb(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  0xaff(%rip),%xmm0
mov    $0x2,%eax
mov    $0x1,%ecx
ucomisd %xmm1,%xmm0
cmova  %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quad_roots>:
push   %rbx
sub    $0x30,%rsp
mov    %rdi,%rbx
movapd 0xee0(%rip),%xmm6
movapd %xmm0,%xmm5
andpd  %xmm6,%xmm5
movapd %xmm1,%xmm8
andpd  %xmm6,%xmm8
andpd  %xmm2,%xmm6
movsd  0xeea(%rip),%xmm7
ucomisd %xmm5,%xmm7
ja     118f <quad_roots+0x7f>
movapd %xmm8,%xmm7
maxsd  %xmm6,%xmm7
mulsd  0xecb(%rip),%xmm7
ucomisd %xmm5,%xmm7
ja     118f <quad_roots+0x7f>
divsd  %xmm0,%xmm1
divsd  %xmm0,%xmm2
movsd  0xec5(%rip),%xmm0
mulsd  %xmm1,%xmm0
subsd  %xmm2,%xmm0
xor    %eax,%eax
xorpd  %xmm5,%xmm5
ucomisd %xmm0,%xmm5
ja     1255 <quad_roots+0x145>
ucomisd %xmm5,%xmm0
jb     11c4 <quad_roots+0xb4>
sqrtsd %xmm0,%xmm0
jmp    11f7 <quad_roots+0xe7>
mulsd  0xe89(%rip),%xmm6
xor    %eax,%eax
ucomisd %xmm8,%xmm6
ja     1255 <quad_roots+0x145>
xorpd  0xe64(%rip),%xmm2
divsd  %xmm1,%xmm2
movsd  %xmm2,(%rbx)
ucomisd %xmm3,%xmm2
seta   %al
ucomisd %xmm2,%xmm4
jmp    124d <quad_roots+0x13d>
movapd %xmm2,0x20(%rsp)
movapd %xmm1,0x10(%rsp)
movsd  %xmm4,0x8(%rsp)
movsd  %xmm3,(%rsp)
call   1030 <sqrt@plt>
movsd  (%rsp),%xmm3
movsd  0x8(%rsp),%xmm4
movapd 0x10(%rsp),%xmm1
movapd 0x20(%rsp),%xmm2
movapd 0xe11(%rip),%xmm5
xorpd  %xmm0,%xmm5
xorpd  %xmm6,%xmm6
cmpltsd %xmm1,%xmm6
andpd  %xmm6,%xmm5
andnpd %xmm0,%xmm6
mulsd  0xe1c(%rip),%xmm1
orpd   %xmm5,%xmm6
addsd  %xmm6,%xmm1
movsd  %xmm1,(%rbx)
movapd 0xdd0(%rip),%xmm5
andpd  %xmm1,%xmm5
movsd  0xde4(%rip),%xmm0
ucomisd %xmm5,%xmm0
jbe    125b <quad_roots+0x14b>
ucomisd %xmm3,%xmm1
seta   %al
ucomisd %xmm1,%xmm4
seta   %cl
and    %al,%cl
movzbl %cl,%eax
add    $0x30,%rsp
pop    %rbx
ret
divsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rbx)
ucomisd %xmm1,%xmm3
jae    11b0 <quad_roots+0xa0>
ucomisd %xmm4,%xmm1
jae    11b0 <quad_roots+0xa0>
ucomisd %xmm2,%xmm3
mov    $0x1,%eax
jae    1255 <quad_roots+0x145>
ucomisd %xmm4,%xmm2
jae    1255 <quad_roots+0x145>
ucomisd %xmm2,%xmm1
jbe    129e <quad_roots+0x18e>
movsd  %xmm1,0x8(%rbx)
movsd  %xmm2,(%rbx)
movapd %xmm1,%xmm3
jmp    12a6 <quad_roots+0x196>
movapd %xmm2,%xmm3
movapd %xmm1,%xmm2
subsd  %xmm3,%xmm2
andpd  0xd4e(%rip),%xmm2
xor    %ecx,%ecx
ucomisd %xmm2,%xmm0
seta   %cl
mov    $0x2,%eax
sub    %ecx,%eax
jmp    1255 <quad_roots+0x145>

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

LLVM IR (-O2):
define i32 @quad_roots(double %0, double %1, double %2, double %3, double %4, double* nocapture %5) {
%7 = tail call double @llvm.fabs.f64(double %0)
%8 = tail call double @llvm.fabs.f64(double %1)
%9 = tail call double @llvm.fabs.f64(double %2)
%10 = fcmp ogt double %8, %9
%11 = select i1 %10, double %8, double %9
%12 = fmul double %11, 1.000000e-08
%13 = fcmp olt double %7, %12
%14 = fcmp olt double %7, 0x3C9CD2B297D889BC
%15 = or i1 %14, %13
br i1 %15, label %16, label %26
16: ; preds = %6
%17 = fmul double %9, 1.000000e-08
%18 = fcmp olt double %8, %17
br i1 %18, label %70, label %19
19: ; preds = %16
%20 = fneg double %2
%21 = fdiv double %20, %1
store double %21, double* %5
%22 = fcmp ogt double %21, %3
%23 = fcmp olt double %21, %4
%24 = and i1 %22, %23
%25 = zext i1 %24 to i32
br label %70
26: ; preds = %6
%27 = fdiv double %1, %0
%28 = fdiv double %2, %0
%29 = fneg double %28
%30 = tail call double @llvm.fmuladd.f64(double %27, double 2.500000e-01, double %29)
%31 = fcmp olt double %30, 0.000000e+00
br i1 %31, label %70, label %32
32: ; preds = %26
%33 = tail call double @sqrt(double %30)
%34 = fcmp ogt double %27, 0.000000e+00
%35 = fneg double %33
%36 = select i1 %34, double %35, double %33
%37 = tail call double @llvm.fmuladd.f64(double %27, double -5.000000e-01, double %36)
store double %37, double* %5
%38 = tail call double @llvm.fabs.f64(double %37)
%39 = fcmp olt double %38, 1.000000e-08
br i1 %39, label %40, label %45
40: ; preds = %32
%41 = fcmp ogt double %37, %3
%42 = fcmp olt double %37, %4
%43 = and i1 %41, %42
%44 = zext i1 %43 to i32
br label %70
45: ; preds = %32
%46 = fdiv double %28, %37
%47 = getelementptr inbounds double, double* %5, i64 1
store double %46, double* %47
%48 = fcmp ugt double %37, %3
%49 = fcmp ult double %37, %4
%50 = and i1 %48, %49
br i1 %50, label %56, label %51
51: ; preds = %45
store double %46, double* %5
%52 = fcmp ogt double %46, %3
%53 = fcmp olt double %46, %4
%54 = and i1 %52, %53
%55 = zext i1 %54 to i32
br label %70
56: ; preds = %45
%57 = fcmp ugt double %46, %3
%58 = fcmp ult double %46, %4
%59 = and i1 %57, %58
br i1 %59, label %60, label %70
60: ; preds = %56
%61 = fcmp ogt double %37, %46
br i1 %61, label %62, label %63
62: ; preds = %60
store double %37, double* %47
store double %46, double* %5
br label %63
63: ; preds = %62, %60
%64 = phi double [ %37, %62 ], [ %46, %60 ]
%65 = phi double [ %46, %62 ], [ %37, %60 ]
%66 = fsub double %65, %64
%67 = tail call double @llvm.fabs.f64(double %66)
%68 = fcmp olt double %67, 1.000000e-08
%69 = select i1 %68, i32 1, i32 2
br label %70
70: ; preds = %40, %51, %63, %26, %56, %16, %19
%71 = phi i32 [ %25, %19 ], [ 0, %16 ], [ %44, %40 ], [ %55, %51 ], [ %69, %63 ], [ 0, %26 ], [ 1, %56 ]
ret i32 %71
}