#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 gidz_cube(int, int, int, unsigned int);
int gidz_general(unsigned int, unsigned int, unsigned int, unsigned int,
                 unsigned int);
int /*<<< orphan*/ zero_vect(double *, unsigned long);
void convolve_kernel_inside_fast(double **outmap, double *inmap,
                                 unsigned in_extx, unsigned in_exty,
                                 unsigned in_extz, double *kernel,
                                 unsigned kernel_size, double normfac,
                                 unsigned ignored[3]) {
  double dval, inv_normfac;
  unsigned long out_nvox;
  unsigned indx, indy, indz;
  int indx2, indy2, indz2, margin, marginx, marginy, marginz;
  margin = (kernel_size - 1) / 2;
  marginx = margin + ignored[0];
  marginy = margin + ignored[1];
  marginz = margin + ignored[2];
  out_nvox = in_extx * in_exty * in_extz;
  inv_normfac = 1.0 / normfac;
  zero_vect(*outmap, out_nvox);
  for (indz = marginz; indz < in_extz - marginz; indz++)
    for (indy = marginy; indy < in_exty - marginy; indy++)
      for (indx = marginx; indx < in_extx - marginx; indx++) {
        dval = (*(inmap + gidz_general(indz, indy, indx, in_exty, in_extx))) *
               inv_normfac;
        if (dval != 0.0)
          for (indz2 = -margin; indz2 <= margin; indz2++)
            for (indy2 = -margin; indy2 <= margin; indy2++)
              for (indx2 = -margin; indx2 <= margin; indx2++) {
                *(*outmap + gidz_general(indz + indz2, indy + indy2,
                                         indx + indx2, in_exty, in_extx)) +=
                    *(kernel + gidz_cube(indz2 + margin, indy2 + margin,
                                         indx2 + margin, kernel_size)) *
                    dval;
              }
      }
}


