#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 */
int DBL_EPSILON;
double NAN;
double fabs(double);
int log(double);
double solve(double b, double w) {
  double delta;
  double df, t;
  if (w == 0)
    return b;
  double tolerance = 2 * b * DBL_EPSILON;
  double d_lo = 0;
  double d_hi = b;
  double d = (d_lo + d_hi) / 2;
  double last_delta = d_hi - d_lo;
  double f_b = -2 * log(b) + w * b;
  double f = 2 * log(d) + w * d + f_b;
  double last_f = NAN;
  for (int i = 1; i < 40; ++i) {
    df = 2 / d + w;
    if (((d - d_hi) * df - f) * ((d - d_lo) * df - f) >= 0 ||
        fabs(1.9 * f) > fabs(last_delta * df)) {
      delta = (d_hi - d_lo) / 2;
      d = d_lo + delta;
      if (d == d_lo)
        return d;
    } else {
      delta = f / df;
      t = d;
      d -= delta;
      if (d == t)
        return d;
    }
    if (fabs(delta) < tolerance)
      return d;
    last_delta = delta;
    f = 2 * log(d) + w * d + f_b;
    if (f == 0 || f == last_f)
      return d;
    last_f = f;
    if (f < 0)
      d_lo = d;
    else
      d_hi = d;
  }
  return -1;
}


