// File: /workspace/github_cpp_makefile_star2_O2/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 %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdi, %r14
leaq 0xb3dd(%rip), %rsi      # 0xf050
leaq 0x90(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rdx
callq 0x663a
leaq 0xb6d5(%rip), %rdx      # 0xf362
leaq 0x70(%rsp), %rdi
movq %rbx, %rsi
callq 0x661b
leaq 0x90(%rsp), %rbx
movq %rbx, %rdi
callq 0x35e8
leaq 0xb3b5(%rip), %rax      # 0xf066
movq %rax, (%rbx)
leaq 0xb3b1(%rip), %rax      # 0xf06c
movq %rax, 0x8(%rbx)
leaq 0xb3a9(%rip), %rax      # 0xf06f
movq %rax, 0x10(%rbx)
leaq 0xb3a1(%rip), %rax      # 0xf072
movq %rax, 0x18(%rbx)
leaq 0xb3a9(%rip), %rax      # 0xf085
movq %rax, 0x20(%rbx)
movq 0x70(%rsp), %rax
movq %rax, 0x28(%rbx)
leaq 0xb398(%rip), %rax      # 0xf088
movq %rax, 0x30(%rbx)
leaq 0xb6d6(%rip), %rax      # 0xf3d1
movq %rax, 0x38(%rbx)
leaq 0xb385(%rip), %rcx      # 0xf08b
movq %rcx, 0x40(%rbx)
movq %rax, 0x48(%rbx)
leaq 0xb379(%rip), %rax      # 0xf08e
movq %rax, 0x50(%rbx)
leaq 0xb371(%rip), %rax      # 0xf091
movq %rax, 0x58(%rbx)
leaq 0xb36a(%rip), %rax      # 0xf095
movq %rax, 0x60(%rbx)
movq (%r14), %rax
movq %rax, 0x68(%rbx)
movl $0xf0, %edi
callq 0x32f0
movq %rax, %rbx
pushq $0xe
popq %rsi
leaq 0x90(%rsp), %rdx
movq %rax, %rdi
callq 0x87b2
movq %rbx, %r12
movq %rbx, %rdi
callq 0x943c
movb $0x1, %r15b
testb %al, %al
jne 0x3e18
pushq $0x40
popq %rdi
callq 0x32f0
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6c3c
movq %r12, %rdi
callq 0x6dd6
movl %eax, %ebp
movq %r12, %rdi
callq 0x6d4a
pushq $0x40
popq %rsi
movq %r12, %rdi
callq 0x3300
testl %ebp, %ebp
je 0x3da8
xorl %r15d, %r15d
jmp 0x3e18
leaq 0xb2a1(%rip), %rsi      # 0xf050
leaq 0x30(%rsp), %rdi
movq %r14, %rdx
callq 0x663a
leaq 0xb59f(%rip), %rdx      # 0xf362
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x661b
leaq 0xb2bf(%rip), %rsi      # 0xf098
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x657a
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x6439
movl %eax, %r15d
leaq 0x10(%rsp), %rdi
callq 0x35e8
leaq 0x50(%rsp), %rdi
callq 0x35e8
leaq 0x30(%rsp), %rdi
callq 0x35e8
movq %rbx, %rdi
callq 0x937e
movl $0xf0, %esi
movq %rbx, %rdi
callq 0x3300
leaq 0x70(%rsp), %rdi
callq 0x35e8
movl %r15d, %eax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r15
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x35e8
jmp 0x3e62
movq %rdx, %r15
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x35e8
jmp 0x3e74
movq %rdx, %r15
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x35e8
jmp 0x3ed3
jmp 0x3e95
movq %rdx, %r15
movq %rax, %r14
pushq $0x40
popq %rsi
movq %r12, %rdi
callq 0x3300
jmp 0x3ed3
movq %rdx, %r15
movq %rax, %r14
jmp 0x3ed3
movq %rdx, %r15
movq %rax, %r14
movl $0xf0, %esi
movq %rbx, %rdi
callq 0x3300
jmp 0x3ed3
movq %rax, %r14
leaq 0x90(%rsp), %rdi
callq 0x35e8
movq %r14, %rdi
callq 0x3560
movq %rdx, %r15
movq %rax, %r14
movq %r12, %rbx
cmpl $0x2, %r15d
jne 0x3f29
movq %r14, %rdi
callq 0x33b0
leaq 0x90(%rsp), %rdi
movq %rax, %rsi
callq 0x3400
movq %r14, %rdi
callq 0x3130
movq 0x150f0(%rip), %rdi     # 0x18ff0
leaq 0x90(%rsp), %rsi
callq 0x32c0
movq %rax, %rdi
callq 0x3160
leaq 0x90(%rsp), %rdi
callq 0x35e8
callq 0x34e0
jmp 0x3f53
cmpl $0x1, %r15d
jne 0x3f8a
movq %r14, %rdi
callq 0x3130
movq 0x150b2(%rip), %rdi     # 0x18ff0
movq %rax, %rsi
callq 0x32e0
movq %rax, %rdi
callq 0x3160
callq 0x34e0
xorl %r15d, %r15d
testq %rbx, %rbx
jne 0x3e18
xorl %ebx, %ebx
jmp 0x3e20
movq %rax, %r14
jmp 0x3f8a
movq %rax, %r14
callq 0x34e0
jmp 0x3f8a
movq %rax, %r14
leaq 0x90(%rsp), %rdi
callq 0x35e8
callq 0x34e0
leaq 0x70(%rsp), %rdi
jmp 0x3ebd
movq %rax, %rdi
callq 0x66b0