// File: /workspace/github_cpp_makefile_star2_O1/Proudc[P]CTSS/src/Test.cpp
// Function: main
int main(int argc, char* argv[])
{
	string inputFolder(argv[1]);
	string outputFolder(argv[2]);
	int    startCount    = atoi(argv[3]);
	int    stopCount     = atoi(argv[4]);
	int    mode          = atoi(argv[6]);
	double delta         = atof(argv[5]);
	double sectionLength = atof(argv[7]);

	string nodePath = inputFolder + "/nodeOSM.txt";
	string edgePath = inputFolder + "/edgeOSM.txt";
	Graph* myGraph  = new Graph;
	initializeGraph(myGraph, nodePath, edgePath, delta, sectionLength);

	if (mode == 1)
	{
		eucSimpleQuery(myGraph, inputFolder, outputFolder, startCount, stopCount);
	}
	else if (mode == 2)
	{
		eucContinuousQuery(myGraph, inputFolder, outputFolder, startCount, stopCount);
	}
	else if (mode == 3)
	{
		roadSimpleQuery(myGraph, inputFolder, outputFolder, startCount, stopCount);
	}
	else if (mode == 4)
	{
		roadContinuousQuery(myGraph, inputFolder, outputFolder, startCount, stopCount);
	}
	else
	{
		printf("Sorry, You should enter the correct query mode!\n");
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rsi, %r15
movq 0x8(%rsi), %rsi
leaq -0x50(%rbp), %rdi
leaq -0x90(%rbp), %rdx
callq 0x2080
movq 0x10(%r15), %rsi
leaq -0x90(%rbp), %rdi
leaq -0x70(%rbp), %rdx
callq 0x2080
movq 0x18(%r15), %rdi
callq 0x21d0
movl %eax, %r14d
movq 0x20(%r15), %rdi
callq 0x21d0
movl %eax, %ebx
movq 0x30(%r15), %rdi
callq 0x21d0
movl %eax, %r12d
movq 0x28(%r15), %rdi
callq 0x2180
movsd %xmm0, -0xc0(%rbp)
movq 0x38(%r15), %rdi
callq 0x2180
movsd %xmm0, -0xb8(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0x4c3e
leaq 0x9a95(%rip), %rsi      # 0xc058
leaq -0x70(%rbp), %rdi
callq 0x2250
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0xb0(%rbp), %rdi
callq 0x4c3e
leaq 0x9a70(%rip), %rsi      # 0xc065
leaq -0xb0(%rbp), %rdi
callq 0x2250
movl %ebx, -0x2c(%rbp)
movl $0x28, %edi
callq 0x2150
movq %rax, %r15
leaq -0x1f0(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
addq %rsi, %rdx
leaq -0x200(%rbp), %rdi
callq 0x4c3e
leaq -0x1d0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1e0(%rbp), %rdi
callq 0x4c3e
leaq -0x200(%rbp), %rsi
leaq -0x1e0(%rbp), %rdx
movq %r15, %rdi
movsd -0xc0(%rbp), %xmm0
movsd -0xb8(%rbp), %xmm1
callq 0x4e30
movq -0x1e0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2692
callq 0x2130
movq -0x200(%rbp), %rdi
cmpq %r13, %rdi
je 0x26a3
callq 0x2130
decl %r12d
cmpl $0x3, %r12d
ja 0x28db
leaq 0x994d(%rip), %rax      # 0xc004
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq -0x1b0(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1c0(%rbp), %rdi
callq 0x4c3e
leaq -0x190(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1a0(%rbp), %rdi
callq 0x4c3e
leaq -0x1c0(%rbp), %rsi
leaq -0x1a0(%rbp), %rdx
movq %r15, %rdi
movl %r14d, %ecx
movl -0x2c(%rbp), %r8d
callq 0x2a6e
movq -0x1a0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2739
callq 0x2130
movq -0x1c0(%rbp), %rdi
jmp 0x28cf
leaq -0x130(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x140(%rbp), %rdi
callq 0x4c3e
leaq -0x110(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x120(%rbp), %rdi
callq 0x4c3e
leaq -0x140(%rbp), %rsi
leaq -0x120(%rbp), %rdx
movq %r15, %rdi
movl %r14d, %ecx
movl -0x2c(%rbp), %r8d
callq 0x379f
movq -0x120(%rbp), %rdi
cmpq %rbx, %rdi
je 0x27be
callq 0x2130
movq -0x140(%rbp), %rdi
jmp 0x28cf
leaq -0xf0(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x100(%rbp), %rdi
callq 0x4c3e
leaq -0xd0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0xe0(%rbp), %rdi
callq 0x4c3e
leaq -0x100(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
movq %r15, %rdi
movl %r14d, %ecx
movl -0x2c(%rbp), %r8d
callq 0x3f96
movq -0xe0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2843
callq 0x2130
movq -0x100(%rbp), %rdi
jmp 0x28cf
leaq -0x170(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x180(%rbp), %rdi
callq 0x4c3e
leaq -0x150(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x160(%rbp), %rdi
callq 0x4c3e
leaq -0x180(%rbp), %rsi
leaq -0x160(%rbp), %rdx
movq %r15, %rdi
movl %r14d, %ecx
movl -0x2c(%rbp), %r8d
callq 0x30ec
movq -0x160(%rbp), %rdi
cmpq %rbx, %rdi
je 0x28c8
callq 0x2130
movq -0x180(%rbp), %rdi
cmpq %r12, %rdi
je 0x28e7
callq 0x2130
jmp 0x28e7
leaq 0x982a(%rip), %rdi      # 0xc10c
callq 0x21c0
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x28ff
callq 0x2130
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x2911
callq 0x2130
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2923
callq 0x2130
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2935
callq 0x2130
xorl %eax, %eax
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x160(%rbp), %rdi
cmpq %rbx, %rdi
je 0x29a4
callq 0x2130
jmp 0x29a4
movq %rax, %r14
movq -0x1a0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x29b0
callq 0x2130
jmp 0x29b0
movq %rax, %r14
movq -0xe0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x29bc
callq 0x2130
jmp 0x29bc
movq %rax, %r14
movq -0x120(%rbp), %rdi
cmpq %rbx, %rdi
je 0x29c8
callq 0x2130
jmp 0x29c8
movq %rax, %r14
movq -0x180(%rbp), %rdi
jmp 0x29cf
movq %rax, %r14
movq -0x1c0(%rbp), %rdi
jmp 0x29cf
movq %rax, %r14
movq -0x100(%rbp), %rdi
jmp 0x29cf
movq %rax, %r14
movq -0x140(%rbp), %rdi
cmpq %r12, %rdi
jne 0x29fb
jmp 0x2a18
movq %rax, %r14
movq -0x1e0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x29ef
callq 0x2130
jmp 0x29ef
movq %rax, %r14
movq -0x200(%rbp), %rdi
cmpq %r13, %rdi
je 0x2a18
callq 0x2130
jmp 0x2a18
jmp 0x2a15
jmp 0x2a06
movq %rax, %r14
jmp 0x2a30
movq %rax, %r14
jmp 0x2a42
movq %rax, %r14
jmp 0x2a54
movq %rax, %r14
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x2a30
callq 0x2130
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x2a42
callq 0x2130
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a54
callq 0x2130
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a66
callq 0x2130
movq %r14, %rdi
callq 0x2220