#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*/ compute(int, double ***, short ***, double *, double **,
                           int);
int /*<<< orphan*/ load(int, double ***, double *, short ***, short *, int);
int /*<<< orphan*/ memcpy(double *, double *, int);
int /*<<< orphan*/ store(int, double *, double **, int);
void workload(double *nzval, short *cols, double *vec, double *out) {
#pragma HLS INTERFACE m_axi port = nzval offset = slave bundle = gmem1
#pragma HLS INTERFACE m_axi port = cols offset = slave bundle = gmem2
#pragma HLS INTERFACE m_axi port = vec offset = slave bundle = gmem1
#pragma HLS INTERFACE m_axi port = out offset = slave bundle = gmem1
#pragma HLS INTERFACE s_axilite port = nzval bundle = control
#pragma HLS INTERFACE s_axilite port = cols bundle = control
#pragma HLS INTERFACE s_axilite port = vec bundle = control
#pragma HLS INTERFACE s_axilite port = out bundle = control
#pragma HLS INTERFACE s_axilite port = return bundle = control
  int num_tiles = ((1 << 12) + 128 - 1) / 128;
  int tail_rows = (1 << 12) % 128;
  if (tail_rows == 0)
    tail_rows = 128;
  double local_nzval_x[4][((128 + 4 - 1) / 4)][(1 << 9)];
#pragma HLS array_partition variable = local_nzval_x dim = 1 complete
  short local_cols_x[4][((128 + 4 - 1) / 4)][(1 << 9)];
#pragma HLS array_partition variable = local_cols_x dim = 1 complete
  double local_nzval_y[4][((128 + 4 - 1) / 4)][(1 << 9)];
#pragma HLS array_partition variable = local_nzval_y dim = 1 complete
  short local_cols_y[4][((128 + 4 - 1) / 4)][(1 << 9)];
#pragma HLS array_partition variable = local_cols_y dim = 1 complete
  double local_vec[(1 << 12)];
  memcpy(local_vec, vec, sizeof(double) * (1 << 12));
  double local_out_x[4][((128 + 4 - 1) / 4)];
#pragma HLS array_partition variable = local_out_x dim = 1 complete
  double local_out_y[4][((128 + 4 - 1) / 4)];
#pragma HLS array_partition variable = local_out_y dim = 1 complete
  int i, j, k;
  for (i = 0; i < num_tiles + 2; i++) {
    int load_flag = i < num_tiles;
    int compute_flag = i > 0 && i < num_tiles + 1;
    int store_flag = i > 1;
    int load_rows = i == num_tiles - 1 ? tail_rows : 128;
    int compute_rows = i == num_tiles ? tail_rows : 128;
    int store_rows = i == num_tiles + 1 ? tail_rows : 128;
    if (i % 2 == 0) {
      load(load_flag, local_nzval_x, nzval + i * 128 * (1 << 9), local_cols_x,
           cols + i * 128 * (1 << 9), load_rows);
      compute(compute_flag, local_nzval_y, local_cols_y, local_vec, local_out_y,
              compute_rows);
      store(store_flag, out + (i - 2) * 128, local_out_x, store_rows);
    } else {
      load(load_flag, local_nzval_y, nzval + i * 128 * (1 << 9), local_cols_y,
           cols + i * 128 * (1 << 9), load_rows);
      compute(compute_flag, local_nzval_x, local_cols_x, local_vec, local_out_x,
              compute_rows);
      store(store_flag, out + (i - 2) * 128, local_out_y, store_rows);
    }
  }
  return;
}


