#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*/ fftLegivel(float *, int, int);
int /*<<< orphan*/ imprimeVetor(float *, int);
int main(void) {
  float data[32] = {0., 0., 1., 0., 2., 0., 3., 0., 0., 0., 1.,
                    0., 2., 0., 3., 0., 0., 0., 1., 0., 2., 0.,
                    3., 0., 0., 0., 1., 0., 2., 0., 3., 0.};
  fftLegivel(data - 1, 16, 1);
  imprimeVetor(data, 32);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x90(%rbp),%rdi
lea    0xeb0(%rip),%rsi
mov    $0x80,%edx
call   1030 <memcpy@plt>
lea    -0x90(%rbp),%rdi
add    $0xfffffffffffffffc,%rdi
mov    $0x10,%esi
mov    $0x1,%edx
call   1040 <fftLegivel@plt>
lea    -0x90(%rbp),%rdi
mov    $0x20,%esi
call   1050 <imprimeVetor@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x88,%rsp
movaps 0xf42(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xf26(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xf0a(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xeee(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xed2(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeb6(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe9a(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe7e(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    -0x4(%rsp),%rdi
mov    $0x10,%esi
mov    $0x1,%edx
call   1030 <fftLegivel@plt>
mov    %rsp,%rdi
mov    $0x20,%esi
call   1040 <imprimeVetor@plt>
xor    %eax,%eax
add    $0x88,%rsp
ret

LLVM IR (-O0):
@__const.main.data = [32 x float] [float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 2.000000e+00, float 0.000000e+00, float 3.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 2.000000e+00, float 0.000000e+00, float 3.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 2.000000e+00, float 0.000000e+00, float 3.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 2.000000e+00, float 0.000000e+00, float 3.000000e+00, float 0.000000e+00]
define i32 @main() {
%1 = alloca i32
%2 = alloca [32 x float]
store i32 0, i32* %1
%3 = bitcast [32 x float]* %2 to i8*
%4 = getelementptr inbounds [32 x float], [32 x float]* %2, i64 0, i64 0
%5 = getelementptr inbounds float, float* %4, i64 -1
%6 = call i32 @fftLegivel(float* %5, i32 16, i32 1)
%7 = getelementptr inbounds [32 x float], [32 x float]* %2, i64 0, i64 0
%8 = call i32 @imprimeVetor(float* %7, i32 32)
ret i32 0
}

LLVM IR (-O2):
@__const.main.data = [32 x float] [float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 2.000000e+00, float 0.000000e+00, float 3.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 2.000000e+00, float 0.000000e+00, float 3.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 2.000000e+00, float 0.000000e+00, float 3.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 2.000000e+00, float 0.000000e+00, float 3.000000e+00, float 0.000000e+00]
define i32 @main() {
%1 = alloca [32 x float]
%2 = bitcast [32 x float]* %1 to i8*
%3 = getelementptr inbounds [32 x float], [32 x float]* %1, i64 0, i64 0
%4 = getelementptr inbounds [32 x float], [32 x float]* %1, i64 0, i64 -1
%5 = call i32 @fftLegivel(float* %4, i32 16, i32 1)
%6 = call i32 @imprimeVetor(float* %3, i32 32)
ret i32 0
}