#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*/ flap_4d(double **, double ****, int const *);
int /*<<< orphan*/ symeigen(double *, double *, int);
void gklt_2d(double klt[(1 << (4)) * (1 << (4))][(1 << (4)) * (1 << (4))],
             double cov[((1 << (4)) * 2)][((1 << (4)) * 2)][((1 << (4)) * 2)]
                       [((1 << (4)) * 2)],
             const int *_f) {
  static double workA[((1 << (4)) * 2)][((1 << (4)) * 2)][((1 << (4)) * 2)]
                     [((1 << (4)) * 2)];
  static double workB[(1 << (4)) * (1 << (4))][(1 << (4)) * (1 << (4))];
  int i, j, k, l;
  for (i = 0; i < ((1 << (4)) * 2); i++)
    for (j = 0; j < ((1 << (4)) * 2); j++)
      for (k = 0; k < ((1 << (4)) * 2); k++)
        for (l = 0; l < ((1 << (4)) * 2); l++)
          workA[i][j][k][l] = cov[i][j][k][l];
  flap_4d(workB, workA, _f);
  symeigen(&klt[0][0], &workB[0][0], (1 << (4)) * (1 << (4)));
}


x86 assembly (clang, -O0):
<gklt_2d>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x20,-0x1c(%rbp)
jge    121e <gklt_2d+0xfe>
movl   $0x0,-0x20(%rbp)
cmpl   $0x20,-0x20(%rbp)
jge    120b <gklt_2d+0xeb>
movl   $0x0,-0x24(%rbp)
cmpl   $0x20,-0x24(%rbp)
jge    11f8 <gklt_2d+0xd8>
movl   $0x0,-0x28(%rbp)
cmpl   $0x20,-0x28(%rbp)
jge    11e5 <gklt_2d+0xc5>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
shl    $0x12,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
shl    $0xd,%rcx
add    %rcx,%rax
movslq -0x24(%rbp),%rcx
shl    $0x8,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x1c(%rbp),%rcx
lea    0x2e8f(%rip),%rax
shl    $0x12,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
shl    $0xd,%rcx
add    %rcx,%rax
movslq -0x24(%rbp),%rcx
shl    $0x8,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    116e <gklt_2d+0x4e>
jmp    11ea <gklt_2d+0xca>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    115d <gklt_2d+0x3d>
jmp    11fd <gklt_2d+0xdd>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    114c <gklt_2d+0x2c>
jmp    1210 <gklt_2d+0xf0>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    113b <gklt_2d+0x1b>
mov    -0x18(%rbp),%rdx
lea    0x802e17(%rip),%rdi
lea    0x2e10(%rip),%rsi
call   1040 <flap_4d@plt>
mov    -0x8(%rbp),%rdi
lea    0x802e00(%rip),%rsi
mov    $0x100,%edx
call   1030 <symeigen@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gklt_2d>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdx,0x8(%rsp)
mov    %rdi,0x10(%rsp)
lea    0x18(%rsi),%r11
lea    0x2f15(%rip),%r10
xor    %r12d,%r12d
lea    0x2ef3(%rip),%r15
jmp    1176 <gklt_2d+0x56>
nop
add    $0x1,%r12
mov    0x20(%rsp),%r11
add    $0x40000,%r11
mov    0x18(%rsp),%r10
add    $0x40000,%r10
cmp    $0x20,%r12
je     133d <gklt_2d+0x21d>
mov    %r10,0x18(%rsp)
mov    %r11,0x20(%rsp)
xor    %r8d,%r8d
jmp    11a8 <gklt_2d+0x88>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r8
add    $0x2000,%r11
add    $0x2000,%r10
cmp    $0x20,%r8
je     1150 <gklt_2d+0x30>
mov    %r10,%rax
mov    %r11,%rbx
xor    %r14d,%r14d
jmp    12a9 <gklt_2d+0x189>
cs nopw 0x0(%rax,%rax,1)
movups (%rdi,%rbp,1),%xmm0
movaps %xmm0,(%rdi,%rcx,1)
movups 0x10(%rdi,%rbp,1),%xmm0
movaps %xmm0,0x10(%rdi,%rcx,1)
movups 0x20(%rdi,%rbp,1),%xmm0
movaps %xmm0,0x20(%rdi,%rcx,1)
movups 0x30(%rdi,%rbp,1),%xmm0
movaps %xmm0,0x30(%rdi,%rcx,1)
movups 0x40(%rdi,%rbp,1),%xmm0
movaps %xmm0,0x40(%rdi,%rcx,1)
movups 0x50(%rdi,%rbp,1),%xmm0
movaps %xmm0,0x50(%rdi,%rcx,1)
movups 0x60(%rdi,%rbp,1),%xmm0
movaps %xmm0,0x60(%rdi,%rcx,1)
movups 0x70(%rdi,%rbp,1),%xmm0
movaps %xmm0,0x70(%rdi,%rcx,1)
movups 0x80(%rdi,%rbp,1),%xmm0
movaps %xmm0,0x80(%rdi,%rcx,1)
movups 0x90(%rdi,%rbp,1),%xmm0
movaps %xmm0,0x90(%rdi,%rcx,1)
movups 0xa0(%rdi,%rbp,1),%xmm0
movaps %xmm0,0xa0(%rdi,%rcx,1)
movups 0xb0(%rdi,%rbp,1),%xmm0
movaps %xmm0,0xb0(%rdi,%rcx,1)
movups 0xc0(%rdi,%rbp,1),%xmm0
movaps %xmm0,0xc0(%rdi,%rcx,1)
movups 0xd0(%rdi,%rbp,1),%xmm0
movaps %xmm0,0xd0(%rdi,%rcx,1)
movups 0xe0(%rdi,%rbp,1),%xmm0
movaps %xmm0,0xe0(%rdi,%rcx,1)
movups 0xf0(%rdi,%rbp,1),%xmm0
movaps %xmm0,0xf0(%rdi,%rcx,1)
add    $0x1,%r14
add    $0x100,%rbx
add    $0x100,%rax
cmp    $0x20,%r14
je     1190 <gklt_2d+0x70>
mov    %r12,%rcx
shl    $0x12,%rcx
lea    (%rsi,%rcx,1),%rbp
mov    %r8,%r13
shl    $0xd,%r13
add    %r13,%rbp
mov    %r14,%rdi
shl    $0x8,%rdi
lea    (%rdi,%rbp,1),%r9
add    $0x100,%r9
add    %r15,%rcx
add    %r13,%rcx
lea    (%rcx,%rdi,1),%rdx
cmp    %r9,%rdx
jae    11c0 <gklt_2d+0xa0>
lea    (%rdi,%rbp,1),%r9
lea    (%rdi,%rcx,1),%rdx
add    $0x100,%rdx
cmp    %rdx,%r9
jae    11c0 <gklt_2d+0xa0>
xor    %ecx,%ecx
nopl   (%rax)
movsd  -0x18(%rbx,%rcx,8),%xmm0
movsd  %xmm0,-0x18(%rax,%rcx,8)
movsd  -0x10(%rbx,%rcx,8),%xmm0
movsd  %xmm0,-0x10(%rax,%rcx,8)
movsd  -0x8(%rbx,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rcx,8)
movsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
add    $0x4,%rcx
cmp    $0x20,%rcx
jne    1300 <gklt_2d+0x1e0>
jmp    128e <gklt_2d+0x16e>
lea    0x802cfc(%rip),%rbx
lea    0x2cf5(%rip),%rsi
mov    %rbx,%rdi
mov    0x8(%rsp),%rdx
call   1040 <flap_4d@plt>
mov    0x10(%rsp),%rdi
mov    %rbx,%rsi
mov    $0x100,%edx
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <symeigen@plt>