x86 assembly (clang, -O0):
<workload>:
push   %rbp
mov    %rsp,%rbp
sub    $0x148870,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0x20,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
jne    117a <workload+0x3a>
movl   $0x80,-0x28(%rbp)
lea    -0x148030(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x8000,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x148834(%rbp)
mov    -0x148834(%rbp),%eax
mov    -0x24(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    1462 <workload+0x322>
mov    -0x148834(%rbp),%eax
cmp    -0x24(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x148840(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x148834(%rbp)
mov    %al,-0x148855(%rbp)
jle    11f0 <workload+0xb0>
mov    -0x148834(%rbp),%eax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
setl   %al
mov    %al,-0x148855(%rbp)
mov    -0x148855(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x148844(%rbp)
cmpl   $0x1,-0x148834(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x148848(%rbp)
mov    -0x148834(%rbp),%eax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    1238 <workload+0xf8>
mov    -0x28(%rbp),%eax
mov    %eax,-0x14885c(%rbp)
jmp    1248 <workload+0x108>
mov    $0x80,%eax
mov    %eax,-0x14885c(%rbp)
jmp    1248 <workload+0x108>
mov    -0x14885c(%rbp),%eax
mov    %eax,-0x14884c(%rbp)
mov    -0x148834(%rbp),%eax
cmp    -0x24(%rbp),%eax
jne    1271 <workload+0x131>
mov    -0x28(%rbp),%eax
mov    %eax,-0x148860(%rbp)
jmp    1281 <workload+0x141>
mov    $0x80,%eax
mov    %eax,-0x148860(%rbp)
jmp    1281 <workload+0x141>
mov    -0x148860(%rbp),%eax
mov    %eax,-0x148850(%rbp)
mov    -0x148834(%rbp),%eax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jne    12af <workload+0x16f>
mov    -0x28(%rbp),%eax
mov    %eax,-0x148864(%rbp)
jmp    12bf <workload+0x17f>
mov    $0x80,%eax
mov    %eax,-0x148864(%rbp)
jmp    12bf <workload+0x17f>
mov    -0x148864(%rbp),%eax
mov    %eax,-0x148854(%rbp)
mov    -0x148834(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1398 <workload+0x258>
mov    -0x148840(%rbp),%edi
lea    -0x80030(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0x148834(%rbp),%eax
shl    $0x7,%eax
shl    $0x9,%eax
cltq
shl    $0x3,%rax
add    %rax,%rdx
lea    -0xa0030(%rbp),%rcx
mov    -0x10(%rbp),%r8
mov    -0x148834(%rbp),%eax
shl    $0x7,%eax
shl    $0x9,%eax
cltq
shl    $0x1,%rax
add    %rax,%r8
mov    -0x14884c(%rbp),%r9d
call   1050 <load@plt>
mov    -0x148844(%rbp),%edi
lea    -0x120030(%rbp),%rsi
lea    -0x140030(%rbp),%rdx
lea    -0x148030(%rbp),%rcx
lea    -0x148830(%rbp),%r8
mov    -0x148850(%rbp),%r9d
call   1060 <compute@plt>
mov    -0x148848(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x148834(%rbp),%eax
sub    $0x2,%eax
shl    $0x7,%eax
cltq
shl    $0x3,%rax
add    %rax,%rsi
lea    -0x148430(%rbp),%rdx
mov    -0x148854(%rbp),%ecx
call   1030 <store@plt>
jmp    1449 <workload+0x309>
mov    -0x148840(%rbp),%edi
lea    -0x120030(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0x148834(%rbp),%eax
shl    $0x7,%eax
shl    $0x9,%eax
cltq
shl    $0x3,%rax
add    %rax,%rdx
lea    -0x140030(%rbp),%rcx
mov    -0x10(%rbp),%r8
mov    -0x148834(%rbp),%eax
shl    $0x7,%eax
shl    $0x9,%eax
cltq
shl    $0x1,%rax
add    %rax,%r8
mov    -0x14884c(%rbp),%r9d
call   1050 <load@plt>
mov    -0x148844(%rbp),%edi
lea    -0x80030(%rbp),%rsi
lea    -0xa0030(%rbp),%rdx
lea    -0x148030(%rbp),%rcx
lea    -0x148430(%rbp),%r8
mov    -0x148850(%rbp),%r9d
call   1060 <compute@plt>
mov    -0x148848(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x148834(%rbp),%eax
sub    $0x2,%eax
shl    $0x7,%eax
cltq
shl    $0x3,%rax
add    %rax,%rsi
lea    -0x148830(%rbp),%rdx
mov    -0x148854(%rbp),%ecx
call   1030 <store@plt>
jmp    144e <workload+0x30e>
mov    -0x148834(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x148834(%rbp)
jmp    1199 <workload+0x59>
add    $0x148870,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<workload>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x148818,%rsp
mov    %rcx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
lea    0x810(%rsp),%rdi
mov    %rdx,%rsi
mov    $0x8000,%edx
call   1040 <memcpy@plt>
add    $0xfffffffffffff800,%r14
xor    %r12d,%r12d
jmp    120e <workload+0xce>
xchg   %ax,%ax
lea    0x48810(%rsp),%rsi
mov    %rbx,%rdx
lea    0x8810(%rsp),%rcx
mov    %r15,%r8
mov    $0x80,%r9d
call   1050 <load@plt>
mov    %ebp,%edi
lea    0xc8810(%rsp),%rsi
lea    0x28810(%rsp),%rdx
lea    0x810(%rsp),%rcx
lea    0x410(%rsp),%r8
mov    $0x80,%r9d
call   1060 <compute@plt>
movzbl 0xf(%rsp),%eax
lea    0x10(%rsp),%rdx
mov    %al,%r13b
mov    %r13d,%edi
mov    %r14,%rsi
mov    $0x80,%ecx
call   1030 <store@plt>
add    $0x1,%r12
add    $0x400,%r14
add    $0x20000,%r15
add    $0x80000,%rbx
cmp    $0x22,%r12
je     129f <workload+0x15f>
xor    %edi,%edi
cmp    $0x20,%r12
setb   %dil
test   %r12,%r12
setne  %al
cmp    $0x21,%r12
setne  %cl
and    %al,%cl
movzbl %cl,%ebp
xor    %r13d,%r13d
cmp    $0x2,%r12
setae  %al
test   $0x1,%r12b
mov    %al,0xf(%rsp)
jne    1180 <workload+0x40>
lea    0xc8810(%rsp),%rsi
mov    %rbx,%rdx
lea    0x28810(%rsp),%rcx
mov    %r15,%r8
mov    $0x80,%r9d
call   1050 <load@plt>
mov    %ebp,%edi
lea    0x48810(%rsp),%rsi
lea    0x8810(%rsp),%rdx
lea    0x810(%rsp),%rcx
lea    0x10(%rsp),%r8
mov    $0x80,%r9d
call   1060 <compute@plt>
movzbl 0xf(%rsp),%eax
lea    0x410(%rsp),%rdx
jmp    11d8 <workload+0x98>
add    $0x148818,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @workload(double* %0, i16* %1, double* %2, double* %3) {
%5 = alloca double*
%6 = alloca i16*
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
%10 = alloca i32
%11 = alloca [4 x [32 x [512 x double]]]
%12 = alloca [4 x [32 x [512 x i16]]]
%13 = alloca [4 x [32 x [512 x double]]]
%14 = alloca [4 x [32 x [512 x i16]]]
%15 = alloca [4096 x double]
%16 = alloca [4 x [32 x double]]
%17 = alloca [4 x [32 x double]]
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
store double* %0, double** %5
store i16* %1, i16** %6
store double* %2, double** %7
store double* %3, double** %8
store i32 32, i32* %9
store i32 0, i32* %10
%27 = load i32, i32* %10
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %4
store i32 128, i32* %10
br label %30
30: ; preds = %29, %4
%31 = getelementptr inbounds [4096 x double], [4096 x double]* %15, i64 0, i64 0
%32 = load double*, double** %7
%33 = call i32 @memcpy(double* %31, double* %32, i32 32768)
store i32 0, i32* %18
br label %34
34: ; preds = %169, %30
%35 = load i32, i32* %18
%36 = load i32, i32* %9
%37 = add nsw i32 %36, 2
%38 = icmp slt i32 %35, %37
br i1 %38, label %39, label %172
39: ; preds = %34
%40 = load i32, i32* %18
%41 = load i32, i32* %9
%42 = icmp slt i32 %40, %41
%43 = zext i1 %42 to i32
store i32 %43, i32* %21
%44 = load i32, i32* %18
%45 = icmp sgt i32 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %39
%47 = load i32, i32* %18
%48 = load i32, i32* %9
%49 = add nsw i32 %48, 1
%50 = icmp slt i32 %47, %49
br label %51
51: ; preds = %46, %39
%52 = phi i1 [ false, %39 ], [ %50, %46 ]
%53 = zext i1 %52 to i32
store i32 %53, i32* %22
%54 = load i32, i32* %18
%55 = icmp sgt i32 %54, 1
%56 = zext i1 %55 to i32
store i32 %56, i32* %23
%57 = load i32, i32* %18
%58 = load i32, i32* %9
%59 = sub nsw i32 %58, 1
%60 = icmp eq i32 %57, %59
br i1 %60, label %61, label %63
61: ; preds = %51
%62 = load i32, i32* %10
br label %64
63: ; preds = %51
br label %64
64: ; preds = %63, %61
%65 = phi i32 [ %62, %61 ], [ 128, %63 ]
store i32 %65, i32* %24
%66 = load i32, i32* %18
%67 = load i32, i32* %9
%68 = icmp eq i32 %66, %67
br i1 %68, label %69, label %71
69: ; preds = %64
%70 = load i32, i32* %10
br label %72
71: ; preds = %64
br label %72
72: ; preds = %71, %69
%73 = phi i32 [ %70, %69 ], [ 128, %71 ]
store i32 %73, i32* %25
%74 = load i32, i32* %18
%75 = load i32, i32* %9
%76 = add nsw i32 %75, 1
%77 = icmp eq i32 %74, %76
br i1 %77, label %78, label %80
78: ; preds = %72
%79 = load i32, i32* %10
br label %81
80: ; preds = %72
br label %81
81: ; preds = %80, %78
%82 = phi i32 [ %79, %78 ], [ 128, %80 ]
store i32 %82, i32* %26
%83 = load i32, i32* %18
%84 = srem i32 %83, 2
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %127
86: ; preds = %81
%87 = load i32, i32* %21
%88 = getelementptr inbounds [4 x [32 x [512 x double]]], [4 x [32 x [512 x double]]]* %11, i64 0, i64 0
%89 = bitcast [32 x [512 x double]]* %88 to double***
%90 = load double*, double** %5
%91 = load i32, i32* %18
%92 = mul nsw i32 %91, 128
%93 = mul nsw i32 %92, 512
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %90, i64 %94
%96 = getelementptr inbounds [4 x [32 x [512 x i16]]], [4 x [32 x [512 x i16]]]* %12, i64 0, i64 0
%97 = bitcast [32 x [512 x i16]]* %96 to i16***
%98 = load i16*, i16** %6
%99 = load i32, i32* %18
%100 = mul nsw i32 %99, 128
%101 = mul nsw i32 %100, 512
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i16, i16* %98, i64 %102
%104 = load i32, i32* %24
%105 = call i32 @load(i32 %87, double*** %89, double* %95, i16*** %97, i16* %103, i32 %104)
%106 = load i32, i32* %22
%107 = getelementptr inbounds [4 x [32 x [512 x double]]], [4 x [32 x [512 x double]]]* %13, i64 0, i64 0
%108 = bitcast [32 x [512 x double]]* %107 to double***
%109 = getelementptr inbounds [4 x [32 x [512 x i16]]], [4 x [32 x [512 x i16]]]* %14, i64 0, i64 0
%110 = bitcast [32 x [512 x i16]]* %109 to i16***
%111 = getelementptr inbounds [4096 x double], [4096 x double]* %15, i64 0, i64 0
%112 = getelementptr inbounds [4 x [32 x double]], [4 x [32 x double]]* %17, i64 0, i64 0
%113 = bitcast [32 x double]* %112 to double**
%114 = load i32, i32* %25
%115 = call i32 @compute(i32 %106, double*** %108, i16*** %110, double* %111, double** %113, i32 %114)
%116 = load i32, i32* %23
%117 = load double*, double** %8
%118 = load i32, i32* %18
%119 = sub nsw i32 %118, 2
%120 = mul nsw i32 %119, 128
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, double* %117, i64 %121
%123 = getelementptr inbounds [4 x [32 x double]], [4 x [32 x double]]* %16, i64 0, i64 0
%124 = bitcast [32 x double]* %123 to double**
%125 = load i32, i32* %26
%126 = call i32 @store(i32 %116, double* %122, double** %124, i32 %125)
br label %168
127: ; preds = %81
%128 = load i32, i32* %21
%129 = getelementptr inbounds [4 x [32 x [512 x double]]], [4 x [32 x [512 x double]]]* %13, i64 0, i64 0
%130 = bitcast [32 x [512 x double]]* %129 to double***
%131 = load double*, double** %5
%132 = load i32, i32* %18
%133 = mul nsw i32 %132, 128
%134 = mul nsw i32 %133, 512
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds double, double* %131, i64 %135
%137 = getelementptr inbounds [4 x [32 x [512 x i16]]], [4 x [32 x [512 x i16]]]* %14, i64 0, i64 0
%138 = bitcast [32 x [512 x i16]]* %137 to i16***
%139 = load i16*, i16** %6
%140 = load i32, i32* %18
%141 = mul nsw i32 %140, 128
%142 = mul nsw i32 %141, 512
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i16, i16* %139, i64 %143
%145 = load i32, i32* %24
%146 = call i32 @load(i32 %128, double*** %130, double* %136, i16*** %138, i16* %144, i32 %145)
%147 = load i32, i32* %22
%148 = getelementptr inbounds [4 x [32 x [512 x double]]], [4 x [32 x [512 x double]]]* %11, i64 0, i64 0
%149 = bitcast [32 x [512 x double]]* %148 to double***
%150 = getelementptr inbounds [4 x [32 x [512 x i16]]], [4 x [32 x [512 x i16]]]* %12, i64 0, i64 0
%151 = bitcast [32 x [512 x i16]]* %150 to i16***
%152 = getelementptr inbounds [4096 x double], [4096 x double]* %15, i64 0, i64 0
%153 = getelementptr inbounds [4 x [32 x double]], [4 x [32 x double]]* %16, i64 0, i64 0
%154 = bitcast [32 x double]* %153 to double**
%155 = load i32, i32* %25
%156 = call i32 @compute(i32 %147, double*** %149, i16*** %151, double* %152, double** %154, i32 %155)
%157 = load i32, i32* %23
%158 = load double*, double** %8
%159 = load i32, i32* %18
%160 = sub nsw i32 %159, 2
%161 = mul nsw i32 %160, 128
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds double, double* %158, i64 %162
%164 = getelementptr inbounds [4 x [32 x double]], [4 x [32 x double]]* %17, i64 0, i64 0
%165 = bitcast [32 x double]* %164 to double**
%166 = load i32, i32* %26
%167 = call i32 @store(i32 %157, double* %163, double** %165, i32 %166)
br label %168
168: ; preds = %127, %86
br label %169
169: ; preds = %168
%170 = load i32, i32* %18
%171 = add nsw i32 %170, 1
store i32 %171, i32* %18
br label %34
172: ; preds = %34
ret void
}

LLVM IR (-O2):
define void @workload(double* %0, i16* %1, double* %2, double* %3) {
%5 = alloca [4 x [32 x [512 x double]]]
%6 = alloca [4 x [32 x [512 x i16]]]
%7 = alloca [4 x [32 x [512 x double]]]
%8 = alloca [4 x [32 x [512 x i16]]]
%9 = alloca [4096 x double]
%10 = alloca [4 x [32 x double]]
%11 = alloca [4 x [32 x double]]
%12 = bitcast [4 x [32 x [512 x double]]]* %5 to i8*
%13 = bitcast [4 x [32 x [512 x i16]]]* %6 to i8*
%14 = bitcast [4 x [32 x [512 x double]]]* %7 to i8*
%15 = bitcast [4 x [32 x [512 x i16]]]* %8 to i8*
%16 = bitcast [4096 x double]* %9 to i8*
%17 = getelementptr inbounds [4096 x double], [4096 x double]* %9, i64 0, i64 0
%18 = call i32 @memcpy(double* %17, double* %2, i32 32768)
%19 = bitcast [4 x [32 x double]]* %10 to i8*
%20 = bitcast [4 x [32 x double]]* %11 to i8*
%21 = bitcast [4 x [32 x [512 x double]]]* %7 to double***
%22 = bitcast [4 x [32 x [512 x i16]]]* %8 to i16***
%23 = bitcast [4 x [32 x [512 x double]]]* %5 to double***
%24 = bitcast [4 x [32 x [512 x i16]]]* %6 to i16***
%25 = bitcast [4 x [32 x double]]* %10 to double**
%26 = bitcast [4 x [32 x double]]* %11 to double**
br label %27
27: ; preds = %4, %48
%28 = phi i64 [ 0, %4 ], [ %54, %48 ]
%29 = icmp ult i64 %28, 32
%30 = zext i1 %29 to i32
%31 = icmp ne i64 %28, 0
%32 = icmp ne i64 %28, 33
%33 = and i1 %31, %32
%34 = zext i1 %33 to i32
%35 = icmp ugt i64 %28, 1
%36 = zext i1 %35 to i32
%37 = and i64 %28, 1
%38 = icmp eq i64 %37, 0
%39 = shl nuw nsw i64 %28, 16
%40 = getelementptr inbounds double, double* %0, i64 %39
%41 = getelementptr inbounds i16, i16* %1, i64 %39
br i1 %38, label %42, label %45
42: ; preds = %27
%43 = call i32 @load(i32 %30, double*** %23, double* %40, i16*** %24, i16* %41, i32 128)
%44 = call i32 @compute(i32 %34, double*** %21, i16*** %22, double* %17, double** %26, i32 128)
br label %48
45: ; preds = %27
%46 = call i32 @load(i32 %30, double*** %21, double* %40, i16*** %22, i16* %41, i32 128)
%47 = call i32 @compute(i32 %34, double*** %23, i16*** %24, double* %17, double** %25, i32 128)
br label %48
48: ; preds = %45, %42
%49 = phi double** [ %26, %45 ], [ %25, %42 ]
%50 = shl nuw nsw i64 %28, 7
%51 = add nsw i64 %50, -256
%52 = getelementptr inbounds double, double* %3, i64 %51
%53 = call i32 @store(i32 %36, double* %52, double** %49, i32 128)
%54 = add nuw nsw i64 %28, 1
%55 = icmp eq i64 %54, 34
br i1 %55, label %56, label %27
56: ; preds = %48
ret void
}