#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*/ fft(float *);
int /*<<< orphan*/ imprimeVetor(float *);
int /*<<< orphan*/ inicializaArray(float *);
int /*<<< orphan*/ ordenaBitReverso(float *);
int main(void) {
  float data[8];
  unsigned long count;
  for (count = 0; count < 5555500; count++) {
    inicializaArray(data);
    ordenaBitReverso(data - 1);
    fft(data - 1);
  }
  imprimeVetor(data);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x38(%rbp)
cmpq   $0x54c52c,-0x38(%rbp)
jae    1199 <main+0x59>
lea    -0x30(%rbp),%rdi
call   1040 <inicializaArray@plt>
lea    -0x30(%rbp),%rdi
add    $0xfffffffffffffffc,%rdi
call   1030 <ordenaBitReverso@plt>
lea    -0x30(%rbp),%rdi
add    $0xfffffffffffffffc,%rdi
call   1060 <fft@plt>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    1157 <main+0x17>
lea    -0x30(%rbp),%rdi
call   1050 <imprimeVetor@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    $0x54c52c,%ebx
lea    -0x4(%rsp),%r15
mov    %rsp,%r14
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1040 <inicializaArray@plt>
mov    %r15,%rdi
call   1030 <ordenaBitReverso@plt>
mov    %r15,%rdi
call   1060 <fft@plt>
add    $0xffffffffffffffff,%rbx
jne    1160 <main+0x20>
mov    %rsp,%rdi
call   1050 <imprimeVetor@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = alloca [8 x float]
%2 = bitcast [8 x float]* %1 to i8*
%3 = getelementptr inbounds [8 x float], [8 x float]* %1, i64 0, i64 0
%4 = getelementptr inbounds [8 x float], [8 x float]* %1, i64 0, i64 -1
br label %5
5: ; preds = %0, %5
%6 = phi i64 [ 0, %0 ], [ %10, %5 ]
%7 = call i32 @inicializaArray(float* %3)
%8 = call i32 @ordenaBitReverso(float* %4)
%9 = call i32 @fft(float* %4)
%10 = add nuw nsw i64 %6, 1
%11 = icmp eq i64 %10, 5555500
br i1 %11, label %12, label %5
12: ; preds = %5
%13 = call i32 @imprimeVetor(float* %3)
ret i32 0
}