#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);
float fabs(float);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, float *, float *);
int main() {
  float a = 0, b = 0, error = 0, c, cold;
  int i = 0;
  printf("Input Interval: ");
  scanf("%f %f", &a, &b);
  if ((((a * a * a) - 18) * ((b * b * b) - 18)) > 0) {
    printf("Invalid Interval Exit!");
    exit(1);
  } else if (((a * a * a) - 18) == 0 || ((b * b * b) - 18) == 0) {
    printf("Root is one of interval bounds. Root is %f\n",
           ((a * a * a) - 18) == 0 ? a : b);
    exit(0);
  }
  printf("Ite\ta\t\tb\t\tc\t\tf(c)\t\terror\n");
  do {
    cold = c;
    c = (((a * ((b * b * b) - 18)) - (b * ((a * a * a) - 18))) /
         (((b * b * b) - 18) - ((a * a * a) - 18)));
    printf("%2d\t%4.6f\t%4.6f\t%4.6f\t%4.6f\t", i++, a, b, c,
           ((c * c * c) - 18));
    if (((c * c * c) - 18) == 0) {
      break;
    } else if (((a * a * a) - 18) * ((c * c * c) - 18) < 0) {
      b = c;
    } else
      a = c;
    error = fabs(c - cold);
    if (i == 1) {
      printf("----\n");
    } else
      printf("%4.6f\n", error);
  } while (error > 0.00005);
  printf("+------------------+\n");
  printf("| Root is %4.6f |\n", c);
  printf("+------------------+\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%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)
movl   $0x0,-0x1c(%rbp)
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9e(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1050 <scanf@plt>
movss  -0x8(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  0xe55(%rip),%xmm1
addss  %xmm1,%xmm0
movss  -0xc(%rbp),%xmm1
mulss  -0xc(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
mulss  %xmm2,%xmm1
movss  0xe36(%rip),%xmm2
addss  %xmm2,%xmm1
mulss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    11f6 <main+0xb6>
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
movss  -0x8(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  0xdef(%rip),%xmm1
addss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    122c <main+0xec>
jp     122c <main+0xec>
jmp    125d <main+0x11d>
movss  -0xc(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  0xdb9(%rip),%xmm1
addss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    12c5 <main+0x185>
jp     12c5 <main+0x185>
movss  -0x8(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  0xd88(%rip),%xmm1
addss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    129d <main+0x15d>
jp     129d <main+0x15d>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
jmp    12a7 <main+0x167>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd87(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>
jmp    12ca <main+0x18a>
lea    0xd99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm2
mulss  -0xc(%rbp),%xmm2
movss  -0xc(%rbp),%xmm1
mulss  %xmm1,%xmm2
movss  0xcfe(%rip),%xmm1
addss  %xmm1,%xmm2
movss  -0xc(%rbp),%xmm1
movss  -0x8(%rbp),%xmm3
mulss  -0x8(%rbp),%xmm3
movss  -0x8(%rbp),%xmm4
mulss  %xmm4,%xmm3
movss  0xcda(%rip),%xmm4
addss  %xmm4,%xmm3
mulss  %xmm3,%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0xc(%rbp),%xmm1
mulss  -0xc(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
mulss  %xmm2,%xmm1
movss  0xca2(%rip),%xmm2
addss  %xmm2,%xmm1
movss  -0x8(%rbp),%xmm2
mulss  -0x8(%rbp),%xmm2
movss  -0x8(%rbp),%xmm3
mulss  %xmm3,%xmm2
movss  0xc83(%rip),%xmm3
addss  %xmm3,%xmm2
subss  %xmm2,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x1c(%rbp),%esi
mov    %esi,%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x14(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x14(%rbp),%xmm3
mulss  -0x14(%rbp),%xmm3
movss  -0x14(%rbp),%xmm4
mulss  %xmm4,%xmm3
movss  0xc31(%rip),%xmm4
addss  %xmm4,%xmm3
cvtss2sd %xmm3,%xmm3
lea    0xca6(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
mulss  -0x14(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  0xc00(%rip),%xmm1
addss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    141b <main+0x2db>
jp     141b <main+0x2db>
jmp    14ef <main+0x3af>
movss  -0x8(%rbp),%xmm1
mulss  -0x8(%rbp),%xmm1
movss  -0x8(%rbp),%xmm0
mulss  %xmm0,%xmm1
movss  0xbca(%rip),%xmm0
addss  %xmm0,%xmm1
movss  -0x14(%rbp),%xmm0
mulss  -0x14(%rbp),%xmm0
movss  -0x14(%rbp),%xmm2
mulss  %xmm2,%xmm0
movss  0xbab(%rip),%xmm2
addss  %xmm2,%xmm0
mulss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm1,%xmm0
jbe    1478 <main+0x338>
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
jmp    1482 <main+0x342>
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    1487 <main+0x347>
movss  -0x14(%rbp),%xmm0
subss  -0x18(%rbp),%xmm0
call   1040 <fabs@plt>
movss  %xmm0,-0x10(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    14b8 <main+0x378>
lea    0xbf5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14cf <main+0x38f>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbdf(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    14d4 <main+0x394>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xb23(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     12d8 <main+0x198>
lea    0xbb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbb7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xb93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
movl   $0x0,0x4(%rsp)
movl   $0x0,0x8(%rsp)
lea    0xece(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed1(%rip),%rdi
lea    0x4(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <scanf@plt>
movss  0x4(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
movaps %xmm0,%xmm3
unpcklps %xmm1,%xmm3
movaps %xmm3,%xmm2
mulps  %xmm3,%xmm2
mulps  %xmm3,%xmm2
addps  0xe5f(%rip),%xmm2
movaps %xmm2,%xmm3
shufps $0x55,%xmm2,%xmm3
movaps %xmm2,%xmm5
mulss  %xmm3,%xmm5
xorps  %xmm4,%xmm4
ucomiss %xmm4,%xmm5
ja     1388 <main+0x248>
ucomiss %xmm4,%xmm2
jne    11c6 <main+0x86>
jnp    13a0 <main+0x260>
xorps  %xmm4,%xmm4
ucomiss %xmm4,%xmm3
jne    11d4 <main+0x94>
jnp    13a0 <main+0x260>
lea    0xee6(%rip),%rdi
call   1030 <puts@plt>
xor    %ebx,%ebx
movss  0xe36(%rip),%xmm4
lea    0xe99(%rip),%r14
lea    0xef7(%rip),%r15
lea    0xea8(%rip),%r12
jmp    124e <main+0x10e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
mov    %r12,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0x10(%rsp),%xmm0
add    $0x1,%ebx
ucomisd 0xdf3(%rip),%xmm0
movaps 0x20(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0xdd8(%rip),%xmm4
jbe    134f <main+0x20f>
movss  0x4(%rsp),%xmm5
movss  0x8(%rsp),%xmm1
movaps %xmm1,%xmm0
unpcklps %xmm5,%xmm0
movaps %xmm0,%xmm2
mulps  %xmm0,%xmm2
mulps  %xmm0,%xmm2
addps  0xd90(%rip),%xmm2
movaps %xmm2,%xmm3
shufps $0x55,%xmm2,%xmm3
xorps  %xmm0,%xmm0
cvtss2sd %xmm5,%xmm0
mulss  %xmm2,%xmm5
subss  %xmm3,%xmm2
mulss  %xmm1,%xmm3
subss  %xmm3,%xmm5
divss  %xmm2,%xmm5
cvtss2sd %xmm1,%xmm1
xorps  %xmm2,%xmm2
cvtss2sd %xmm5,%xmm2
movaps %xmm5,%xmm3
mulss  %xmm5,%xmm3
movaps %xmm5,0x20(%rsp)
mulss  %xmm5,%xmm3
addss  %xmm4,%xmm3
movaps %xmm3,0x10(%rsp)
cvtss2sd %xmm3,%xmm3
mov    %r14,%rdi
mov    %ebx,%esi
movsd  %xmm2,0x30(%rsp)
mov    $0x4,%al
call   1040 <printf@plt>
movaps 0x10(%rsp),%xmm4
xorps  %xmm3,%xmm3
movss  0xd44(%rip),%xmm2
ucomiss %xmm3,%xmm4
jne    12e3 <main+0x1a3>
jnp    134f <main+0x20f>
movss  0x4(%rsp),%xmm0
movaps %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
addss  %xmm2,%xmm1
mulss  %xmm1,%xmm4
ucomiss %xmm4,%xmm3
jbe    1310 <main+0x1d0>
movaps 0x20(%rsp),%xmm0
movss  %xmm0,0x8(%rsp)
jmp    131b <main+0x1db>
xchg   %ax,%ax
movaps 0x20(%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
movss  0xc(%rsp),%xmm1
subss  %xmm1,%xmm0
andps  0xce4(%rip),%xmm0
test   %ebx,%ebx
jne    1210 <main+0xd0>
mov    %r15,%rdi
movaps %xmm0,0x10(%rsp)
call   1030 <puts@plt>
movaps 0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
jmp    122a <main+0xea>
lea    0xd84(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xd49(%rip),%rdi
movsd  0x30(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
lea    0xcb8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
xorps  %xmm3,%xmm3
cmpeqss %xmm3,%xmm2
andps  %xmm2,%xmm0
andnps %xmm1,%xmm2
orps   %xmm0,%xmm2
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
lea    0xc9f(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"Input Interval: \00"
@.str.1 = [6 x i8] c"%f %f\00"
@.str.2 = [23 x i8] c"Invalid Interval Exit!\00"
@.str.3 = [44 x i8] c"Root is one of interval bounds. Root is %f\0A\00"
@.str.4 = [26 x i8] c"Ite\09a\09\09b\09\09c\09\09f(c)\09\09error\0A\00"
@.str.5 = [29 x i8] c"%2d\09%4.6f\09%4.6f\09%4.6f\09%4.6f\09\00"
@.str.6 = [6 x i8] c"----\0A\00"
@.str.7 = [7 x i8] c"%4.6f\0A\00"
@.str.8 = [22 x i8] c"+------------------+\0A\00"
@.str.9 = [19 x i8] c"| Root is %4.6f |\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = 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 i32 0, i32* %7
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %2, float* %3)
%10 = load float, float* %2
%11 = load float, float* %2
%12 = fmul float %10, %11
%13 = load float, float* %2
%14 = call float @llvm.fmuladd.f32(float %12, float %13, float -1.800000e+01)
%15 = load float, float* %3
%16 = load float, float* %3
%17 = fmul float %15, %16
%18 = load float, float* %3
%19 = call float @llvm.fmuladd.f32(float %17, float %18, float -1.800000e+01)
%20 = fmul float %14, %19
%21 = fcmp ogt float %20, 0.000000e+00
br i1 %21, label %22, label %25
22: ; preds = %0
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%24 = call i32 @exit(i32 1)
unreachable
25: ; preds = %0
%26 = load float, float* %2
%27 = load float, float* %2
%28 = fmul float %26, %27
%29 = load float, float* %2
%30 = call float @llvm.fmuladd.f32(float %28, float %29, float -1.800000e+01)
%31 = fcmp oeq float %30, 0.000000e+00
br i1 %31, label %39, label %32
32: ; preds = %25
%33 = load float, float* %3
%34 = load float, float* %3
%35 = fmul float %33, %34
%36 = load float, float* %3
%37 = call float @llvm.fmuladd.f32(float %35, float %36, float -1.800000e+01)
%38 = fcmp oeq float %37, 0.000000e+00
br i1 %38, label %39, label %55
39: ; preds = %32, %25
%40 = load float, float* %2
%41 = load float, float* %2
%42 = fmul float %40, %41
%43 = load float, float* %2
%44 = call float @llvm.fmuladd.f32(float %42, float %43, float -1.800000e+01)
%45 = fcmp oeq float %44, 0.000000e+00
br i1 %45, label %46, label %48
46: ; preds = %39
%47 = load float, float* %2
br label %50
48: ; preds = %39
%49 = load float, float* %3
br label %50
50: ; preds = %48, %46
%51 = phi float [ %47, %46 ], [ %49, %48 ]
%52 = fpext float %51 to double
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), double %52)
%54 = call i32 @exit(i32 0)
unreachable
55: ; preds = %32
br label %56
56: ; preds = %55
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
br label %58
58: ; preds = %141, %56
%59 = load float, float* %5
store float %59, float* %6
%60 = load float, float* %2
%61 = load float, float* %3
%62 = load float, float* %3
%63 = fmul float %61, %62
%64 = load float, float* %3
%65 = call float @llvm.fmuladd.f32(float %63, float %64, float -1.800000e+01)
%66 = load float, float* %3
%67 = load float, float* %2
%68 = load float, float* %2
%69 = fmul float %67, %68
%70 = load float, float* %2
%71 = call float @llvm.fmuladd.f32(float %69, float %70, float -1.800000e+01)
%72 = fmul float %66, %71
%73 = fneg float %72
%74 = call float @llvm.fmuladd.f32(float %60, float %65, float %73)
%75 = load float, float* %3
%76 = load float, float* %3
%77 = fmul float %75, %76
%78 = load float, float* %3
%79 = call float @llvm.fmuladd.f32(float %77, float %78, float -1.800000e+01)
%80 = load float, float* %2
%81 = load float, float* %2
%82 = fmul float %80, %81
%83 = load float, float* %2
%84 = call float @llvm.fmuladd.f32(float %82, float %83, float -1.800000e+01)
%85 = fsub float %79, %84
%86 = fdiv float %74, %85
store float %86, float* %5
%87 = load i32, i32* %7
%88 = add nsw i32 %87, 1
store i32 %88, i32* %7
%89 = load float, float* %2
%90 = fpext float %89 to double
%91 = load float, float* %3
%92 = fpext float %91 to double
%93 = load float, float* %5
%94 = fpext float %93 to double
%95 = load float, float* %5
%96 = load float, float* %5
%97 = fmul float %95, %96
%98 = load float, float* %5
%99 = call float @llvm.fmuladd.f32(float %97, float %98, float -1.800000e+01)
%100 = fpext float %99 to double
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %87, double %90, double %92, double %94, double %100)
%102 = load float, float* %5
%103 = load float, float* %5
%104 = fmul float %102, %103
%105 = load float, float* %5
%106 = call float @llvm.fmuladd.f32(float %104, float %105, float -1.800000e+01)
%107 = fcmp oeq float %106, 0.000000e+00
br i1 %107, label %108, label %109
108: ; preds = %58
br label %145
109: ; preds = %58
%110 = load float, float* %2
%111 = load float, float* %2
%112 = fmul float %110, %111
%113 = load float, float* %2
%114 = call float @llvm.fmuladd.f32(float %112, float %113, float -1.800000e+01)
%115 = load float, float* %5
%116 = load float, float* %5
%117 = fmul float %115, %116
%118 = load float, float* %5
%119 = call float @llvm.fmuladd.f32(float %117, float %118, float -1.800000e+01)
%120 = fmul float %114, %119
%121 = fcmp olt float %120, 0.000000e+00
br i1 %121, label %122, label %124
122: ; preds = %109
%123 = load float, float* %5
store float %123, float* %3
br label %126
124: ; preds = %109
%125 = load float, float* %5
store float %125, float* %2
br label %126
126: ; preds = %124, %122
br label %127
127: ; preds = %126
%128 = load float, float* %5
%129 = load float, float* %6
%130 = fsub float %128, %129
%131 = call float @fabs(float %130)
store float %131, float* %4
%132 = load i32, i32* %7
%133 = icmp eq i32 %132, 1
br i1 %133, label %134, label %136
134: ; preds = %127
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %140
136: ; preds = %127
%137 = load float, float* %4
%138 = fpext float %137 to double
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), double %138)
br label %140
140: ; preds = %136, %134
br label %141
141: ; preds = %140
%142 = load float, float* %4
%143 = fpext float %142 to double
%144 = fcmp ogt double %143, 5.000000e-05
br i1 %144, label %58, label %145
145: ; preds = %141, %108
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%147 = load float, float* %5
%148 = fpext float %147 to double
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), double %148)
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"Input Interval: \00"
@.str.1 = [6 x i8] c"%f %f\00"
@.str.2 = [23 x i8] c"Invalid Interval Exit!\00"
@.str.3 = [44 x i8] c"Root is one of interval bounds. Root is %f\0A\00"
@.str.5 = [29 x i8] c"%2d\09%4.6f\09%4.6f\09%4.6f\09%4.6f\09\00"
@.str.7 = [7 x i8] c"%4.6f\0A\00"
@.str.9 = [19 x i8] c"| Root is %4.6f |\0A\00"
@str = [25 x i8] c"Ite\09a\09\09b\09\09c\09\09f(c)\09\09error\00"
@str.11 = [21 x i8] c"+------------------+\00"
@str.12 = [5 x i8] c"----\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 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %1, float* %2)
%7 = load float, float* %1
%8 = load float, float* %2
%9 = insertelement <2 x float> poison, float %7, i64 0
%10 = insertelement <2 x float> %9, float %8, i64 1
%11 = fmul <2 x float> %10, %10
%12 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %11, <2 x float> %10, <2 x float> <float -1.800000e+01, float -1.800000e+01>)
%13 = extractelement <2 x float> %12, i64 0
%14 = extractelement <2 x float> %12, i64 1
%15 = fmul float %13, %14
%16 = fcmp ogt float %15, 0.000000e+00
br i1 %16, label %17, label %20
17: ; preds = %0
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%19 = call i32 @exit(i32 1)
unreachable
20: ; preds = %0
%21 = fcmp oeq float %13, 0.000000e+00
%22 = fcmp oeq float %14, 0.000000e+00
%23 = select i1 %21, i1 true, i1 %22
br i1 %23, label %24, label %29
24: ; preds = %20
%25 = select i1 %21, float %7, float %8
%26 = fpext float %25 to double
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), double %26)
%28 = call i32 @exit(i32 0)
unreachable
29: ; preds = %20
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
br label %31
31: ; preds = %74, %29
%32 = phi float [ undef, %29 ], [ %46, %74 ]
%33 = phi i32 [ 0, %29 ], [ %47, %74 ]
%34 = load float, float* %1
%35 = load float, float* %2
%36 = insertelement <2 x float> poison, float %35, i64 0
%37 = insertelement <2 x float> %36, float %34, i64 1
%38 = fmul <2 x float> %37, %37
%39 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %38, <2 x float> %37, <2 x float> <float -1.800000e+01, float -1.800000e+01>)
%40 = fneg float %35
%41 = extractelement <2 x float> %39, i64 1
%42 = fmul float %41, %40
%43 = extractelement <2 x float> %39, i64 0
%44 = call float @llvm.fmuladd.f32(float %34, float %43, float %42)
%45 = fsub float %43, %41
%46 = fdiv float %44, %45
%47 = add nuw nsw i32 %33, 1
%48 = fpext float %34 to double
%49 = fpext float %35 to double
%50 = fpext float %46 to double
%51 = fmul float %46, %46
%52 = call float @llvm.fmuladd.f32(float %51, float %46, float -1.800000e+01)
%53 = fpext float %52 to double
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %33, double %48, double %49, double %50, double %53)
%55 = fcmp oeq float %52, 0.000000e+00
br i1 %55, label %77, label %56
56: ; preds = %31
%57 = load float, float* %1
%58 = fmul float %57, %57
%59 = call float @llvm.fmuladd.f32(float %58, float %57, float -1.800000e+01)
%60 = fmul float %52, %59
%61 = fcmp olt float %60, 0.000000e+00
br i1 %61, label %62, label %63
62: ; preds = %56
store float %46, float* %2
br label %64
63: ; preds = %56
store float %46, float* %1
br label %64
64: ; preds = %62, %63
%65 = fsub float %46, %32
%66 = call float @llvm.fabs.f32(float %65)
%67 = icmp eq i32 %33, 0
br i1 %67, label %68, label %71
68: ; preds = %64
%69 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.12, i64 0, i64 0))
%70 = fpext float %66 to double
br label %74
71: ; preds = %64
%72 = fpext float %66 to double
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), double %72)
br label %74
74: ; preds = %68, %71
%75 = phi double [ %70, %68 ], [ %72, %71 ]
%76 = fcmp ogt double %75, 5.000000e-05
br i1 %76, label %31, label %77
77: ; preds = %31, %74
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.11, i64 0, i64 0))
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), double %50)
%80 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.11, i64 0, i64 0))
ret i32 0
}