#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 fabs(double);
int /*<<< orphan*/ printf(char *, ...);
int truncf(double);
int main() {
  double x_8 = 0.71428571;
  double x_5 = truncf(x_8 * 1e5) / 1e5;
  double y_8 = 0.33333333;
  double y_5 = truncf(y_8 * 1e5) / 1e5;
  double u_8 = 0.714251;
  double u_5 = truncf(u_8 * 1e5) / 1e5;
  double v_8 = 98765.9;
  double v_5 = truncf(v_8 * 1e5) / 1e5;
  double w = 0.111111e-4;
  printf("Operaciones impares\n\n");
  printf("Operación \t\t Valor a 8 \t\t Aritmética de máquina \t\t\t ErrA "
         "\t\t\t ErrR\n");
  double uno_a = x_8 + y_8;
  double uno_b = truncf((x_5 + y_5) * 1e5) / 1e5;
  double uno_c = fabs(uno_a - uno_b);
  double uno_d = fabs(uno_c) / fabs(uno_a);
  printf("x+y \t\t\t  %1.8f \t\t\t %1.5f \t\t\t %1.8f \t\t %1.8f\n", uno_a,
         uno_b, uno_c, uno_d);
  double tres_a = x_8 * y_8;
  double tres_b = truncf((x_5 * y_5) * 1e5) / 1e5;
  double tres_c = fabs(tres_a - tres_b);
  double tres_d = fabs(tres_c) / fabs(tres_a);
  printf("x*y \t\t\t  %1.8f \t\t\t  %1.5f \t\t\t  %1.8f \t\t  %1.8f\n", tres_a,
         tres_b, tres_c, tres_d);
  double cinco_a = (x_8 - u_8);
  double cinco_b = truncf((x_5 - u_5) * 1e5) / 1e5;
  double cinco_c = fabs(cinco_a - cinco_b);
  double cinco_d = fabs(cinco_c) / fabs(cinco_a);
  printf("x-u \t\t\t  %1.8f \t\t\t  %1.5f \t\t\t %1.8f \t\t  %1.8f\n", cinco_a,
         cinco_b, cinco_c, cinco_d);
  double siete_a = (x_8 - u_8) * v_8;
  double siete_b = truncf(((x_5 - u_5) * v_5) * 1e5) / 1e5;
  double siete_c = fabs(siete_a - siete_b);
  double siete_d = fabs(siete_c) / fabs(siete_a);
  printf("(x-u)/v \t\t  %1.8f \t\t  %1.5f \t\t\t  %1.8f \t\t  %1.8f\n", siete_a,
         siete_b, siete_c, siete_d);
  printf(
      "Observamos que para los primeros dos ejercicios (suma y multiplicación) "
      "obtenemos errores absolutos y relativos muy pequeños por lo que no "
      "tenemos problemas de presición. Para la resta de x-u el error absoluto "
      "es pequeño sin embargo el error relativo es grande. Esto se debe a que "
      "los números utilizados son muy cercanos entre sí,lo que hace que el "
      "denominador del error relativo sea muy pequeño y el error grande. Para "
      "la última operación, ambos errores son grandes ya que v multiplica la "
      "resta y como tiene un valor muy grande,  y eleva el valor del error y "
      "hace mucho más notorio el truncamiento realizado.");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movsd  0xf05(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  0xed0(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xeba(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xec9(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe9c(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe86(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe8d(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe68(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe52(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe51(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe34(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe1e(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe15(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe39(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x8(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x10(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  0xdcb(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xdb6(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
movaps 0xd8c(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movaps 0xd77(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  -0x50(%rbp),%xmm1
movaps 0xd67(%rip),%xmm2
pand   %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm3
lea    0xddb(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
movsd  -0x8(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  0xd27(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xd12(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x70(%rbp),%xmm0
subsd  -0x78(%rbp),%xmm0
movaps 0xce8(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
movaps 0xcd3(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  -0x70(%rbp),%xmm1
movaps 0xcc3(%rip),%xmm2
pand   %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm1
movsd  -0x80(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm3
ff
lea    0xd5e(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
movsd  -0x8(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  0xc7a(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xc65(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
subsd  -0x98(%rbp),%xmm0
ff
movaps 0xc32(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movaps 0xc17(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  -0x90(%rbp),%xmm1
ff
movaps 0xc04(%rip),%xmm2
pand   %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm1
ff
movsd  -0xa0(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm3
ff
lea    0xcc6(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
movsd  -0x8(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  0xba8(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xb93(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
subsd  -0xb8(%rbp),%xmm0
ff
movaps 0xb60(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
movaps 0xb45(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  -0xb0(%rbp),%xmm1
ff
movaps 0xb32(%rip),%xmm2
pand   %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  -0xb8(%rbp),%xmm1
ff
movsd  -0xc0(%rbp),%xmm2
ff
movsd  -0xc8(%rbp),%xmm3
ff
lea    0xc23(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
lea    0xc47(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
movsd  0xec3(%rip),%xmm0
call   1050 <truncf@plt>
mov    %eax,%ebx
movsd  0xebc(%rip),%xmm0
call   1050 <truncf@plt>
movd   %ebx,%xmm0
movd   %eax,%xmm1
punpckldq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm0
divpd  0xee7(%rip),%xmm0
movapd %xmm0,(%rsp)
movsd  0xe9a(%rip),%xmm0
call   1050 <truncf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xe8e(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xe88(%rip),%xmm0
call   1050 <truncf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xe6c(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0x11e1(%rip),%rdi
call   1030 <puts@plt>
lea    0x11ea(%rip),%rdi
call   1030 <puts@plt>
movapd (%rsp),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
movapd %xmm1,0x20(%rsp)
addsd  %xmm1,%xmm0
mulsd  0xe2f(%rip),%xmm0
call   1050 <truncf@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
divsd  0xe1b(%rip),%xmm1
movsd  0xe23(%rip),%xmm0
movapd %xmm0,%xmm2
subsd  %xmm1,%xmm2
andpd  0xe4b(%rip),%xmm2
movapd %xmm2,%xmm3
divsd  %xmm0,%xmm3
lea    0xe4c(%rip),%rdi
mov    $0x4,%al
call   1040 <printf@plt>
movapd 0x20(%rsp),%xmm0
mulsd  (%rsp),%xmm0
mulsd  0xdda(%rip),%xmm0
call   1050 <truncf@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
divsd  0xdc6(%rip),%xmm1
movsd  0xdd6(%rip),%xmm0
movapd %xmm0,%xmm2
subsd  %xmm1,%xmm2
andpd  0xdf6(%rip),%xmm2
movapd %xmm2,%xmm3
divsd  %xmm0,%xmm3
lea    0xe24(%rip),%rdi
mov    $0x4,%al
call   1040 <printf@plt>
movapd (%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
movapd %xmm0,(%rsp)
mulsd  0xd80(%rip),%xmm0
call   1050 <truncf@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
divsd  0xd6c(%rip),%xmm1
movsd  0xd84(%rip),%xmm0
movapd %xmm0,%xmm2
subsd  %xmm1,%xmm2
andpd  0xd9c(%rip),%xmm2
movapd %xmm2,%xmm3
divsd  %xmm0,%xmm3
lea    0xdfa(%rip),%rdi
mov    $0x4,%al
call   1040 <printf@plt>
movapd (%rsp),%xmm0
mulsd  0x18(%rsp),%xmm0
mulsd  0xd2b(%rip),%xmm0
call   1050 <truncf@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
divsd  0xd17(%rip),%xmm1
movsd  0xd37(%rip),%xmm0
movapd %xmm0,%xmm2
subsd  %xmm1,%xmm2
andpd  0xd47(%rip),%xmm2
movapd %xmm2,%xmm3
divsd  %xmm0,%xmm3
lea    0xdd4(%rip),%rdi
mov    $0x4,%al
call   1040 <printf@plt>
lea    0xdf8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Operaciones impares\0A\0A\00"
@.str.1 = [70 x i8] c"Operaci\C3\B3n \09\09 Valor a 8 \09\09 Aritm\C3\A9tica de m\C3\A1quina \09\09\09 ErrA \09\09\09 ErrR\0A\00"
@.str.2 = [45 x i8] c"x+y \09\09\09 %1.8f \09\09\09 %1.5f \09\09\09 %1.8f \09\09 %1.8f\0A\00"
@.str.3 = [48 x i8] c"x*y \09\09\09 %1.8f \09\09\09 %1.5f \09\09\09 %1.8f \09\09 %1.8f\0A\00"
@.str.4 = [47 x i8] c"x-u \09\09\09 %1.8f \09\09\09 %1.5f \09\09\09 %1.8f \09\09 %1.8f\0A\00"
@.str.5 = [50 x i8] c"(x-u)/v \09\09 %1.8f \09\09 %1.5f \09\09\09 %1.8f \09\09 %1.8f\0A\00"
@.str.6 = [620 x i8] c"Observamos que para los primeros dos ejercicios (suma y multiplicaci\C3\B3n) obtenemos errores absolutos y relativos muy peque\C3\B1os por lo que no tenemos problemas de presici\C3\B3n. Para la resta de x-u el error absoluto es peque\C3\B1o sin embargo el error relativo es grande. Esto se debe a que los n\C3\BAmeros utilizados son muy cercanos entre s\C3\AD,lo que hace que el denominador del error relativo sea muy peque\C3\B1o y el error grande. Para la \C3\BAltima operaci\C3\B3n, ambos errores son grandes ya que v multiplica la resta y como tiene un valor muy grande, y eleva el valor del error y hace mucho m\C3\A1s notorio el truncamiento realizado.\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
store double 0x3FE6DB6DB48E678C, double* %1
%26 = load double, double* %1
%27 = fmul double %26, 1.000000e+05
%28 = call i32 @truncf(double %27)
%29 = sitofp i32 %28 to double
%30 = fdiv double %29, 1.000000e+05
store double %30, double* %2
store double 0x3FD5555551C112DA, double* %3
%31 = load double, double* %3
%32 = fmul double %31, 1.000000e+05
%33 = call i32 @truncf(double %32)
%34 = sitofp i32 %33 to double
%35 = fdiv double %34, 1.000000e+05
store double %35, double* %4
store double 7.142510e-01, double* %5
%36 = load double, double* %5
%37 = fmul double %36, 1.000000e+05
%38 = call i32 @truncf(double %37)
%39 = sitofp i32 %38 to double
%40 = fdiv double %39, 1.000000e+05
store double %40, double* %6
store double 0x40F81CDE66666666, double* %7
%41 = load double, double* %7
%42 = fmul double %41, 1.000000e+05
%43 = call i32 @truncf(double %42)
%44 = sitofp i32 %43 to double
%45 = fdiv double %44, 1.000000e+05
store double %45, double* %8
store double 1.111110e-05, double* %9
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.1, i64 0, i64 0))
%48 = load double, double* %1
%49 = load double, double* %3
%50 = fadd double %48, %49
store double %50, double* %10
%51 = load double, double* %2
%52 = load double, double* %4
%53 = fadd double %51, %52
%54 = fmul double %53, 1.000000e+05
%55 = call i32 @truncf(double %54)
%56 = sitofp i32 %55 to double
%57 = fdiv double %56, 1.000000e+05
store double %57, double* %11
%58 = load double, double* %10
%59 = load double, double* %11
%60 = fsub double %58, %59
%61 = call double @llvm.fabs.f64(double %60)
store double %61, double* %12
%62 = load double, double* %12
%63 = call double @llvm.fabs.f64(double %62)
%64 = load double, double* %10
%65 = call double @llvm.fabs.f64(double %64)
%66 = fdiv double %63, %65
store double %66, double* %13
%67 = load double, double* %10
%68 = load double, double* %11
%69 = load double, double* %12
%70 = load double, double* %13
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), double %67, double %68, double %69, double %70)
%72 = load double, double* %1
%73 = load double, double* %3
%74 = fmul double %72, %73
store double %74, double* %14
%75 = load double, double* %2
%76 = load double, double* %4
%77 = fmul double %75, %76
%78 = fmul double %77, 1.000000e+05
%79 = call i32 @truncf(double %78)
%80 = sitofp i32 %79 to double
%81 = fdiv double %80, 1.000000e+05
store double %81, double* %15
%82 = load double, double* %14
%83 = load double, double* %15
%84 = fsub double %82, %83
%85 = call double @llvm.fabs.f64(double %84)
store double %85, double* %16
%86 = load double, double* %16
%87 = call double @llvm.fabs.f64(double %86)
%88 = load double, double* %14
%89 = call double @llvm.fabs.f64(double %88)
%90 = fdiv double %87, %89
store double %90, double* %17
%91 = load double, double* %14
%92 = load double, double* %15
%93 = load double, double* %16
%94 = load double, double* %17
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), double %91, double %92, double %93, double %94)
%96 = load double, double* %1
%97 = load double, double* %5
%98 = fsub double %96, %97
store double %98, double* %18
%99 = load double, double* %2
%100 = load double, double* %6
%101 = fsub double %99, %100
%102 = fmul double %101, 1.000000e+05
%103 = call i32 @truncf(double %102)
%104 = sitofp i32 %103 to double
%105 = fdiv double %104, 1.000000e+05
store double %105, double* %19
%106 = load double, double* %18
%107 = load double, double* %19
%108 = fsub double %106, %107
%109 = call double @llvm.fabs.f64(double %108)
store double %109, double* %20
%110 = load double, double* %20
%111 = call double @llvm.fabs.f64(double %110)
%112 = load double, double* %18
%113 = call double @llvm.fabs.f64(double %112)
%114 = fdiv double %111, %113
store double %114, double* %21
%115 = load double, double* %18
%116 = load double, double* %19
%117 = load double, double* %20
%118 = load double, double* %21
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), double %115, double %116, double %117, double %118)
%120 = load double, double* %1
%121 = load double, double* %5
%122 = fsub double %120, %121
%123 = load double, double* %7
%124 = fmul double %122, %123
store double %124, double* %22
%125 = load double, double* %2
%126 = load double, double* %6
%127 = fsub double %125, %126
%128 = load double, double* %8
%129 = fmul double %127, %128
%130 = fmul double %129, 1.000000e+05
%131 = call i32 @truncf(double %130)
%132 = sitofp i32 %131 to double
%133 = fdiv double %132, 1.000000e+05
store double %133, double* %23
%134 = load double, double* %22
%135 = load double, double* %23
%136 = fsub double %134, %135
%137 = call double @llvm.fabs.f64(double %136)
store double %137, double* %24
%138 = load double, double* %24
%139 = call double @llvm.fabs.f64(double %138)
%140 = load double, double* %22
%141 = call double @llvm.fabs.f64(double %140)
%142 = fdiv double %139, %141
store double %142, double* %25
%143 = load double, double* %22
%144 = load double, double* %23
%145 = load double, double* %24
%146 = load double, double* %25
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0), double %143, double %144, double %145, double %146)
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([620 x i8], [620 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [45 x i8] c"x+y \09\09\09 %1.8f \09\09\09 %1.5f \09\09\09 %1.8f \09\09 %1.8f\0A\00"
@.str.3 = [48 x i8] c"x*y \09\09\09 %1.8f \09\09\09 %1.5f \09\09\09 %1.8f \09\09 %1.8f\0A\00"
@.str.4 = [47 x i8] c"x-u \09\09\09 %1.8f \09\09\09 %1.5f \09\09\09 %1.8f \09\09 %1.8f\0A\00"
@.str.5 = [50 x i8] c"(x-u)/v \09\09 %1.8f \09\09 %1.5f \09\09\09 %1.8f \09\09 %1.8f\0A\00"
@.str.6 = [620 x i8] c"Observamos que para los primeros dos ejercicios (suma y multiplicaci\C3\B3n) obtenemos errores absolutos y relativos muy peque\C3\B1os por lo que no tenemos problemas de presici\C3\B3n. Para la resta de x-u el error absoluto es peque\C3\B1o sin embargo el error relativo es grande. Esto se debe a que los n\C3\BAmeros utilizados son muy cercanos entre s\C3\AD,lo que hace que el denominador del error relativo sea muy peque\C3\B1o y el error grande. Para la \C3\BAltima operaci\C3\B3n, ambos errores son grandes ya que v multiplica la resta y como tiene un valor muy grande, y eleva el valor del error y hace mucho m\C3\A1s notorio el truncamiento realizado.\00"
@str = [21 x i8] c"Operaciones impares\0A\00"
@str.7 = [69 x i8] c"Operaci\C3\B3n \09\09 Valor a 8 \09\09 Aritm\C3\A9tica de m\C3\A1quina \09\09\09 ErrA \09\09\09 ErrR\00"
define i32 @main() {
%1 = tail call i32 @truncf(double 0x40F1704922D0E560)
%2 = tail call i32 @truncf(double 0x40E046AAA7EF9DB2)
%3 = insertelement <2 x i32> poison, i32 %1, i64 0
%4 = insertelement <2 x i32> %3, i32 %2, i64 1
%5 = sitofp <2 x i32> %4 to <2 x double>
%6 = fdiv <2 x double> %5, <double 1.000000e+05, double 1.000000e+05>
%7 = tail call i32 @truncf(double 0x40F1701199999999)
%8 = sitofp i32 %7 to double
%9 = fdiv double %8, 1.000000e+05
%10 = tail call i32 @truncf(double 9.876590e+09)
%11 = sitofp i32 %10 to double
%12 = fdiv double %11, 1.000000e+05
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.7, i64 0, i64 0))
%15 = extractelement <2 x double> %6, i64 0
%16 = extractelement <2 x double> %6, i64 1
%17 = fadd double %15, %16
%18 = fmul double %17, 1.000000e+05
%19 = tail call i32 @truncf(double %18)
%20 = sitofp i32 %19 to double
%21 = fdiv double %20, 1.000000e+05
%22 = fsub double 0x3FF0C30C2EB7787C, %21
%23 = tail call double @llvm.fabs.f64(double %22)
%24 = fdiv double %23, 0x3FF0C30C2EB7787C
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), double 0x3FF0C30C2EB7787C, double %21, double %23, double %24)
%26 = fmul double %15, %16
%27 = fmul double %26, 1.000000e+05
%28 = tail call i32 @truncf(double %27)
%29 = sitofp i32 %28 to double
%30 = fdiv double %29, 1.000000e+05
%31 = fsub double 0x3FCE79E7964B98CE, %30
%32 = tail call double @llvm.fabs.f64(double %31)
%33 = fdiv double %32, 0x3FCE79E7964B98CE
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), double 0x3FCE79E7964B98CE, double %30, double %32, double %33)
%35 = fsub double %15, %9
%36 = fmul double %35, 1.000000e+05
%37 = tail call i32 @truncf(double %36)
%38 = sitofp i32 %37 to double
%39 = fdiv double %38, 1.000000e+05
%40 = fsub double 0x3F0232B284CD0000, %39
%41 = tail call double @llvm.fabs.f64(double %40)
%42 = fdiv double %41, 0x3F0232B284CD0000
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), double 0x3F0232B284CD0000, double %39, double %41, double %42)
%44 = fmul double %35, %12
%45 = fmul double %44, 1.000000e+05
%46 = tail call i32 @truncf(double %45)
%47 = sitofp i32 %46 to double
%48 = fdiv double %47, 1.000000e+05
%49 = fsub double 0x400B6CE173808314, %48
%50 = tail call double @llvm.fabs.f64(double %49)
%51 = fdiv double %50, 0x400B6CE173808314
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0), double 0x400B6CE173808314, double %48, double %50, double %51)
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([620 x i8], [620 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}