// File: /workspace/github_cpp_makefile_star2_O2/pdx-cs-tutors[P]pdp/main.cpp
// Function: main
int main(int argc, char **argv) {
    std::map<std::string, std::map<std::string, BaseTestSuite*>> suites;

    suites["lll"] = {
        {"insertion", new LLLInsertionTests()},
        {"removal", new LLLRemovalTests()}
    };

    suites["cll"] = {
        {"insertion", new CLLInsertionTests()},
        {"removal", new CLLRemovalTests()}
    };

    int errored = 0;

    if (argc == 1 || strcmp(argv[1], "all") == 0) {
        for (auto suite : suites) {
            for (auto set : suite.second) {
                set.second->run();
            }
        }
    } else if (argc == 2) {
        auto it = suites.find(argv[1]);
        if (it == suites.end()) {
            print_no_match(argv[1]);
            errored = 1;
        } else {
            for (auto set : suites[argv[1]]) {
                set.second->run();
            }
        }
    } else if (argc > 2) {
        auto it = suites[argv[1]].find(argv[2]);
        if (it == suites[argv[1]].end()) {
            std::stringstream ss;
            ss << argv[1] << " " << argv[2];
            print_no_match(ss.str());
            errored = 1;
        } else {
            if (argc > 3) {
                if (!suites[argv[1]][argv[2]]->run(argv[3])) {
                    std::stringstream ss;
                    ss << argv[1] << " " << argv[2] << " " << argv[3];
                    print_no_match(ss.str());
                }
            } else {
                suites[argv[1]][argv[2]]->run();
            }
        }
    }

    for (auto const& pair : suites) {
        for (auto const& suite : suites[pair.first]) {
            if (suite.second) delete suite.second;
        }
    }

    return errored;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2e8, %rsp            # imm = 0x2E8
movq %rsi, %rbx
movl %edi, %r15d
leaq -0x90(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
movl $0x98, %edi
callq 0xd7d0
movq %rax, %r14
movq %rax, %rdi
callq 0xd090
leaq -0x38(%rbp), %rdx
movq %r14, (%rdx)
leaq 0x3311(%rip), %rsi      # 0x18c88
leaq -0x228(%rbp), %rdi
callq 0xd770
movl $0x98, %edi
callq 0xd7d0
movq %rax, %r14
movq %rax, %rdi
callq 0xd600
leaq -0x200(%rbp), %rdi
leaq -0x68(%rbp), %rdx
movq %r14, (%rdx)
leaq 0x32e5(%rip), %rsi      # 0x18c92
callq 0xdef0
leaq 0x32e1(%rip), %rsi      # 0x18c9a
leaq -0x60(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0xd2c0
leaq -0x98(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0xdc50
leaq -0x1d8(%rbp), %rdx
leaq -0x228(%rbp), %rsi
movq %rax, %rdi
callq 0xd400
leaq -0x60(%rbp), %rdi
callq 0xd300
pushq $0x28
popq %r14
leaq (%r14,%rbp), %rdi
addq $-0x228, %rdi           # imm = 0xFDD8
callq 0xd300
addq $-0x28, %r14
cmpq $-0x28, %r14
jne 0x159f9
movl $0x98, %edi
callq 0xd7d0
movq %rax, %r14
movq %rax, %rdi
callq 0xd8b0
leaq -0x38(%rbp), %rdx
movq %r14, (%rdx)
leaq 0x3252(%rip), %rsi      # 0x18c88
leaq -0x228(%rbp), %rdi
callq 0xd250
movl $0x98, %edi
callq 0xd7d0
movq %rax, %r14
movq %rax, %rdi
callq 0xdb00
leaq -0x200(%rbp), %rdi
leaq -0x68(%rbp), %rdx
movq %r14, (%rdx)
leaq 0x3226(%rip), %rsi      # 0x18c92
callq 0xdcc0
leaq 0x3226(%rip), %rsi      # 0x18c9e
leaq -0x60(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0xd2c0
leaq -0x98(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0xdc50
leaq -0x1d8(%rbp), %rdx
leaq -0x228(%rbp), %rsi
movq %rax, %rdi
callq 0xd400
leaq -0x60(%rbp), %rdi
callq 0xd300
pushq $0x28
popq %r14
leaq (%r14,%rbp), %rdi
addq $-0x228, %rdi           # imm = 0xFDD8
callq 0xd300
addq $-0x28, %r14
cmpq $-0x28, %r14
jne 0x15ab8
cmpl $0x1, %r15d
je 0x15be7
movq 0x8(%rbx), %r12
leaq 0x28c7(%rip), %rsi      # 0x183ae
movq %r12, %rdi
callq 0xdaf0
testl %eax, %eax
je 0x15be7
cmpl $0x2, %r15d
jne 0x15d26
leaq -0x228(%rbp), %rdi
leaq -0x60(%rbp), %rdx
movq %r12, %rsi
callq 0xd2c0
leaq -0x98(%rbp), %rdi
leaq -0x228(%rbp), %rsi
callq 0xdb10
movq %rax, %r14
leaq -0x228(%rbp), %rdi
callq 0xd300
leaq -0x90(%rbp), %rax
cmpq %rax, %r14
je 0x15e75
movq 0x8(%rbx), %rsi
leaq -0x228(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0xd2c0
leaq -0x98(%rbp), %rdi
leaq -0x228(%rbp), %rsi
callq 0xdc50
movq %rax, %rbx
leaq -0x228(%rbp), %r14
movq %r14, %rdi
callq 0xd300
movq 0x18(%rbx), %r12
addq $0x8, %rbx
leaq -0x2e8(%rbp), %r13
cmpq %rbx, %r12
je 0x15ca6
leaq 0x20(%r12), %rsi
movq %r14, %rdi
callq 0xdd40
movq -0x208(%rbp), %r15
movq %r13, %rdi
leaq 0x2486(%rip), %rsi      # 0x1803b
leaq -0x60(%rbp), %rdx
callq 0xd2c0
movq (%r15), %rax
movq %r15, %rdi
movq %r13, %rsi
callq *0x30(%rax)
movq %r13, %rdi
callq 0xd300
movq %r14, %rdi
callq 0xd300
movq %r12, %rdi
callq 0xd480
movq %rax, %r12
jmp 0x15b8e
movq -0x80(%rbp), %rcx
leaq -0x228(%rbp), %r14
leaq -0x60(%rbp), %r15
leaq -0x308(%rbp), %rbx
leaq -0x38(%rbp), %r12
leaq -0x90(%rbp), %rax
cmpq %rax, %rcx
je 0x15ca6
movq %rcx, -0xa0(%rbp)
leaq 0x20(%rcx), %rsi
movq %r14, %rdi
callq 0xd3b0
movq -0x1f0(%rbp), %r14
leaq -0x200(%rbp), %rax
cmpq %rax, %r14
je 0x15c83
leaq 0x20(%r14), %rsi
movq %r15, %rdi
callq 0xdd40
movq -0x40(%rbp), %r13
movq %rbx, %rdi
leaq 0x23ea(%rip), %rsi      # 0x1803b
movq %r12, %rdx
callq 0xd2c0
movq (%r13), %rax
movq %r13, %rdi
movq %rbx, %rsi
callq *0x30(%rax)
movq %rbx, %rdi
callq 0xd300
movq %r15, %rdi
callq 0xd300
movq %r14, %rdi
callq 0xd480
movq %rax, %r14
jmp 0x15c2b
leaq -0x228(%rbp), %r14
movq %r14, %rdi
callq 0xd740
movq -0xa0(%rbp), %rdi
callq 0xd480
movq %rax, %rcx
jmp 0x15c01
xorl %r14d, %r14d
leaq -0x98(%rbp), %rbx
movq 0x18(%rbx), %r15
leaq -0x90(%rbp), %rax
cmpq %rax, %r15
je 0x15d05
leaq 0x20(%r15), %rsi
movq %rbx, %rdi
callq 0xd320
movq %rax, %r12
movq 0x18(%rax), %r13
addq $0x8, %r12
cmpq %r12, %r13
je 0x15cf8
movq 0x40(%r13), %rdi
testq %rdi, %rdi
je 0x15ceb
movq (%rdi), %rax
callq *0x8(%rax)
movq %r13, %rdi
callq 0xd480
movq %rax, %r13
jmp 0x15cd7
movq %r15, %rdi
callq 0xd480
movq %rax, %r15
jmp 0x15cb4
leaq -0x98(%rbp), %rdi
callq 0xd690
movl %r14d, %eax
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
cmpl $0x3, %r15d
jl 0x15ca9
leaq -0x228(%rbp), %rdi
leaq -0x38(%rbp), %rdx
movq %r12, %rsi
callq 0xd2c0
leaq -0x98(%rbp), %rdi
leaq -0x228(%rbp), %rsi
callq 0xdc50
movq %rax, %r12
movq 0x10(%rbx), %rsi
leaq -0x60(%rbp), %rdi
leaq -0x68(%rbp), %rdx
callq 0xd2c0
leaq -0x60(%rbp), %rsi
movq %r12, %rdi
callq 0xd8a0
movq %rax, %r12
leaq -0x60(%rbp), %rdi
callq 0xd300
leaq -0x228(%rbp), %rdi
callq 0xd300
movq 0x8(%rbx), %rsi
leaq -0x228(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0xd2c0
leaq -0x98(%rbp), %rdi
leaq -0x228(%rbp), %rsi
callq 0xdc50
movq %rax, %r13
addq $0x8, %r13
leaq -0x228(%rbp), %rdi
callq 0xd300
cmpq %r13, %r12
je 0x15ea6
cmpl $0x3, %r15d
jne 0x15f1d
movq 0x8(%rbx), %rsi
leaq -0x228(%rbp), %rdi
leaq -0x38(%rbp), %rdx
callq 0xd2c0
leaq -0x98(%rbp), %rdi
leaq -0x228(%rbp), %rsi
callq 0xdc50
movq %rax, %r15
movq 0x10(%rbx), %rsi
leaq -0x60(%rbp), %rdi
leaq -0x68(%rbp), %rdx
callq 0xd2c0
leaq -0x60(%rbp), %rsi
movq %r15, %rdi
callq 0xde60
movq (%rax), %rbx
leaq 0x220c(%rip), %rsi      # 0x1803b
leaq -0x248(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0xd2c0
movq (%rbx), %rax
leaq -0x248(%rbp), %rsi
movq %rbx, %rdi
callq *0x30(%rax)
leaq -0x248(%rbp), %rdi
callq 0xd300
leaq -0x60(%rbp), %rdi
callq 0xd300
leaq -0x228(%rbp), %rdi
callq 0xd300
jmp 0x15ca9
movq 0x8(%rbx), %rsi
leaq -0x2c8(%rbp), %rdi
leaq -0x228(%rbp), %rdx
callq 0xd2c0
leaq -0x2c8(%rbp), %rdi
callq 0xdc00
leaq -0x2c8(%rbp), %rdi
callq 0xd300
jmp 0x15f14
leaq -0x228(%rbp), %rdi
callq 0xd4b0
leaq -0x218(%rbp), %rdi
movq 0x8(%rbx), %rsi
callq 0xd7b0
leaq 0x2171(%rip), %rsi      # 0x1803a
movq %rax, %rdi
callq 0xd7b0
movq 0x10(%rbx), %rsi
movq %rax, %rdi
callq 0xd7b0
leaq -0x210(%rbp), %rsi
leaq -0x2a8(%rbp), %rdi
callq 0xdc20
leaq -0x2a8(%rbp), %rdi
callq 0xdc00
leaq -0x2a8(%rbp), %rdi
callq 0xd300
leaq -0x228(%rbp), %rdi
callq 0xd4d0
pushq $0x1
popq %r14
jmp 0x15ca9
movq 0x8(%rbx), %rsi
leaq -0x228(%rbp), %rdi
leaq -0x38(%rbp), %rdx
callq 0xd2c0
leaq -0x98(%rbp), %rdi
leaq -0x228(%rbp), %rsi
callq 0xdc50
movq %rax, %r15
movq 0x10(%rbx), %rsi
leaq -0x60(%rbp), %rdi
leaq -0x68(%rbp), %rdx
callq 0xd2c0
leaq -0x60(%rbp), %rsi
movq %r15, %rdi
callq 0xde60
movq (%rax), %r15
movq 0x18(%rbx), %rsi
leaq -0x288(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0xd2c0
movq (%r15), %rax
leaq -0x288(%rbp), %rsi
movq %r15, %rdi
callq *0x30(%rax)
movl %eax, %r15d
leaq -0x288(%rbp), %rdi
callq 0xd300
leaq -0x60(%rbp), %rdi
callq 0xd300
leaq -0x228(%rbp), %rdi
callq 0xd300
testl %r15d, %r15d
jne 0x15ca9
leaq -0x228(%rbp), %rdi
callq 0xd4b0
leaq -0x218(%rbp), %rdi
movq 0x8(%rbx), %rsi
callq 0xd7b0
leaq 0x205f(%rip), %rsi      # 0x1803a
movq %rax, %rdi
callq 0xd7b0
movq 0x10(%rbx), %rsi
movq %rax, %rdi
callq 0xd7b0
leaq 0x2044(%rip), %rsi      # 0x1803a
movq %rax, %rdi
callq 0xd7b0
movq 0x18(%rbx), %rsi
movq %rax, %rdi
callq 0xd7b0
leaq -0x210(%rbp), %rsi
leaq -0x268(%rbp), %rdi
callq 0xdc20
leaq -0x268(%rbp), %rdi
callq 0xdc00
leaq -0x268(%rbp), %rdi
callq 0xd300
leaq -0x228(%rbp), %rdi
callq 0xd4d0
jmp 0x15ca9
movq %rax, %rbx
leaq -0x268(%rbp), %rdi
jmp 0x160a4
jmp 0x161ca
movq %rax, %rbx
leaq -0x288(%rbp), %rdi
jmp 0x1606d
movq %rax, %rbx
leaq -0x248(%rbp), %rdi
callq 0xd300
jmp 0x160d3
jmp 0x160d0
jmp 0x160d0
jmp 0x161a6
jmp 0x160d0
jmp 0x160d0
jmp 0x161a6
jmp 0x161a6
jmp 0x161ca
jmp 0x161a6
jmp 0x161ca
movq %rax, %rbx
leaq -0x2a8(%rbp), %rdi
callq 0xd300
jmp 0x160f8
jmp 0x161ca
jmp 0x160f5
movq %rax, %rbx
leaq -0x2c8(%rbp), %rdi
jmp 0x161c1
jmp 0x161ca
jmp 0x161a6
jmp 0x161ca
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
jmp 0x161b5
jmp 0x161a6
jmp 0x161a6
jmp 0x161ca
jmp 0x161a6
jmp 0x161ca
movq %rax, %rbx
leaq -0x228(%rbp), %rdi
callq 0xd4d0
jmp 0x161fd
jmp 0x161a6
jmp 0x161ca
movq %rax, %rbx
jmp 0x1614d
jmp 0x16121
jmp 0x16131
movq %rax, %rbx
jmp 0x16180
movq %rax, %rbx
movq %r14, %rdi
callq 0xd720
jmp 0x161ba
movq %rax, %rbx
movq %r14, %rdi
callq 0xd720
jmp 0x161fd
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0xd300
pushq $0x28
popq %r14
leaq (%r14,%rbp), %rdi
addq $-0x228, %rdi           # imm = 0xFDD8
callq 0xd300
addq $-0x28, %r14
cmpq $-0x28, %r14
jne 0x16151
jmp 0x161fd
jmp 0x161a6
jmp 0x161ca
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0xd300
pushq $0x28
popq %r14
leaq (%r14,%rbp), %rdi
addq $-0x228, %rdi           # imm = 0xFDD8
callq 0xd300
addq $-0x28, %r14
cmpq $-0x28, %r14
jne 0x16184
jmp 0x161fd
jmp 0x161a6
jmp 0x161ca
jmp 0x161ca
movq %rax, %rbx
jmp 0x161ba
movq %rax, %rbx
leaq -0x2e8(%rbp), %rdi
callq 0xd300
leaq -0x228(%rbp), %rdi
callq 0xd300
jmp 0x161fd
jmp 0x161ca
movq %rax, %rbx
jmp 0x161fd
movq %rax, %rbx
jmp 0x161f1
movq %rax, %rbx
jmp 0x161e8
movq %rax, %rbx
leaq -0x308(%rbp), %rdi
callq 0xd300
leaq -0x60(%rbp), %rdi
callq 0xd300
leaq -0x228(%rbp), %rdi
callq 0xd740
leaq -0x98(%rbp), %rdi
callq 0xd690
movq %rbx, %rdi
callq 0xddb0