#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 */
typedef scalar_t__ z;
typedef scalar_t__ y;
typedef scalar_t__ x;

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ matprod_mat_mat_sub_xrowscols(double *, double *, double *,
                                                 int, int, int, int, int, int,
                                                 int);
void matprod_mat_mat_sub_xrows(double *restrict x, double *restrict y,
                               double *restrict z, int n, int k, int m,
                               int xrows, int zn) {
  assert(k >= 2);
  assert(m >= 2);
  assert(n >= 3);
  assert(xrows >= 3);
  assert(((uintptr_t)(x) & (1 - 1)) == 0);
  assert(((uintptr_t)(y) & (1 - 1)) == 0);
  assert(((uintptr_t)(z) & (1 - 1)) == 0);
  x = (x);
  y = (y);
  z = (z);
  int chunk;
  if (k <= 32 || k <= (chunk = (32 * (1024 - 64) / xrows) & ~7)) {
    matprod_mat_mat_sub_xrowscols(x, y, z, n, k, m, xrows, zn, k, 0);
    return;
  }
  int xcols = k;
  int add = 0;
  while (xcols > 2 * chunk) {
    matprod_mat_mat_sub_xrowscols(x, y, z, n, k, m, xrows, zn, chunk, add);
    x += chunk * n;
    y += chunk;
    xcols -= chunk;
    add = 1;
  }
  if (xcols > chunk) {
    int nc = ((xcols + 1) / 2) & ~3;
    matprod_mat_mat_sub_xrowscols(x, y, z, n, k, m, xrows, zn, nc, add);
    x += nc * n;
    y += nc;
    xcols -= nc;
    add = 1;
  }
  matprod_mat_mat_sub_xrowscols(x, y, z, n, k, m, xrows, zn, xcols, add);
}


