#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 abs(float);
float calculafx(float, float *, float *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ system(char *);
int main() {
  int n;
  float epsilon, fa, fb, x1, fxx1, a, b;
  printf("Digite o número de termos da função: \n");
  scanf("%d", &n);
  system("clear");
  float f1[n], f2[n];
  printf("Digite o epsilon: \n");
  scanf("%f", &epsilon);
  printf("Digite o primeiro valor do intervalo: \n");
  scanf("%f", &a);
  printf("Digite o segundo valor do intervalo: \n");
  scanf("%f", &b);
  system("clear");
  for (int i = 1; i <= n; i++) {
    printf("Digite o termo %d da função:\n", i);
    scanf("%f", &f1[i]);
    printf("Digite o grau do termo: \n");
    printf("Digite 0 se o termo for uma constante:\n");
    scanf("%f", &f2[i]);
    system("clear");
  }
  do {
    x1 = (a + b) / 2;
    fxx1 = calculafx(x1, f1, f2, n);
    if (fxx1 * calculafx(a, f1, f2, n) < 0) {
      b = x1;
    } else {
      a = x1;
    }
  } while (abs(a - b) > epsilon);
  fa = calculafx(a, f1, f2, n);
  fb = calculafx(b, f1, f2, n);
  printf("f(a) é igual a %f e f(b) é igual a %f \n", fa, fb);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9e(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x59(%rbp)
call   1050 <printf@plt>
mov    -0x59(%rbp),%al
lea    0xeb4(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1070 <scanf@plt>
lea    0xea7(%rip),%rdi
call   1040 <system@plt>
mov    -0x8(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x40(%rbp)
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe60(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
lea    0xe51(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe40(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe20(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
lea    0xdf4(%rip),%rdi
call   1040 <system@plt>
movl   $0x1,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     12d6 <main+0x186>
mov    -0x44(%rbp),%esi
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x58(%rbp),%rsi
movslq -0x44(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xdcf(%rip),%rdi
mov    $0x0,%al
call   1070 <scanf@plt>
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x50(%rbp),%rsi
movslq -0x44(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xd96(%rip),%rdi
mov    $0x0,%al
call   1070 <scanf@plt>
lea    0xd6e(%rip),%rdi
call   1040 <system@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1249 <main+0xf9>
jmp    12db <main+0x18b>
mov    -0x50(%rbp),%rsi
mov    -0x58(%rbp),%rdi
movss  -0x20(%rbp),%xmm0
addss  -0x24(%rbp),%xmm0
movss  0xd0b(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%edx
call   1060 <calculafx@plt>
mov    -0x58(%rbp),%rdi
mov    -0x50(%rbp),%rsi
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x60(%rbp)
movss  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%edx
call   1060 <calculafx@plt>
movss  -0x60(%rbp),%xmm1
mulss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm1,%xmm0
jbe    1353 <main+0x203>
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
jmp    135d <main+0x20d>
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
jmp    1362 <main+0x212>
movss  -0x20(%rbp),%xmm0
subss  -0x24(%rbp),%xmm0
call   1030 <abs@plt>
ucomiss -0xc(%rbp),%xmm0
ja     12db <main+0x18b>
mov    -0x50(%rbp),%rsi
mov    -0x58(%rbp),%rdi
movss  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%edx
call   1060 <calculafx@plt>
mov    -0x58(%rbp),%rdi
mov    -0x50(%rbp),%rsi
movss  %xmm0,-0x10(%rbp)
movss  -0x24(%rbp),%xmm0
mov    -0x8(%rbp),%edx
call   1060 <calculafx@plt>
movss  %xmm0,-0x14(%rbp)
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xd37(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xee6(%rip),%rdi
call   1030 <puts@plt>
lea    0xe84(%rip),%rdi
lea    -0x2c(%rbp),%rsi
xor    %eax,%eax
call   1080 <scanf@plt>
lea    0xe75(%rip),%r15
mov    %r15,%rdi
call   1050 <system@plt>
mov    %rsp,%r13
mov    -0x2c(%rbp),%eax
mov    %rsp,%rbx
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    -0x2c(%rbp),%eax
mov    %rsp,%r12
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
lea    0xeaf(%rip),%rdi
call   1030 <puts@plt>
lea    0xe2d(%rip),%r14
lea    -0x4c(%rbp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1080 <scanf@plt>
lea    0xea1(%rip),%rdi
call   1030 <puts@plt>
lea    -0x30(%rbp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1080 <scanf@plt>
lea    0xeae(%rip),%rdi
call   1030 <puts@plt>
lea    -0x34(%rbp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1080 <scanf@plt>
mov    %r15,%rdi
call   1050 <system@plt>
mov    -0x2c(%rbp),%edx
test   %edx,%edx
jle    12d3 <main+0x173>
mov    %r13,-0x40(%rbp)
lea    0x4(%r12),%r15
mov    %rbx,-0x48(%rbp)
add    $0x4,%rbx
xor    %r13d,%r13d
nopl   (%rax)
add    $0x1,%r13
lea    0xdb9(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xda5(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <scanf@plt>
lea    0xe67(%rip),%rdi
call   1030 <puts@plt>
lea    0xe74(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1080 <scanf@plt>
lea    0xd66(%rip),%rdi
call   1050 <system@plt>
movslq -0x2c(%rbp),%rdx
add    $0x4,%r15
add    $0x4,%rbx
cmp    %rdx,%r13
jl     1250 <main+0xf0>
mov    -0x40(%rbp),%r13
mov    -0x48(%rbp),%rbx
jmp    12d3 <main+0x173>
cs nopw 0x0(%rax,%rax,1)
nop
mov    -0x2c(%rbp),%edx
movss  -0x30(%rbp),%xmm0
addss  -0x34(%rbp),%xmm0
mulss  0xd1b(%rip),%xmm0
movss  %xmm0,-0x48(%rbp)
mov    %rbx,%rdi
mov    %r12,%rsi
call   1070 <calculafx@plt>
movss  %xmm0,-0x40(%rbp)
movss  -0x30(%rbp),%xmm0
mov    -0x2c(%rbp),%edx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1070 <calculafx@plt>
mulss  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
jbe    1330 <main+0x1d0>
movss  -0x48(%rbp),%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x30(%rbp),%xmm1
jmp    133f <main+0x1df>
nopl   0x0(%rax,%rax,1)
movss  -0x48(%rbp),%xmm1
movss  %xmm1,-0x30(%rbp)
movss  -0x34(%rbp),%xmm0
subss  %xmm0,%xmm1
movaps %xmm1,%xmm0
call   1040 <abs@plt>
ucomiss -0x4c(%rbp),%xmm0
ja     12d0 <main+0x170>
movss  -0x30(%rbp),%xmm0
mov    -0x2c(%rbp),%edx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1070 <calculafx@plt>
movss  %xmm0,-0x40(%rbp)
movss  -0x34(%rbp),%xmm0
mov    -0x2c(%rbp),%edx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1070 <calculafx@plt>
movss  -0x40(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
lea    0xc9d(%rip),%rdi
movaps %xmm2,%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
mov    %r13,%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [42 x i8] c"Digite o n\C3\BAmero de termos da fun\C3\A7\C3\A3o: \0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [6 x i8] c"clear\00"
@.str.3 = [20 x i8] c"Digite o epsilon: \0A\00"
@.str.4 = [3 x i8] c"%f\00"
@.str.5 = [40 x i8] c"Digite o primeiro valor do intervalo: \0A\00"
@.str.6 = [39 x i8] c"Digite o segundo valor do intervalo: \0A\00"
@.str.7 = [32 x i8] c"Digite o termo %d da fun\C3\A7\C3\A3o:\0A\00"
@.str.8 = [26 x i8] c"Digite o grau do termo: \0A\00"
@.str.9 = [40 x i8] c"Digite 0 se o termo for uma constante:\0A\00"
@.str.10 = [42 x i8] c"f(a) \C3\A9 igual a %f e f(b) \C3\A9 igual a %f \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i64
%13 = alloca i32
store i32 0, i32* %1
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%16 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%17 = load i32, i32* %2
%18 = zext i32 %17 to i64
%19 = call i8* @llvm.stacksave()
store i8* %19, i8** %10
%20 = alloca float, i64 %18
store i64 %18, i64* %11
%21 = load i32, i32* %2
%22 = zext i32 %21 to i64
%23 = alloca float, i64 %22
store i64 %22, i64* %12
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %3)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %8)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %9)
%30 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %13
br label %31
31: ; preds = %49, %0
%32 = load i32, i32* %13
%33 = load i32, i32* %2
%34 = icmp sle i32 %32, %33
br i1 %34, label %35, label %52
35: ; preds = %31
%36 = load i32, i32* %13
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i32 %36)
%38 = load i32, i32* %13
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds float, float* %20, i64 %39
%41 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %40)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0))
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0))
%44 = load i32, i32* %13
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds float, float* %23, i64 %45
%47 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %46)
%48 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %49
49: ; preds = %35
%50 = load i32, i32* %13
%51 = add nsw i32 %50, 1
store i32 %51, i32* %13
br label %31
52: ; preds = %31
br label %53
53: ; preds = %72, %52
%54 = load float, float* %8
%55 = load float, float* %9
%56 = fadd float %54, %55
%57 = fdiv float %56, 2.000000e+00
store float %57, float* %6
%58 = load float, float* %6
%59 = load i32, i32* %2
%60 = call float @calculafx(float %58, float* %20, float* %23, i32 %59)
store float %60, float* %7
%61 = load float, float* %7
%62 = load float, float* %8
%63 = load i32, i32* %2
%64 = call float @calculafx(float %62, float* %20, float* %23, i32 %63)
%65 = fmul float %61, %64
%66 = fcmp olt float %65, 0.000000e+00
br i1 %66, label %67, label %69
67: ; preds = %53
%68 = load float, float* %6
store float %68, float* %9
br label %71
69: ; preds = %53
%70 = load float, float* %6
store float %70, float* %8
br label %71
71: ; preds = %69, %67
br label %72
72: ; preds = %71
%73 = load float, float* %8
%74 = load float, float* %9
%75 = fsub float %73, %74
%76 = call float @abs(float %75)
%77 = load float, float* %3
%78 = fcmp ogt float %76, %77
br i1 %78, label %53, label %79
79: ; preds = %72
%80 = load float, float* %8
%81 = load i32, i32* %2
%82 = call float @calculafx(float %80, float* %20, float* %23, i32 %81)
store float %82, float* %4
%83 = load float, float* %9
%84 = load i32, i32* %2
%85 = call float @calculafx(float %83, float* %20, float* %23, i32 %84)
store float %85, float* %5
%86 = load float, float* %4
%87 = fpext float %86 to double
%88 = load float, float* %5
%89 = fpext float %88 to double
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), double %87, double %89)
%91 = load i8*, i8** %10
%92 = load i32, i32* %1
ret i32 %92
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [6 x i8] c"clear\00"
@.str.4 = [3 x i8] c"%f\00"
@.str.7 = [32 x i8] c"Digite o termo %d da fun\C3\A7\C3\A3o:\0A\00"
@.str.10 = [42 x i8] c"f(a) \C3\A9 igual a %f e f(b) \C3\A9 igual a %f \0A\00"
@str = [41 x i8] c"Digite o n\C3\BAmero de termos da fun\C3\A7\C3\A3o: \00"
@str.11 = [19 x i8] c"Digite o epsilon: \00"
@str.12 = [39 x i8] c"Digite o primeiro valor do intervalo: \00"
@str.13 = [38 x i8] c"Digite o segundo valor do intervalo: \00"
@str.14 = [25 x i8] c"Digite o grau do termo: \00"
@str.15 = [39 x i8] c"Digite 0 se o termo for uma constante:\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = bitcast i32* %1 to i8*
%6 = bitcast float* %2 to i8*
%7 = bitcast float* %3 to i8*
%8 = bitcast float* %4 to i8*
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str, i64 0, i64 0))
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%11 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%12 = load i32, i32* %1
%13 = zext i32 %12 to i64
%14 = call i8* @llvm.stacksave()
%15 = alloca float, i64 %13
%16 = load i32, i32* %1
%17 = zext i32 %16 to i64
%18 = alloca float, i64 %17
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.11, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %2)
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.12, i64 0, i64 0))
%22 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %3)
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.13, i64 0, i64 0))
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %4)
%25 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%26 = load i32, i32* %1
%27 = icmp slt i32 %26, 1
br i1 %27, label %43, label %28
28: ; preds = %0, %28
%29 = phi i64 [ %39, %28 ], [ 1, %0 ]
%30 = trunc i64 %29 to i32
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i32 %30)
%32 = getelementptr inbounds float, float* %15, i64 %29
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %32)
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.14, i64 0, i64 0))
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.15, i64 0, i64 0))
%36 = getelementptr inbounds float, float* %18, i64 %29
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), float* %36)
%38 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%39 = add nuw nsw i64 %29, 1
%40 = load i32, i32* %1
%41 = sext i32 %40 to i64
%42 = icmp slt i64 %29, %41
br i1 %42, label %28, label %43
43: ; preds = %28, %0
%44 = phi i32 [ %26, %0 ], [ %40, %28 ]
br label %45
45: ; preds = %43, %68
%46 = phi i32 [ %69, %68 ], [ %44, %43 ]
%47 = load float, float* %3
%48 = load float, float* %4
%49 = fadd float %47, %48
%50 = fmul float %49, 5.000000e-01
%51 = call float @calculafx(float %50, float* %15, float* %18, i32 %46)
%52 = load float, float* %3
%53 = load i32, i32* %1
%54 = call float @calculafx(float %52, float* %15, float* %18, i32 %53)
%55 = fmul float %51, %54
%56 = fcmp olt float %55, 0.000000e+00
br i1 %56, label %57, label %59
57: ; preds = %45
store float %50, float* %4
%58 = load float, float* %3
br label %61
59: ; preds = %45
store float %50, float* %3
%60 = load float, float* %4
br label %61
61: ; preds = %57, %59
%62 = phi float [ %50, %57 ], [ %60, %59 ]
%63 = phi float [ %58, %57 ], [ %50, %59 ]
%64 = fsub float %63, %62
%65 = call float @abs(float %64)
%66 = load float, float* %2
%67 = fcmp ogt float %65, %66
br i1 %67, label %68, label %70
68: ; preds = %61
%69 = load i32, i32* %1
br label %45
70: ; preds = %61
%71 = load float, float* %3
%72 = load i32, i32* %1
%73 = call float @calculafx(float %71, float* %15, float* %18, i32 %72)
%74 = load float, float* %4
%75 = load i32, i32* %1
%76 = call float @calculafx(float %74, float* %15, float* %18, i32 %75)
%77 = fpext float %73 to double
%78 = fpext float %76 to double
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), double %77, double %78)
ret i32 0
}