#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 */
float fabs(float);
void stub1(float, float *, float *);
void stub2(float, float *, float *);
void stub3(float, float *, float *);
void stub4(float, float *, float *);
float rtsafe(void (*funcd)(float, float *, float *), float x1, float x2,
             float xacc) {
  void nrerror(char error_text[]);
  int j;
  float df, dx, dxold, f, fh, fl;
  float temp, xh, xl, rts;
  (*funcd)(x1, &fl, &df);
  (*funcd)(x2, &fh, &df);
  if ((fl > 0.0 && fh > 0.0) || (fl < 0.0 && fh < 0.0))
    nrerror("Root must be bracketed in rtsafe");
  if (fl == 0.0)
    return x1;
  if (fh == 0.0)
    return x2;
  if (fl < 0.0) {
    xl = x1;
    xh = x2;
  } else {
    xh = x1;
    xl = x2;
  }
  rts = 0.5 * (x1 + x2);
  dxold = fabs(x2 - x1);
  dx = dxold;
  (*funcd)(rts, &f, &df);
  for (j = 1; j <= 100; j++) {
    if ((((rts - xh) * df - f) * ((rts - xl) * df - f) > 0.0) ||
        (fabs(2.0 * f) > fabs(dxold * df))) {
      dxold = dx;
      dx = 0.5 * (xh - xl);
      rts = xl + dx;
      if (xl == rts)
        return rts;
    } else {
      dxold = dx;
      dx = f / df;
      temp = rts;
      rts -= dx;
      if (temp == rts)
        return rts;
    }
    if (fabs(dx) < xacc)
      return rts;
    (*funcd)(rts, &f, &df);
    if (f < 0.0)
      xl = rts;
    else
      xh = rts;
  }
  nrerror("Maximum number of iterations exceeded in rtsafe");
  return 0.0;
}


