// File: /workspace/github_cpp_makefile_star2_O1/aronszanto[P]strassen/main.cpp
// Function: testConvMult()
void testConvMult(){
    Matrix* A = new Matrix();
    initMatrix(A,3);
    Matrix* B = new Matrix();
    initMatrix(B,3);
    Matrix* C = new Matrix();
    initMatrix(C,3);
    Matrix* D = new Matrix();
    initMatrix(D,3);

    A->matrix = {{1, 2, -3}, {1, 3, 0}, {2, -1, 1}};
    B->matrix = {{2, 1, 0}, {-2, -1, 1}, {2, 1, -3}};
    C->matrix = {{-8, -4, 11}, {-4, -2, 3}, {8, 4, -4}};
    
    convMult(A,B,D,0,0,0,0,0,0,3);
 
    assert(isEqual(D, C));
    free(A);
    free(B);
    free(C);
    cout << "all conventional tests pass" << endl;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl $0x20, %edi
callq 0x21b0
movq %rax, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rax, %rdi
movl $0x3, %esi
callq 0x245c
movl $0x20, %edi
callq 0x21b0
movq %rax, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rax, %rdi
movl $0x3, %esi
callq 0x245c
movl $0x20, %edi
callq 0x21b0
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rax, %rdi
movl $0x3, %esi
callq 0x245c
movl $0x20, %edi
callq 0x21b0
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rax, 0x58(%rsp)
movq %rax, %rdi
movl $0x3, %esi
callq 0x245c
movabsq $0x200000001, %rax      # imm = 0x200000001
leaq 0x7c(%rsp), %rsi
movq %rax, (%rsi)
movl $0xfffffffd, 0x8(%rsi)  # imm = 0xFFFFFFFD
leaq 0x8(%rsp), %rbp
leaq 0x7(%rsp), %rcx
movl $0x3, %edx
movq %rbp, %rdi
callq 0x7bbe
leaq 0x20(%rsp), %r13
movabsq $0x300000001, %rax      # imm = 0x300000001
leaq 0x70(%rsp), %rsi
movq %rax, (%rsi)
movl $0x0, 0x8(%rsi)
leaq 0x6(%rsp), %rcx
movl $0x3, %edx
movq %r13, %rdi
callq 0x7bbe
leaq 0x38(%rsp), %r13
movabsq $-0xfffffffe, %rax      # imm = 0xFFFFFFFF00000002
leaq 0x64(%rsp), %rsi
movq %rax, (%rsi)
movl $0x1, 0x8(%rsi)
leaq 0x5(%rsp), %rcx
movl $0x3, %edx
movq %r13, %rdi
callq 0x7bbe
movq %rbx, 0x50(%rsp)
leaq 0x8(%rbx), %rdi
leaq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rsi
callq 0x8322
movq %r12, %r14
addq $0x8, %r14
movq %r15, %r13
addq $0x8, %r13
movl $0x30, %ebx
movq 0x8(%rsp,%rbx), %rdi
testq %rdi, %rdi
je 0x402c
callq 0x2190
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x401d
movabsq $0x100000002, %rbx      # imm = 0x100000002
leaq 0x7c(%rsp), %rsi
movq %rbx, (%rsi)
movl $0x0, 0x8(%rsi)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rcx
movl $0x3, %edx
callq 0x7bbe
leaq 0x20(%rsp), %rbp
leaq 0x70(%rsp), %rsi
movq $-0x2, (%rsi)
movl $0x1, 0x8(%rsi)
leaq 0x6(%rsp), %rcx
movl $0x3, %edx
movq %rbp, %rdi
callq 0x7bbe
leaq 0x38(%rsp), %rbp
leaq 0x64(%rsp), %rsi
movq %rbx, (%rsi)
movl $0xfffffffd, 0x8(%rsi)  # imm = 0xFFFFFFFD
leaq 0x5(%rsp), %rcx
movl $0x3, %edx
movq %rbp, %rdi
callq 0x7bbe
leaq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x8322
movl $0x30, %ebx
movq 0x8(%rsp,%rbx), %rdi
testq %rdi, %rdi
je 0x40d9
callq 0x2190
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x40ca
movabsq $-0x300000008, %rax     # imm = 0xFFFFFFFCFFFFFFF8
leaq 0x7c(%rsp), %rsi
movq %rax, (%rsi)
movl $0xb, 0x8(%rsi)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rcx
movl $0x3, %edx
movq %rdi, %rbx
callq 0x7bbe
leaq 0x20(%rsp), %rbp
movabsq $-0x100000004, %rax     # imm = 0xFFFFFFFEFFFFFFFC
leaq 0x70(%rsp), %rsi
movq %rax, (%rsi)
movl $0x3, 0x8(%rsi)
leaq 0x6(%rsp), %rcx
movl $0x3, %edx
movq %rbp, %rdi
callq 0x7bbe
leaq 0x38(%rsp), %rbp
movabsq $0x400000008, %rax      # imm = 0x400000008
leaq 0x64(%rsp), %rsi
movq %rax, (%rsi)
movl $0xfffffffc, 0x8(%rsi)  # imm = 0xFFFFFFFC
leaq 0x5(%rsp), %rcx
movl $0x3, %edx
movq %rbp, %rdi
callq 0x7bbe
leaq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rsi
movq %r13, %rdi
callq 0x8322
movl $0x30, %ebx
movq 0x8(%rsp,%rbx), %rdi
testq %rdi, %rdi
je 0x4199
callq 0x2190
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x418a
xorl %eax, %eax
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
movq 0x58(%rsp), %r14
movq %r14, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq $0x3
pushq %rax
pushq %rax
pushq %rax
callq 0x2822
addq $0x20, %rsp
movq %r14, %rdi
movq %r15, %rsi
callq 0x257a
testb %al, %al
je 0x4249
movq %rbx, %rdi
callq 0x21d0
movq %r12, %rdi
callq 0x21d0
movq %r15, %rdi
callq 0x21d0
movq 0x9ddc(%rip), %rbx      # 0xdfd8
leaq 0x58aa(%rip), %rsi      # 0x9aad
movl $0x1b, %edx
movq %rbx, %rdi
callq 0x21c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5832(%rip), %rdi      # 0x9a82
leaq 0x5839(%rip), %rsi      # 0x9a90
leaq 0x583b(%rip), %rcx      # 0x9a99
movl $0x1d9, %edx            # imm = 0x1D9
callq 0x2100
movq %rax, %r15
movl $0x30, %r14d
movq 0x8(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x4280
callq 0x2190
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x4271
movb $0x1, %al
jmp 0x429f
jmp 0x4290
movq %rax, %r15
xorl %eax, %eax
jmp 0x429f
movq %rax, %r15
xorl %eax, %eax
movq %rbx, %rbp
cmpq %rbp, %rbx
sete %cl
orb %al, %cl
jne 0x4391
leaq 0x8(%rsp), %r14
movq -0x18(%rbp), %rdi
testq %rdi, %rdi
je 0x42c0
callq 0x2190
addq $-0x18, %rbp
cmpq %r14, %rbp
jne 0x42b2
jmp 0x4391
movq %rax, %r15
movl $0x30, %r14d
movq 0x8(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x42e6
callq 0x2190
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x42d7
movb $0x1, %al
jmp 0x4307
jmp 0x42f6
movq %rax, %r15
xorl %eax, %eax
jmp 0x4307
movq %rax, %r15
xorl %eax, %eax
leaq 0x8(%rsp), %rbp
leaq 0x8(%rsp), %rcx
cmpq %rbp, %rcx
sete %cl
orb %al, %cl
jne 0x4391
leaq 0x8(%rsp), %r14
movq -0x18(%rbp), %rdi
testq %rdi, %rdi
je 0x4329
callq 0x2190
addq $-0x18, %rbp
cmpq %r14, %rbp
jne 0x431b
jmp 0x4391
movq %rax, %r15
movl $0x30, %r14d
movq 0x8(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x434c
callq 0x2190
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x433d
movb $0x1, %al
jmp 0x436b
jmp 0x435c
movq %rax, %r15
xorl %eax, %eax
jmp 0x436b
movq %rax, %r15
xorl %eax, %eax
movq %rbp, %r13
cmpq %r13, %rbp
sete %cl
orb %al, %cl
jne 0x4391
leaq 0x8(%rsp), %r14
movq -0x18(%r13), %rdi
testq %rdi, %rdi
je 0x4388
callq 0x2190
addq $-0x18, %r13
cmpq %r14, %r13
jne 0x437a
movq %r15, %rdi
callq 0x22b0