#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*/ chk3dvert(int, double *, int, int *);
int mesh3daft(int *, double *, int *, int *, int *, int *, int *, int *, int,
              int, int);
int mesh3daftss(int *, double *, int *, int *, int *, int *, int *, int *, int,
                int, int, double);
int mesh3daftuser(int *, double *, int *, int *, int *, int *, int *, int *,
                  int, int, int, double (*)(double, double, double));
int mesh_3d_aft_opts(int *pnV, double *vertex, int *pnF, int *face,
                     int *facecolor, int *pnT, int *tetra, int *tetracolor,
                     int nnV, int nnF, int nnT, double cf, int needcheck,
                     int indexshift, double (*f)(double, double, double)) {
  int i, ret;
  if (needcheck)
    chk3dvert(*pnV, vertex, *pnF, face);
  if (indexshift) {
    for (i = 0; i < 3 * *pnF; face[i++] -= indexshift)
      ;
    for (i = 0; i < 4 * *pnT; tetra[i++] -= indexshift)
      ;
  }
  if (cf > 0.0)
    ret = mesh3daftss(pnV, vertex, pnF, face, facecolor, pnT, tetra, tetracolor,
                      nnV, nnF, nnT, cf);
  else if (f)
    ret = mesh3daftuser(pnV, vertex, pnF, face, facecolor, pnT, tetra,
                        tetracolor, nnV, nnF, nnT, f);
  else
    ret = mesh3daft(pnV, vertex, pnF, face, facecolor, pnT, tetra, tetracolor,
                    nnV, nnF, nnT);
  if (indexshift) {
    for (i = 0; i < 3 * *pnF; face[i++] += indexshift)
      ;
    for (i = 0; i < 4 * *pnT; tetra[i++] += indexshift)
      ;
  }
  return ret;
}


