#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_trans2_sub_xrowscols(double *, double *, double *,
                                                int, int, int, int, int, int,
                                                int, int, double *);
void matprod_trans2_sub_xrows(double *restrict x, double *restrict y,
                              double *restrict z, int n, int k, int m,
                              int xrows, int yrows, double *sym) {
  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);
  assert(xrows <= (1024 - 64));
  int chunk;
  if (k <= 32 || k <= (chunk = (32 * (1024 - 64) / xrows) & ~7)) {
    matprod_trans2_sub_xrowscols(x, y, z, n, k, m, xrows, yrows, k, 0, 1, sym);
    return;
  }
  int xcols = k;
  int add = 0;
  while (xcols > 2 * chunk) {
    matprod_trans2_sub_xrowscols(x, y, z, n, k, m, xrows, yrows, chunk, add, 0,
                                 sym);
    x += (size_t)chunk * n;
    y += (size_t)chunk * m;
    xcols -= chunk;
    add = 1;
  }
  if (xcols > chunk) {
    int nc = ((xcols + 1) / 2) & ~3;
    matprod_trans2_sub_xrowscols(x, y, z, n, k, m, xrows, yrows, nc, add, 0,
                                 sym);
    x += (size_t)nc * n;
    y += (size_t)nc * m;
    xcols -= nc;
    add = 1;
  }
  matprod_trans2_sub_xrowscols(x, y, z, n, k, m, xrows, yrows, xcols, add, 1,
                               sym);
}


