#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 *, double, double, double, double);
int truncf(double);
main() {
  double x_8 = 0.71428571;
  double y_8 = 0.33333333;
  double u_8 = 0.71425100;
  double v_8 = 98765.900;
  double w_8 = 0.11111100e-4;
  double x_5 = truncf(x_8 * 1e5) / 1e5;
  double y_5 = truncf(y_8 * 1e5) / 1e5;
  double u_5 = truncf(u_8 * 1e5) / 1e5;
  double v_5 = truncf(v_8 * 1e5) / 1e5;
  double w_5 = truncf(w_8 * 1e5) / 1e5;
  double menos = x_8 - y_8;
  double menos_arith = truncf((x_5 - y_5) * 1e5) / 1e5;
  double div = x_8 / y_8;
  double div_arith = truncf((x_5 / y_5) * 1e4) / 1e4;
  double menos_div = (x_8 - u_8) / w_8;
  double menos_div_arith = truncf(((x_5 - u_5) / w_5) * 1e5) / 1e5;
  double plus = u_8 + v_8;
  double plus_arith = truncf((u_8 + v_8));
  printf(" x-y \t %0.8f \t %1.5f \t %1.8f \t %1.8f \n", menos, menos_arith,
         fabs(menos - menos_arith), fabs(menos - menos_arith) / fabs(menos));
  printf(" x/y \t %4.8f \t %1.4f \t %1.8f \t %1.8f \n", div, div_arith,
         fabs(div - div_arith), fabs(div - div_arith) / div);
  printf(" (x-u)/w \t %4.8f \t %1.4f \t %1.8f \t %1.8f \n", menos_div,
         menos_div_arith, fabs(menos_div_arith - menos_div),
         fabs(menos_div_arith - menos_div) / fabs(menos_div));
  printf(" (u+v) \t %5.8f \t %1.0f \t %1.8f \t %1.8f \n", plus, plus_arith,
         fabs(plus - plus_arith), fabs(plus - plus_arith) / fabs(plus));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movsd  0xf0d(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  0xef8(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xee3(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xece(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xeb9(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe9c(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe86(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe75(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe5f(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe4e(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe38(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe27(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe11(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe00(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xdea(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x30(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  0xdc0(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xdab(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x8(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x30(%rbp),%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  0xd89(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xd74(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x30(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
movsd  0xd38(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  0xd23(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
call   1040 <truncf@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm2
subsd  -0x60(%rbp),%xmm2
movaps 0xcc2(%rip),%xmm3
pand   %xmm3,%xmm2
movsd  -0x58(%rbp),%xmm3
subsd  -0x60(%rbp),%xmm3
movaps 0xcad(%rip),%xmm4
pand   %xmm4,%xmm3
movsd  -0x58(%rbp),%xmm4
movaps 0xc9d(%rip),%xmm5
pand   %xmm5,%xmm4
divsd  %xmm4,%xmm3
lea    0xcd6(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x68(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm2
subsd  -0x70(%rbp),%xmm2
movaps 0xc6e(%rip),%xmm3
pand   %xmm3,%xmm2
movsd  -0x68(%rbp),%xmm3
subsd  -0x70(%rbp),%xmm3
movaps 0xc59(%rip),%xmm4
pand   %xmm4,%xmm3
divsd  -0x68(%rbp),%xmm3
lea    0xcb8(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x78(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm1
movsd  -0x80(%rbp),%xmm2
subsd  -0x78(%rbp),%xmm2
movaps 0xc29(%rip),%xmm3
pand   %xmm3,%xmm2
movsd  -0x80(%rbp),%xmm3
subsd  -0x78(%rbp),%xmm3
movaps 0xc14(%rip),%xmm4
pand   %xmm4,%xmm3
movsd  -0x78(%rbp),%xmm4
movaps 0xc04(%rip),%xmm5
pand   %xmm5,%xmm4
divsd  %xmm4,%xmm3
lea    0xc8b(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0x90(%rbp),%xmm1
ff
movsd  -0x88(%rbp),%xmm2
ff
subsd  -0x90(%rbp),%xmm2
ff
movaps 0xbc9(%rip),%xmm3
pand   %xmm3,%xmm2
movsd  -0x88(%rbp),%xmm3
ff
subsd  -0x90(%rbp),%xmm3
ff
movaps 0xbae(%rip),%xmm4
pand   %xmm4,%xmm3
movsd  -0x88(%rbp),%xmm4
ff
movaps 0xb9b(%rip),%xmm5
pand   %xmm5,%xmm4
divsd  %xmm4,%xmm3
lea    0xc4d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
movsd  0xed3(%rip),%xmm0
call   1040 <truncf@plt>
mov    %eax,%ebx
movsd  0xecc(%rip),%xmm0
call   1040 <truncf@plt>
movd   %ebx,%xmm0
movd   %eax,%xmm1
punpckldq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm0
divpd  0xf07(%rip),%xmm0
movapd %xmm0,(%rsp)
movsd  0xeaa(%rip),%xmm0
call   1040 <truncf@plt>
mov    %eax,%ebx
movsd  0xea3(%rip),%xmm0
call   1040 <truncf@plt>
movsd  0xe9e(%rip),%xmm0
call   1040 <truncf@plt>
movd   %ebx,%xmm0
movd   %eax,%xmm1
punpckldq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm0
divpd  0xec1(%rip),%xmm0
movapd %xmm0,0x20(%rsp)
movapd (%rsp),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
movapd %xmm1,0x10(%rsp)
subsd  %xmm1,%xmm0
mulsd  0xe64(%rip),%xmm0
call   1040 <truncf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xe50(%rip),%xmm0
movsd  %xmm0,0x38(%rsp)
movapd (%rsp),%xmm0
divsd  0x10(%rsp),%xmm0
mulsd  0xe3f(%rip),%xmm0
call   1040 <truncf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xe2b(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movapd (%rsp),%xmm0
movapd 0x20(%rsp),%xmm1
subsd  %xmm1,%xmm0
unpckhpd %xmm1,%xmm1
divsd  %xmm1,%xmm0
mulsd  0xdfe(%rip),%xmm0
call   1040 <truncf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xdea(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0xdec(%rip),%xmm0
call   1040 <truncf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,(%rsp)
movsd  0xddb(%rip),%xmm0
movapd %xmm0,%xmm2
movsd  0x38(%rsp),%xmm1
subsd  %xmm1,%xmm2
andpd  0xdf5(%rip),%xmm2
movapd %xmm2,%xmm3
divsd  %xmm0,%xmm3
lea    0xdf6(%rip),%rdi
call   1030 <printf@plt>
movsd  0xdb1(%rip),%xmm0
movapd %xmm0,%xmm2
movsd  0x10(%rsp),%xmm1
subsd  %xmm1,%xmm2
andpd  0xdc3(%rip),%xmm2
movapd %xmm2,%xmm3
divsd  %xmm0,%xmm3
lea    0xdeb(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd87(%rip),%xmm2
movsd  0x20(%rsp),%xmm1
addsd  %xmm1,%xmm2
andpd  0xd95(%rip),%xmm2
movsd  0xd75(%rip),%xmm0
movapd %xmm2,%xmm3
divsd  %xmm0,%xmm3
lea    0xddc(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd39(%rip),%xmm0
movapd %xmm0,%xmm2
movsd  (%rsp),%xmm1
subsd  %xmm1,%xmm2
andpd  0xd5c(%rip),%xmm2
movapd %xmm2,%xmm3
divsd  %xmm0,%xmm3
lea    0xdd6(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [39 x i8] c" x-y \09 %0.8f \09 %1.5f \09 %1.8f \09 %1.8f \0A\00"
@.str.1 = [39 x i8] c" x/y \09 %4.8f \09 %1.4f \09 %1.8f \09 %1.8f \0A\00"
@.str.2 = [43 x i8] c" (x-u)/w \09 %4.8f \09 %1.4f \09 %1.8f \09 %1.8f \0A\00"
@.str.3 = [41 x i8] c" (u+v) \09 %5.8f \09 %1.0f \09 %1.8f \09 %1.8f \0A\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
store double 0x3FE6DB6DB48E678C, double* %1
store double 0x3FD5555551C112DA, double* %2
store double 7.142510e-01, double* %3
store double 0x40F81CDE66666666, double* %4
store double 1.111110e-05, double* %5
%19 = load double, double* %1
%20 = fmul double %19, 1.000000e+05
%21 = call i32 @truncf(double %20)
%22 = sitofp i32 %21 to double
%23 = fdiv double %22, 1.000000e+05
store double %23, double* %6
%24 = load double, double* %2
%25 = fmul double %24, 1.000000e+05
%26 = call i32 @truncf(double %25)
%27 = sitofp i32 %26 to double
%28 = fdiv double %27, 1.000000e+05
store double %28, double* %7
%29 = load double, double* %3
%30 = fmul double %29, 1.000000e+05
%31 = call i32 @truncf(double %30)
%32 = sitofp i32 %31 to double
%33 = fdiv double %32, 1.000000e+05
store double %33, double* %8
%34 = load double, double* %4
%35 = fmul double %34, 1.000000e+05
%36 = call i32 @truncf(double %35)
%37 = sitofp i32 %36 to double
%38 = fdiv double %37, 1.000000e+05
store double %38, double* %9
%39 = load double, double* %5
%40 = fmul double %39, 1.000000e+05
%41 = call i32 @truncf(double %40)
%42 = sitofp i32 %41 to double
%43 = fdiv double %42, 1.000000e+05
store double %43, double* %10
%44 = load double, double* %1
%45 = load double, double* %2
%46 = fsub double %44, %45
store double %46, double* %11
%47 = load double, double* %6
%48 = load double, double* %7
%49 = fsub double %47, %48
%50 = fmul double %49, 1.000000e+05
%51 = call i32 @truncf(double %50)
%52 = sitofp i32 %51 to double
%53 = fdiv double %52, 1.000000e+05
store double %53, double* %12
%54 = load double, double* %1
%55 = load double, double* %2
%56 = fdiv double %54, %55
store double %56, double* %13
%57 = load double, double* %6
%58 = load double, double* %7
%59 = fdiv double %57, %58
%60 = fmul double %59, 1.000000e+04
%61 = call i32 @truncf(double %60)
%62 = sitofp i32 %61 to double
%63 = fdiv double %62, 1.000000e+04
store double %63, double* %14
%64 = load double, double* %1
%65 = load double, double* %3
%66 = fsub double %64, %65
%67 = load double, double* %5
%68 = fdiv double %66, %67
store double %68, double* %15
%69 = load double, double* %6
%70 = load double, double* %8
%71 = fsub double %69, %70
%72 = load double, double* %10
%73 = fdiv double %71, %72
%74 = fmul double %73, 1.000000e+05
%75 = call i32 @truncf(double %74)
%76 = sitofp i32 %75 to double
%77 = fdiv double %76, 1.000000e+05
store double %77, double* %16
%78 = load double, double* %3
%79 = load double, double* %4
%80 = fadd double %78, %79
store double %80, double* %17
%81 = load double, double* %3
%82 = load double, double* %4
%83 = fadd double %81, %82
%84 = call i32 @truncf(double %83)
%85 = sitofp i32 %84 to double
store double %85, double* %18
%86 = load double, double* %11
%87 = load double, double* %12
%88 = load double, double* %11
%89 = load double, double* %12
%90 = fsub double %88, %89
%91 = call double @llvm.fabs.f64(double %90)
%92 = load double, double* %11
%93 = load double, double* %12
%94 = fsub double %92, %93
%95 = call double @llvm.fabs.f64(double %94)
%96 = load double, double* %11
%97 = call double @llvm.fabs.f64(double %96)
%98 = fdiv double %95, %97
%99 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), double %86, double %87, double %91, double %98)
%100 = load double, double* %13
%101 = load double, double* %14
%102 = load double, double* %13
%103 = load double, double* %14
%104 = fsub double %102, %103
%105 = call double @llvm.fabs.f64(double %104)
%106 = load double, double* %13
%107 = load double, double* %14
%108 = fsub double %106, %107
%109 = call double @llvm.fabs.f64(double %108)
%110 = load double, double* %13
%111 = fdiv double %109, %110
%112 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), double %100, double %101, double %105, double %111)
%113 = load double, double* %15
%114 = load double, double* %16
%115 = load double, double* %16
%116 = load double, double* %15
%117 = fsub double %115, %116
%118 = call double @llvm.fabs.f64(double %117)
%119 = load double, double* %16
%120 = load double, double* %15
%121 = fsub double %119, %120
%122 = call double @llvm.fabs.f64(double %121)
%123 = load double, double* %15
%124 = call double @llvm.fabs.f64(double %123)
%125 = fdiv double %122, %124
%126 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), double %113, double %114, double %118, double %125)
%127 = load double, double* %17
%128 = load double, double* %18
%129 = load double, double* %17
%130 = load double, double* %18
%131 = fsub double %129, %130
%132 = call double @llvm.fabs.f64(double %131)
%133 = load double, double* %17
%134 = load double, double* %18
%135 = fsub double %133, %134
%136 = call double @llvm.fabs.f64(double %135)
%137 = load double, double* %17
%138 = call double @llvm.fabs.f64(double %137)
%139 = fdiv double %136, %138
%140 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), double %127, double %128, double %132, double %139)
ret i32 0
}

LLVM IR (-O2):
@.str = [39 x i8] c" x-y \09 %0.8f \09 %1.5f \09 %1.8f \09 %1.8f \0A\00"
@.str.1 = [39 x i8] c" x/y \09 %4.8f \09 %1.4f \09 %1.8f \09 %1.8f \0A\00"
@.str.2 = [43 x i8] c" (x-u)/w \09 %4.8f \09 %1.4f \09 %1.8f \09 %1.8f \0A\00"
@.str.3 = [41 x i8] c" (u+v) \09 %5.8f \09 %1.0f \09 %1.8f \09 %1.8f \0A\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 = tail call i32 @truncf(double 9.876590e+09)
%9 = tail call i32 @truncf(double 1.111110e+00)
%10 = insertelement <2 x i32> poison, i32 %7, i64 0
%11 = insertelement <2 x i32> %10, i32 %9, i64 1
%12 = sitofp <2 x i32> %11 to <2 x double>
%13 = fdiv <2 x double> %12, <double 1.000000e+05, double 1.000000e+05>
%14 = extractelement <2 x double> %6, i64 0
%15 = extractelement <2 x double> %6, i64 1
%16 = fsub double %14, %15
%17 = fmul double %16, 1.000000e+05
%18 = tail call i32 @truncf(double %17)
%19 = sitofp i32 %18 to double
%20 = fdiv double %19, 1.000000e+05
%21 = fdiv double %14, %15
%22 = fmul double %21, 1.000000e+04
%23 = tail call i32 @truncf(double %22)
%24 = sitofp i32 %23 to double
%25 = fdiv double %24, 1.000000e+04
%26 = fsub <2 x double> %6, %13
%27 = extractelement <2 x double> %26, i64 0
%28 = extractelement <2 x double> %13, i64 1
%29 = fdiv double %27, %28
%30 = fmul double %29, 1.000000e+05
%31 = tail call i32 @truncf(double %30)
%32 = sitofp i32 %31 to double
%33 = fdiv double %32, 1.000000e+05
%34 = tail call i32 @truncf(double 0x40F81CE9D3F8DB48)
%35 = sitofp i32 %34 to double
%36 = fsub double 0x3FD86186175BBC3E, %20
%37 = tail call double @llvm.fabs.f64(double %36)
%38 = fdiv double %37, 0x3FD86186175BBC3E
%39 = tail call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), double 0x3FD86186175BBC3E, double %20, double %37, double %38)
%40 = fsub double 0x400124924A4B155F, %25
%41 = tail call double @llvm.fabs.f64(double %40)
%42 = fdiv double %41, 0x400124924A4B155F
%43 = tail call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), double 0x400124924A4B155F, double %25, double %41, double %42)
%44 = fadd double %33, 0xC008FDC0EBC844C9
%45 = tail call double @llvm.fabs.f64(double %44)
%46 = fdiv double %45, 0x4008FDC0EBC844C9
%47 = tail call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), double 0x4008FDC0EBC844C9, double %33, double %45, double %46)
%48 = fsub double 0x40F81CE9D3F8DB48, %35
%49 = tail call double @llvm.fabs.f64(double %48)
%50 = fdiv double %49, 0x40F81CE9D3F8DB48
%51 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), double 0x40F81CE9D3F8DB48, double %35, double %49, double %50)
ret i32 0
}