#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 */
int pow(double, int);
double calculoFxF(double raizA, double resultC) {
  return (pow(raizA, 3) - 3 * raizA - 1) * (pow(resultC, 3) - 3 * resultC - 1);
}


x86 assembly (clang, -O0):
<calculoFxF>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  0xec6(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xeae(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movsd  -0x18(%rbp),%xmm0
cvtsi2sd %eax,%xmm2
movsd  -0x10(%rbp),%xmm1
movsd  0xe88(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  0xe70(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculoFxF>:
push   %rbx
sub    $0x20,%rsp
movaps %xmm1,(%rsp)
movaps %xmm0,0x10(%rsp)
mov    $0x3,%edi
call   1030 <pow@plt>
mov    %eax,%ebx
movaps (%rsp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movd   %ebx,%xmm0
movd   %eax,%xmm1
punpckldq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm0
movapd 0x10(%rsp),%xmm1
unpcklpd (%rsp),%xmm1
mulpd  0xea5(%rip),%xmm1
addpd  %xmm0,%xmm1
addpd  0xea9(%rip),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @calculoFxF(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = call i32 @pow(double %5, i32 3)
%7 = sitofp i32 %6 to double
%8 = load double, double* %3
%9 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %8, double %7)
%10 = fsub double %9, 1.000000e+00
%11 = load double, double* %4
%12 = call i32 @pow(double %11, i32 3)
%13 = sitofp i32 %12 to double
%14 = load double, double* %4
%15 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %14, double %13)
%16 = fsub double %15, 1.000000e+00
%17 = fmul double %10, %16
ret double %17
}

LLVM IR (-O2):
define double @calculoFxF(double %0, double %1) {
%3 = tail call i32 @pow(double %0, i32 3)
%4 = tail call i32 @pow(double %1, i32 3)
%5 = insertelement <2 x i32> poison, i32 %3, i64 0
%6 = insertelement <2 x i32> %5, i32 %4, i64 1
%7 = sitofp <2 x i32> %6 to <2 x double>
%8 = insertelement <2 x double> poison, double %0, i64 0
%9 = insertelement <2 x double> %8, double %1, i64 1
%10 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %9, <2 x double> <double -3.000000e+00, double -3.000000e+00>, <2 x double> %7)
%11 = fadd <2 x double> %10, <double -1.000000e+00, double -1.000000e+00>
%12 = shufflevector <2 x double> %11, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%13 = fmul <2 x double> %11, %12
%14 = extractelement <2 x double> %13, i64 0
ret double %14
}