x86 assembly (clang, -O0):
<matprod_trans2_sub_xrows>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x68,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %ecx,-0x34(%rbp)
mov    %r8d,-0x38(%rbp)
mov    %r9d,-0x3c(%rbp)
mov    -0x20(%rbp),%rax
and    $0x0,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x28(%rbp),%rax
and    $0x0,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x30(%rbp),%rax
and    $0x0,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x30(%rbp)
cmpl   $0x3c0,0x10(%rbp)
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x20,-0x38(%rbp)
jle    11f1 <matprod_trans2_sub_xrows+0xd1>
mov    -0x38(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    $0x7800,%eax
cltd
idivl  0x10(%rbp)
mov    %eax,%ecx
mov    -0x50(%rbp),%eax
and    $0xfffffff8,%ecx
mov    %ecx,-0x40(%rbp)
cmp    %ecx,%eax
jg     1246 <matprod_trans2_sub_xrows+0x126>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x34(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x3c(%rbp),%r9d
mov    0x10(%rbp),%ebx
mov    0x18(%rbp),%r11d
mov    -0x38(%rbp),%r10d
mov    0x20(%rbp),%rax
xor    %r14d,%r14d
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x1,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1040 <matprod_trans2_sub_xrowscols@plt>
jmp    13fd <matprod_trans2_sub_xrows+0x2dd>
mov    -0x38(%rbp),%eax
mov    %eax,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x44(%rbp),%eax
mov    -0x40(%rbp),%ecx
shl    $0x1,%ecx
cmp    %ecx,%eax
jle    12fc <matprod_trans2_sub_xrows+0x1dc>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x34(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x3c(%rbp),%r9d
mov    0x10(%rbp),%r14d
mov    0x18(%rbp),%ebx
mov    -0x40(%rbp),%r11d
mov    -0x48(%rbp),%r10d
mov    0x20(%rbp),%rax
xor    %r15d,%r15d
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
movl   $0x0,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1040 <matprod_trans2_sub_xrowscols@plt>
movslq -0x40(%rbp),%rax
movslq -0x34(%rbp),%rcx
imul   %rcx,%rax
shl    $0x3,%rax
add    -0x20(%rbp),%rax
mov    %rax,-0x20(%rbp)
movslq -0x40(%rbp),%rax
movslq -0x3c(%rbp),%rcx
imul   %rcx,%rax
shl    $0x3,%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x40(%rbp),%ecx
mov    -0x44(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x44(%rbp)
movl   $0x1,-0x48(%rbp)
jmp    1253 <matprod_trans2_sub_xrows+0x133>
mov    -0x44(%rbp),%eax
cmp    -0x40(%rbp),%eax
jle    13af <matprod_trans2_sub_xrows+0x28f>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
and    $0xfffffffc,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x34(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x3c(%rbp),%r9d
mov    0x10(%rbp),%r14d
mov    0x18(%rbp),%ebx
mov    -0x4c(%rbp),%r11d
mov    -0x48(%rbp),%r10d
mov    0x20(%rbp),%rax
xor    %r15d,%r15d
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
movl   $0x0,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1040 <matprod_trans2_sub_xrowscols@plt>
movslq -0x4c(%rbp),%rax
movslq -0x34(%rbp),%rcx
imul   %rcx,%rax
shl    $0x3,%rax
add    -0x20(%rbp),%rax
mov    %rax,-0x20(%rbp)
movslq -0x4c(%rbp),%rax
movslq -0x3c(%rbp),%rcx
imul   %rcx,%rax
shl    $0x3,%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x4c(%rbp),%ecx
mov    -0x44(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x44(%rbp)
movl   $0x1,-0x48(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x34(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x3c(%rbp),%r9d
mov    0x10(%rbp),%r14d
mov    0x18(%rbp),%ebx
mov    -0x44(%rbp),%r11d
mov    -0x48(%rbp),%r10d
mov    0x20(%rbp),%rax
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
movl   $0x1,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1040 <matprod_trans2_sub_xrowscols@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<matprod_trans2_sub_xrows>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9d,%r13d
mov    %r8d,%r14d
mov    %ecx,%r12d
mov    %rdx,0x8(%rsp)
mov    %rsi,%rbp
mov    %rdi,%rbx
mov    0x80(%rsp),%r15d
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
xor    %edi,%edi
cmp    $0x3c1,%r15d
setl   %dil
call   1030 <assert@plt>
mov    %r15,%r10
mov    %r14,%r8
cmp    $0x21,%r8d
jl     12d3 <matprod_trans2_sub_xrows+0x1b3>
mov    $0x7800,%eax
xor    %edx,%edx
idiv   %r10d
mov    %eax,%r14d
and    $0xfffffff8,%r14d
cmp    %r8d,%r14d
jge    12d3 <matprod_trans2_sub_xrows+0x1b3>
xor    %eax,%eax
mov    %rax,0x18(%rsp)
lea    (%r14,%r14,1),%edx
movslq %r12d,%r11
movslq %r13d,%r15
cmp    %r8d,%edx
mov    %r8,0x20(%rsp)
mov    %r13d,0x4(%rsp)
mov    %r12d,(%rsp)
jge    12fe <matprod_trans2_sub_xrows+0x1de>
movslq %r14d,%r12
mov    %r12,%r13
imul   %r11,%r13
imul   %r15,%r12
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %edx,0x14(%rsp)
mov    0x8(%rsp),%rdx
mov    %r11,0x28(%rsp)
mov    %r11d,%ecx
mov    %r15d,%r9d
push   0x90(%rsp)
push   $0x0
push   $0x0
push   %r14
mov    0xa8(%rsp),%eax
push   %rax
push   %r10
call   1040 <matprod_trans2_sub_xrowscols@plt>
mov    0x50(%rsp),%r8
add    $0x30,%rsp
mov    %r13,0x30(%rsp)
lea    (%rbx,%r13,8),%rbx
mov    %r12,0x38(%rsp)
lea    0x0(%rbp,%r12,8),%rbp
mov    %r8d,%r13d
sub    %r14d,%r13d
mov    $0x1,%eax
mov    %rax,0x18(%rsp)
cmp    0x14(%rsp),%r13d
jle    132d <matprod_trans2_sub_xrows+0x20d>
mov    %r15,0x40(%rsp)
shlq   $0x3,0x30(%rsp)
shlq   $0x3,0x38(%rsp)
mov    0x4(%rsp),%r12d
mov    0x8(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    (%rsp),%ecx
mov    %r12d,%r9d
push   0x90(%rsp)
push   $0x0
push   $0x1
push   %r14
mov    0xa8(%rsp),%eax
push   %rax
mov    0xa8(%rsp),%eax
push   %rax
call   1040 <matprod_trans2_sub_xrowscols@plt>
mov    0x50(%rsp),%r8
add    $0x30,%rsp
sub    %r14d,%r13d
add    0x30(%rsp),%rbx
add    0x38(%rsp),%rbp
cmp    0x14(%rsp),%r13d
jg     1270 <matprod_trans2_sub_xrows+0x150>
mov    0x80(%rsp),%r10d
mov    %r12d,%r9d
mov    (%rsp),%ecx
mov    0x40(%rsp),%r15
jmp    1340 <matprod_trans2_sub_xrows+0x220>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    0x8(%rsp),%rdx
mov    %r12d,%ecx
mov    %r13d,%r9d
push   0x90(%rsp)
push   $0x1
push   $0x0
push   %r8
mov    0xa8(%rsp),%eax
push   %rax
jmp    13f1 <matprod_trans2_sub_xrows+0x2d1>
mov    %r13d,%r9d
mov    %r12d,%ecx
mov    %r8d,%r13d
cmp    %r14d,%r13d
jg     134a <matprod_trans2_sub_xrows+0x22a>
mov    0x88(%rsp),%eax
mov    %rax,%r14
mov    0x90(%rsp),%rax
mov    0x8(%rsp),%rdx
mov    0x18(%rsp),%r11
jmp    13e2 <matprod_trans2_sub_xrows+0x2c2>
mov    0x80(%rsp),%r12d
mov    %r12,%r10
mov    0x4(%rsp),%r9d
mov    (%rsp),%ecx
mov    0x28(%rsp),%r11
cmp    %r14d,%r13d
jle    130c <matprod_trans2_sub_xrows+0x1ec>
lea    0x1(%r13),%eax
shr    $0x1f,%eax
lea    (%rax,%r13,1),%r14d
add    $0x1,%r14d
sar    %r14d
and    $0xfffffffc,%r14d
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    0x8(%rsp),%rdx
mov    (%rsp),%ecx
mov    0x4(%rsp),%r9d
mov    0x90(%rsp),%rax
push   %rax
push   $0x0
push   0x28(%rsp)
push   %r14
mov    0xa8(%rsp),%eax
push   %rax
push   %r10
mov    %r11,%r12
call   1040 <matprod_trans2_sub_xrowscols@plt>
mov    0xb0(%rsp),%r10d
mov    0x50(%rsp),%r8
mov    0x30(%rsp),%ecx
mov    0x34(%rsp),%r9d
add    $0x30,%rsp
movslq %r14d,%rax
mov    0x88(%rsp),%r14d
mov    0x8(%rsp),%rdx
imul   %rax,%r12
lea    (%rbx,%r12,8),%rbx
imul   %rax,%r15
lea    0x0(%rbp,%r15,8),%rbp
sub    %eax,%r13d
mov    0x90(%rsp),%rax
mov    $0x1,%r11d
mov    %rbx,%rdi
mov    %rbp,%rsi
push   %rax
push   $0x1
push   %r11
push   %r13
push   %r14
push   %r10
call   1040 <matprod_trans2_sub_xrowscols@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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