x86 assembly (clang, -O0):
<matprod_mat_mat_sub_xrows>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x58,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    %r8d,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
cmpl   $0x2,-0x28(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x2,-0x2c(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x3,-0x24(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x3,0x10(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x10(%rbp),%rax
and    $0x0,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x18(%rbp),%rax
and    $0x0,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x20(%rbp),%rax
and    $0x0,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x20(%rbp)
cmpl   $0x20,-0x28(%rbp)
jle    1219 <matprod_mat_mat_sub_xrows+0xf9>
mov    -0x28(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    $0x7800,%eax
cltd
idivl  0x10(%rbp)
mov    %eax,%ecx
mov    -0x40(%rbp),%eax
and    $0xfffffff8,%ecx
mov    %ecx,-0x30(%rbp)
cmp    %ecx,%eax
jg     125c <matprod_mat_mat_sub_xrows+0x13c>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%r8d
mov    -0x2c(%rbp),%r9d
mov    0x10(%rbp),%r11d
mov    0x18(%rbp),%r10d
mov    -0x28(%rbp),%eax
xor    %ebx,%ebx
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
movl   $0x0,0x18(%rsp)
call   1040 <matprod_mat_mat_sub_xrowscols@plt>
jmp    13d0 <matprod_mat_mat_sub_xrows+0x2b0>
mov    -0x28(%rbp),%eax
mov    %eax,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x34(%rbp),%eax
mov    -0x30(%rbp),%ecx
shl    $0x1,%ecx
cmp    %ecx,%eax
jle    12fa <matprod_mat_mat_sub_xrows+0x1da>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%r8d
mov    -0x2c(%rbp),%r9d
mov    0x10(%rbp),%ebx
mov    0x18(%rbp),%r11d
mov    -0x30(%rbp),%r10d
mov    -0x38(%rbp),%eax
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1040 <matprod_mat_mat_sub_xrowscols@plt>
mov    -0x30(%rbp),%ecx
imul   -0x24(%rbp),%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x30(%rbp),%ecx
mov    -0x18(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x30(%rbp),%ecx
mov    -0x34(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x34(%rbp)
movl   $0x1,-0x38(%rbp)
jmp    1269 <matprod_mat_mat_sub_xrows+0x149>
mov    -0x34(%rbp),%eax
cmp    -0x30(%rbp),%eax
jle    1395 <matprod_mat_mat_sub_xrows+0x275>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
and    $0xfffffffc,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%r8d
mov    -0x2c(%rbp),%r9d
mov    0x10(%rbp),%ebx
mov    0x18(%rbp),%r11d
mov    -0x3c(%rbp),%r10d
mov    -0x38(%rbp),%eax
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1040 <matprod_mat_mat_sub_xrowscols@plt>
mov    -0x3c(%rbp),%ecx
imul   -0x24(%rbp),%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x3c(%rbp),%ecx
mov    -0x18(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x3c(%rbp),%ecx
mov    -0x34(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x34(%rbp)
movl   $0x1,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x24(%rbp),%ecx
mov    -0x28(%rbp),%r8d
mov    -0x2c(%rbp),%r9d
mov    0x10(%rbp),%ebx
mov    0x18(%rbp),%r11d
mov    -0x34(%rbp),%r10d
mov    -0x38(%rbp),%eax
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1040 <matprod_mat_mat_sub_xrowscols@plt>
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<matprod_mat_mat_sub_xrows>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9d,%ebp
mov    %r8d,%r15d
mov    %ecx,%r12d
mov    %rdx,0x10(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
mov    0x70(%rsp),%r13d
xor    %edi,%edi
cmp    $0x2,%r8d
setge  %dil
call   1030 <assert@plt>
xor    %edi,%edi
mov    %ebp,0xc(%rsp)
cmp    $0x2,%ebp
setge  %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmp    $0x3,%r12d
setge  %dil
call   1030 <assert@plt>
xor    %edi,%edi
cmp    $0x3,%r13d
setge  %dil
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    %r15,%r8
cmp    $0x21,%r8d
jl     12c3 <matprod_mat_mat_sub_xrows+0x1a3>
xor    %r10d,%r10d
mov    $0x7800,%eax
xor    %edx,%edx
idiv   %r13d
mov    %eax,%r15d
and    $0xfffffff8,%r15d
cmp    %r8d,%r15d
jge    12c3 <matprod_mat_mat_sub_xrows+0x1a3>
mov    %r12d,0x8(%rsp)
lea    (%r15,%r15,1),%ebp
cmp    %r8d,%ebp
mov    %r8,0x28(%rsp)
jge    12e9 <matprod_mat_mat_sub_xrows+0x1c9>
mov    %r15d,%eax
mov    0x8(%rsp),%ecx
imul   %ecx,%eax
cltq
mov    %rax,0x20(%rsp)
movslq %r15d,%rax
mov    %rax,0x18(%rsp)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    0x10(%rsp),%r12
mov    %r12,%rdx
mov    0xc(%rsp),%r9d
push   $0x0
push   %r15
mov    0x88(%rsp),%eax
push   %rax
push   %r13
call   1040 <matprod_mat_mat_sub_xrowscols@plt>
mov    0x48(%rsp),%r8
add    $0x20,%rsp
mov    0x20(%rsp),%rax
lea    (%rbx,%rax,8),%rbx
mov    0x18(%rsp),%rax
lea    (%r14,%rax,8),%r14
mov    %r8d,%r13d
sub    %r15d,%r13d
mov    $0x1,%r10d
cmp    %ebp,%r13d
jle    12f3 <matprod_mat_mat_sub_xrows+0x1d3>
shlq   $0x3,0x20(%rsp)
shlq   $0x3,0x18(%rsp)
mov    %ebp,0x34(%rsp)
mov    0xc(%rsp),%r12d
mov    0x8(%rsp),%ebp
nopl   (%rax)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    0x10(%rsp),%rdx
mov    %ebp,%ecx
mov    %r12d,%r9d
push   $0x1
push   %r15
mov    0x88(%rsp),%eax
push   %rax
mov    0x88(%rsp),%eax
push   %rax
call   1040 <matprod_mat_mat_sub_xrowscols@plt>
mov    0x48(%rsp),%r8
add    $0x20,%rsp
sub    %r15d,%r13d
add    0x20(%rsp),%rbx
add    0x18(%rsp),%r14
cmp    0x34(%rsp),%r13d
jg     1270 <matprod_mat_mat_sub_xrows+0x150>
mov    0x10(%rsp),%rdx
mov    $0x1,%r10d
jmp    12f6 <matprod_mat_mat_sub_xrows+0x1d6>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    0x10(%rsp),%rdx
mov    %r12d,%ecx
mov    0xc(%rsp),%r9d
push   $0x0
push   %r8
mov    0x88(%rsp),%eax
push   %rax
push   %r13
jmp    1390 <matprod_mat_mat_sub_xrows+0x270>
mov    %r8d,%r13d
mov    0x10(%rsp),%rdx
jmp    12f6 <matprod_mat_mat_sub_xrows+0x1d6>
mov    %r12,%rdx
cmp    %r15d,%r13d
mov    0x8(%rsp),%ecx
jle    1375 <matprod_mat_mat_sub_xrows+0x255>
lea    0x1(%r13),%eax
shr    $0x1f,%eax
lea    (%rax,%r13,1),%r15d
add    $0x1,%r15d
sar    %r15d
and    $0xfffffffc,%r15d
mov    %rbx,%rdi
mov    %r14,%rsi
mov    0xc(%rsp),%ebp
mov    %ebp,%r9d
push   %r10
push   %r15
mov    0x88(%rsp),%eax
push   %rax
mov    0x88(%rsp),%r12d
push   %r12
call   1040 <matprod_mat_mat_sub_xrowscols@plt>
mov    0x48(%rsp),%r8
add    $0x20,%rsp
movslq %r15d,%rax
imul   0x8(%rsp),%r15d
movslq %r15d,%rcx
lea    (%rbx,%rcx,8),%rbx
lea    (%r14,%rax,8),%r14
sub    %eax,%r13d
mov    0x78(%rsp),%eax
mov    %ebp,%r9d
mov    0x10(%rsp),%rdx
mov    0x8(%rsp),%ecx
mov    $0x1,%r10d
jmp    1383 <matprod_mat_mat_sub_xrows+0x263>
mov    0x70(%rsp),%r12d
mov    0x78(%rsp),%eax
mov    0xc(%rsp),%r9d
mov    %rbx,%rdi
mov    %r14,%rsi
push   %r10
push   %r13
push   %rax
push   %r12
call   1040 <matprod_mat_mat_sub_xrowscols@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @matprod_mat_mat_sub_xrows(double* noalias %0, double* noalias %1, double* noalias %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = icmp sgt i32 %4, 1
%10 = zext i1 %9 to i32
%11 = tail call i32 @assert(i32 %10)
%12 = icmp sgt i32 %5, 1
%13 = zext i1 %12 to i32
%14 = tail call i32 @assert(i32 %13)
%15 = icmp sgt i32 %3, 2
%16 = zext i1 %15 to i32
%17 = tail call i32 @assert(i32 %16)
%18 = icmp sgt i32 %6, 2
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 %19)
%21 = tail call i32 @assert(i32 1)
%22 = tail call i32 @assert(i32 1)
%23 = tail call i32 @assert(i32 1)
%24 = icmp slt i32 %4, 33
br i1 %24, label %41, label %25
25: ; preds = %8
%26 = sdiv i32 30720, %6
%27 = and i32 %26, -8
%28 = icmp slt i32 %27, %4
br i1 %28, label %29, label %41
29: ; preds = %25
%30 = shl nsw i32 %27, 1
%31 = icmp slt i32 %30, %4
br i1 %31, label %32, label %52
32: ; preds = %29
%33 = mul nsw i32 %27, %3
%34 = sext i32 %33 to i64
%35 = sext i32 %27 to i64
%36 = tail call i32 @matprod_mat_mat_sub_xrowscols(double* %0, double* %1, double* %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %27, i32 0)
%37 = getelementptr inbounds double, double* %0, i64 %34
%38 = getelementptr inbounds double, double* %1, i64 %35
%39 = sub nsw i32 %4, %27
%40 = icmp sgt i32 %39, %30
br i1 %40, label %43, label %52
41: ; preds = %25, %8
%42 = tail call i32 @matprod_mat_mat_sub_xrowscols(double* %0, double* %1, double* %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %4, i32 0)
br label %75
43: ; preds = %32, %43
%44 = phi double* [ %48, %43 ], [ %37, %32 ]
%45 = phi i32 [ %50, %43 ], [ %39, %32 ]
%46 = phi double* [ %49, %43 ], [ %38, %32 ]
%47 = tail call i32 @matprod_mat_mat_sub_xrowscols(double* %44, double* %46, double* %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %27, i32 1)
%48 = getelementptr inbounds double, double* %44, i64 %34
%49 = getelementptr inbounds double, double* %46, i64 %35
%50 = sub nsw i32 %45, %27
%51 = icmp sgt i32 %50, %30
br i1 %51, label %43, label %52
52: ; preds = %43, %32, %29
%53 = phi double* [ %1, %29 ], [ %38, %32 ], [ %49, %43 ]
%54 = phi i32 [ %4, %29 ], [ %39, %32 ], [ %50, %43 ]
%55 = phi i32 [ 0, %29 ], [ 1, %32 ], [ 1, %43 ]
%56 = phi double* [ %0, %29 ], [ %37, %32 ], [ %48, %43 ]
%57 = icmp sgt i32 %54, %27
br i1 %57, label %58, label %69
58: ; preds = %52
%59 = add nsw i32 %54, 1
%60 = sdiv i32 %59, 2
%61 = and i32 %60, -4
%62 = tail call i32 @matprod_mat_mat_sub_xrowscols(double* %56, double* %53, double* %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %61, i32 %55)
%63 = mul nsw i32 %61, %3
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, double* %56, i64 %64
%66 = sext i32 %61 to i64
%67 = getelementptr inbounds double, double* %53, i64 %66
%68 = sub nsw i32 %54, %61
br label %69
69: ; preds = %58, %52
%70 = phi double* [ %67, %58 ], [ %53, %52 ]
%71 = phi i32 [ %68, %58 ], [ %54, %52 ]
%72 = phi i32 [ 1, %58 ], [ %55, %52 ]
%73 = phi double* [ %65, %58 ], [ %56, %52 ]
%74 = tail call i32 @matprod_mat_mat_sub_xrowscols(double* %73, double* %70, double* %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %71, i32 %72)
br label %75
75: ; preds = %69, %41
ret void
}