#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 */
float ***f3tensor(int, int, int, int, int, int);
int /*<<< orphan*/ free_f3tensor(float ***, int, int, int, int, int, int);
int /*<<< orphan*/ free_matrix(float **, int, int, int, int);
float **matrix(int, int, int, int);
int main(void) {
  void rlft3(float ***data, float **speq, unsigned long nn1, unsigned long nn2,
             unsigned long nn3, int isign);
  int j;
  float fac, r, i, ***data1, ***data2, **speq1, **speq2, *sp1, *sp2;
  data1 = f3tensor(1, 32, 1, 32, 1, 32);
  data2 = f3tensor(1, 32, 1, 32, 1, 32);
  speq1 = matrix(1, 32, 1, 2 * 32);
  speq2 = matrix(1, 32, 1, 2 * 32);
  rlft3(data1, speq1, 32, 32, 32, 1);
  rlft3(data2, speq2, 32, 32, 32, 1);
  fac = 2.0 / (32 * 32 * 32);
  sp1 = &data1[1][1][1];
  sp2 = &data2[1][1][1];
  for (j = 1; j <= 32 * 32 * 32 / 2; j++) {
    r = sp1[0] * sp2[0] - sp1[1] * sp2[1];
    i = sp1[0] * sp2[1] + sp1[1] * sp2[0];
    sp1[0] = fac * r;
    sp1[1] = fac * i;
    sp1 += 2;
    sp2 += 2;
  }
  sp1 = &speq1[1][1];
  sp2 = &speq2[1][1];
  for (j = 1; j <= 32 * 32; j++) {
    r = sp1[0] * sp2[0] - sp1[1] * sp2[1];
    i = sp1[0] * sp2[1] + sp1[1] * sp2[0];
    sp1[0] = fac * r;
    sp1[1] = fac * i;
    sp1 += 2;
    sp2 += 2;
  }
  rlft3(data1, speq1, 32, 32, 32, -1);
  free_matrix(speq2, 1, 32, 1, 2 * 32);
  free_matrix(speq1, 1, 32, 1, 2 * 32);
  free_f3tensor(data2, 1, 32, 1, 32, 1, 32);
  free_f3tensor(data1, 1, 32, 1, 32, 1, 32);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%r8d
mov    $0x20,%r9d
mov    %r8d,%edi
mov    %r9d,%esi
mov    %r8d,%edx
mov    %r9d,%ecx
call   1040 <f3tensor@plt>
mov    %rax,-0x20(%rbp)
mov    $0x1,%r8d
mov    $0x20,%r9d
mov    %r8d,%edi
mov    %r9d,%esi
mov    %r8d,%edx
mov    %r9d,%ecx
call   1040 <f3tensor@plt>
mov    %rax,-0x28(%rbp)
mov    $0x1,%edx
mov    $0x20,%esi
mov    $0x40,%ecx
mov    %edx,%edi
call   1060 <matrix@plt>
mov    %rax,-0x30(%rbp)
mov    $0x1,%edx
mov    $0x20,%esi
mov    $0x40,%ecx
mov    %edx,%edi
call   1060 <matrix@plt>
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    $0x20,%r8d
mov    $0x1,%r9d
mov    %r8,%rdx
mov    %r8,%rcx
call   1030 <rlft3@plt>
mov    -0x28(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    $0x20,%r8d
mov    $0x1,%r9d
mov    %r8,%rdx
mov    %r8,%rcx
call   1030 <rlft3@plt>
movss  0xde5(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x8(%rax),%rax
add    $0x4,%rax
mov    %rax,-0x40(%rbp)
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x8(%rax),%rax
add    $0x4,%rax
mov    %rax,-0x48(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x4000,-0x8(%rbp)
jg     1312 <main+0x1c2>
mov    -0x40(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x48(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x40(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x48(%rbp),%rax
mulss  0x4(%rax),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0x40(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x48(%rbp),%rax
movss  0x4(%rax),%xmm2
mov    -0x40(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x48(%rbp),%rax
mulss  (%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0xc(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
mov    -0x40(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0xc(%rbp),%xmm0
mulss  -0x14(%rbp),%xmm0
mov    -0x40(%rbp),%rax
movss  %xmm0,0x4(%rax)
mov    -0x40(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    124f <main+0xff>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%rax
add    $0x4,%rax
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rax
add    $0x4,%rax
mov    %rax,-0x48(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x400,-0x8(%rbp)
jg     13fc <main+0x2ac>
mov    -0x40(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x48(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x40(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x48(%rbp),%rax
mulss  0x4(%rax),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0x40(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x48(%rbp),%rax
movss  0x4(%rax),%xmm2
mov    -0x40(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x48(%rbp),%rax
mulss  (%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0xc(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
mov    -0x40(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0xc(%rbp),%xmm0
mulss  -0x14(%rbp),%xmm0
mov    -0x40(%rbp),%rax
movss  %xmm0,0x4(%rax)
mov    -0x40(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1339 <main+0x1e9>
mov    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    $0x20,%r8d
mov    $0xffffffff,%r9d
mov    %r8,%rdx
mov    %r8,%rcx
call   1030 <rlft3@plt>
mov    -0x38(%rbp),%rdi
mov    $0x1,%ecx
mov    $0x20,%edx
mov    $0x40,%r8d
mov    %ecx,%esi
call   1050 <free_matrix@plt>
mov    -0x30(%rbp),%rdi
mov    $0x1,%ecx
mov    $0x20,%edx
mov    $0x40,%r8d
mov    %ecx,%esi
call   1050 <free_matrix@plt>
mov    -0x28(%rbp),%rdi
mov    $0x1,%r9d
mov    $0x20,%r8d
mov    %r9d,%esi
mov    %r8d,%edx
mov    %r9d,%ecx
movl   $0x20,(%rsp)
call   1070 <free_f3tensor@plt>
mov    -0x20(%rbp),%rdi
mov    $0x1,%r9d
mov    $0x20,%r8d
mov    %r9d,%esi
mov    %r8d,%edx
mov    %r9d,%ecx
movl   $0x20,(%rsp)
call   1070 <free_f3tensor@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    $0x1,%edi
mov    $0x20,%esi
mov    $0x1,%edx
mov    $0x20,%ecx
mov    $0x1,%r8d
mov    $0x20,%r9d
call   1040 <f3tensor@plt>
mov    %rax,%r15
mov    $0x1,%edi
mov    $0x20,%esi
mov    $0x1,%edx
mov    $0x20,%ecx
mov    $0x1,%r8d
mov    $0x20,%r9d
call   1040 <f3tensor@plt>
mov    %rax,%r14
mov    $0x1,%edi
mov    $0x20,%esi
mov    $0x1,%edx
mov    $0x40,%ecx
call   1060 <matrix@plt>
mov    %rax,%rbx
mov    $0x1,%edi
mov    $0x20,%esi
mov    $0x1,%edx
mov    $0x40,%ecx
call   1060 <matrix@plt>
mov    %rax,%r12
mov    $0x20,%edx
mov    $0x20,%ecx
mov    $0x20,%r8d
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0x1,%r9d
call   1030 <rlft3@plt>
mov    $0x20,%edx
mov    $0x20,%ecx
mov    $0x20,%r8d
mov    %r14,%rdi
mov    %r12,%rsi
mov    $0x1,%r9d
call   1030 <rlft3@plt>
mov    0x8(%r15),%rax
mov    0x8(%rax),%rdx
lea    0x4(%rdx),%rax
mov    0x8(%r14),%rcx
mov    0x8(%rcx),%rsi
lea    0x4(%rsi),%rcx
add    $0x20004,%rsi
cmp    %rsi,%rax
jae    12b2 <main+0x162>
add    $0x20004,%rdx
cmp    %rdx,%rcx
jae    12b2 <main+0x162>
xor    %edx,%edx
movss  0xdb4(%rip),%xmm0
nopl   0x0(%rax)
movss  (%rax,%rdx,8),%xmm1
movss  0x4(%rax,%rdx,8),%xmm2
movss  (%rcx,%rdx,8),%xmm3
movss  0x4(%rcx,%rdx,8),%xmm4
movaps %xmm1,%xmm5
mulss  %xmm4,%xmm1
mulss  %xmm2,%xmm4
mulss  %xmm3,%xmm5
subss  %xmm4,%xmm5
mulss  %xmm2,%xmm3
addss  %xmm3,%xmm1
mulss  %xmm0,%xmm5
movss  %xmm5,(%rax,%rdx,8)
mulss  %xmm0,%xmm1
movss  %xmm1,0x4(%rax,%rdx,8)
add    $0x1,%rdx
cmp    $0x4000,%edx
jne    1260 <main+0x110>
jmp    1322 <main+0x1d2>
xor    %edx,%edx
movaps 0xd45(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movups (%rax,%rdx,8),%xmm1
movups 0x10(%rax,%rdx,8),%xmm2
movaps %xmm1,%xmm3
shufps $0x88,%xmm2,%xmm3
shufps $0xdd,%xmm2,%xmm1
movups (%rcx,%rdx,8),%xmm2
movups 0x10(%rcx,%rdx,8),%xmm4
movaps %xmm2,%xmm5
shufps $0x88,%xmm4,%xmm5
shufps $0xdd,%xmm4,%xmm2
movaps %xmm2,%xmm4
mulps  %xmm1,%xmm4
mulps  %xmm3,%xmm2
mulps  %xmm5,%xmm3
subps  %xmm4,%xmm3
mulps  %xmm1,%xmm5
addps  %xmm5,%xmm2
mulps  %xmm0,%xmm3
mulps  %xmm0,%xmm2
movaps %xmm3,%xmm1
unpckhps %xmm2,%xmm1
unpcklps %xmm2,%xmm3
movups %xmm3,(%rax,%rdx,8)
movups %xmm1,0x10(%rax,%rdx,8)
add    $0x4,%rdx
cmp    $0x4000,%rdx
jne    12c0 <main+0x170>
mov    0x8(%rbx),%rdx
lea    0x4(%rdx),%rax
mov    0x8(%r12),%rsi
lea    0x4(%rsi),%rcx
add    $0x2004,%rsi
cmp    %rsi,%rax
jae    13b2 <main+0x262>
add    $0x2004,%rdx
cmp    %rdx,%rcx
jae    13b2 <main+0x262>
xor    %edx,%edx
movss  0xcbb(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nop
movss  (%rax,%rdx,8),%xmm1
movss  0x4(%rax,%rdx,8),%xmm2
movss  (%rcx,%rdx,8),%xmm3
movss  0x4(%rcx,%rdx,8),%xmm4
movaps %xmm1,%xmm5
mulss  %xmm4,%xmm1
mulss  %xmm2,%xmm4
mulss  %xmm3,%xmm5
subss  %xmm4,%xmm5
mulss  %xmm2,%xmm3
addss  %xmm3,%xmm1
mulss  %xmm0,%xmm5
movss  %xmm5,(%rax,%rdx,8)
mulss  %xmm0,%xmm1
movss  %xmm1,0x4(%rax,%rdx,8)
add    $0x1,%rdx
cmp    $0x400,%edx
jne    1360 <main+0x210>
jmp    1422 <main+0x2d2>
xor    %edx,%edx
movaps 0xc45(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movups (%rax,%rdx,8),%xmm1
movups 0x10(%rax,%rdx,8),%xmm2
movaps %xmm1,%xmm3
shufps $0x88,%xmm2,%xmm3
shufps $0xdd,%xmm2,%xmm1
movups (%rcx,%rdx,8),%xmm2
movups 0x10(%rcx,%rdx,8),%xmm4
movaps %xmm2,%xmm5
shufps $0x88,%xmm4,%xmm5
shufps $0xdd,%xmm4,%xmm2
movaps %xmm2,%xmm4
mulps  %xmm1,%xmm4
mulps  %xmm3,%xmm2
mulps  %xmm5,%xmm3
subps  %xmm4,%xmm3
mulps  %xmm1,%xmm5
addps  %xmm5,%xmm2
mulps  %xmm0,%xmm3
mulps  %xmm0,%xmm2
movaps %xmm3,%xmm1
unpckhps %xmm2,%xmm1
unpcklps %xmm2,%xmm3
movups %xmm3,(%rax,%rdx,8)
movups %xmm1,0x10(%rax,%rdx,8)
add    $0x4,%rdx
cmp    $0x400,%rdx
jne    13c0 <main+0x270>
mov    $0x20,%edx
mov    $0x20,%ecx
mov    $0x20,%r8d
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0xffffffff,%r9d
call   1030 <rlft3@plt>
mov    %r12,%rdi
mov    $0x1,%esi
mov    $0x20,%edx
mov    $0x1,%ecx
mov    $0x40,%r8d
call   1050 <free_matrix@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x20,%edx
mov    $0x1,%ecx
mov    $0x40,%r8d
call   1050 <free_matrix@plt>
movl   $0x20,(%rsp)
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x20,%edx
mov    $0x1,%ecx
mov    $0x20,%r8d
mov    $0x1,%r9d
call   1070 <free_f3tensor@plt>
movl   $0x20,(%rsp)
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x20,%edx
mov    $0x1,%ecx
mov    $0x20,%r8d
mov    $0x1,%r9d
call   1070 <free_f3tensor@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float***
%7 = alloca float***
%8 = alloca float**
%9 = alloca float**
%10 = alloca float*
%11 = alloca float*
store i32 0, i32* %1
%12 = call float*** @f3tensor(i32 1, i32 32, i32 1, i32 32, i32 1, i32 32)
store float*** %12, float**** %6
%13 = call float*** @f3tensor(i32 1, i32 32, i32 1, i32 32, i32 1, i32 32)
store float*** %13, float**** %7
%14 = call float** @matrix(i32 1, i32 32, i32 1, i32 64)
store float** %14, float*** %8
%15 = call float** @matrix(i32 1, i32 32, i32 1, i32 64)
store float** %15, float*** %9
%16 = load float***, float**** %6
%17 = load float**, float*** %8
%18 = load float***, float**** %7
%19 = load float**, float*** %9
store float 0x3F10000000000000, float* %3
%20 = load float***, float**** %6
%21 = getelementptr inbounds float**, float*** %20, i64 1
%22 = load float**, float*** %21
%23 = getelementptr inbounds float*, float** %22, i64 1
%24 = load float*, float** %23
%25 = getelementptr inbounds float, float* %24, i64 1
store float* %25, float** %10
%26 = load float***, float**** %7
%27 = getelementptr inbounds float**, float*** %26, i64 1
%28 = load float**, float*** %27
%29 = getelementptr inbounds float*, float** %28, i64 1
%30 = load float*, float** %29
%31 = getelementptr inbounds float, float* %30, i64 1
store float* %31, float** %11
store i32 1, i32* %2
br label %32
32: ; preds = %79, %0
%33 = load i32, i32* %2
%34 = icmp sle i32 %33, 16384
br i1 %34, label %35, label %82
35: ; preds = %32
%36 = load float*, float** %10
%37 = getelementptr inbounds float, float* %36, i64 0
%38 = load float, float* %37
%39 = load float*, float** %11
%40 = getelementptr inbounds float, float* %39, i64 0
%41 = load float, float* %40
%42 = load float*, float** %10
%43 = getelementptr inbounds float, float* %42, i64 1
%44 = load float, float* %43
%45 = load float*, float** %11
%46 = getelementptr inbounds float, float* %45, i64 1
%47 = load float, float* %46
%48 = fmul float %44, %47
%49 = fneg float %48
%50 = call float @llvm.fmuladd.f32(float %38, float %41, float %49)
store float %50, float* %4
%51 = load float*, float** %10
%52 = getelementptr inbounds float, float* %51, i64 0
%53 = load float, float* %52
%54 = load float*, float** %11
%55 = getelementptr inbounds float, float* %54, i64 1
%56 = load float, float* %55
%57 = load float*, float** %10
%58 = getelementptr inbounds float, float* %57, i64 1
%59 = load float, float* %58
%60 = load float*, float** %11
%61 = getelementptr inbounds float, float* %60, i64 0
%62 = load float, float* %61
%63 = fmul float %59, %62
%64 = call float @llvm.fmuladd.f32(float %53, float %56, float %63)
store float %64, float* %5
%65 = load float, float* %3
%66 = load float, float* %4
%67 = fmul float %65, %66
%68 = load float*, float** %10
%69 = getelementptr inbounds float, float* %68, i64 0
store float %67, float* %69
%70 = load float, float* %3
%71 = load float, float* %5
%72 = fmul float %70, %71
%73 = load float*, float** %10
%74 = getelementptr inbounds float, float* %73, i64 1
store float %72, float* %74
%75 = load float*, float** %10
%76 = getelementptr inbounds float, float* %75, i64 2
store float* %76, float** %10
%77 = load float*, float** %11
%78 = getelementptr inbounds float, float* %77, i64 2
store float* %78, float** %11
br label %79
79: ; preds = %35
%80 = load i32, i32* %2
%81 = add nsw i32 %80, 1
store i32 %81, i32* %2
br label %32
82: ; preds = %32
%83 = load float**, float*** %8
%84 = getelementptr inbounds float*, float** %83, i64 1
%85 = load float*, float** %84
%86 = getelementptr inbounds float, float* %85, i64 1
store float* %86, float** %10
%87 = load float**, float*** %9
%88 = getelementptr inbounds float*, float** %87, i64 1
%89 = load float*, float** %88
%90 = getelementptr inbounds float, float* %89, i64 1
store float* %90, float** %11
store i32 1, i32* %2
br label %91
91: ; preds = %138, %82
%92 = load i32, i32* %2
%93 = icmp sle i32 %92, 1024
br i1 %93, label %94, label %141
94: ; preds = %91
%95 = load float*, float** %10
%96 = getelementptr inbounds float, float* %95, i64 0
%97 = load float, float* %96
%98 = load float*, float** %11
%99 = getelementptr inbounds float, float* %98, i64 0
%100 = load float, float* %99
%101 = load float*, float** %10
%102 = getelementptr inbounds float, float* %101, i64 1
%103 = load float, float* %102
%104 = load float*, float** %11
%105 = getelementptr inbounds float, float* %104, i64 1
%106 = load float, float* %105
%107 = fmul float %103, %106
%108 = fneg float %107
%109 = call float @llvm.fmuladd.f32(float %97, float %100, float %108)
store float %109, float* %4
%110 = load float*, float** %10
%111 = getelementptr inbounds float, float* %110, i64 0
%112 = load float, float* %111
%113 = load float*, float** %11
%114 = getelementptr inbounds float, float* %113, i64 1
%115 = load float, float* %114
%116 = load float*, float** %10
%117 = getelementptr inbounds float, float* %116, i64 1
%118 = load float, float* %117
%119 = load float*, float** %11
%120 = getelementptr inbounds float, float* %119, i64 0
%121 = load float, float* %120
%122 = fmul float %118, %121
%123 = call float @llvm.fmuladd.f32(float %112, float %115, float %122)
store float %123, float* %5
%124 = load float, float* %3
%125 = load float, float* %4
%126 = fmul float %124, %125
%127 = load float*, float** %10
%128 = getelementptr inbounds float, float* %127, i64 0
store float %126, float* %128
%129 = load float, float* %3
%130 = load float, float* %5
%131 = fmul float %129, %130
%132 = load float*, float** %10
%133 = getelementptr inbounds float, float* %132, i64 1
store float %131, float* %133
%134 = load float*, float** %10
%135 = getelementptr inbounds float, float* %134, i64 2
store float* %135, float** %10
%136 = load float*, float** %11
%137 = getelementptr inbounds float, float* %136, i64 2
store float* %137, float** %11
br label %138
138: ; preds = %94
%139 = load i32, i32* %2
%140 = add nsw i32 %139, 1
store i32 %140, i32* %2
br label %91
141: ; preds = %91
%142 = load float***, float**** %6
%143 = load float**, float*** %8
%144 = load float**, float*** %9
%145 = call i32 @free_matrix(float** %144, i32 1, i32 32, i32 1, i32 64)
%146 = load float**, float*** %8
%147 = call i32 @free_matrix(float** %146, i32 1, i32 32, i32 1, i32 64)
%148 = load float***, float**** %7
%149 = call i32 @free_f3tensor(float*** %148, i32 1, i32 32, i32 1, i32 32, i32 1, i32 32)
%150 = load float***, float**** %6
%151 = call i32 @free_f3tensor(float*** %150, i32 1, i32 32, i32 1, i32 32, i32 1, i32 32)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call float*** @f3tensor(i32 1, i32 32, i32 1, i32 32, i32 1, i32 32)
%2 = tail call float*** @f3tensor(i32 1, i32 32, i32 1, i32 32, i32 1, i32 32)
%3 = tail call float** @matrix(i32 1, i32 32, i32 1, i32 64)
%4 = tail call float** @matrix(i32 1, i32 32, i32 1, i32 64)
tail call void @rlft3(float*** %1, float** %3, i64 32, i64 32, i64 32, i32 1)
tail call void @rlft3(float*** %2, float** %4, i64 32, i64 32, i64 32, i32 1)
%5 = getelementptr inbounds float**, float*** %1, i64 1
%6 = load float**, float*** %5
%7 = getelementptr inbounds float*, float** %6, i64 1
%8 = load float*, float** %7
%9 = getelementptr float, float* %8, i64 1
%10 = getelementptr inbounds float**, float*** %2, i64 1
%11 = load float**, float*** %10
%12 = getelementptr inbounds float*, float** %11, i64 1
%13 = load float*, float** %12
%14 = getelementptr float, float* %13, i64 1
%15 = getelementptr float, float* %8, i64 32769
%16 = getelementptr float, float* %13, i64 32769
%17 = icmp ult float* %9, %16
%18 = icmp ult float* %14, %15
%19 = and i1 %17, %18
br i1 %19, label %47, label %20
20: ; preds = %0, %20
%21 = phi i64 [ %45, %20 ], [ 0, %0 ]
%22 = shl i64 %21, 1
%23 = getelementptr float, float* %14, i64 %22
%24 = shl i64 %21, 1
%25 = getelementptr float, float* %9, i64 %24
%26 = bitcast float* %25 to <8 x float>*
%27 = load <8 x float>, <8 x float>* %26
%28 = shufflevector <8 x float> %27, <8 x float> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%29 = shufflevector <8 x float> %27, <8 x float> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
%30 = bitcast float* %23 to <8 x float>*
%31 = load <8 x float>, <8 x float>* %30
%32 = shufflevector <8 x float> %31, <8 x float> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%33 = shufflevector <8 x float> %31, <8 x float> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
%34 = getelementptr inbounds float, float* %25, i64 1
%35 = fneg <4 x float> %29
%36 = fmul <4 x float> %33, %35
%37 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %28, <4 x float> %32, <4 x float> %36)
%38 = fmul <4 x float> %32, %29
%39 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %28, <4 x float> %33, <4 x float> %38)
%40 = fmul <4 x float> %37, <float 0x3F10000000000000, float 0x3F10000000000000, float 0x3F10000000000000, float 0x3F10000000000000>
%41 = fmul <4 x float> %39, <float 0x3F10000000000000, float 0x3F10000000000000, float 0x3F10000000000000, float 0x3F10000000000000>
%42 = getelementptr inbounds float, float* %34, i64 -1
%43 = bitcast float* %42 to <8 x float>*
%44 = shufflevector <4 x float> %40, <4 x float> %41, <8 x i32> <i32 0, i32 4, i32 1, i32 5, i32 2, i32 6, i32 3, i32 7>
store <8 x float> %44, <8 x float>* %43
%45 = add nuw i64 %21, 4
%46 = icmp eq i64 %45, 16384
br i1 %46, label %68, label %20
47: ; preds = %0, %47
%48 = phi float* [ %65, %47 ], [ %14, %0 ]
%49 = phi float* [ %64, %47 ], [ %9, %0 ]
%50 = phi i32 [ %66, %47 ], [ 1, %0 ]
%51 = load float, float* %49
%52 = load float, float* %48
%53 = getelementptr inbounds float, float* %49, i64 1
%54 = load float, float* %53
%55 = getelementptr inbounds float, float* %48, i64 1
%56 = load float, float* %55
%57 = fneg float %54
%58 = fmul float %56, %57
%59 = tail call float @llvm.fmuladd.f32(float %51, float %52, float %58)
%60 = fmul float %52, %54
%61 = tail call float @llvm.fmuladd.f32(float %51, float %56, float %60)
%62 = fmul float %59, 0x3F10000000000000
store float %62, float* %49
%63 = fmul float %61, 0x3F10000000000000
store float %63, float* %53
%64 = getelementptr inbounds float, float* %49, i64 2
%65 = getelementptr inbounds float, float* %48, i64 2
%66 = add nuw nsw i32 %50, 1
%67 = icmp eq i32 %66, 16385
br i1 %67, label %68, label %47
68: ; preds = %20, %47
%69 = getelementptr inbounds float*, float** %3, i64 1
%70 = load float*, float** %69
%71 = getelementptr float, float* %70, i64 1
%72 = getelementptr inbounds float*, float** %4, i64 1
%73 = load float*, float** %72
%74 = getelementptr float, float* %73, i64 1
%75 = getelementptr float, float* %70, i64 2049
%76 = getelementptr float, float* %73, i64 2049
%77 = icmp ult float* %71, %76
%78 = icmp ult float* %74, %75
%79 = and i1 %77, %78
br i1 %79, label %107, label %80
80: ; preds = %68, %80
%81 = phi i64 [ %105, %80 ], [ 0, %68 ]
%82 = shl i64 %81, 1
%83 = getelementptr float, float* %74, i64 %82
%84 = shl i64 %81, 1
%85 = getelementptr float, float* %71, i64 %84
%86 = bitcast float* %85 to <8 x float>*
%87 = load <8 x float>, <8 x float>* %86
%88 = shufflevector <8 x float> %87, <8 x float> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%89 = shufflevector <8 x float> %87, <8 x float> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
%90 = bitcast float* %83 to <8 x float>*
%91 = load <8 x float>, <8 x float>* %90
%92 = shufflevector <8 x float> %91, <8 x float> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
%93 = shufflevector <8 x float> %91, <8 x float> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
%94 = getelementptr inbounds float, float* %85, i64 1
%95 = fneg <4 x float> %89
%96 = fmul <4 x float> %93, %95
%97 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %88, <4 x float> %92, <4 x float> %96)
%98 = fmul <4 x float> %92, %89
%99 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %88, <4 x float> %93, <4 x float> %98)
%100 = fmul <4 x float> %97, <float 0x3F10000000000000, float 0x3F10000000000000, float 0x3F10000000000000, float 0x3F10000000000000>
%101 = fmul <4 x float> %99, <float 0x3F10000000000000, float 0x3F10000000000000, float 0x3F10000000000000, float 0x3F10000000000000>
%102 = getelementptr inbounds float, float* %94, i64 -1
%103 = bitcast float* %102 to <8 x float>*
%104 = shufflevector <4 x float> %100, <4 x float> %101, <8 x i32> <i32 0, i32 4, i32 1, i32 5, i32 2, i32 6, i32 3, i32 7>
store <8 x float> %104, <8 x float>* %103
%105 = add nuw i64 %81, 4
%106 = icmp eq i64 %105, 1024
br i1 %106, label %128, label %80
107: ; preds = %68, %107
%108 = phi float* [ %125, %107 ], [ %74, %68 ]
%109 = phi float* [ %124, %107 ], [ %71, %68 ]
%110 = phi i32 [ %126, %107 ], [ 1, %68 ]
%111 = load float, float* %109
%112 = load float, float* %108
%113 = getelementptr inbounds float, float* %109, i64 1
%114 = load float, float* %113
%115 = getelementptr inbounds float, float* %108, i64 1
%116 = load float, float* %115
%117 = fneg float %114
%118 = fmul float %116, %117
%119 = tail call float @llvm.fmuladd.f32(float %111, float %112, float %118)
%120 = fmul float %112, %114
%121 = tail call float @llvm.fmuladd.f32(float %111, float %116, float %120)
%122 = fmul float %119, 0x3F10000000000000
store float %122, float* %109
%123 = fmul float %121, 0x3F10000000000000
store float %123, float* %113
%124 = getelementptr inbounds float, float* %109, i64 2
%125 = getelementptr inbounds float, float* %108, i64 2
%126 = add nuw nsw i32 %110, 1
%127 = icmp eq i32 %126, 1025
br i1 %127, label %128, label %107
128: ; preds = %80, %107
tail call void @rlft3(float*** %1, float** %3, i64 32, i64 32, i64 32, i32 -1)
%129 = tail call i32 @free_matrix(float** %4, i32 1, i32 32, i32 1, i32 64)
%130 = tail call i32 @free_matrix(float** %3, i32 1, i32 32, i32 1, i32 64)
%131 = tail call i32 @free_f3tensor(float*** %2, i32 1, i32 32, i32 1, i32 32, i32 1, i32 32)
%132 = tail call i32 @free_f3tensor(float*** %1, i32 1, i32 32, i32 1, i32 32, i32 1, i32 32)
ret i32 0
}