#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 f(float);
float fabs(float);
float pow(int, int);
int /*<<< orphan*/ printf(char *, ...);
void main() {
  float a, b, erro;
  float xAnterior, xAtual;
  float funcA, funcB, funcX;
  int flg = 1;
  int i = 0;
  a = 2;
  b = 3;
  printf("\nFuncao: x^3-10\n\n");
  printf("k\t");
  printf("ak\t");
  printf("f(ak)\t");
  printf("bk\t");
  printf("f(bk)\t");
  printf("xk\t");
  printf("f(xk)\t");
  printf("E\n");
  while (flg == 1) {
    printf("%d\t", i);
    printf("%.3f\t", a);
    printf("%.3f\t", f(a));
    printf("%.3f\t", b);
    printf("%.3f\t", f(b));
    xAtual = (a + b) / 2;
    printf("%.3f\t", xAtual);
    printf("%.3f\t", f(xAtual));
    if (i > 0) {
      erro = fabs(xAtual - xAnterior) / fabs(xAtual);
      printf("%.3f", erro);
      if (erro <= pow(10, -3)) {
        flg = 0;
      }
    } else {
      printf("---");
    }
    printf("\n");
    if (f(a) * f(xAtual) > 0) {
      a = xAtual;
    } else {
      b = xAtual;
    }
    xAnterior = xAtual;
    i++;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x1,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movss  0xea6(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  0xe95(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe54(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x1,-0x24(%rbp)
jne    13b3 <main+0x273>
mov    -0x28(%rbp),%esi
lea    0xe3c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe29(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x4(%rbp),%xmm0
call   1030 <f@plt>
lea    0xe11(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdfa(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x8(%rbp),%xmm0
call   1030 <f@plt>
lea    0xde2(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x4(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
movss  0xd8b(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdb0(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x14(%rbp),%xmm0
call   1030 <f@plt>
lea    0xd98(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x28(%rbp)
jle    1334 <main+0x1f4>
movss  -0x14(%rbp),%xmm0
subss  -0x10(%rbp),%xmm0
call   1050 <fabs@plt>
movss  %xmm0,-0x30(%rbp)
movss  -0x14(%rbp),%xmm0
call   1050 <fabs@plt>
movaps %xmm0,%xmm1
movss  -0x30(%rbp),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd4e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
mov    $0xa,%edi
mov    $0xfffffffd,%esi
call   1060 <pow@plt>
movss  -0x2c(%rbp),%xmm1
ucomiss %xmm1,%xmm0
jb     132f <main+0x1ef>
movl   $0x0,-0x24(%rbp)
jmp    1342 <main+0x202>
lea    0xd12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xccf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movss  -0x4(%rbp),%xmm0
call   1030 <f@plt>
movsd  %xmm0,-0x38(%rbp)
movss  -0x14(%rbp),%xmm0
call   1030 <f@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1391 <main+0x251>
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    139b <main+0x25b>
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    11ee <main+0xae>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xf12(%rip),%rdi
call   1040 <puts@plt>
lea    0xed3(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xec4(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xeba(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xeb3(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xea9(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xea2(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe98(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xeb5(%rip),%rdi
call   1040 <puts@plt>
lea    0xe85(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe79(%rip),%rbx
movsd  0xe0c(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xe1a(%rip),%xmm0
call   1050 <f@plt>
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xdeb(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xdf5(%rip),%xmm0
movss  %xmm0,0x8(%rsp)
call   1050 <f@plt>
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xdc4(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xdca(%rip),%xmm0
call   1050 <f@plt>
mov    %rbx,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xdfc(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0xd93(%rip),%xmm0
call   1050 <f@plt>
movsd  %xmm0,0x10(%rsp)
movss  0xd88(%rip),%xmm0
call   1050 <f@plt>
mulsd  0x10(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
movss  0xd6d(%rip),%xmm1
movaps %xmm1,%xmm0
ja     12ce <main+0x17e>
movss  0xd58(%rip),%xmm0
movss  %xmm1,0x8(%rsp)
mov    $0x1,%ebx
lea    0xd87(%rip),%r14
lea    0xd84(%rip),%r15
lea    0xd83(%rip),%r12
jmp    1304 <main+0x1b4>
nopw   0x0(%rax,%rax,1)
add    $0x1,%ebx
movss  0x1c(%rsp),%xmm2
ucomiss 0x20(%rsp),%xmm2
jae    1444 <main+0x2f4>
movss  %xmm0,0x10(%rsp)
movss  %xmm1,0x20(%rsp)
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x10(%rsp),%xmm0
call   1050 <f@plt>
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x8(%rsp),%xmm0
call   1050 <f@plt>
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x8(%rsp),%xmm0
addss  0x10(%rsp),%xmm0
mulss  0xcaa(%rip),%xmm0
movss  %xmm0,0xc(%rsp)
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xc(%rsp),%xmm0
call   1050 <f@plt>
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xc(%rsp),%xmm0
movaps %xmm0,%xmm1
subss  0x20(%rsp),%xmm1
divss  %xmm0,%xmm1
andps  0xc6b(%rip),%xmm1
movaps %xmm1,0x20(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
mov    $0xfffffffd,%esi
call   1070 <pow@plt>
movss  %xmm0,0x1c(%rsp)
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0x10(%rsp),%xmm0
call   1050 <f@plt>
movsd  %xmm0,0x30(%rsp)
movss  0xc(%rsp),%xmm0
call   1050 <f@plt>
movss  0xc(%rsp),%xmm1
mulsd  0x30(%rsp),%xmm0
ucomisd 0xbee(%rip),%xmm0
movaps %xmm1,%xmm0
ja     12f0 <main+0x1a0>
movss  %xmm1,0x8(%rsp)
movss  0x10(%rsp),%xmm0
jmp    12f0 <main+0x1a0>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [18 x i8] c"\0AFuncao: x^3-10\0A\0A\00"
@.str.1 = [3 x i8] c"k\09\00"
@.str.2 = [4 x i8] c"ak\09\00"
@.str.3 = [7 x i8] c"f(ak)\09\00"
@.str.4 = [4 x i8] c"bk\09\00"
@.str.5 = [7 x i8] c"f(bk)\09\00"
@.str.6 = [4 x i8] c"xk\09\00"
@.str.7 = [7 x i8] c"f(xk)\09\00"
@.str.8 = [3 x i8] c"E\0A\00"
@.str.9 = [4 x i8] c"%d\09\00"
@.str.10 = [6 x i8] c"%.3f\09\00"
@.str.11 = [5 x i8] c"%.3f\00"
@.str.12 = [4 x i8] c"---\00"
@.str.13 = [2 x i8] c"\0A\00"
define void @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca i32
%10 = alloca i32
store i32 1, i32* %9
store i32 0, i32* %10
store float 2.000000e+00, float* %1
store float 3.000000e+00, float* %2
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
br label %20
20: ; preds = %80, %0
%21 = load i32, i32* %9
%22 = icmp eq i32 %21, 1
br i1 %22, label %23, label %84
23: ; preds = %20
%24 = load i32, i32* %10
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %24)
%26 = load float, float* %1
%27 = fpext float %26 to double
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %27)
%29 = load float, float* %1
%30 = call double @f(float %29)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %30)
%32 = load float, float* %2
%33 = fpext float %32 to double
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %33)
%35 = load float, float* %2
%36 = call double @f(float %35)
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %36)
%38 = load float, float* %1
%39 = load float, float* %2
%40 = fadd float %38, %39
%41 = fdiv float %40, 2.000000e+00
store float %41, float* %5
%42 = load float, float* %5
%43 = fpext float %42 to double
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %43)
%45 = load float, float* %5
%46 = call double @f(float %45)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %46)
%48 = load i32, i32* %10
%49 = icmp sgt i32 %48, 0
br i1 %49, label %50, label %66
50: ; preds = %23
%51 = load float, float* %5
%52 = load float, float* %4
%53 = fsub float %51, %52
%54 = call float @fabs(float %53)
%55 = load float, float* %5
%56 = call float @fabs(float %55)
%57 = fdiv float %54, %56
store float %57, float* %3
%58 = load float, float* %3
%59 = fpext float %58 to double
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), double %59)
%61 = load float, float* %3
%62 = call float @pow(i32 10, i32 -3)
%63 = fcmp ole float %61, %62
br i1 %63, label %64, label %65
64: ; preds = %50
store i32 0, i32* %9
br label %65
65: ; preds = %64, %50
br label %68
66: ; preds = %23
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
br label %68
68: ; preds = %66, %65
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%70 = load float, float* %1
%71 = call double @f(float %70)
%72 = load float, float* %5
%73 = call double @f(float %72)
%74 = fmul double %71, %73
%75 = fcmp ogt double %74, 0.000000e+00
br i1 %75, label %76, label %78
76: ; preds = %68
%77 = load float, float* %5
store float %77, float* %1
br label %80
78: ; preds = %68
%79 = load float, float* %5
store float %79, float* %2
br label %80
80: ; preds = %78, %76
%81 = load float, float* %5
store float %81, float* %4
%82 = load i32, i32* %10
%83 = add nsw i32 %82, 1
store i32 %83, i32* %10
br label %20
84: ; preds = %20
ret void
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"k\09\00"
@.str.2 = [4 x i8] c"ak\09\00"
@.str.3 = [7 x i8] c"f(ak)\09\00"
@.str.4 = [4 x i8] c"bk\09\00"
@.str.5 = [7 x i8] c"f(bk)\09\00"
@.str.6 = [4 x i8] c"xk\09\00"
@.str.7 = [7 x i8] c"f(xk)\09\00"
@.str.9 = [4 x i8] c"%d\09\00"
@.str.10 = [6 x i8] c"%.3f\09\00"
@.str.11 = [5 x i8] c"%.3f\00"
@.str.12 = [4 x i8] c"---\00"
@str = [17 x i8] c"\0AFuncao: x^3-10\0A\00"
@str.14 = [2 x i8] c"E\00"
define void @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.14, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 0)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double 2.000000e+00)
%12 = tail call double @f(float 2.000000e+00)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %12)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double 3.000000e+00)
%15 = tail call double @f(float 3.000000e+00)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %15)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double 2.500000e+00)
%18 = tail call double @f(float 2.500000e+00)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %18)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%21 = tail call i32 @putchar(i32 10)
%22 = tail call double @f(float 2.000000e+00)
%23 = tail call double @f(float 2.500000e+00)
%24 = fmul double %22, %23
%25 = fcmp ogt double %24, 0.000000e+00
%26 = select i1 %25, float 2.500000e+00, float 2.000000e+00
%27 = select i1 %25, float 3.000000e+00, float 2.500000e+00
br label %28
28: ; preds = %28, %0
%29 = phi i32 [ 1, %0 ], [ %62, %28 ]
%30 = phi float [ %26, %0 ], [ %61, %28 ]
%31 = phi float [ %27, %0 ], [ %60, %28 ]
%32 = phi float [ 2.500000e+00, %0 ], [ %43, %28 ]
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %29)
%34 = fpext float %30 to double
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %34)
%36 = tail call double @f(float %30)
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %36)
%38 = fpext float %31 to double
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %38)
%40 = tail call double @f(float %31)
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %40)
%42 = fadd float %31, %30
%43 = fmul float %42, 5.000000e-01
%44 = fpext float %43 to double
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %44)
%46 = tail call double @f(float %43)
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %46)
%48 = fsub float %43, %32
%49 = fdiv float %48, %43
%50 = tail call float @llvm.fabs.f32(float %49)
%51 = fpext float %50 to double
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), double %51)
%53 = tail call float @pow(i32 10, i32 -3)
%54 = fcmp ugt float %50, %53
%55 = tail call i32 @putchar(i32 10)
%56 = tail call double @f(float %30)
%57 = tail call double @f(float %43)
%58 = fmul double %56, %57
%59 = fcmp ogt double %58, 0.000000e+00
%60 = select i1 %59, float %31, float %43
%61 = select i1 %59, float %43, float %30
%62 = add nuw nsw i32 %29, 1
br i1 %54, label %28, label %63
63: ; preds = %28
ret void
}