// File: /workspace/github_cpp_makefile_star2_O2/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 $0xa8, %rsp
pushq $0x20
popq %rbx
movq %rbx, %rdi
callq 0x2190
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
pushq $0x3
popq %rbp
movq %rax, 0x28(%rsp)
movq %rax, %rdi
movl %ebp, %esi
callq 0x23cc
movq %rbx, %rdi
callq 0x2190
movq %rax, %r14
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rax, %rdi
movl %ebp, %esi
callq 0x23cc
movq %rbx, %rdi
callq 0x2190
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rax, %rdi
movl %ebp, %esi
callq 0x23cc
movq %rbx, %rdi
callq 0x2190
movq %rax, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movq %rax, %rdi
movl %ebp, %esi
callq 0x23cc
movabsq $0x200000001, %rax      # imm = 0x200000001
leaq 0x9c(%rsp), %rsi
movq %rax, (%rsi)
movl $0xfffffffd, 0x8(%rsi)  # imm = 0xFFFFFFFD
leaq 0x30(%rsp), %r13
pushq $0x3
popq %rdx
leaq 0x27(%rsp), %rcx
movq %r13, %rdi
callq 0x716a
leaq 0x48(%rsp), %r12
movabsq $0x300000001, %rax      # imm = 0x300000001
leaq 0x90(%rsp), %rsi
movq %rax, (%rsi)
andl $0x0, 0x8(%rsi)
pushq $0x3
popq %rdx
leaq 0x26(%rsp), %rcx
movq %r12, %rdi
callq 0x716a
leaq 0x60(%rsp), %r12
movabsq $-0xfffffffe, %rax      # imm = 0xFFFFFFFF00000002
leaq 0x84(%rsp), %rsi
movq %rax, (%rsi)
movl $0x1, 0x8(%rsi)
pushq $0x3
popq %rdx
leaq 0x25(%rsp), %rcx
movq %r12, %rdi
callq 0x716a
movq %rbx, 0x78(%rsp)
movq 0x28(%rsp), %rax
leaq 0x8(%rax), %rdi
leaq 0x78(%rsp), %rdx
leaq 0x30(%rsp), %rsi
callq 0x86b8
movq %r14, %rbp
addq $0x8, %rbp
movq %r15, %r13
addq $0x8, %r13
pushq $0x30
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x30, %rdi
callq 0x8634
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x3da9
movabsq $0x100000002, %r12      # imm = 0x100000002
leaq 0x9c(%rsp), %rsi
movq %r12, (%rsi)
andl $0x0, 0x8(%rsi)
leaq 0x30(%rsp), %rdi
pushq $0x3
popq %rdx
leaq 0x27(%rsp), %rcx
callq 0x716a
leaq 0x48(%rsp), %rbx
leaq 0x90(%rsp), %rsi
movq $-0x2, (%rsi)
movl $0x1, 0x8(%rsi)
pushq $0x3
popq %rdx
leaq 0x26(%rsp), %rcx
movq %rbx, %rdi
callq 0x716a
leaq 0x60(%rsp), %rbx
leaq 0x84(%rsp), %rsi
movq %r12, (%rsi)
movl $0xfffffffd, 0x8(%rsi)  # imm = 0xFFFFFFFD
pushq $0x3
popq %rdx
leaq 0x25(%rsp), %rcx
movq %rbx, %rdi
callq 0x716a
leaq 0x78(%rsp), %rdx
leaq 0x30(%rsp), %rsi
movq %rbp, %rdi
callq 0x86b8
pushq $0x30
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x30, %rdi
callq 0x8634
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x3e52
movabsq $-0x300000008, %rax     # imm = 0xFFFFFFFCFFFFFFF8
leaq 0x9c(%rsp), %rsi
movq %rax, (%rsi)
movl $0xb, 0x8(%rsi)
leaq 0x30(%rsp), %rbp
pushq $0x3
popq %rdx
leaq 0x27(%rsp), %rcx
movq %rbp, %rdi
callq 0x716a
leaq 0x48(%rsp), %r12
movabsq $-0x100000004, %rax     # imm = 0xFFFFFFFEFFFFFFFC
leaq 0x90(%rsp), %rsi
movq %rax, (%rsi)
movl $0x3, 0x8(%rsi)
pushq $0x3
popq %rdx
leaq 0x26(%rsp), %rcx
movq %r12, %rdi
callq 0x716a
leaq 0x60(%rsp), %r12
movabsq $0x400000008, %rax      # imm = 0x400000008
leaq 0x84(%rsp), %rsi
movq %rax, (%rsi)
movl $0xfffffffc, 0x8(%rsi)  # imm = 0xFFFFFFFC
pushq $0x3
popq %rdx
leaq 0x25(%rsp), %rcx
movq %r12, %rdi
callq 0x716a
leaq 0x78(%rsp), %rdx
leaq 0x30(%rsp), %rsi
movq %r13, %rdi
callq 0x86b8
pushq $0x30
popq %rbx
movq 0x28(%rsp), %r12
leaq (%rsp,%rbx), %rdi
addq $0x30, %rdi
callq 0x8634
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x3f16
andl $0x0, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
andl $0x0, (%rsp)
movl $0x3, 0x18(%rsp)
movq %r12, %rdi
movq %r14, %rsi
movq 0x78(%rsp), %rbx
movq %rbx, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x2757
movq %rbx, %rdi
movq %r15, %rsi
callq 0x24a3
testb %al, %al
je 0x3fb2
movq %r12, %rdi
callq 0x21a0
movq %r14, %rdi
callq 0x21a0
movq %r15, %rdi
callq 0x21a0
movq 0xb044(%rip), %rdi      # 0xefd0
leaq 0x5aea(%rip), %rsi      # 0x9a7d
callq 0x2180
movq %rax, %rdi
callq 0x20e0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5a99(%rip), %rdi      # 0x9a52
leaq 0x5aa0(%rip), %rsi      # 0x9a60
leaq 0x5aa2(%rip), %rcx      # 0x9a69
movl $0x1d9, %edx            # imm = 0x1D9
callq 0x2110
movq %rax, %r14
pushq $0x30
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x30, %rdi
callq 0x8634
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x3fd7
jmp 0x4085
jmp 0x3ff5
movq %rax, %r14
addq $-0x18, %r12
movq %r12, %rdi
callq 0x8634
cmpq %rbp, %r12
jne 0x3ff8
jmp 0x4085
jmp 0x4082
movq %rax, %r14
pushq $0x30
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x30, %rdi
callq 0x8634
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x4013
jmp 0x4085
jmp 0x402e
movq %rax, %r14
leaq 0x30(%rsp), %r15
addq $-0x18, %rbx
movq %rbx, %rdi
callq 0x8634
cmpq %r15, %rbx
jne 0x4036
jmp 0x4085
jmp 0x4082
movq %rax, %r14
pushq $0x30
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x30, %rdi
callq 0x8634
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x4051
jmp 0x4085
jmp 0x406c
movq %rax, %r14
addq $-0x18, %r12
movq %r12, %rdi
callq 0x8634
cmpq %r13, %r12
jne 0x406f
jmp 0x4085
movq %rax, %r14
movq %r14, %rdi
callq 0x2270