x86 assembly (clang, -O0):
<convolve_kernel_inside_fast>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9,-0x28(%rbp)
movsd  %xmm0,-0x30(%rbp)
mov    0x10(%rbp),%eax
sub    $0x1,%eax
shr    $0x1,%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    0x18(%rbp),%rcx
add    (%rcx),%eax
mov    %eax,-0x68(%rbp)
mov    -0x64(%rbp),%eax
mov    0x18(%rbp),%rcx
add    0x4(%rcx),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x64(%rbp),%eax
mov    0x18(%rbp),%rcx
add    0x8(%rcx),%eax
mov    %eax,-0x70(%rbp)
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
imul   -0x1c(%rbp),%eax
mov    %eax,%eax
mov    %rax,-0x48(%rbp)
movsd  0xe58(%rip),%xmm0
divsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    -0x48(%rbp),%rsi
call   1040 <zero_vect@plt>
mov    -0x70(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    -0x70(%rbp),%ecx
cmp    %ecx,%eax
jae    13a6 <convolve_kernel_inside_fast+0x276>
mov    -0x6c(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    -0x6c(%rbp),%ecx
cmp    %ecx,%eax
jae    1393 <convolve_kernel_inside_fast+0x263>
mov    -0x68(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    -0x68(%rbp),%ecx
cmp    %ecx,%eax
jae    1380 <convolve_kernel_inside_fast+0x250>
mov    -0x10(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x54(%rbp),%edi
mov    -0x50(%rbp),%esi
mov    -0x4c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
call   1030 <gidz_general@plt>
mov    %eax,%ecx
mov    -0x78(%rbp),%rax
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1259 <convolve_kernel_inside_fast+0x129>
jp     1259 <convolve_kernel_inside_fast+0x129>
jmp    136d <convolve_kernel_inside_fast+0x23d>
xor    %eax,%eax
sub    -0x64(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x64(%rbp),%eax
jg     1368 <convolve_kernel_inside_fast+0x238>
xor    %eax,%eax
sub    -0x64(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x64(%rbp),%eax
jg     1355 <convolve_kernel_inside_fast+0x225>
xor    %eax,%eax
sub    -0x64(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x64(%rbp),%eax
jg     1342 <convolve_kernel_inside_fast+0x212>
mov    -0x28(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x60(%rbp),%edi
add    -0x64(%rbp),%edi
mov    -0x5c(%rbp),%esi
add    -0x64(%rbp),%esi
mov    -0x58(%rbp),%edx
add    -0x64(%rbp),%edx
mov    0x10(%rbp),%ecx
call   1050 <gidz_cube@plt>
mov    %eax,%ecx
mov    -0x98(%rbp),%rax
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x80(%rbp)
mov    -0x54(%rbp),%edi
add    -0x60(%rbp),%edi
mov    -0x50(%rbp),%esi
add    -0x5c(%rbp),%esi
mov    -0x4c(%rbp),%edx
add    -0x58(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
call   1030 <gidz_general@plt>
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x88(%rbp),%xmm2
ff
mov    %eax,%ecx
mov    -0x80(%rbp),%rax
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1289 <convolve_kernel_inside_fast+0x159>
jmp    1347 <convolve_kernel_inside_fast+0x217>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1275 <convolve_kernel_inside_fast+0x145>
jmp    135a <convolve_kernel_inside_fast+0x22a>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1261 <convolve_kernel_inside_fast+0x131>
jmp    136d <convolve_kernel_inside_fast+0x23d>
jmp    1372 <convolve_kernel_inside_fast+0x242>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    11f6 <convolve_kernel_inside_fast+0xc6>
jmp    1385 <convolve_kernel_inside_fast+0x255>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    11df <convolve_kernel_inside_fast+0xaf>
jmp    1398 <convolve_kernel_inside_fast+0x268>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    11c8 <convolve_kernel_inside_fast+0x98>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<convolve_kernel_inside_fast>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
movsd  %xmm0,0x38(%rsp)
mov    %r9,0x98(%rsp)
mov    %r8d,%r14d
mov    %ecx,%r15d
mov    %edx,%ebx
mov    %rsi,0x70(%rsp)
mov    0xe0(%rsp),%ecx
mov    0xe8(%rsp),%rax
lea    -0x1(%rcx),%ebp
shr    %ebp
mov    (%rax),%ecx
mov    %rcx,0x58(%rsp)
mov    0x4(%rax),%ecx
add    %ebp,%ecx
mov    %ecx,0xc(%rsp)
mov    0x8(%rax),%r12d
add    %ebp,%r12d
mov    %r15d,%esi
imul   %edx,%esi
imul   %r8d,%esi
mov    %rdi,0x90(%rsp)
mov    (%rdi),%rdi
call   1040 <zero_vect@plt>
sub    %r12d,%r14d
mov    %r14d,0x40(%rsp)
mov    %r12,%rax
mov    %r12,0x28(%rsp)
cmp    %r14d,%r12d
jae    13e7 <convolve_kernel_inside_fast+0x2b7>
mov    0x58(%rsp),%rax
add    %ebp,%eax
movsd  0xe37(%rip),%xmm0
divsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x68(%rsp)
mov    %r15d,%ecx
sub    0xc(%rsp),%ecx
mov    %ecx,0x10(%rsp)
mov    %ebx,%ecx
mov    %eax,0x14(%rsp)
sub    %eax,%ecx
mov    %ecx,0x18(%rsp)
mov    %ebp,%eax
neg    %eax
mov    %eax,0x1c(%rsp)
lea    0x1(%rbp,%rbp,1),%eax
mov    %eax,0x48(%rsp)
mov    %r15d,0x24(%rsp)
mov    %ebx,0x20(%rsp)
mov    %rbp,0x80(%rsp)
mov    0x48(%rsp),%r12d
jmp    123a <convolve_kernel_inside_fast+0x10a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x28(%rsp),%rcx
add    $0x1,%ecx
mov    %rcx,%rax
mov    %rcx,0x28(%rsp)
cmp    0x40(%rsp),%ecx
je     13e7 <convolve_kernel_inside_fast+0x2b7>
mov    0x10(%rsp),%eax
cmp    %eax,0xc(%rsp)
jae    1220 <convolve_kernel_inside_fast+0xf0>
mov    0xc(%rsp),%eax
mov    %rax,0x30(%rsp)
jmp    1266 <convolve_kernel_inside_fast+0x136>
nop
mov    0x30(%rsp),%rcx
add    $0x1,%ecx
mov    %rcx,%rax
mov    %rcx,0x30(%rsp)
cmp    0x10(%rsp),%ecx
je     1220 <convolve_kernel_inside_fast+0xf0>
mov    0x18(%rsp),%eax
cmp    %eax,0x14(%rsp)
jae    1250 <convolve_kernel_inside_fast+0x120>
mov    0x58(%rsp),%rax
mov    0x14(%rsp),%edx
jmp    129e <convolve_kernel_inside_fast+0x16e>
nopl   0x0(%rax,%rax,1)
mov    0x44(%rsp),%edx
add    $0x1,%edx
mov    0x60(%rsp),%rax
add    $0x1,%eax
cmp    0x18(%rsp),%edx
mov    0x24(%rsp),%r15d
mov    0x20(%rsp),%ebx
je     1250 <convolve_kernel_inside_fast+0x120>
mov    %rax,0x60(%rsp)
mov    0x28(%rsp),%rdi
mov    0x30(%rsp),%rsi
mov    %edx,0x44(%rsp)
mov    %r15d,%ecx
mov    %ebx,%r8d
call   1030 <gidz_general@plt>
cltq
mov    0x70(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
mulsd  0x68(%rsp),%xmm0
movsd  %xmm0,0xa0(%rsp)
ucomisd 0xd29(%rip),%xmm0
jne    12e3 <convolve_kernel_inside_fast+0x1b3>
jnp    1280 <convolve_kernel_inside_fast+0x150>
mov    0x1c(%rsp),%eax
mov    %eax,%ecx
nopl   0x0(%rax)
lea    (%rcx,%rbp,1),%r15d
mov    0x28(%rsp),%rax
mov    %rcx,0x78(%rsp)
add    %ecx,%eax
mov    %eax,0x4c(%rsp)
mov    0x1c(%rsp),%eax
mov    %eax,%ecx
nopw   0x0(%rax,%rax,1)
lea    (%rcx,%rbp,1),%eax
mov    %eax,0x54(%rsp)
mov    0x30(%rsp),%rax
mov    %rcx,0x88(%rsp)
add    %ecx,%eax
mov    %eax,0x50(%rsp)
xor    %ebx,%ebx
mov    0x60(%rsp),%r14
mov    0x4c(%rsp),%r13d
cs nopw 0x0(%rax,%rax,1)
mov    %r15d,%edi
mov    0x54(%rsp),%esi
mov    %ebx,%edx
mov    0xe0(%rsp),%ecx
call   1050 <gidz_cube@plt>
cltq
mov    0x90(%rsp),%rcx
mov    (%rcx),%rbp
lea    (%r14,%rbx,1),%edx
mov    0x98(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
mulsd  0xa0(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
mov    %r13d,%edi
mov    0x50(%rsp),%esi
mov    0x24(%rsp),%ecx
mov    0x20(%rsp),%r8d
call   1030 <gidz_general@plt>
cltq
movsd  0x38(%rsp),%xmm0
addsd  0x0(%rbp,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
add    $0x1,%ebx
cmp    %ebx,%r12d
jne    1340 <convolve_kernel_inside_fast+0x210>
mov    0x88(%rsp),%rcx
lea    0x1(%rcx),%eax
mov    0x80(%rsp),%rbp
cmp    %ebp,%ecx
mov    %eax,%ecx
jne    1310 <convolve_kernel_inside_fast+0x1e0>
mov    0x78(%rsp),%rcx
lea    0x1(%rcx),%eax
cmp    %ebp,%ecx
mov    %eax,%ecx
jne    12f0 <convolve_kernel_inside_fast+0x1c0>
jmp    1280 <convolve_kernel_inside_fast+0x150>
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @convolve_kernel_inside_fast(double** nocapture %0, double* nocapture %1, i32 %2, i32 %3, i32 %4, double* nocapture %5, i32 %6, double %7, i32* nocapture %8) {
%10 = add i32 %6, -1
%11 = lshr i32 %10, 1
%12 = load i32, i32* %8
%13 = add i32 %12, %11
%14 = getelementptr inbounds i32, i32* %8, i64 1
%15 = load i32, i32* %14
%16 = add i32 %15, %11
%17 = getelementptr inbounds i32, i32* %8, i64 2
%18 = load i32, i32* %17
%19 = add i32 %18, %11
%20 = mul i32 %3, %2
%21 = mul i32 %20, %4
%22 = zext i32 %21 to i64
%23 = fdiv double 1.000000e+00, %7
%24 = load double*, double** %0
%25 = tail call i32 @zero_vect(double* %24, i64 %22)
%26 = sub i32 %4, %19
%27 = icmp ult i32 %19, %26
br i1 %27, label %28, label %85
28: ; preds = %9
%29 = sub i32 %3, %16
%30 = icmp ult i32 %16, %29
%31 = sub i32 %2, %13
%32 = icmp ult i32 %13, %31
%33 = sub nsw i32 0, %11
br label %34
34: ; preds = %28, %82
%35 = phi i32 [ %19, %28 ], [ %83, %82 ]
br i1 %30, label %36, label %82
36: ; preds = %34, %79
%37 = phi i32 [ %80, %79 ], [ %16, %34 ]
br i1 %32, label %38, label %79
38: ; preds = %36, %76
%39 = phi i32 [ %77, %76 ], [ %13, %36 ]
%40 = tail call i32 @gidz_general(i32 %35, i32 %37, i32 %39, i32 %3, i32 %2)
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, double* %1, i64 %41
%43 = load double, double* %42
%44 = fmul double %23, %43
%45 = fcmp oeq double %44, 0.000000e+00
br i1 %45, label %76, label %46
46: ; preds = %38, %73
%47 = phi i32 [ %74, %73 ], [ %33, %38 ]
%48 = add nsw i32 %47, %11
%49 = add i32 %47, %35
br label %50
50: ; preds = %70, %46
%51 = phi i32 [ %33, %46 ], [ %71, %70 ]
%52 = add nsw i32 %51, %11
%53 = add i32 %51, %37
br label %54
54: ; preds = %50, %54
%55 = phi i32 [ %33, %50 ], [ %68, %54 ]
%56 = add nsw i32 %55, %11
%57 = tail call i32 @gidz_cube(i32 %48, i32 %52, i32 %56, i32 %6)
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, double* %5, i64 %58
%60 = load double, double* %59
%61 = load double*, double** %0
%62 = add i32 %55, %39
%63 = tail call i32 @gidz_general(i32 %49, i32 %53, i32 %62, i32 %3, i32 %2)
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, double* %61, i64 %64
%66 = load double, double* %65
%67 = tail call double @llvm.fmuladd.f64(double %60, double %44, double %66)
store double %67, double* %65
%68 = add i32 %55, 1
%69 = icmp eq i32 %55, %11
br i1 %69, label %70, label %54
70: ; preds = %54
%71 = add i32 %51, 1
%72 = icmp eq i32 %51, %11
br i1 %72, label %73, label %50
73: ; preds = %70
%74 = add i32 %47, 1
%75 = icmp eq i32 %47, %11
br i1 %75, label %76, label %46
76: ; preds = %73, %38
%77 = add nuw i32 %39, 1
%78 = icmp eq i32 %77, %31
br i1 %78, label %79, label %38
79: ; preds = %76, %36
%80 = add nuw i32 %37, 1
%81 = icmp eq i32 %80, %29
br i1 %81, label %82, label %36
82: ; preds = %79, %34
%83 = add nuw i32 %35, 1
%84 = icmp eq i32 %83, %26
br i1 %84, label %85, label %34
85: ; preds = %82, %9
ret void
}