LLVM IR (-O0):
@gklt_2d.workA = internal global [32 x [32 x [32 x [32 x double]]]] zeroinitializer
@gklt_2d.workB = internal global [256 x [256 x double]] zeroinitializer
define void @gklt_2d([256 x double]* %0, [32 x [32 x [32 x double]]]* %1, i32* %2) {
%4 = alloca [256 x double]*
%5 = alloca [32 x [32 x [32 x double]]]*
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store [256 x double]* %0, [256 x double]** %4
store [32 x [32 x [32 x double]]]* %1, [32 x [32 x [32 x double]]]** %5
store i32* %2, i32** %6
store i32 0, i32* %7
br label %11
11: ; preds = %65, %3
%12 = load i32, i32* %7
%13 = icmp slt i32 %12, 32
br i1 %13, label %14, label %68
14: ; preds = %11
store i32 0, i32* %8
br label %15
15: ; preds = %61, %14
%16 = load i32, i32* %8
%17 = icmp slt i32 %16, 32
br i1 %17, label %18, label %64
18: ; preds = %15
store i32 0, i32* %9
br label %19
19: ; preds = %57, %18
%20 = load i32, i32* %9
%21 = icmp slt i32 %20, 32
br i1 %21, label %22, label %60
22: ; preds = %19
store i32 0, i32* %10
br label %23
23: ; preds = %53, %22
%24 = load i32, i32* %10
%25 = icmp slt i32 %24, 32
br i1 %25, label %26, label %56
26: ; preds = %23
%27 = load [32 x [32 x [32 x double]]]*, [32 x [32 x [32 x double]]]** %5
%28 = load i32, i32* %7
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [32 x [32 x [32 x double]]], [32 x [32 x [32 x double]]]* %27, i64 %29
%31 = load i32, i32* %8
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [32 x [32 x [32 x double]]], [32 x [32 x [32 x double]]]* %30, i64 0, i64 %32
%34 = load i32, i32* %9
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [32 x [32 x double]], [32 x [32 x double]]* %33, i64 0, i64 %35
%37 = load i32, i32* %10
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [32 x double], [32 x double]* %36, i64 0, i64 %38
%40 = load double, double* %39
%41 = load i32, i32* %7
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [32 x [32 x [32 x [32 x double]]]], [32 x [32 x [32 x [32 x double]]]]* @gklt_2d.workA, i64 0, i64 %42
%44 = load i32, i32* %8
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [32 x [32 x [32 x double]]], [32 x [32 x [32 x double]]]* %43, i64 0, i64 %45
%47 = load i32, i32* %9
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [32 x [32 x double]], [32 x [32 x double]]* %46, i64 0, i64 %48
%50 = load i32, i32* %10
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [32 x double], [32 x double]* %49, i64 0, i64 %51
store double %40, double* %52
br label %53
53: ; preds = %26
%54 = load i32, i32* %10
%55 = add nsw i32 %54, 1
store i32 %55, i32* %10
br label %23
56: ; preds = %23
br label %57
57: ; preds = %56
%58 = load i32, i32* %9
%59 = add nsw i32 %58, 1
store i32 %59, i32* %9
br label %19
60: ; preds = %19
br label %61
61: ; preds = %60
%62 = load i32, i32* %8
%63 = add nsw i32 %62, 1
store i32 %63, i32* %8
br label %15
64: ; preds = %15
br label %65
65: ; preds = %64
%66 = load i32, i32* %7
%67 = add nsw i32 %66, 1
store i32 %67, i32* %7
br label %11
68: ; preds = %11
%69 = load i32*, i32** %6
%70 = call i32 @flap_4d(double** bitcast ([256 x [256 x double]]* @gklt_2d.workB to double**), double**** bitcast ([32 x [32 x [32 x [32 x double]]]]* @gklt_2d.workA to double****), i32* %69)
%71 = load [256 x double]*, [256 x double]** %4
%72 = getelementptr inbounds [256 x double], [256 x double]* %71, i64 0
%73 = getelementptr inbounds [256 x double], [256 x double]* %72, i64 0, i64 0
%74 = call i32 @symeigen(double* %73, double* getelementptr inbounds ([256 x [256 x double]], [256 x [256 x double]]* @gklt_2d.workB, i64 0, i64 0, i64 0), i32 256)
ret void
}

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