#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 */
unsigned int getGlobalID(int, unsigned int, unsigned int, unsigned int,
                         unsigned int, unsigned int, unsigned int);
void convolution(volatile int *data, volatile unsigned int *barrierIn,
                 volatile unsigned int *barrierOut,
                 volatile unsigned int *coreNum, volatile int *localID0,
                 volatile int *localID1, volatile unsigned int *localIDout) {
#pragma HLS INTERFACE ap_ctrl_none port = return
#pragma HLS INTERFACE m_axi port = data
#pragma HLS INTERFACE axis port = barrierIn
#pragma HLS INTERFACE axis port = barrierOut
#pragma HLS INTERFACE axis port = coreNum
#pragma HLS INTERFACE axis port = localID0
#pragma HLS INTERFACE axis port = localID1
#pragma HLS INTERFACE axis port = localIDout
  volatile unsigned int bo = 1;
  unsigned int addrA, addrB;
  int filter[7] = {1, 0, 2, 0, 3, 4, 1};
  unsigned int localsize0, localsize1;
  unsigned int groupid0, groupid1;
  unsigned int localid0, localid1;
  unsigned int globalid0, globalid1;
  unsigned int currCoreNum = *coreNum;
  unsigned int status = 1;
  unsigned int localfinish;
  int i, j;
  int sum = 0;
  unsigned int kernelfinish;
  {
#pragma HLS PROTOCOL fixed
    *barrierIn = 1;
  }
  {
#pragma HLS PROTOCOL fixed
    bo = *barrierOut;
  }
  if (bo == 1) {
    addrA = data[0x140C0000 + 0 + 0];
    addrA = addrA / 4;
    addrB = data[0x140C0000 + 0 + 1];
    addrB = addrB / 4;
    localsize0 = data[0x140C0000 + 256 + 0];
    localsize1 = data[0x140C0000 + 256 + 1];
    while (status == 1) {
      {
#pragma HLS PROTOCOL fixed
        *barrierIn = 1;
      }
      {
#pragma HLS PROTOCOL fixed
        bo = *barrierOut;
      }
      if (bo == 1) {
        kernelfinish = data[0x30800000 + 66];
        if (kernelfinish == 1) {
          status = 0;
        } else {
          {
#pragma HLS PROTOCOL fixed
            localfinish = 0;
            status = 1;
            *localIDout = currCoreNum;
            groupid0 = data[0x30800000 + 64 + 0];
            groupid1 = data[0x30800000 + 64 + 1];
          }
          {
#pragma HLS PROTOCOL fixed
            while (localfinish == 0) {
              localid0 = *localID0;
              localid1 = *localID1;
              if (localid0 == -1) {
                localfinish = 1;
              } else {
                localfinish = 0;
                *localIDout = currCoreNum;
                globalid0 = getGlobalID(0, groupid0, groupid1, localid0,
                                        localid1, localsize0, localsize1);
                globalid1 = getGlobalID(1, groupid0, groupid1, localid0,
                                        localid1, localsize0, localsize1);
                sum = 0;
                for (j = 0; j < 7; j++) {
                  sum += data[addrA + globalid0 + j] * filter[j];
                }
              }
              data[addrB + j + globalid1] = sum;
            }
          }
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<convolution>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x1,-0x34(%rbp)
mov    0xebb(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xeb8(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xeb5(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xeb3(%rip),%eax
mov    %eax,-0x48(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x84(%rbp)
movl   $0x1,-0x88(%rbp)
movl   $0x0,-0x98(%rbp)
mov    -0x10(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    $0x1,%eax
jne    13bf <convolution+0x2af>
mov    -0x8(%rbp),%rax
mov    0x50300000(%rax),%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
shr    $0x2,%eax
mov    %eax,-0x38(%rbp)
mov    -0x8(%rbp),%rax
mov    0x50300004(%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
shr    $0x2,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%rax
mov    0x50300400(%rax),%eax
mov    %eax,-0x64(%rbp)
mov    -0x8(%rbp),%rax
mov    0x50300404(%rax),%eax
mov    %eax,-0x68(%rbp)
cmpl   $0x1,-0x88(%rbp)
jne    13ba <convolution+0x2aa>
mov    -0x10(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    $0x1,%eax
jne    13b5 <convolution+0x2a5>
movabs $0xc2000108,%rax
add    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x9c(%rbp)
cmpl   $0x1,-0x9c(%rbp)
jne    124b <convolution+0x13b>
movl   $0x0,-0x88(%rbp)
jmp    13b0 <convolution+0x2a0>
movl   $0x0,-0x8c(%rbp)
movl   $0x1,-0x88(%rbp)
mov    -0x84(%rbp),%ecx
mov    0x10(%rbp),%rax
mov    %ecx,(%rax)
movabs $0xc2000100,%rax
add    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x6c(%rbp)
movabs $0xc2000104,%rax
add    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x70(%rbp)
cmpl   $0x0,-0x8c(%rbp)
jne    13ab <convolution+0x29b>
mov    -0x28(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x78(%rbp)
cmpl   $0xffffffff,-0x74(%rbp)
jne    12c9 <convolution+0x1b9>
movl   $0x1,-0x8c(%rbp)
jmp    138b <convolution+0x27b>
movl   $0x0,-0x8c(%rbp)
mov    -0x84(%rbp),%ecx
mov    0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x6c(%rbp),%esi
mov    -0x70(%rbp),%edx
mov    -0x74(%rbp),%ecx
mov    -0x78(%rbp),%r8d
mov    -0x64(%rbp),%r9d
mov    -0x68(%rbp),%eax
xor    %edi,%edi
mov    %eax,(%rsp)
call   1030 <getGlobalID@plt>
mov    %eax,-0x7c(%rbp)
mov    -0x6c(%rbp),%esi
mov    -0x70(%rbp),%edx
mov    -0x74(%rbp),%ecx
mov    -0x78(%rbp),%r8d
mov    -0x64(%rbp),%r9d
mov    -0x68(%rbp),%eax
mov    $0x1,%edi
mov    %eax,(%rsp)
call   1030 <getGlobalID@plt>
mov    %eax,-0x80(%rbp)
movl   $0x0,-0x98(%rbp)
movl   $0x0,-0x94(%rbp)
cmpl   $0x7,-0x94(%rbp)
jge    1386 <convolution+0x276>
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    -0x7c(%rbp),%ecx
add    -0x94(%rbp),%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,4),%eax
movslq -0x94(%rbp),%rcx
imul   -0x60(%rbp,%rcx,4),%eax
add    -0x98(%rbp),%eax
mov    %eax,-0x98(%rbp)
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1338 <convolution+0x228>
jmp    138b <convolution+0x27b>
mov    -0x98(%rbp),%edx
mov    -0x8(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x94(%rbp),%ecx
add    -0x80(%rbp),%ecx
mov    %ecx,%ecx
mov    %edx,(%rax,%rcx,4)
jmp    1291 <convolution+0x181>
jmp    13b0 <convolution+0x2a0>
jmp    13b5 <convolution+0x2a5>
jmp    11ed <convolution+0xdd>
jmp    13bf <convolution+0x2af>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<convolution>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
movl   $0x1,0x10(%rsp)
mov    (%rcx),%r15d
movl   $0x1,(%rsi)
mov    (%rdx),%eax
mov    %eax,0x10(%rsp)
mov    0x10(%rsp),%eax
cmp    $0x1,%eax
jne    131b <convolution+0x20b>
mov    %rsi,%r12
mov    %rdi,%r10
mov    0xb0(%rsp),%r11
mov    0x50300000(%rdi),%r14d
shr    $0x2,%r14d
mov    0x50300004(%rdi),%esi
shr    $0x2,%esi
mov    0x50300400(%rdi),%ebx
mov    0x50300404(%rdi),%ebp
mov    $0xc2000108,%eax
add    %rdi,%rax
mov    %rax,0x48(%rsp)
mov    $0xc2000100,%eax
add    %rdi,%rax
mov    %rax,0x40(%rsp)
mov    $0xc2000104,%eax
add    %rdi,%rax
mov    %rax,0x38(%rsp)
xor    %ecx,%ecx
mov    %rdx,0x30(%rsp)
mov    %r12,0x28(%rsp)
mov    %r8,0x70(%rsp)
mov    %r9,0x68(%rsp)
mov    %r14,0x60(%rsp)
mov    %r15d,0x20(%rsp)
mov    %ebx,0x1c(%rsp)
mov    %ebp,0x18(%rsp)
mov    %rsi,0x58(%rsp)
mov    %rdi,0x50(%rsp)
jmp    11e0 <convolution+0xd0>
lea    (%rax,%rsi,1),%edi
add    $0x7,%edi
mov    %ecx,(%r10,%rdi,4)
cs nopw 0x0(%rax,%rax,1)
nop
movl   $0x1,(%r12)
mov    (%rdx),%edi
mov    %edi,0x10(%rsp)
mov    0x10(%rsp),%edi
cmp    $0x1,%edi
jne    11e0 <convolution+0xd0>
mov    0x48(%rsp),%rdi
mov    (%rdi),%edi
cmp    $0x1,%edi
je     131b <convolution+0x20b>
mov    %r15d,(%r11)
mov    0x40(%rsp),%rdi
mov    (%rdi),%ebx
mov    0x38(%rsp),%rdi
mov    (%rdi),%edi
mov    (%r8),%r13d
mov    (%r9),%ebp
cmp    $0xffffffff,%r13d
je     11cb <convolution+0xbb>
mov    %edi,0x24(%rsp)
mov    %ebx,0x14(%rsp)
nopl   0x0(%rax)
mov    %r15d,(%r11)
mov    0x18(%rsp),%r15d
mov    %r15d,(%rsp)
xor    %edi,%edi
mov    %ebx,%esi
mov    0x24(%rsp),%ebx
mov    %ebx,%edx
mov    %r13d,%ecx
mov    %ebp,%r8d
mov    0x1c(%rsp),%r14d
mov    %r14d,%r9d
call   1030 <getGlobalID@plt>
mov    %eax,%r12d
mov    %r15d,(%rsp)
mov    $0x1,%edi
mov    0x14(%rsp),%esi
mov    %ebx,%edx
mov    %r13d,%ecx
mov    %ebp,%r8d
mov    %r14d,%r9d
call   1030 <getGlobalID@plt>
mov    0xb0(%rsp),%r11
mov    0x58(%rsp),%rsi
mov    0x50(%rsp),%r10
mov    0x20(%rsp),%r15d
mov    0x60(%rsp),%r14
mov    0x70(%rsp),%r8
mov    0x68(%rsp),%r9
lea    (%r12,%r14,1),%ecx
mov    (%r10,%rcx,4),%ecx
lea    0x1(%r12,%r14,1),%edx
mov    (%r10,%rdx,4),%edx
lea    0x2(%r12,%r14,1),%edx
mov    (%r10,%rdx,4),%edx
lea    (%rcx,%rdx,2),%ecx
lea    0x3(%r12,%r14,1),%edx
mov    (%r10,%rdx,4),%edx
lea    (%r12,%r14,1),%edx
add    $0x4,%edx
mov    (%r10,%rdx,4),%edx
lea    (%rdx,%rdx,2),%edx
add    %ecx,%edx
lea    (%r12,%r14,1),%ecx
add    $0x5,%ecx
mov    (%r10,%rcx,4),%ecx
lea    (%rdx,%rcx,4),%ecx
lea    (%r12,%r14,1),%edx
add    $0x6,%edx
mov    0x14(%rsp),%ebx
add    (%r10,%rdx,4),%ecx
lea    (%rax,%rsi,1),%edx
add    $0x7,%edx
mov    %ecx,(%r10,%rdx,4)
mov    (%r8),%r13d
mov    (%r9),%ebp
cmp    $0xffffffff,%r13d
jne    1230 <convolution+0x120>
mov    0x30(%rsp),%rdx
mov    0x28(%rsp),%r12
jmp    11cb <convolution+0xbb>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.convolution.filter = [7 x i32] [i32 1, i32 0, i32 2, i32 0, i32 3, i32 4, i32 1]
define void @convolution(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6) {
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca [7 x 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
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
store i32* %0, i32** %8
store i32* %1, i32** %9
store i32* %2, i32** %10
store i32* %3, i32** %11
store i32* %4, i32** %12
store i32* %5, i32** %13
store i32* %6, i32** %14
store volatile i32 1, i32* %15
%34 = bitcast [7 x i32]* %18 to i8*
%35 = load i32*, i32** %11
%36 = load volatile i32, i32* %35
store i32 %36, i32* %27
store i32 1, i32* %28
store i32 0, i32* %32
%37 = load i32*, i32** %9
store volatile i32 1, i32* %37
%38 = load i32*, i32** %10
%39 = load volatile i32, i32* %38
store volatile i32 %39, i32* %15
%40 = load volatile i32, i32* %15
%41 = icmp eq i32 %40, 1
br i1 %41, label %42, label %150
42: ; preds = %7
%43 = load i32*, i32** %8
%44 = getelementptr inbounds i32, i32* %43, i64 336330752
%45 = load volatile i32, i32* %44
store i32 %45, i32* %16
%46 = load i32, i32* %16
%47 = udiv i32 %46, 4
store i32 %47, i32* %16
%48 = load i32*, i32** %8
%49 = getelementptr inbounds i32, i32* %48, i64 336330753
%50 = load volatile i32, i32* %49
store i32 %50, i32* %17
%51 = load i32, i32* %17
%52 = udiv i32 %51, 4
store i32 %52, i32* %17
%53 = load i32*, i32** %8
%54 = getelementptr inbounds i32, i32* %53, i64 336331008
%55 = load volatile i32, i32* %54
store i32 %55, i32* %19
%56 = load i32*, i32** %8
%57 = getelementptr inbounds i32, i32* %56, i64 336331009
%58 = load volatile i32, i32* %57
store i32 %58, i32* %20
br label %59
59: ; preds = %148, %42
%60 = load i32, i32* %28
%61 = icmp eq i32 %60, 1
br i1 %61, label %62, label %149
62: ; preds = %59
%63 = load i32*, i32** %9
store volatile i32 1, i32* %63
%64 = load i32*, i32** %10
%65 = load volatile i32, i32* %64
store volatile i32 %65, i32* %15
%66 = load volatile i32, i32* %15
%67 = icmp eq i32 %66, 1
br i1 %67, label %68, label %148
68: ; preds = %62
%69 = load i32*, i32** %8
%70 = getelementptr inbounds i32, i32* %69, i64 813695042
%71 = load volatile i32, i32* %70
store i32 %71, i32* %33
%72 = load i32, i32* %33
%73 = icmp eq i32 %72, 1
br i1 %73, label %74, label %75
74: ; preds = %68
store i32 0, i32* %28
br label %147
75: ; preds = %68
store i32 0, i32* %29
store i32 1, i32* %28
%76 = load i32, i32* %27
%77 = load i32*, i32** %14
store volatile i32 %76, i32* %77
%78 = load i32*, i32** %8
%79 = getelementptr inbounds i32, i32* %78, i64 813695040
%80 = load volatile i32, i32* %79
store i32 %80, i32* %21
%81 = load i32*, i32** %8
%82 = getelementptr inbounds i32, i32* %81, i64 813695041
%83 = load volatile i32, i32* %82
store i32 %83, i32* %22
br label %84
84: ; preds = %136, %75
%85 = load i32, i32* %29
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %146
87: ; preds = %84
%88 = load i32*, i32** %12
%89 = load volatile i32, i32* %88
store i32 %89, i32* %23
%90 = load i32*, i32** %13
%91 = load volatile i32, i32* %90
store i32 %91, i32* %24
%92 = load i32, i32* %23
%93 = icmp eq i32 %92, -1
br i1 %93, label %94, label %95
94: ; preds = %87
store i32 1, i32* %29
br label %136
95: ; preds = %87
store i32 0, i32* %29
%96 = load i32, i32* %27
%97 = load i32*, i32** %14
store volatile i32 %96, i32* %97
%98 = load i32, i32* %21
%99 = load i32, i32* %22
%100 = load i32, i32* %23
%101 = load i32, i32* %24
%102 = load i32, i32* %19
%103 = load i32, i32* %20
%104 = call i32 @getGlobalID(i32 0, i32 %98, i32 %99, i32 %100, i32 %101, i32 %102, i32 %103)
store i32 %104, i32* %25
%105 = load i32, i32* %21
%106 = load i32, i32* %22
%107 = load i32, i32* %23
%108 = load i32, i32* %24
%109 = load i32, i32* %19
%110 = load i32, i32* %20
%111 = call i32 @getGlobalID(i32 1, i32 %105, i32 %106, i32 %107, i32 %108, i32 %109, i32 %110)
store i32 %111, i32* %26
store i32 0, i32* %32
store i32 0, i32* %31
br label %112
112: ; preds = %132, %95
%113 = load i32, i32* %31
%114 = icmp slt i32 %113, 7
br i1 %114, label %115, label %135
115: ; preds = %112
%116 = load i32*, i32** %8
%117 = load i32, i32* %16
%118 = load i32, i32* %25
%119 = add i32 %117, %118
%120 = load i32, i32* %31
%121 = add i32 %119, %120
%122 = zext i32 %121 to i64
%123 = getelementptr inbounds i32, i32* %116, i64 %122
%124 = load volatile i32, i32* %123
%125 = load i32, i32* %31
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [7 x i32], [7 x i32]* %18, i64 0, i64 %126
%128 = load i32, i32* %127
%129 = mul nsw i32 %124, %128
%130 = load i32, i32* %32
%131 = add nsw i32 %130, %129
store i32 %131, i32* %32
br label %132
132: ; preds = %115
%133 = load i32, i32* %31
%134 = add nsw i32 %133, 1
store i32 %134, i32* %31
br label %112
135: ; preds = %112
br label %136
136: ; preds = %135, %94
%137 = load i32, i32* %32
%138 = load i32*, i32** %8
%139 = load i32, i32* %17
%140 = load i32, i32* %31
%141 = add i32 %139, %140
%142 = load i32, i32* %26
%143 = add i32 %141, %142
%144 = zext i32 %143 to i64
%145 = getelementptr inbounds i32, i32* %138, i64 %144
store volatile i32 %137, i32* %145
br label %84
146: ; preds = %84
br label %147
147: ; preds = %146, %74
br label %148
148: ; preds = %147, %62
br label %59
149: ; preds = %59
br label %150
150: ; preds = %149, %7
ret void
}

LLVM IR (-O2):
define void @convolution(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6) {
%8 = alloca i32
%9 = bitcast i32* %8 to i8*
store volatile i32 1, i32* %8
%10 = load volatile i32, i32* %3
store volatile i32 1, i32* %1
%11 = load volatile i32, i32* %2
store volatile i32 %11, i32* %8
%12 = load volatile i32, i32* %8
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %98
14: ; preds = %7
%15 = getelementptr inbounds i32, i32* %0, i64 336330752
%16 = load volatile i32, i32* %15
%17 = lshr i32 %16, 2
%18 = getelementptr inbounds i32, i32* %0, i64 336330753
%19 = load volatile i32, i32* %18
%20 = lshr i32 %19, 2
%21 = getelementptr inbounds i32, i32* %0, i64 336331008
%22 = load volatile i32, i32* %21
%23 = getelementptr inbounds i32, i32* %0, i64 336331009
%24 = load volatile i32, i32* %23
%25 = getelementptr inbounds i32, i32* %0, i64 813695042
%26 = getelementptr inbounds i32, i32* %0, i64 813695040
%27 = getelementptr inbounds i32, i32* %0, i64 813695041
br label %28
28: ; preds = %91, %14
%29 = phi i32 [ %92, %91 ], [ 0, %14 ]
%30 = phi i32 [ %93, %91 ], [ undef, %14 ]
br label %31
31: ; preds = %28, %31
store volatile i32 1, i32* %1
%32 = load volatile i32, i32* %2
store volatile i32 %32, i32* %8
%33 = load volatile i32, i32* %8
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %31
35: ; preds = %31
%36 = load volatile i32, i32* %25
%37 = icmp eq i32 %36, 1
br i1 %37, label %98, label %38
38: ; preds = %35
store volatile i32 %10, i32* %6
%39 = load volatile i32, i32* %26
%40 = load volatile i32, i32* %27
%41 = load volatile i32, i32* %4
%42 = load volatile i32, i32* %5
%43 = icmp eq i32 %41, -1
br i1 %43, label %91, label %44
44: ; preds = %38, %44
%45 = phi i32 [ %89, %44 ], [ %42, %38 ]
%46 = phi i32 [ %88, %44 ], [ %41, %38 ]
store volatile i32 %10, i32* %6
%47 = tail call i32 @getGlobalID(i32 0, i32 %39, i32 %40, i32 %46, i32 %45, i32 %22, i32 %24)
%48 = tail call i32 @getGlobalID(i32 1, i32 %39, i32 %40, i32 %46, i32 %45, i32 %22, i32 %24)
%49 = add i32 %47, %17
%50 = zext i32 %49 to i64
%51 = getelementptr inbounds i32, i32* %0, i64 %50
%52 = load volatile i32, i32* %51
%53 = add i32 %49, 1
%54 = zext i32 %53 to i64
%55 = getelementptr inbounds i32, i32* %0, i64 %54
%56 = load volatile i32, i32* %55
%57 = add i32 %49, 2
%58 = zext i32 %57 to i64
%59 = getelementptr inbounds i32, i32* %0, i64 %58
%60 = load volatile i32, i32* %59
%61 = shl nsw i32 %60, 1
%62 = add nsw i32 %61, %52
%63 = add i32 %49, 3
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds i32, i32* %0, i64 %64
%66 = load volatile i32, i32* %65
%67 = add i32 %49, 4
%68 = zext i32 %67 to i64
%69 = getelementptr inbounds i32, i32* %0, i64 %68
%70 = load volatile i32, i32* %69
%71 = mul nsw i32 %70, 3
%72 = add nsw i32 %71, %62
%73 = add i32 %49, 5
%74 = zext i32 %73 to i64
%75 = getelementptr inbounds i32, i32* %0, i64 %74
%76 = load volatile i32, i32* %75
%77 = shl nsw i32 %76, 2
%78 = add nsw i32 %77, %72
%79 = add i32 %49, 6
%80 = zext i32 %79 to i64
%81 = getelementptr inbounds i32, i32* %0, i64 %80
%82 = load volatile i32, i32* %81
%83 = add nsw i32 %82, %78
%84 = add i32 %48, %20
%85 = add i32 %84, 7
%86 = zext i32 %85 to i64
%87 = getelementptr inbounds i32, i32* %0, i64 %86
store volatile i32 %83, i32* %87
%88 = load volatile i32, i32* %4
%89 = load volatile i32, i32* %5
%90 = icmp eq i32 %88, -1
br i1 %90, label %91, label %44
91: ; preds = %44, %38
%92 = phi i32 [ %29, %38 ], [ %83, %44 ]
%93 = phi i32 [ %30, %38 ], [ %48, %44 ]
%94 = add i32 %93, %20
%95 = add i32 %94, 7
%96 = zext i32 %95 to i64
%97 = getelementptr inbounds i32, i32* %0, i64 %96
store volatile i32 %92, i32* %97
br label %28
98: ; preds = %35, %7
ret void
}