// File: /workspace/github_cpp_makefile_star2_O1/ridgelab[P]Kmer-SSR/test/src/findSSRs.cpp
// Function: main
int main()
{
	cout << '\n';
	
	int ret_val = 0; // also used to count the number of failed tests

	vector<bool (*)()> tests = {
		test1, test2, test3, test4, test5,
		test6, test7, test8, test9, test10,
		test11, test12
	};

	for (uint32_t i = 0; i < tests.size(); ++i)
	{
		cout << "FindSSRs Test #" << i + 1 << ":\t";
		if (tests[i]())
		{
			cout << "OK";
		}
		else
		{
			++ret_val;
			cout << "FAIL";
		}
		cout << '\n';

		optind = 1; // reset optind for next use of global getopt
	}
	
	string pass_or_fail_color = ret_val ? "\033[0;31m" : "\033[0;32m";
	cout << "\033[0;34mFindSSRs Passed:\t" << pass_or_fail_color << tests.size() - ret_val << " / " << tests.size() << "\033[0m" << endl;
	
	return ret_val;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
leaq 0x28(%rsp), %rsi
movb $0xa, (%rsi)
movq 0x15634(%rip), %rdi     # 0x19fc0
movl $0x1, %edx
callq 0x4370
leaq 0x14ee3(%rip), %rsi     # 0x19880
leaq 0x28(%rsp), %rax
movl $0xc, %ecx
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x10(%rsp), %rbx
leaq 0xf(%rsp), %rcx
movl $0xc, %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6cf2
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
je 0x4a98
xorl %ebp, %ebp
movl $0x1, %r15d
movq 0x155dd(%rip), %r14     # 0x19fc0
movq 0x155e6(%rip), %r12     # 0x19fd0
xorl %ebx, %ebx
movl $0xf, %edx
movq %r14, %rdi
leaq 0xc609(%rip), %rsi      # 0x11004
callq 0x4370
movl %r15d, %r13d
movq %r14, %rdi
movq %r13, %rsi
callq 0x41f0
movl $0x2, %edx
movq %rax, %rdi
leaq 0xc625(%rip), %rsi      # 0x11042
callq 0x4370
movq 0x10(%rsp), %rax
callq *(%rax,%rbp,8)
testb %al, %al
je 0x4a44
movl $0x2, %edx
movq %r14, %rdi
leaq 0xc5d7(%rip), %rsi      # 0x11014
callq 0x4370
jmp 0x4a5a
movl $0x4, %edx
movq %r14, %rdi
leaq 0xc5c4(%rip), %rsi      # 0x11017
callq 0x4370
incl %ebx
movb $0xa, 0x28(%rsp)
movl $0x1, %edx
movq %r14, %rdi
leaq 0x28(%rsp), %rsi
callq 0x4370
movl $0x1, (%r12)
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
sarq $0x3, %rax
incl %r15d
movq %r13, %rbp
cmpq %r13, %rax
ja 0x49ec
jmp 0x4a9a
xorl %ebx, %ebx
testl %ebx, %ebx
leaq 0xc581(%rip), %rax      # 0x11024
leaq 0xc572(%rip), %rsi      # 0x1101c
cmoveq %rax, %rsi
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xc56d(%rip), %rax      # 0x1102b
leaq 0xc55e(%rip), %rdx      # 0x11023
cmoveq %rax, %rdx
leaq 0x28(%rsp), %rdi
callq 0x6ef0
movq 0x154e6(%rip), %rdi     # 0x19fc0
leaq 0xc54b(%rip), %rsi      # 0x1102c
movl $0x18, %edx
callq 0x4370
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x154c4(%rip), %rdi     # 0x19fc0
callq 0x4370
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x3, %rsi
movslq %ebx, %rcx
subq %rcx, %rsi
movq %rax, %rdi
callq 0x41f0
movq %rax, %r14
leaq 0xc51e(%rip), %rsi      # 0x11045
movl $0x3, %edx
movq %rax, %rdi
callq 0x4370
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x3, %rsi
movq %r14, %rdi
callq 0x41f0
movq %rax, %r14
leaq 0xd93b(%rip), %rsi      # 0x1248f
movl $0x4, %edx
movq %rax, %rdi
callq 0x4370
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4200
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x4b9f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4310
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4bb6
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4310
movl %ebx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4be8
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x4beb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4310
jmp 0x4beb
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4c02
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4310
movq %rbx, %rdi
callq 0x4550