x86 assembly (clang, -O0):
<solve>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    114c <solve+0x3c>
jp     114c <solve+0x3c>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1489 <solve+0x379>
movsd  0xeac(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mov    0x2e80(%rip),%rax
cvtsi2sdl (%rax),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
addsd  -0x48(%rbp),%xmm0
movsd  0xe6f(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x48(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <log@plt>
imul   $0xfffffffe,%eax,%eax
cvtsi2sd %eax,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x50(%rbp),%xmm0
call   1030 <log@plt>
shl    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x2df0(%rip),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
movl   $0x1,-0x74(%rbp)
cmpl   $0x28,-0x74(%rbp)
jge    147c <solve+0x36c>
movsd  0xdd6(%rip),%xmm0
divsd  -0x50(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x50(%rbp),%xmm0
subsd  -0x48(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x50(%rbp),%xmm1
subsd  -0x40(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm3
movsd  -0x68(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jae    12e7 <solve+0x1d7>
movsd  0xd58(%rip),%xmm0
mulsd  -0x68(%rbp),%xmm0
movaps 0xd5c(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  -0x58(%rbp),%xmm1
mulsd  -0x28(%rbp),%xmm1
movaps 0xd47(%rip),%xmm2
pand   %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    133b <solve+0x22b>
movsd  -0x48(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  0xd07(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x40(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
ucomisd -0x40(%rbp),%xmm0
jne    1336 <solve+0x226>
jp     1336 <solve+0x226>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1489 <solve+0x379>
jmp    1391 <solve+0x281>
movsd  -0x68(%rbp),%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
ucomisd -0x30(%rbp),%xmm0
jne    138c <solve+0x27c>
jp     138c <solve+0x27c>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1489 <solve+0x379>
jmp    1391 <solve+0x281>
movsd  -0x20(%rbp),%xmm1
movaps 0xc83(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    13bf <solve+0x2af>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1489 <solve+0x379>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
call   1030 <log@plt>
shl    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1413 <solve+0x303>
jp     1413 <solve+0x303>
jmp    1429 <solve+0x319>
movsd  -0x68(%rbp),%xmm0
ucomisd -0x70(%rbp),%xmm0
jne    1438 <solve+0x328>
jp     1438 <solve+0x328>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1489 <solve+0x379>
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    145f <solve+0x34f>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    1469 <solve+0x359>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
jmp    146e <solve+0x35e>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    1218 <solve+0x108>
movsd  0xb84(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solve>:
push   %rbx
sub    $0x60,%rsp
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm1
jne    1127 <solve+0x17>
jp     1127 <solve+0x17>
add    $0x60,%rsp
pop    %rbx
ret
movapd %xmm0,%xmm4
addsd  %xmm0,%xmm4
mov    0x2eaa(%rip),%rax
cvtsi2sdl (%rax),%xmm3
mulsd  %xmm4,%xmm3
movsd  %xmm3,0x38(%rsp)
movapd %xmm0,%xmm3
addsd  %xmm2,%xmm3
mulsd  0xeac(%rip),%xmm3
movapd %xmm3,0x20(%rsp)
movsd  %xmm1,(%rsp)
movapd %xmm0,0x10(%rsp)
call   1030 <log@plt>
add    %eax,%eax
neg    %eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
mulsd  0x10(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movaps 0x20(%rsp),%xmm0
call   1030 <log@plt>
movapd 0x20(%rsp),%xmm0
xorpd  %xmm4,%xmm4
movsd  (%rsp),%xmm3
add    %eax,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movapd %xmm3,%xmm5
mulsd  %xmm0,%xmm5
addsd  %xmm1,%xmm5
addsd  0x8(%rsp),%xmm5
mov    0x2e33(%rip),%rax
movsd  (%rax),%xmm8
mov    $0x27,%ebx
movapd 0x10(%rsp),%xmm6
xorpd  %xmm7,%xmm7
jmp    120b <solve+0xfb>
nopl   0x0(%rax,%rax,1)
movapd %xmm5,%xmm1
cmpltsd %xmm4,%xmm1
movapd %xmm1,%xmm2
andpd  %xmm0,%xmm2
andnpd %xmm7,%xmm1
orpd   %xmm2,%xmm1
movapd %xmm5,%xmm8
movapd %xmm1,%xmm7
add    $0xffffffff,%ebx
je     135f <solve+0x24f>
movsd  0xdf5(%rip),%xmm1
divsd  %xmm0,%xmm1
addsd  %xmm3,%xmm1
movapd %xmm0,%xmm2
subsd  %xmm6,%xmm2
mulsd  %xmm1,%xmm2
subsd  %xmm5,%xmm2
movapd %xmm0,%xmm3
subsd  %xmm7,%xmm3
mulsd  %xmm1,%xmm3
subsd  %xmm5,%xmm3
mulsd  %xmm2,%xmm3
ucomisd %xmm4,%xmm3
jae    1271 <solve+0x161>
movapd %xmm5,%xmm2
mulsd  0xdbf(%rip),%xmm2
movapd 0xdc7(%rip),%xmm4
andpd  %xmm4,%xmm2
movapd 0x10(%rsp),%xmm3
mulsd  %xmm1,%xmm3
andpd  %xmm4,%xmm3
ucomisd %xmm3,%xmm2
jbe    12a0 <solve+0x190>
movapd %xmm6,%xmm5
subsd  %xmm7,%xmm5
mulsd  0xd7f(%rip),%xmm5
movapd %xmm7,%xmm0
addsd  %xmm5,%xmm0
ucomisd %xmm7,%xmm0
jne    12bc <solve+0x1ac>
jp     12bc <solve+0x1ac>
jmp    1121 <solve+0x11>
cs nopw 0x0(%rax,%rax,1)
divsd  %xmm1,%xmm5
movapd %xmm0,%xmm1
subsd  %xmm5,%xmm1
ucomisd %xmm0,%xmm1
movapd %xmm1,%xmm0
jne    12bc <solve+0x1ac>
jnp    1121 <solve+0x11>
movapd %xmm5,%xmm1
andpd  0xd58(%rip),%xmm1
movsd  0x38(%rsp),%xmm2
ucomisd %xmm1,%xmm2
ja     1121 <solve+0x11>
movapd %xmm7,0x50(%rsp)
movsd  %xmm8,0x40(%rsp)
movsd  %xmm6,0x48(%rsp)
movapd %xmm5,0x10(%rsp)
movapd %xmm0,0x20(%rsp)
call   1030 <log@plt>
movapd 0x20(%rsp),%xmm0
xorpd  %xmm4,%xmm4
movsd  (%rsp),%xmm3
add    %eax,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movapd %xmm3,%xmm5
mulsd  %xmm0,%xmm5
addsd  %xmm1,%xmm5
addsd  0x8(%rsp),%xmm5
ucomisd %xmm4,%xmm5
jne    1332 <solve+0x222>
jnp    1121 <solve+0x11>
ucomisd 0x40(%rsp),%xmm5
movsd  0x48(%rsp),%xmm6
movapd 0x50(%rsp),%xmm7
jne    134c <solve+0x23c>
jnp    1121 <solve+0x11>
ucomisd %xmm5,%xmm4
ja     11e0 <solve+0xd0>
movapd %xmm0,%xmm6
jmp    11e0 <solve+0xd0>
movsd  0xcb1(%rip),%xmm0
jmp    1121 <solve+0x11>

LLVM IR (-O0):
@DBL_EPSILON = global i32 0
@NAN = global double 0.000000e+00
define double @solve(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%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 i32
store double %0, double* %4
store double %1, double* %5
%18 = load double, double* %5
%19 = fcmp oeq double %18, 0.000000e+00
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = load double, double* %4
store double %21, double* %3
br label %153
22: ; preds = %2
%23 = load double, double* %4
%24 = fmul double 2.000000e+00, %23
%25 = load i32, i32* @DBL_EPSILON
%26 = sitofp i32 %25 to double
%27 = fmul double %24, %26
store double %27, double* %9
store double 0.000000e+00, double* %10
%28 = load double, double* %4
store double %28, double* %11
%29 = load double, double* %10
%30 = load double, double* %11
%31 = fadd double %29, %30
%32 = fdiv double %31, 2.000000e+00
store double %32, double* %12
%33 = load double, double* %11
%34 = load double, double* %10
%35 = fsub double %33, %34
store double %35, double* %13
%36 = load double, double* %4
%37 = call i32 @log(double %36)
%38 = mul nsw i32 -2, %37
%39 = sitofp i32 %38 to double
%40 = load double, double* %5
%41 = load double, double* %4
%42 = call double @llvm.fmuladd.f64(double %40, double %41, double %39)
store double %42, double* %14
%43 = load double, double* %12
%44 = call i32 @log(double %43)
%45 = mul nsw i32 2, %44
%46 = sitofp i32 %45 to double
%47 = load double, double* %5
%48 = load double, double* %12
%49 = call double @llvm.fmuladd.f64(double %47, double %48, double %46)
%50 = load double, double* %14
%51 = fadd double %49, %50
store double %51, double* %15
%52 = load double, double* @NAN
store double %52, double* %16
store i32 1, i32* %17
br label %53
53: ; preds = %149, %22
%54 = load i32, i32* %17
%55 = icmp slt i32 %54, 40
br i1 %55, label %56, label %152
56: ; preds = %53
%57 = load double, double* %12
%58 = fdiv double 2.000000e+00, %57
%59 = load double, double* %5
%60 = fadd double %58, %59
store double %60, double* %7
%61 = load double, double* %12
%62 = load double, double* %11
%63 = fsub double %61, %62
%64 = load double, double* %7
%65 = load double, double* %15
%66 = fneg double %65
%67 = call double @llvm.fmuladd.f64(double %63, double %64, double %66)
%68 = load double, double* %12
%69 = load double, double* %10
%70 = fsub double %68, %69
%71 = load double, double* %7
%72 = load double, double* %15
%73 = fneg double %72
%74 = call double @llvm.fmuladd.f64(double %70, double %71, double %73)
%75 = fmul double %67, %74
%76 = fcmp oge double %75, 0.000000e+00
br i1 %76, label %86, label %77
77: ; preds = %56
%78 = load double, double* %15
%79 = fmul double 1.900000e+00, %78
%80 = call double @llvm.fabs.f64(double %79)
%81 = load double, double* %13
%82 = load double, double* %7
%83 = fmul double %81, %82
%84 = call double @llvm.fabs.f64(double %83)
%85 = fcmp ogt double %80, %84
br i1 %85, label %86, label %100
86: ; preds = %77, %56
%87 = load double, double* %11
%88 = load double, double* %10
%89 = fsub double %87, %88
%90 = fdiv double %89, 2.000000e+00
store double %90, double* %6
%91 = load double, double* %10
%92 = load double, double* %6
%93 = fadd double %91, %92
store double %93, double* %12
%94 = load double, double* %12
%95 = load double, double* %10
%96 = fcmp oeq double %94, %95
br i1 %96, label %97, label %99
97: ; preds = %86
%98 = load double, double* %12
store double %98, double* %3
br label %153
99: ; preds = %86
br label %114
100: ; preds = %77
%101 = load double, double* %15
%102 = load double, double* %7
%103 = fdiv double %101, %102
store double %103, double* %6
%104 = load double, double* %12
store double %104, double* %8
%105 = load double, double* %6
%106 = load double, double* %12
%107 = fsub double %106, %105
store double %107, double* %12
%108 = load double, double* %12
%109 = load double, double* %8
%110 = fcmp oeq double %108, %109
br i1 %110, label %111, label %113
111: ; preds = %100
%112 = load double, double* %12
store double %112, double* %3
br label %153
113: ; preds = %100
br label %114
114: ; preds = %113, %99
%115 = load double, double* %6
%116 = call double @llvm.fabs.f64(double %115)
%117 = load double, double* %9
%118 = fcmp olt double %116, %117
br i1 %118, label %119, label %121
119: ; preds = %114
%120 = load double, double* %12
store double %120, double* %3
br label %153
121: ; preds = %114
%122 = load double, double* %6
store double %122, double* %13
%123 = load double, double* %12
%124 = call i32 @log(double %123)
%125 = mul nsw i32 2, %124
%126 = sitofp i32 %125 to double
%127 = load double, double* %5
%128 = load double, double* %12
%129 = call double @llvm.fmuladd.f64(double %127, double %128, double %126)
%130 = load double, double* %14
%131 = fadd double %129, %130
store double %131, double* %15
%132 = load double, double* %15
%133 = fcmp oeq double %132, 0.000000e+00
br i1 %133, label %138, label %134
134: ; preds = %121
%135 = load double, double* %15
%136 = load double, double* %16
%137 = fcmp oeq double %135, %136
br i1 %137, label %138, label %140
138: ; preds = %134, %121
%139 = load double, double* %12
store double %139, double* %3
br label %153
140: ; preds = %134
%141 = load double, double* %15
store double %141, double* %16
%142 = load double, double* %15
%143 = fcmp olt double %142, 0.000000e+00
br i1 %143, label %144, label %146
144: ; preds = %140
%145 = load double, double* %12
store double %145, double* %10
br label %148
146: ; preds = %140
%147 = load double, double* %12
store double %147, double* %11
br label %148
148: ; preds = %146, %144
br label %149
149: ; preds = %148
%150 = load i32, i32* %17
%151 = add nsw i32 %150, 1
store i32 %151, i32* %17
br label %53
152: ; preds = %53
store double -1.000000e+00, double* %3
br label %153
153: ; preds = %152, %138, %119, %111, %97, %20
%154 = load double, double* %3
ret double %154
}

LLVM IR (-O2):
@DBL_EPSILON = global i32 0
@NAN = global double 0.000000e+00
define double @solve(double %0, double %1) {
%3 = fcmp oeq double %1, 0.000000e+00
br i1 %3, label %73, label %4
4: ; preds = %2
%5 = fmul double %0, 2.000000e+00
%6 = load i32, i32* @DBL_EPSILON
%7 = sitofp i32 %6 to double
%8 = fmul double %5, %7
%9 = fadd double %0, 0.000000e+00
%10 = fmul double %9, 5.000000e-01
%11 = tail call i32 @log(double %0)
%12 = mul nsw i32 %11, -2
%13 = sitofp i32 %12 to double
%14 = tail call double @llvm.fmuladd.f64(double %1, double %0, double %13)
%15 = tail call i32 @log(double %10)
%16 = shl nsw i32 %15, 1
%17 = sitofp i32 %16 to double
%18 = tail call double @llvm.fmuladd.f64(double %1, double %10, double %17)
%19 = fadd double %14, %18
%20 = load double, double* @NAN
br label %21
21: ; preds = %4, %67
%22 = phi i32 [ 1, %4 ], [ %71, %67 ]
%23 = phi double [ %20, %4 ], [ %63, %67 ]
%24 = phi double [ %19, %4 ], [ %63, %67 ]
%25 = phi double [ %0, %4 ], [ %54, %67 ]
%26 = phi double [ %10, %4 ], [ %55, %67 ]
%27 = phi double [ %0, %4 ], [ %70, %67 ]
%28 = phi double [ 0.000000e+00, %4 ], [ %69, %67 ]
%29 = fdiv double 2.000000e+00, %26
%30 = fadd double %29, %1
%31 = fsub double %26, %27
%32 = fneg double %24
%33 = tail call double @llvm.fmuladd.f64(double %31, double %30, double %32)
%34 = fsub double %26, %28
%35 = tail call double @llvm.fmuladd.f64(double %34, double %30, double %32)
%36 = fmul double %33, %35
%37 = fcmp ult double %36, 0.000000e+00
br i1 %37, label %38, label %44
38: ; preds = %21
%39 = fmul double %24, 1.900000e+00
%40 = tail call double @llvm.fabs.f64(double %39)
%41 = fmul double %25, %30
%42 = tail call double @llvm.fabs.f64(double %41)
%43 = fcmp ogt double %40, %42
br i1 %43, label %44, label %49
44: ; preds = %38, %21
%45 = fsub double %27, %28
%46 = fmul double %45, 5.000000e-01
%47 = fadd double %28, %46
%48 = fcmp oeq double %47, %28
br i1 %48, label %73, label %53
49: ; preds = %38
%50 = fdiv double %24, %30
%51 = fsub double %26, %50
%52 = fcmp oeq double %51, %26
br i1 %52, label %73, label %53
53: ; preds = %49, %44
%54 = phi double [ %46, %44 ], [ %50, %49 ]
%55 = phi double [ %47, %44 ], [ %51, %49 ]
%56 = tail call double @llvm.fabs.f64(double %54)
%57 = fcmp olt double %56, %8
br i1 %57, label %73, label %58
58: ; preds = %53
%59 = tail call i32 @log(double %55)
%60 = shl nsw i32 %59, 1
%61 = sitofp i32 %60 to double
%62 = tail call double @llvm.fmuladd.f64(double %1, double %55, double %61)
%63 = fadd double %14, %62
%64 = fcmp oeq double %63, 0.000000e+00
%65 = fcmp oeq double %63, %23
%66 = select i1 %64, i1 true, i1 %65
br i1 %66, label %73, label %67
67: ; preds = %58
%68 = fcmp olt double %63, 0.000000e+00
%69 = select i1 %68, double %55, double %28
%70 = select i1 %68, double %27, double %55
%71 = add nuw nsw i32 %22, 1
%72 = icmp eq i32 %71, 40
br i1 %72, label %73, label %21
73: ; preds = %58, %53, %49, %44, %67, %2
%74 = phi double [ %0, %2 ], [ %47, %44 ], [ %51, %49 ], [ %55, %53 ], [ %55, %58 ], [ -1.000000e+00, %67 ]
ret double %74
}