x86 assembly (clang, -O0):
<rtsafe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movss  %xmm1,-0x18(%rbp)
movss  %xmm2,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movss  -0x14(%rbp),%xmm0
lea    -0x38(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   *%rax
mov    -0x10(%rbp),%rax
movss  -0x18(%rbp),%xmm0
lea    -0x34(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   *%rax
movss  -0x38(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    118d <rtsafe+0x6d>
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     11b9 <rtsafe+0x99>
movss  -0x38(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    11c5 <rtsafe+0xa5>
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    11c5 <rtsafe+0xa5>
lea    0xe50(%rip),%rdi
call   1030 <nrerror@plt>
movss  -0x38(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11f0 <rtsafe+0xd0>
jp     11f0 <rtsafe+0xd0>
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    14c4 <rtsafe+0x3a4>
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    121b <rtsafe+0xfb>
jp     121b <rtsafe+0xfb>
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    14c4 <rtsafe+0x3a4>
movss  -0x38(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    124a <rtsafe+0x12a>
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x40(%rbp)
jmp    125e <rtsafe+0x13e>
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x14(%rbp),%xmm0
addss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd8c(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x18(%rbp),%xmm0
subss  -0x14(%rbp),%xmm0
call   1040 <fabs@plt>
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movss  -0x48(%rbp),%xmm0
lea    -0x30(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   *%rax
movl   $0x1,-0x20(%rbp)
cmpl   $0x64,-0x20(%rbp)
jg     14b0 <rtsafe+0x390>
movss  -0x48(%rbp),%xmm0
subss  -0x40(%rbp),%xmm0
movss  -0x24(%rbp),%xmm2
movss  -0x30(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x48(%rbp),%xmm1
subss  -0x44(%rbp),%xmm1
movss  -0x24(%rbp),%xmm3
movss  -0x30(%rbp),%xmm2
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
mulss  %xmm3,%xmm1
addss  %xmm2,%xmm1
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     136d <rtsafe+0x24d>
movss  -0x30(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xccd(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1040 <fabs@plt>
movss  %xmm0,-0x4c(%rbp)
movss  -0x2c(%rbp),%xmm0
mulss  -0x24(%rbp),%xmm0
call   1040 <fabs@plt>
movaps %xmm0,%xmm1
movss  -0x4c(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    13d2 <rtsafe+0x2b2>
movss  -0x28(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x40(%rbp),%xmm0
subss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xc73(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x44(%rbp),%xmm0
addss  -0x28(%rbp),%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x44(%rbp),%xmm0
ucomiss -0x48(%rbp),%xmm0
jne    13cd <rtsafe+0x2ad>
jp     13cd <rtsafe+0x2ad>
movss  -0x48(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    14c4 <rtsafe+0x3a4>
jmp    1431 <rtsafe+0x311>
movss  -0x28(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x30(%rbp),%xmm0
divss  -0x24(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x48(%rbp),%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  -0x28(%rbp),%xmm1
movss  -0x48(%rbp),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x3c(%rbp),%xmm0
ucomiss -0x48(%rbp),%xmm0
jne    142c <rtsafe+0x30c>
jp     142c <rtsafe+0x30c>
movss  -0x48(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    14c4 <rtsafe+0x3a4>
jmp    1431 <rtsafe+0x311>
movss  -0x28(%rbp),%xmm0
call   1040 <fabs@plt>
movaps %xmm0,%xmm1
movss  -0x1c(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    145b <rtsafe+0x33b>
movss  -0x48(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    14c4 <rtsafe+0x3a4>
mov    -0x10(%rbp),%rax
movss  -0x48(%rbp),%xmm0
lea    -0x30(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   *%rax
movss  -0x30(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    1493 <rtsafe+0x373>
movss  -0x48(%rbp),%xmm0
movss  %xmm0,-0x44(%rbp)
jmp    149d <rtsafe+0x37d>
movss  -0x48(%rbp),%xmm0
movss  %xmm0,-0x40(%rbp)
jmp    14a2 <rtsafe+0x382>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12b9 <rtsafe+0x199>
lea    0xb7a(%rip),%rdi
call   1030 <nrerror@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rtsafe>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x78,%rsp
movss  %xmm2,0x3c(%rsp)
movaps %xmm1,0x20(%rsp)
mov    %rdi,%r12
lea    0x10(%rsp),%rdi
lea    0x1c(%rsp),%rbx
movaps %xmm0,0x40(%rsp)
mov    %rbx,%rsi
call   *%r12
lea    0x14(%rsp),%rdi
movaps 0x20(%rsp),%xmm0
mov    %rbx,%rsi
call   *%r12
movss  0x10(%rsp),%xmm2
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm2
movss  0x14(%rsp),%xmm0
jbe    1167 <rtsafe+0x57>
ucomiss %xmm1,%xmm0
ja     1174 <rtsafe+0x64>
ucomiss %xmm2,%xmm1
jbe    1186 <rtsafe+0x76>
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jbe    1186 <rtsafe+0x76>
lea    0xea5(%rip),%rdi
call   1030 <nrerror@plt>
movss  0x10(%rsp),%xmm2
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm2
jne    1197 <rtsafe+0x87>
jp     1197 <rtsafe+0x87>
movaps 0x40(%rsp),%xmm0
jmp    11ae <rtsafe+0x9e>
movss  0x14(%rsp),%xmm1
ucomiss %xmm0,%xmm1
movaps 0x40(%rsp),%xmm1
jne    11ba <rtsafe+0xaa>
jp     11ba <rtsafe+0xaa>
movaps 0x20(%rsp),%xmm0
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
xorps  %xmm0,%xmm0
ucomiss %xmm2,%xmm0
cmpltss %xmm0,%xmm2
movaps %xmm2,%xmm0
movaps 0x20(%rsp),%xmm3
andps  %xmm3,%xmm0
andnps %xmm1,%xmm2
orps   %xmm0,%xmm2
movaps %xmm2,0x60(%rsp)
movaps %xmm1,%xmm0
ja     11e3 <rtsafe+0xd3>
movaps %xmm3,%xmm0
movss  %xmm0,0xc(%rsp)
movaps %xmm1,%xmm0
addss  %xmm3,%xmm0
mulss  0xe08(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
subss  %xmm1,%xmm3
andps  0xe08(%rip),%xmm3
movaps %xmm3,0x20(%rsp)
lea    0x18(%rsp),%r14
lea    0x1c(%rsp),%r15
mov    %r14,%rdi
mov    %r15,%rsi
call   *%r12
movss  0xc(%rsp),%xmm6
movaps 0x20(%rsp),%xmm7
mov    $0x64,%ebx
movss  0x18(%rsp),%xmm0
movaps 0x50(%rsp),%xmm4
movaps %xmm7,%xmm9
movaps 0x60(%rsp),%xmm5
xorps  %xmm8,%xmm8
jmp    127f <rtsafe+0x16f>
nopw   0x0(%rax,%rax,1)
movaps %xmm0,%xmm2
cmpltss %xmm8,%xmm2
movaps 0x60(%rsp),%xmm5
andps  %xmm2,%xmm5
andnps %xmm4,%xmm2
orps   %xmm2,%xmm5
movaps %xmm1,%xmm6
movss  0x20(%rsp),%xmm7
movaps 0x50(%rsp),%xmm9
add    $0xffffffff,%ebx
je     1371 <rtsafe+0x261>
movaps %xmm4,%xmm2
subss  %xmm5,%xmm2
movss  0x1c(%rsp),%xmm1
mulss  %xmm1,%xmm2
subss  %xmm0,%xmm2
movaps %xmm4,%xmm3
subss  %xmm6,%xmm3
mulss  %xmm1,%xmm3
subss  %xmm0,%xmm3
mulss  %xmm2,%xmm3
ucomiss %xmm8,%xmm3
ja     12ca <rtsafe+0x1ba>
movaps %xmm0,%xmm2
addss  %xmm0,%xmm2
movaps 0xd55(%rip),%xmm3
andps  %xmm3,%xmm2
mulss  %xmm1,%xmm7
andps  %xmm3,%xmm7
ucomiss %xmm7,%xmm2
jbe    12f0 <rtsafe+0x1e0>
movaps %xmm5,%xmm3
subss  %xmm6,%xmm3
mulss  0xd27(%rip),%xmm3
movaps %xmm6,%xmm0
addss  %xmm3,%xmm0
ucomiss %xmm0,%xmm6
jne    130c <rtsafe+0x1fc>
jp     130c <rtsafe+0x1fc>
jmp    11ae <rtsafe+0x9e>
nopl   0x0(%rax)
divss  %xmm1,%xmm0
movaps %xmm4,%xmm1
subss  %xmm0,%xmm1
ucomiss %xmm1,%xmm4
movaps %xmm0,%xmm3
movaps %xmm1,%xmm0
jne    130c <rtsafe+0x1fc>
jnp    11ae <rtsafe+0x9e>
movaps %xmm3,%xmm2
andps  0xcfa(%rip),%xmm2
movss  0x3c(%rsp),%xmm1
ucomiss %xmm2,%xmm1
ja     11ae <rtsafe+0x9e>
movaps %xmm3,0x50(%rsp)
movss  %xmm9,0x20(%rsp)
movss  %xmm6,0xc(%rsp)
movaps %xmm5,0x60(%rsp)
mov    %r14,%rdi
mov    %r15,%rsi
movaps %xmm0,0x40(%rsp)
call   *%r12
xorps  %xmm8,%xmm8
movaps 0x40(%rsp),%xmm4
movss  0x18(%rsp),%xmm0
ucomiss %xmm0,%xmm8
movaps %xmm4,%xmm1
ja     1250 <rtsafe+0x140>
movss  0xc(%rsp),%xmm1
jmp    1250 <rtsafe+0x140>
lea    0xcc9(%rip),%rdi
call   1030 <nrerror@plt>
xorps  %xmm0,%xmm0
jmp    11ae <rtsafe+0x9e>

LLVM IR (-O0):
@.str = [33 x i8] c"Root must be bracketed in rtsafe\00"
@.str.1 = [48 x i8] c"Maximum number of iterations exceeded in rtsafe\00"
define float @rtsafe(void (float, float*, float*)* %0, float %1, float %2, float %3) {
%5 = alloca float
%6 = alloca void (float, float*, float*)*
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca i32
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca float
store void (float, float*, float*)* %0, void (float, float*, float*)** %6
store float %1, float* %7
store float %2, float* %8
store float %3, float* %9
%21 = load void (float, float*, float*)*, void (float, float*, float*)** %6
%22 = load float, float* %7
%23 = load void (float, float*, float*)*, void (float, float*, float*)** %6
%24 = load float, float* %8
%25 = load float, float* %16
%26 = fpext float %25 to double
%27 = fcmp ogt double %26, 0.000000e+00
br i1 %27, label %28, label %32
28: ; preds = %4
%29 = load float, float* %15
%30 = fpext float %29 to double
%31 = fcmp ogt double %30, 0.000000e+00
br i1 %31, label %40, label %32
32: ; preds = %28, %4
%33 = load float, float* %16
%34 = fpext float %33 to double
%35 = fcmp olt double %34, 0.000000e+00
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load float, float* %15
%38 = fpext float %37 to double
%39 = fcmp olt double %38, 0.000000e+00
br i1 %39, label %40, label %41
40: ; preds = %36, %28
br label %41
41: ; preds = %40, %36, %32
%42 = load float, float* %16
%43 = fpext float %42 to double
%44 = fcmp oeq double %43, 0.000000e+00
br i1 %44, label %45, label %47
45: ; preds = %41
%46 = load float, float* %7
store float %46, float* %5
br label %163
47: ; preds = %41
%48 = load float, float* %15
%49 = fpext float %48 to double
%50 = fcmp oeq double %49, 0.000000e+00
br i1 %50, label %51, label %53
51: ; preds = %47
%52 = load float, float* %8
store float %52, float* %5
br label %163
53: ; preds = %47
%54 = load float, float* %16
%55 = fpext float %54 to double
%56 = fcmp olt double %55, 0.000000e+00
br i1 %56, label %57, label %60
57: ; preds = %53
%58 = load float, float* %7
store float %58, float* %19
%59 = load float, float* %8
store float %59, float* %18
br label %63
60: ; preds = %53
%61 = load float, float* %7
store float %61, float* %18
%62 = load float, float* %8
store float %62, float* %19
br label %63
63: ; preds = %60, %57
%64 = load float, float* %7
%65 = load float, float* %8
%66 = fadd float %64, %65
%67 = fpext float %66 to double
%68 = fmul double 5.000000e-01, %67
%69 = fptrunc double %68 to float
store float %69, float* %20
%70 = load float, float* %8
%71 = load float, float* %7
%72 = fsub float %70, %71
%73 = call float @fabs(float %72)
store float %73, float* %13
%74 = load float, float* %13
store float %74, float* %12
%75 = load void (float, float*, float*)*, void (float, float*, float*)** %6
%76 = load float, float* %20
store i32 1, i32* %10
br label %77
77: ; preds = %159, %63
%78 = load i32, i32* %10
%79 = icmp sle i32 %78, 100
br i1 %79, label %80, label %162
80: ; preds = %77
%81 = load float, float* %20
%82 = load float, float* %18
%83 = fsub float %81, %82
%84 = load float, float* %11
%85 = load float, float* %14
%86 = fneg float %85
%87 = call float @llvm.fmuladd.f32(float %83, float %84, float %86)
%88 = load float, float* %20
%89 = load float, float* %19
%90 = fsub float %88, %89
%91 = load float, float* %11
%92 = load float, float* %14
%93 = fneg float %92
%94 = call float @llvm.fmuladd.f32(float %90, float %91, float %93)
%95 = fmul float %87, %94
%96 = fpext float %95 to double
%97 = fcmp ogt double %96, 0.000000e+00
br i1 %97, label %109, label %98
98: ; preds = %80
%99 = load float, float* %14
%100 = fpext float %99 to double
%101 = fmul double 2.000000e+00, %100
%102 = fptrunc double %101 to float
%103 = call float @fabs(float %102)
%104 = load float, float* %13
%105 = load float, float* %11
%106 = fmul float %104, %105
%107 = call float @fabs(float %106)
%108 = fcmp ogt float %103, %107
br i1 %108, label %109, label %126
109: ; preds = %98, %80
%110 = load float, float* %12
store float %110, float* %13
%111 = load float, float* %18
%112 = load float, float* %19
%113 = fsub float %111, %112
%114 = fpext float %113 to double
%115 = fmul double 5.000000e-01, %114
%116 = fptrunc double %115 to float
store float %116, float* %12
%117 = load float, float* %19
%118 = load float, float* %12
%119 = fadd float %117, %118
store float %119, float* %20
%120 = load float, float* %19
%121 = load float, float* %20
%122 = fcmp oeq float %120, %121
br i1 %122, label %123, label %125
123: ; preds = %109
%124 = load float, float* %20
store float %124, float* %5
br label %163
125: ; preds = %109
br label %141
126: ; preds = %98
%127 = load float, float* %12
store float %127, float* %13
%128 = load float, float* %14
%129 = load float, float* %11
%130 = fdiv float %128, %129
store float %130, float* %12
%131 = load float, float* %20
store float %131, float* %17
%132 = load float, float* %12
%133 = load float, float* %20
%134 = fsub float %133, %132
store float %134, float* %20
%135 = load float, float* %17
%136 = load float, float* %20
%137 = fcmp oeq float %135, %136
br i1 %137, label %138, label %140
138: ; preds = %126
%139 = load float, float* %20
store float %139, float* %5
br label %163
140: ; preds = %126
br label %141
141: ; preds = %140, %125
%142 = load float, float* %12
%143 = call float @fabs(float %142)
%144 = load float, float* %9
%145 = fcmp olt float %143, %144
br i1 %145, label %146, label %148
146: ; preds = %141
%147 = load float, float* %20
store float %147, float* %5
br label %163
148: ; preds = %141
%149 = load void (float, float*, float*)*, void (float, float*, float*)** %6
%150 = load float, float* %20
%151 = load float, float* %14
%152 = fpext float %151 to double
%153 = fcmp olt double %152, 0.000000e+00
br i1 %153, label %154, label %156
154: ; preds = %148
%155 = load float, float* %20
store float %155, float* %19
br label %158
156: ; preds = %148
%157 = load float, float* %20
store float %157, float* %18
br label %158
158: ; preds = %156, %154
br label %159
159: ; preds = %158
%160 = load i32, i32* %10
%161 = add nsw i32 %160, 1
store i32 %161, i32* %10
br label %77
162: ; preds = %77
store float 0.000000e+00, float* %5
br label %163
163: ; preds = %162, %146, %138, %123, %51, %45
%164 = load float, float* %5
ret float %164
}

LLVM IR (-O2):
@.str = [33 x i8] c"Root must be bracketed in rtsafe\00"
@.str.1 = [48 x i8] c"Maximum number of iterations exceeded in rtsafe\00"
define float @rtsafe(void (float, float*, float*)* nocapture %0, float %1, float %2, float %3) {
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = bitcast float* %5 to i8*
%10 = bitcast float* %6 to i8*
%11 = bitcast float* %7 to i8*
%12 = bitcast float* %8 to i8*
%13 = load float, float* %8
%14 = fcmp ogt float %13, 0.000000e+00
%15 = load float, float* %7
%16 = fcmp ogt float %15, 0.000000e+00
%17 = select i1 %14, i1 %16, i1 false
br i1 %17, label %22, label %18
18: ; preds = %4
%19 = fcmp olt float %13, 0.000000e+00
%20 = fcmp olt float %15, 0.000000e+00
%21 = select i1 %19, i1 %20, i1 false
br i1 %21, label %22, label %24
22: ; preds = %18, %4
%23 = load float, float* %8
br label %24
24: ; preds = %22, %18
%25 = phi float [ %23, %22 ], [ %13, %18 ]
%26 = fcmp oeq float %25, 0.000000e+00
br i1 %26, label %83, label %27
27: ; preds = %24
%28 = load float, float* %7
%29 = fcmp oeq float %28, 0.000000e+00
br i1 %29, label %83, label %30
30: ; preds = %27
%31 = fcmp olt float %25, 0.000000e+00
%32 = select i1 %31, float %2, float %1
%33 = select i1 %31, float %1, float %2
%34 = fadd float %1, %2
%35 = fmul float %34, 5.000000e-01
%36 = fsub float %2, %1
%37 = call float @llvm.fabs.f32(float %36)
%38 = load float, float* %6
br label %39
39: ; preds = %30, %75
%40 = phi float [ %38, %30 ], [ %76, %75 ]
%41 = phi float [ %35, %30 ], [ %72, %75 ]
%42 = phi float [ %33, %30 ], [ %79, %75 ]
%43 = phi float [ %32, %30 ], [ %78, %75 ]
%44 = phi float [ %37, %30 ], [ %45, %75 ]
%45 = phi float [ %37, %30 ], [ %71, %75 ]
%46 = phi i32 [ 1, %30 ], [ %80, %75 ]
%47 = fsub float %41, %43
%48 = load float, float* %5
%49 = fneg float %40
%50 = call float @llvm.fmuladd.f32(float %47, float %48, float %49)
%51 = fsub float %41, %42
%52 = call float @llvm.fmuladd.f32(float %51, float %48, float %49)
%53 = fmul float %50, %52
%54 = fcmp ogt float %53, 0.000000e+00
br i1 %54, label %61, label %55
55: ; preds = %39
%56 = fmul float %40, 2.000000e+00
%57 = call float @llvm.fabs.f32(float %56)
%58 = fmul float %44, %48
%59 = call float @llvm.fabs.f32(float %58)
%60 = fcmp ogt float %57, %59
br i1 %60, label %61, label %66
61: ; preds = %55, %39
%62 = fsub float %43, %42
%63 = fmul float %62, 5.000000e-01
%64 = fadd float %42, %63
%65 = fcmp oeq float %42, %64
br i1 %65, label %83, label %70
66: ; preds = %55
%67 = fdiv float %40, %48
%68 = fsub float %41, %67
%69 = fcmp oeq float %41, %68
br i1 %69, label %83, label %70
70: ; preds = %66, %61
%71 = phi float [ %63, %61 ], [ %67, %66 ]
%72 = phi float [ %64, %61 ], [ %68, %66 ]
%73 = call float @llvm.fabs.f32(float %71)
%74 = fcmp olt float %73, %3
br i1 %74, label %83, label %75
75: ; preds = %70
%76 = load float, float* %6
%77 = fcmp olt float %76, 0.000000e+00
%78 = select i1 %77, float %43, float %72
%79 = select i1 %77, float %72, float %42
%80 = add nuw nsw i32 %46, 1
%81 = icmp eq i32 %80, 101
br i1 %81, label %82, label %39
82: ; preds = %75
br label %83
83: ; preds = %70, %66, %61, %27, %24, %82
%84 = phi float [ 0.000000e+00, %82 ], [ %1, %24 ], [ %2, %27 ], [ %72, %70 ], [ %68, %66 ], [ %64, %61 ]
ret float %84
}