// File: /workspace/github_cpp_makefile_star2_O1/ridgelab[P]Kmer-SSR/test/src/threads.cpp
// Function: test1(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool test1(string threads)
{
	bool ret_val = true;

	Arguments* args;

	string temp_output_file_name = "test/output/actual/1_" + threads + ".tsv";

	try
	{
		int argc = 14;
		char* argv[] = {
			(char*)("test1"),
			(char*)("-d"),
			(char*)("-i"),
			(char*)("test/input/1.fasta"),
			(char*)("-o"),
			const_cast<char*>(temp_output_file_name.c_str()),
			(char*)("-n"),
			(char*)("2"),
			(char*)("-l"),
			(char*)("2"),
			(char*)("-p"),
			(char*)("2-3"),
			(char*)("-t"),
			const_cast<char*>(threads.c_str())
		};
		
		args = new Arguments(argc, argv);
		
		if (!args->helpOrVersionDisplayed())
		{
			//cerr << "checkpoint 1" << endl;
			FindSSRs* find_ssrs = new FindSSRs(args);
			//cerr << "checkpoint 2" << endl;
			ret_val = find_ssrs->run() == 0 ? true : false;
			//cerr << "checkpoint 3" << endl;
			delete find_ssrs;
			//cerr << "checkpoint 4" << endl;

			if (ret_val)
			{
				//cerr << "checkpoint 5" << endl;
				ret_val = actualOutputMatchedExpected("test/output/actual/1_" + threads + ".tsv", "test/output/expected/1.tsv");
				//cerr << "checkpoint 6" << endl;
			}
			//cerr << "checkpoint 7" << endl;
		}
	}
	catch(string error)
	{
		cerr << error << endl;
		ret_val = false;
	}
	catch(const char* error)
	{
		cerr << error << endl;
		ret_val = false;
	}
	
	delete args;
	//delete blah2;

	return ret_val;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %r14
leaq 0xe0ea(%rip), %rsi      # 0x12050
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rdx
callq 0x7ce1
leaq 0xe3e5(%rip), %rsi      # 0x12362
movq %rbx, %rdi
callq 0x35c0
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3fac
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x3fb4
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x60(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x3fe7
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3310
leaq 0xe078(%rip), %rax      # 0x12066
movq %rax, 0x50(%rsp)
leaq 0xe072(%rip), %rax      # 0x1206c
movq %rax, 0x58(%rsp)
leaq 0xe069(%rip), %rax      # 0x1206f
movq %rax, 0x60(%rsp)
leaq 0xe060(%rip), %rax      # 0x12072
movq %rax, 0x68(%rsp)
leaq 0xe067(%rip), %rax      # 0x12085
movq %rax, 0x70(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x78(%rsp)
leaq 0xe054(%rip), %rax      # 0x12088
movq %rax, 0x80(%rsp)
leaq 0xe38e(%rip), %rax      # 0x123d1
movq %rax, 0x88(%rsp)
leaq 0xe039(%rip), %rcx      # 0x1208b
movq %rcx, 0x90(%rsp)
movq %rax, 0x98(%rsp)
leaq 0xe025(%rip), %rax      # 0x1208e
movq %rax, 0xa0(%rsp)
leaq 0xe019(%rip), %rax      # 0x12091
movq %rax, 0xa8(%rsp)
leaq 0xe00e(%rip), %rax      # 0x12095
movq %rax, 0xb0(%rsp)
movq (%r14), %rax
movq %rax, 0xb8(%rsp)
movl $0xf0, %edi
callq 0x3300
movq %rax, %rbx
leaq 0x50(%rsp), %rdx
movq %rax, %rdi
movl $0xe, %esi
callq 0xa206
movq %rbx, %r12
movq %rbx, %rdi
callq 0xb74a
movb $0x1, %bpl
testb %al, %al
jne 0x4215
movl $0x40, %edi
callq 0x3300
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
callq 0x82ac
movq %r12, %rdi
callq 0x84a0
movl %eax, %ebp
movq %r12, %rdi
callq 0x83fc
movl $0x40, %esi
movq %r12, %rdi
callq 0x3310
testl %ebp, %ebp
sete %bpl
jne 0x4215
leaq 0xdf37(%rip), %rsi      # 0x12050
leaq 0xe8(%rsp), %rdi
movq %r14, %rdx
callq 0x7ce1
leaq 0xe232(%rip), %rsi      # 0x12362
leaq 0xe8(%rsp), %rdi
callq 0x35c0
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4165
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x416d
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xd8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xdf00(%rip), %rsi      # 0x12098
leaq 0xdf13(%rip), %rdx      # 0x120b2
leaq 0xc8(%rsp), %rdi
callq 0x7f22
leaq 0x10(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x7acb
movl %eax, %ebp
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x41dd
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3310
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x41f4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3310
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4215
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3310
testq %rbx, %rbx
je 0x422f
movq %rbx, %rdi
callq 0xb630
movl $0xf0, %esi
movq %rbx, %rdi
callq 0x3310
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x4246
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3310
movl %ebp, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %rbp
movq %rax, 0x8(%rsp)
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4289
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3310
jmp 0x4289
movq %rdx, %rbp
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x42aa
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3310
jmp 0x42aa
movq %rdx, %rbp
movq %rax, 0x8(%rsp)
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4337
movq 0xf8(%rsp), %rsi
incq %rsi
jmp 0x42da
jmp 0x42e1
movq %rdx, %rbp
movq %rax, 0x8(%rsp)
movl $0x40, %esi
movq %r12, %rdi
callq 0x3310
jmp 0x4337
movq %rdx, %rbp
movq %rax, 0x8(%rsp)
jmp 0x4337
movq %rdx, %rbp
movq %rax, 0x8(%rsp)
movl $0xf0, %esi
movq %rbx, %rdi
callq 0x3310
jmp 0x4337
movq %rax, 0x8(%rsp)
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4322
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3310
movq 0x8(%rsp), %rdi
callq 0x3550
movq %rdx, %rbp
movq %rax, 0x8(%rsp)
movq %r12, %rbx
cmpl $0x2, %ebp
jne 0x43a3
movq 0x8(%rsp), %rdi
callq 0x33c0
leaq 0x50(%rsp), %rdi
movq %r15, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x7dec
movq 0x8(%rsp), %rdi
callq 0x3140
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x16c78(%rip), %rdi     # 0x1aff0
callq 0x3370
movq %rax, %rdi
callq 0x3160
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x439c
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3310
callq 0x34d0
jmp 0x43ce
cmpl $0x1, %ebp
jne 0x4409
movq 0x8(%rsp), %rdi
callq 0x3140
movq 0x16c37(%rip), %rdi     # 0x1aff0
movq %rax, %rsi
callq 0x32f0
movq %rax, %rdi
callq 0x3160
callq 0x34d0
xorl %ebp, %ebp
jmp 0x4215
movq %rax, 0x8(%rsp)
jmp 0x4409
movq %rax, 0x8(%rsp)
callq 0x34d0
jmp 0x4409
movq %rax, 0x8(%rsp)
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x4404
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3310
callq 0x34d0
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x4322
movq 0x40(%rsp), %rsi
jmp 0x431a
movq %rax, %rdi
callq 0x7d69