#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 */
typedef int /*<<< orphan*/ pthread_t;

/* Variables and functions */
int /*<<< orphan*/ fft(float *);
int /*<<< orphan*/ imprimeVetor(float *);
int /*<<< orphan*/ inicializaArray(float *);
int /*<<< orphan*/ ordenaBitReverso(float *);
int main(void) {
  pthread_t threads[2];
  float data[16 * 2];
  unsigned long count;
  for (count = 0; count < 1; count++) {
    inicializaArray(data);
    ordenaBitReverso(data - 1);
    fft(data - 1);
  }
  imprimeVetor(data);
  int t;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x98(%rbp)
cmpq   $0x1,-0x98(%rbp)
01
jae    11ae <main+0x6e>
lea    -0x90(%rbp),%rdi
call   1040 <inicializaArray@plt>
lea    -0x90(%rbp),%rdi
add    $0xfffffffffffffffc,%rdi
call   1030 <ordenaBitReverso@plt>
lea    -0x90(%rbp),%rdi
add    $0xfffffffffffffffc,%rdi
call   1060 <fft@plt>
mov    -0x98(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x98(%rbp)
jmp    115d <main+0x1d>
lea    -0x90(%rbp),%rdi
call   1050 <imprimeVetor@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x88,%rsp
mov    %rsp,%r14
mov    %r14,%rdi
call   1040 <inicializaArray@plt>
lea    -0x4(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <ordenaBitReverso@plt>
mov    %rbx,%rdi
call   1060 <fft@plt>
mov    %r14,%rdi
call   1050 <imprimeVetor@plt>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca [2 x i32]
%3 = alloca [32 x float]
%4 = alloca i64
%5 = alloca i32
store i32 0, i32* %1
store i64 0, i64* %4
br label %6
6: ; preds = %18, %0
%7 = load i64, i64* %4
%8 = icmp ult i64 %7, 1
br i1 %8, label %9, label %21
9: ; preds = %6
%10 = getelementptr inbounds [32 x float], [32 x float]* %3, i64 0, i64 0
%11 = call i32 @inicializaArray(float* %10)
%12 = getelementptr inbounds [32 x float], [32 x float]* %3, i64 0, i64 0
%13 = getelementptr inbounds float, float* %12, i64 -1
%14 = call i32 @ordenaBitReverso(float* %13)
%15 = getelementptr inbounds [32 x float], [32 x float]* %3, i64 0, i64 0
%16 = getelementptr inbounds float, float* %15, i64 -1
%17 = call i32 @fft(float* %16)
br label %18
18: ; preds = %9
%19 = load i64, i64* %4
%20 = add i64 %19, 1
store i64 %20, i64* %4
br label %6
21: ; preds = %6
%22 = getelementptr inbounds [32 x float], [32 x float]* %3, i64 0, i64 0
%23 = call i32 @imprimeVetor(float* %22)
ret i32 0
}

LLVM IR (-O2):
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 = call i32 @inicializaArray(float* %3)
%5 = getelementptr inbounds [32 x float], [32 x float]* %1, i64 0, i64 -1
%6 = call i32 @ordenaBitReverso(float* %5)
%7 = call i32 @fft(float* %5)
%8 = call i32 @imprimeVetor(float* %3)
ret i32 0
}