#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(double *, double *, double *, double *);
void pe(double real[][128], double img[][128], double real_twid[][128 / 2],
        double img_twid[][128 / 2], int num_strides) {
#pragma HLS inline off
  for (int i = 0; i < ((64 + 4 - 1) / 4); i++) {
    if (i < num_strides)
      fft(real[i], img[i], real_twid[i], img_twid[i]);
  }
}


x86 assembly (clang, -O0):
<pe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x10,-0x28(%rbp)
jge    119d <pe+0x8d>
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    118a <pe+0x7a>
mov    -0x8(%rbp),%rdi
movslq -0x28(%rbp),%rax
shl    $0xa,%rax
add    %rax,%rdi
mov    -0x10(%rbp),%rsi
movslq -0x28(%rbp),%rax
shl    $0xa,%rax
add    %rax,%rsi
mov    -0x18(%rbp),%rdx
movslq -0x28(%rbp),%rax
shl    $0x9,%rax
add    %rax,%rdx
mov    -0x20(%rbp),%rcx
movslq -0x28(%rbp),%rax
shl    $0x9,%rax
add    %rax,%rcx
call   1030 <fft@plt>
jmp    118f <pe+0x7f>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1133 <pe+0x23>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pe>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
movslq %r8d,%r13
xor    %ebp,%ebp
jmp    1156 <pe+0x46>
xchg   %ax,%ax
add    $0x1,%rbp
add    $0x400,%rbx
add    $0x400,%r12
add    $0x200,%r15
add    $0x200,%r14
cmp    $0x10,%rbp
je     116e <pe+0x5e>
cmp    %r13,%rbp
jge    1130 <pe+0x20>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
call   1030 <fft@plt>
jmp    1130 <pe+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @pe([128 x double]* %0, [128 x double]* %1, [64 x double]* %2, [64 x double]* %3, i32 %4) {
%6 = alloca [128 x double]*
%7 = alloca [128 x double]*
%8 = alloca [64 x double]*
%9 = alloca [64 x double]*
%10 = alloca i32
%11 = alloca i32
store [128 x double]* %0, [128 x double]** %6
store [128 x double]* %1, [128 x double]** %7
store [64 x double]* %2, [64 x double]** %8
store [64 x double]* %3, [64 x double]** %9
store i32 %4, i32* %10
store i32 0, i32* %11
br label %12
12: ; preds = %42, %5
%13 = load i32, i32* %11
%14 = icmp slt i32 %13, 16
br i1 %14, label %15, label %45
15: ; preds = %12
%16 = load i32, i32* %11
%17 = load i32, i32* %10
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %41
19: ; preds = %15
%20 = load [128 x double]*, [128 x double]** %6
%21 = load i32, i32* %11
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [128 x double], [128 x double]* %20, i64 %22
%24 = getelementptr inbounds [128 x double], [128 x double]* %23, i64 0, i64 0
%25 = load [128 x double]*, [128 x double]** %7
%26 = load i32, i32* %11
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [128 x double], [128 x double]* %25, i64 %27
%29 = getelementptr inbounds [128 x double], [128 x double]* %28, i64 0, i64 0
%30 = load [64 x double]*, [64 x double]** %8
%31 = load i32, i32* %11
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [64 x double], [64 x double]* %30, i64 %32
%34 = getelementptr inbounds [64 x double], [64 x double]* %33, i64 0, i64 0
%35 = load [64 x double]*, [64 x double]** %9
%36 = load i32, i32* %11
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [64 x double], [64 x double]* %35, i64 %37
%39 = getelementptr inbounds [64 x double], [64 x double]* %38, i64 0, i64 0
%40 = call i32 @fft(double* %24, double* %29, double* %34, double* %39)
br label %41
41: ; preds = %19, %15
br label %42
42: ; preds = %41
%43 = load i32, i32* %11
%44 = add nsw i32 %43, 1
store i32 %44, i32* %11
br label %12
45: ; preds = %12
ret void
}

LLVM IR (-O2):
define void @pe([128 x double]* %0, [128 x double]* %1, [64 x double]* %2, [64 x double]* %3, i32 %4) {
%6 = sext i32 %4 to i64
br label %8
7: ; preds = %17
ret void
8: ; preds = %5, %17
%9 = phi i64 [ 0, %5 ], [ %18, %17 ]
%10 = icmp slt i64 %9, %6
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = getelementptr inbounds [128 x double], [128 x double]* %0, i64 %9, i64 0
%13 = getelementptr inbounds [128 x double], [128 x double]* %1, i64 %9, i64 0
%14 = getelementptr inbounds [64 x double], [64 x double]* %2, i64 %9, i64 0
%15 = getelementptr inbounds [64 x double], [64 x double]* %3, i64 %9, i64 0
%16 = tail call i32 @fft(double* %12, double* %13, double* %14, double* %15)
br label %17
17: ; preds = %8, %11
%18 = add nuw nsw i64 %9, 1
%19 = icmp eq i64 %18, 16
br i1 %19, label %7, label %8
}