x86 assembly (clang, -O0):
<mesh_3d_aft_opts>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x78,%rsp
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
mov    %r9,-0x48(%rbp)
movsd  %xmm0,-0x50(%rbp)
cmpl   $0x0,0x38(%rbp)
je     11a8 <mesh_3d_aft_opts+0x68>
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rax
mov    (%rax),%edx
mov    -0x38(%rbp),%rcx
call   1030 <chk3dvert@plt>
cmpl   $0x0,0x40(%rbp)
je     1239 <mesh_3d_aft_opts+0xf9>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x30(%rbp),%rcx
imul   $0x3,(%rcx),%ecx
cmp    %ecx,%eax
jge    11f2 <mesh_3d_aft_opts+0xb2>
jmp    11d0 <mesh_3d_aft_opts+0x90>
mov    0x40(%rbp),%esi
mov    -0x38(%rbp),%rax
mov    -0x54(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x54(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edx
sub    %esi,%edx
mov    %edx,(%rax,%rcx,4)
jmp    11b9 <mesh_3d_aft_opts+0x79>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x48(%rbp),%rcx
mov    (%rcx),%ecx
shl    $0x2,%ecx
cmp    %ecx,%eax
jge    1234 <mesh_3d_aft_opts+0xf4>
jmp    1212 <mesh_3d_aft_opts+0xd2>
mov    0x40(%rbp),%esi
mov    0x10(%rbp),%rax
mov    -0x54(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x54(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edx
sub    %esi,%edx
mov    %edx,(%rax,%rcx,4)
jmp    11f9 <mesh_3d_aft_opts+0xb9>
jmp    1239 <mesh_3d_aft_opts+0xf9>
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    129f <mesh_3d_aft_opts+0x15f>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x40(%rbp),%r8
mov    -0x48(%rbp),%r9
mov    0x10(%rbp),%r14
mov    0x18(%rbp),%rbx
mov    0x20(%rbp),%r11d
mov    0x28(%rbp),%r10d
mov    0x30(%rbp),%eax
movsd  -0x50(%rbp),%xmm0
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
call   1060 <mesh3daftss@plt>
mov    %eax,-0x58(%rbp)
jmp    1351 <mesh_3d_aft_opts+0x211>
cmpq   $0x0,0x48(%rbp)
je     1302 <mesh_3d_aft_opts+0x1c2>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x40(%rbp),%r8
mov    -0x48(%rbp),%r9
mov    0x10(%rbp),%r15
mov    0x18(%rbp),%r14
mov    0x20(%rbp),%ebx
mov    0x28(%rbp),%r11d
mov    0x30(%rbp),%r10d
mov    0x48(%rbp),%rax
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %ebx,0x10(%rsp)
mov    %r11d,0x18(%rsp)
mov    %r10d,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1050 <mesh3daftuser@plt>
mov    %eax,-0x58(%rbp)
jmp    134c <mesh_3d_aft_opts+0x20c>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x40(%rbp),%r8
mov    -0x48(%rbp),%r9
mov    0x10(%rbp),%r14
mov    0x18(%rbp),%rbx
mov    0x20(%rbp),%r11d
mov    0x28(%rbp),%r10d
mov    0x30(%rbp),%eax
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
call   1040 <mesh3daft@plt>
mov    %eax,-0x58(%rbp)
jmp    1351 <mesh_3d_aft_opts+0x211>
cmpl   $0x0,0x40(%rbp)
je     13de <mesh_3d_aft_opts+0x29e>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x30(%rbp),%rcx
imul   $0x3,(%rcx),%ecx
cmp    %ecx,%eax
jge    1399 <mesh_3d_aft_opts+0x259>
jmp    1379 <mesh_3d_aft_opts+0x239>
mov    0x40(%rbp),%edx
mov    -0x38(%rbp),%rax
mov    -0x54(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x54(%rbp)
movslq %ecx,%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
jmp    1362 <mesh_3d_aft_opts+0x222>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x48(%rbp),%rcx
mov    (%rcx),%ecx
shl    $0x2,%ecx
cmp    %ecx,%eax
jge    13d9 <mesh_3d_aft_opts+0x299>
jmp    13b9 <mesh_3d_aft_opts+0x279>
mov    0x40(%rbp),%edx
mov    0x10(%rbp),%rax
mov    -0x54(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x54(%rbp)
movslq %ecx,%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
jmp    13a0 <mesh_3d_aft_opts+0x260>
jmp    13de <mesh_3d_aft_opts+0x29e>
mov    -0x58(%rbp),%eax
add    $0x78,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<mesh_3d_aft_opts>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,%r14
mov    %rcx,%r15
mov    %rdx,%rbx
mov    0x80(%rsp),%r12d
cmpl   $0x0,0x78(%rsp)
je     1194 <mesh_3d_aft_opts+0x54>
mov    %rdi,%r13
mov    (%rdi),%edi
mov    (%rbx),%edx
mov    %rsi,%rbp
mov    %r15,%rcx
mov    %r8,0x8(%rsp)
movsd  %xmm0,0x10(%rsp)
call   1030 <chk3dvert@plt>
mov    %r13,%rdi
movsd  0x10(%rsp),%xmm0
mov    %rbp,%rsi
mov    0x8(%rsp),%r8
mov    0x50(%rsp),%r13
test   %r12d,%r12d
je     11e5 <mesh_3d_aft_opts+0xa5>
cmpl   $0x0,(%rbx)
jle    11c4 <mesh_3d_aft_opts+0x84>
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nop
sub    %r12d,(%r15,%rax,4)
add    $0x1,%rax
movslq (%rbx),%rcx
lea    (%rcx,%rcx,2),%rcx
cmp    %rcx,%rax
jl     11b0 <mesh_3d_aft_opts+0x70>
cmpl   $0x0,(%r14)
jle    11e5 <mesh_3d_aft_opts+0xa5>
xor    %eax,%eax
nopl   0x0(%rax)
sub    %r12d,0x0(%r13,%rax,4)
add    $0x1,%rax
movslq (%r14),%rcx
shl    $0x2,%rcx
cmp    %rcx,%rax
jl     11d0 <mesh_3d_aft_opts+0x90>
mov    0x70(%rsp),%r10d
mov    0x68(%rsp),%eax
mov    0x60(%rsp),%ebp
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    121a <mesh_3d_aft_opts+0xda>
sub    $0x8,%rsp
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %r14,%r9
push   %r10
push   %rax
push   %rbp
push   0x78(%rsp)
push   %r13
call   1060 <mesh3daftss@plt>
jmp    126a <mesh_3d_aft_opts+0x12a>
mov    %rax,%rbp
mov    0x88(%rsp),%r11
test   %r11,%r11
je     124a <mesh_3d_aft_opts+0x10a>
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %r14,%r9
push   %r11
push   %r10
push   %rbp
mov    0x78(%rsp),%eax
push   %rax
push   0x78(%rsp)
push   %r13
call   1050 <mesh3daftuser@plt>
jmp    126a <mesh_3d_aft_opts+0x12a>
sub    $0x8,%rsp
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %r14,%r9
push   %r10
push   %rbp
mov    0x78(%rsp),%eax
push   %rax
push   0x78(%rsp)
push   %r13
call   1040 <mesh3daft@plt>
add    $0x30,%rsp
test   %r12d,%r12d
je     12b5 <mesh_3d_aft_opts+0x175>
cmpl   $0x0,(%rbx)
jle    1294 <mesh_3d_aft_opts+0x154>
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
add    %r12d,(%r15,%rcx,4)
add    $0x1,%rcx
movslq (%rbx),%rdx
lea    (%rdx,%rdx,2),%rdx
cmp    %rdx,%rcx
jl     1280 <mesh_3d_aft_opts+0x140>
cmpl   $0x0,(%r14)
jle    12b5 <mesh_3d_aft_opts+0x175>
xor    %ecx,%ecx
nopl   0x0(%rax)
add    %r12d,0x0(%r13,%rcx,4)
add    $0x1,%rcx
movslq (%r14),%rdx
shl    $0x2,%rdx
cmp    %rdx,%rcx
jl     12a0 <mesh_3d_aft_opts+0x160>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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