#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 /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, float *, float *);
int main(void) {
  float x0 = 0, x1 = 0, x2 = 0, y0 = 0, y1 = 0, y2 = 0;
  int iter = 0;
  printf("The Solution for the Equation using bisection method : x*x-x-6=0 \n");
  do {
    printf("Enter Range :");
    scanf("%f %f", &x0, &x1);
    y0 = x0 * x0 - x0 - 6, y1 = x1 * x1 - x1 - 6;
    if (y0 == 0) {
      printf("The solution is %f\n", x0);
      exit(0);
    } else if (y1 == 0) {
      printf("The solution is %f\n", x1);
      exit(0);
    }
  } while ((y0 * y1) > 0);
  printf("Iteration  \tx0  \t x1  \t Mid  \t   f(x0) \t f(x1) \t  f(Mid)");
  do {
    x2 = (x0 + x1) / 2.0;
    y2 = x2 * x2 - x2 - 6;
    printf("\n%d\t  %f   %f  %f  %f  %f   %f\n", (++iter), x0, x1, x2, y0, y1,
           y2);
    if (y0 * y2 > 0) {
      x0 = x2;
    } else {
      x1 = x2;
    }
    y0 = x0 * x0 - x0 - 6, y1 = x1 * x1 - x1 - 6;
  } while (x1 - x0 >= 0.000001 || x1 - x0 <= -0.000001);
  x2 = (x1 + x0) / 2.0;
  printf("\nThe solution is %f ", x2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm2
movss  -0x8(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xe2e(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0xc(%rbp),%xmm0
movss  -0xc(%rbp),%xmm2
movss  -0xc(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xdf9(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1245 <main+0x115>
jp     1245 <main+0x115>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe40(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>
movss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    127a <main+0x14a>
jp     127a <main+0x14a>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe0b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>
jmp    127f <main+0x14f>
jmp    1284 <main+0x154>
movss  -0x14(%rbp),%xmm0
mulss  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
ja     1184 <main+0x54>
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
addss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd4a(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
movss  -0x10(%rbp),%xmm2
movss  -0x10(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xd09(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x20(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x20(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x10(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x14(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
movss  -0x18(%rbp),%xmm4
cvtss2sd %xmm4,%xmm4
movss  -0x1c(%rbp),%xmm5
cvtss2sd %xmm5,%xmm5
lea    0xd7e(%rip),%rdi
mov    $0x6,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
mulss  -0x1c(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1372 <main+0x242>
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    137c <main+0x24c>
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm2
movss  -0x8(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xc58(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0xc(%rbp),%xmm0
movss  -0xc(%rbp),%xmm2
movss  -0xc(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xc23(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0xc(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
movsd  0xc12(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0x21(%rbp)
jae    142b <main+0x2fb>
movss  -0xc(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xbf7(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    12a8 <main+0x178>
movss  -0xc(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xbbc(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc7b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
movl   $0x0,0x8(%rsp)
movl   $0x0,0x4(%rsp)
lea    0xf54(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb2(%rip),%r14
lea    0xeb9(%rip),%r15
lea    0x8(%rsp),%r12
lea    0x4(%rsp),%rbx
nop
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1050 <scanf@plt>
xorps  %xmm4,%xmm4
movss  0x8(%rsp),%xmm0
movaps %xmm0,%xmm2
mulss  %xmm0,%xmm2
subss  %xmm0,%xmm2
movss  0xe4c(%rip),%xmm1
addss  %xmm1,%xmm2
ucomiss %xmm4,%xmm2
jne    11c3 <main+0x83>
jnp    137c <main+0x23c>
movss  0x4(%rsp),%xmm0
movaps %xmm0,%xmm3
mulss  %xmm0,%xmm3
subss  %xmm0,%xmm3
addss  %xmm1,%xmm3
ucomiss %xmm4,%xmm3
jne    11e3 <main+0xa3>
jnp    137c <main+0x23c>
movaps %xmm2,%xmm0
mulss  %xmm3,%xmm0
ucomiss %xmm4,%xmm0
ja     1180 <main+0x40>
lea    0xe52(%rip),%rdi
xor    %eax,%eax
movss  %xmm2,0x10(%rsp)
movss  %xmm3,0xc(%rsp)
call   1040 <printf@plt>
movss  0xc(%rsp),%xmm6
movss  0x10(%rsp),%xmm2
movss  0x8(%rsp),%xmm4
mov    $0x1,%ebx
movss  0x4(%rsp),%xmm1
lea    0xe54(%rip),%r14
movss  0xdcb(%rip),%xmm3
cs nopw 0x0(%rax,%rax,1)
nop
movaps %xmm2,%xmm5
movss  %xmm2,0x14(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm4,%xmm0
addss  %xmm1,%xmm4
mulss  0xda8(%rip),%xmm4
movss  %xmm4,0xc(%rsp)
movaps %xmm4,%xmm7
mulss  %xmm4,%xmm7
subss  %xmm4,%xmm7
addss  %xmm3,%xmm7
movss  %xmm7,0x10(%rsp)
cvtss2sd %xmm1,%xmm1
xorps  %xmm2,%xmm2
cvtss2sd %xmm4,%xmm2
xorps  %xmm3,%xmm3
cvtss2sd %xmm5,%xmm3
xorps  %xmm4,%xmm4
cvtss2sd %xmm6,%xmm4
xorps  %xmm5,%xmm5
cvtss2sd %xmm7,%xmm5
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x6,%al
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm2
movss  0x14(%rsp),%xmm0
mulss  %xmm2,%xmm0
ucomiss 0xd4e(%rip),%xmm0
jbe    12f0 <main+0x1b0>
movss  0xc(%rsp),%xmm4
movss  %xmm4,0x8(%rsp)
movss  0x4(%rsp),%xmm1
movaps %xmm1,%xmm6
mulss  %xmm1,%xmm6
subss  %xmm1,%xmm6
movss  0xd1f(%rip),%xmm0
addss  %xmm0,%xmm6
movaps %xmm0,%xmm3
jmp    131f <main+0x1df>
nopw   0x0(%rax,%rax,1)
movss  0xc(%rsp),%xmm1
movss  %xmm1,0x4(%rsp)
movss  0x8(%rsp),%xmm0
movaps %xmm2,%xmm6
movaps %xmm0,%xmm2
mulss  %xmm0,%xmm2
subss  %xmm0,%xmm2
movss  0xce8(%rip),%xmm3
addss  %xmm3,%xmm2
movaps %xmm0,%xmm4
movaps %xmm1,%xmm0
subss  %xmm4,%xmm0
cvtss2sd %xmm0,%xmm0
add    $0x1,%ebx
ucomisd 0xcdb(%rip),%xmm0
jae    1240 <main+0x100>
movsd  0xcd5(%rip),%xmm5
ucomisd %xmm0,%xmm5
jae    1240 <main+0x100>
addss  %xmm1,%xmm4
mulss  0xcab(%rip),%xmm4
xorps  %xmm0,%xmm0
cvtss2sd %xmm4,%xmm0
lea    0xd3a(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
cvtss2sd %xmm0,%xmm0
lea    0xcad(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [67 x i8] c"The Solution for the Equation using bisection method : x*x-x-6=0 \0A\00"
@.str.1 = [14 x i8] c"Enter Range :\00"
@.str.2 = [6 x i8] c"%f %f\00"
@.str.3 = [20 x i8] c"The solution is %f\0A\00"
@.str.4 = [57 x i8] c"Iteration \09x0 \09 x1 \09 Mid \09 f(x0) \09 f(x1) \09 f(Mid)\00"
@.str.5 = [32 x i8] c"\0A%d\09 %f %f %f %f %f %f\0A\00"
@.str.6 = [21 x i8] c"\0AThe solution is %f \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca i32
store i32 0, i32* %1
store float 0.000000e+00, float* %2
store float 0.000000e+00, float* %3
store float 0.000000e+00, float* %4
store float 0.000000e+00, float* %5
store float 0.000000e+00, float* %6
store float 0.000000e+00, float* %7
store i32 0, i32* %8
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %42, %0
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float* %2, float* %3)
%13 = load float, float* %2
%14 = load float, float* %2
%15 = load float, float* %2
%16 = fneg float %15
%17 = call float @llvm.fmuladd.f32(float %13, float %14, float %16)
%18 = fsub float %17, 6.000000e+00
store float %18, float* %5
%19 = load float, float* %3
%20 = load float, float* %3
%21 = load float, float* %3
%22 = fneg float %21
%23 = call float @llvm.fmuladd.f32(float %19, float %20, float %22)
%24 = fsub float %23, 6.000000e+00
store float %24, float* %6
%25 = load float, float* %5
%26 = fcmp oeq float %25, 0.000000e+00
br i1 %26, label %27, label %32
27: ; preds = %10
%28 = load float, float* %2
%29 = fpext float %28 to double
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double %29)
%31 = call i32 @exit(i32 0)
unreachable
32: ; preds = %10
%33 = load float, float* %6
%34 = fcmp oeq float %33, 0.000000e+00
br i1 %34, label %35, label %40
35: ; preds = %32
%36 = load float, float* %3
%37 = fpext float %36 to double
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double %37)
%39 = call i32 @exit(i32 0)
unreachable
40: ; preds = %32
br label %41
41: ; preds = %40
br label %42
42: ; preds = %41
%43 = load float, float* %5
%44 = load float, float* %6
%45 = fmul float %43, %44
%46 = fcmp ogt float %45, 0.000000e+00
br i1 %46, label %10, label %47
47: ; preds = %42
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0))
br label %49
49: ; preds = %110, %47
%50 = load float, float* %2
%51 = load float, float* %3
%52 = fadd float %50, %51
%53 = fpext float %52 to double
%54 = fdiv double %53, 2.000000e+00
%55 = fptrunc double %54 to float
store float %55, float* %4
%56 = load float, float* %4
%57 = load float, float* %4
%58 = load float, float* %4
%59 = fneg float %58
%60 = call float @llvm.fmuladd.f32(float %56, float %57, float %59)
%61 = fsub float %60, 6.000000e+00
store float %61, float* %7
%62 = load i32, i32* %8
%63 = add nsw i32 %62, 1
store i32 %63, i32* %8
%64 = load float, float* %2
%65 = fpext float %64 to double
%66 = load float, float* %3
%67 = fpext float %66 to double
%68 = load float, float* %4
%69 = fpext float %68 to double
%70 = load float, float* %5
%71 = fpext float %70 to double
%72 = load float, float* %6
%73 = fpext float %72 to double
%74 = load float, float* %7
%75 = fpext float %74 to double
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %63, double %65, double %67, double %69, double %71, double %73, double %75)
%77 = load float, float* %5
%78 = load float, float* %7
%79 = fmul float %77, %78
%80 = fcmp ogt float %79, 0.000000e+00
br i1 %80, label %81, label %83
81: ; preds = %49
%82 = load float, float* %4
store float %82, float* %2
br label %85
83: ; preds = %49
%84 = load float, float* %4
store float %84, float* %3
br label %85
85: ; preds = %83, %81
%86 = load float, float* %2
%87 = load float, float* %2
%88 = load float, float* %2
%89 = fneg float %88
%90 = call float @llvm.fmuladd.f32(float %86, float %87, float %89)
%91 = fsub float %90, 6.000000e+00
store float %91, float* %5
%92 = load float, float* %3
%93 = load float, float* %3
%94 = load float, float* %3
%95 = fneg float %94
%96 = call float @llvm.fmuladd.f32(float %92, float %93, float %95)
%97 = fsub float %96, 6.000000e+00
store float %97, float* %6
br label %98
98: ; preds = %85
%99 = load float, float* %3
%100 = load float, float* %2
%101 = fsub float %99, %100
%102 = fpext float %101 to double
%103 = fcmp oge double %102, 0x3EB0C6F7A0B5ED8D
br i1 %103, label %110, label %104
104: ; preds = %98
%105 = load float, float* %3
%106 = load float, float* %2
%107 = fsub float %105, %106
%108 = fpext float %107 to double
%109 = fcmp ole double %108, 0xBEB0C6F7A0B5ED8D
br label %110
110: ; preds = %104, %98
%111 = phi i1 [ true, %98 ], [ %109, %104 ]
br i1 %111, label %49, label %112
112: ; preds = %110
%113 = load float, float* %3
%114 = load float, float* %2
%115 = fadd float %113, %114
%116 = fpext float %115 to double
%117 = fdiv double %116, 2.000000e+00
%118 = fptrunc double %117 to float
store float %118, float* %4
%119 = load float, float* %4
%120 = fpext float %119 to double
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), double %120)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [14 x i8] c"Enter Range :\00"
@.str.2 = [6 x i8] c"%f %f\00"
@.str.3 = [20 x i8] c"The solution is %f\0A\00"
@.str.4 = [57 x i8] c"Iteration \09x0 \09 x1 \09 Mid \09 f(x0) \09 f(x1) \09 f(Mid)\00"
@.str.5 = [32 x i8] c"\0A%d\09 %f %f %f %f %f %f\0A\00"
@.str.6 = [21 x i8] c"\0AThe solution is %f \00"
@str = [66 x i8] c"The Solution for the Equation using bisection method : x*x-x-6=0 \00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = bitcast float* %1 to i8*
store float 0.000000e+00, float* %1
%4 = bitcast float* %2 to i8*
store float 0.000000e+00, float* %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str, i64 0, i64 0))
br label %6
6: ; preds = %28, %0
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float* %1, float* %2)
%9 = load float, float* %1
%10 = fneg float %9
%11 = call float @llvm.fmuladd.f32(float %9, float %9, float %10)
%12 = fadd float %11, -6.000000e+00
%13 = load float, float* %2
%14 = fneg float %13
%15 = call float @llvm.fmuladd.f32(float %13, float %13, float %14)
%16 = fadd float %15, -6.000000e+00
%17 = fcmp oeq float %12, 0.000000e+00
br i1 %17, label %18, label %22
18: ; preds = %6
%19 = fpext float %9 to double
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double %19)
%21 = call i32 @exit(i32 0)
unreachable
22: ; preds = %6
%23 = fcmp oeq float %16, 0.000000e+00
br i1 %23, label %24, label %28
24: ; preds = %22
%25 = fpext float %13 to double
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double %25)
%27 = call i32 @exit(i32 0)
unreachable
28: ; preds = %22
%29 = fmul float %12, %16
%30 = fcmp ogt float %29, 0.000000e+00
br i1 %30, label %6, label %31
31: ; preds = %28
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0))
%33 = load float, float* %1
%34 = load float, float* %2
br label %35
35: ; preds = %66, %31
%36 = phi float [ %34, %31 ], [ %69, %66 ]
%37 = phi float [ %33, %31 ], [ %70, %66 ]
%38 = phi float [ %12, %31 ], [ %68, %66 ]
%39 = phi float [ %16, %31 ], [ %67, %66 ]
%40 = phi i32 [ 0, %31 ], [ %46, %66 ]
%41 = fadd float %37, %36
%42 = fmul float %41, 5.000000e-01
%43 = fneg float %42
%44 = call float @llvm.fmuladd.f32(float %42, float %42, float %43)
%45 = fadd float %44, -6.000000e+00
%46 = add nuw nsw i32 %40, 1
%47 = fpext float %37 to double
%48 = fpext float %36 to double
%49 = fpext float %42 to double
%50 = fpext float %38 to double
%51 = fpext float %39 to double
%52 = fpext float %45 to double
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %46, double %47, double %48, double %49, double %50, double %51, double %52)
%54 = fmul float %38, %45
%55 = fcmp ogt float %54, 0.000000e+00
br i1 %55, label %56, label %61
56: ; preds = %35
store float %42, float* %1
%57 = load float, float* %2
%58 = fneg float %57
%59 = call float @llvm.fmuladd.f32(float %57, float %57, float %58)
%60 = fadd float %59, -6.000000e+00
br label %66
61: ; preds = %35
store float %42, float* %2
%62 = load float, float* %1
%63 = fneg float %62
%64 = call float @llvm.fmuladd.f32(float %62, float %62, float %63)
%65 = fadd float %64, -6.000000e+00
br label %66
66: ; preds = %61, %56
%67 = phi float [ %45, %61 ], [ %60, %56 ]
%68 = phi float [ %65, %61 ], [ %45, %56 ]
%69 = phi float [ %42, %61 ], [ %57, %56 ]
%70 = phi float [ %62, %61 ], [ %42, %56 ]
%71 = fsub float %69, %70
%72 = fpext float %71 to double
%73 = fcmp ult double %72, 0x3EB0C6F7A0B5ED8D
%74 = fcmp ugt double %72, 0xBEB0C6F7A0B5ED8D
%75 = and i1 %73, %74
br i1 %75, label %76, label %35
76: ; preds = %66
%77 = fadd float %70, %69
%78 = fmul float %77, 5.000000e-01
%79 = fpext float %78 to double
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), double %79)
ret i32 0
}