#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 fIIII(double);
int pow(double, int);
int sqrt(int);
double erro(double a, double b, int n, double x) {
  return (pow(((b - a) / n), 4) / 180) * sqrt(pow((b - a) * fIIII(x), 2));
}


x86 assembly (clang, -O0):
<erro>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %edi,-0x14(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
subsd  -0x8(%rbp),%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    $0x4,%edi
call   1040 <pow@plt>
mov    $0xb4,%ecx
cltd
idiv   %ecx
mov    %eax,-0x24(%rbp)
movsd  -0x10(%rbp),%xmm0
subsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1030 <fIIII@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,%edi
call   1050 <sqrt@plt>
mov    %eax,%ecx
mov    -0x24(%rbp),%eax
imul   %ecx,%eax
cvtsi2sd %eax,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<erro>:
push   %rbx
sub    $0x10,%rsp
movsd  %xmm2,0x8(%rsp)
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
xorps  %xmm2,%xmm2
cvtsi2sd %edi,%xmm2
movapd %xmm1,%xmm0
divsd  %xmm2,%xmm0
mov    $0x4,%edi
call   1040 <pow@plt>
movslq %eax,%rbx
imul   $0xffffffffb60b60b7,%rbx,%rax
shr    $0x20,%rax
add    %eax,%ebx
mov    %ebx,%eax
shr    $0x1f,%eax
sar    $0x7,%ebx
add    %eax,%ebx
movsd  0x8(%rsp),%xmm0
call   1030 <fIIII@plt>
mulsd  (%rsp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,%edi
call   1050 <sqrt@plt>
imul   %ebx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @erro(double %0, double %1, i32 %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca i32
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store i32 %2, i32* %7
store double %3, double* %8
%9 = load double, double* %6
%10 = load double, double* %5
%11 = fsub double %9, %10
%12 = load i32, i32* %7
%13 = sitofp i32 %12 to double
%14 = fdiv double %11, %13
%15 = call i32 @pow(double %14, i32 4)
%16 = sdiv i32 %15, 180
%17 = load double, double* %6
%18 = load double, double* %5
%19 = fsub double %17, %18
%20 = load double, double* %8
%21 = call double @fIIII(double %20)
%22 = fmul double %19, %21
%23 = call i32 @pow(double %22, i32 2)
%24 = call i32 @sqrt(i32 %23)
%25 = mul nsw i32 %16, %24
%26 = sitofp i32 %25 to double
ret double %26
}

LLVM IR (-O2):
define double @erro(double %0, double %1, i32 %2, double %3) {
%5 = fsub double %1, %0
%6 = sitofp i32 %2 to double
%7 = fdiv double %5, %6
%8 = tail call i32 @pow(double %7, i32 4)
%9 = sdiv i32 %8, 180
%10 = tail call double @fIIII(double %3)
%11 = fmul double %5, %10
%12 = tail call i32 @pow(double %11, i32 2)
%13 = tail call i32 @sqrt(i32 %12)
%14 = mul nsw i32 %13, %9
%15 = sitofp i32 %14 to double
ret double %15
}