#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 /*<<< orphan*/ constroi_matriz_interpolacao(double **, int, double **);
double **matriz_nula(int, int);
double **matriz_quadrada_nula(int);
int /*<<< orphan*/ solucao_linear(double **, int, double **, double **,
                                  double **);
void polinomio_interpolador(double **X, double **Fx, int dim, double **Pol) {
  double **A, **Pivo;
  A = matriz_quadrada_nula(dim);
  Pivo = matriz_nula(dim, dim);
  constroi_matriz_interpolacao(X, dim, A);
  solucao_linear(A, dim, Fx, Pivo, Pol);
}


x86 assembly (clang, -O0):
<polinomio_interpolador>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <matriz_quadrada_nula@plt>
mov    %rax,-0x28(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1040 <matriz_nula@plt>
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x28(%rbp),%rdx
call   1050 <constroi_matriz_interpolacao@plt>
mov    -0x28(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    -0x20(%rbp),%r8
call   1060 <solucao_linear@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<polinomio_interpolador>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %edx,%ebp
mov    %rsi,%r15
mov    %rdi,%r12
mov    %edx,%edi
call   1030 <matriz_quadrada_nula@plt>
mov    %rax,%rbx
mov    %ebp,%edi
mov    %ebp,%esi
call   1040 <matriz_nula@plt>
mov    %rax,%r13
mov    %r12,%rdi
mov    %ebp,%esi
mov    %rbx,%rdx
call   1050 <constroi_matriz_interpolacao@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r15,%rdx
mov    %r13,%rcx
mov    %r14,%r8
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <solucao_linear@plt>

LLVM IR (-O0):
define void @polinomio_interpolador(double** %0, double** %1, i32 %2, double** %3) {
%5 = alloca double**
%6 = alloca double**
%7 = alloca i32
%8 = alloca double**
%9 = alloca double**
%10 = alloca double**
store double** %0, double*** %5
store double** %1, double*** %6
store i32 %2, i32* %7
store double** %3, double*** %8
%11 = load i32, i32* %7
%12 = call double** @matriz_quadrada_nula(i32 %11)
store double** %12, double*** %9
%13 = load i32, i32* %7
%14 = load i32, i32* %7
%15 = call double** @matriz_nula(i32 %13, i32 %14)
store double** %15, double*** %10
%16 = load double**, double*** %5
%17 = load i32, i32* %7
%18 = load double**, double*** %9
%19 = call i32 @constroi_matriz_interpolacao(double** %16, i32 %17, double** %18)
%20 = load double**, double*** %9
%21 = load i32, i32* %7
%22 = load double**, double*** %6
%23 = load double**, double*** %10
%24 = load double**, double*** %8
%25 = call i32 @solucao_linear(double** %20, i32 %21, double** %22, double** %23, double** %24)
ret void
}

LLVM IR (-O2):
define void @polinomio_interpolador(double** %0, double** %1, i32 %2, double** %3) {
%5 = tail call double** @matriz_quadrada_nula(i32 %2)
%6 = tail call double** @matriz_nula(i32 %2, i32 %2)
%7 = tail call i32 @constroi_matriz_interpolacao(double** %0, i32 %2, double** %5)
%8 = tail call i32 @solucao_linear(double** %5, i32 %2, double** %1, double** %6, double** %3)
ret void
}