// File: /workspace/github_cpp_makefile_star2_O2/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 %r12
pushq %rbx
subq $0x1d0, %rsp            # imm = 0x1D0
movq %rsi, %r15
movq 0x8(%rsi), %rsi
leaq -0x40(%rbp), %rdi
leaq -0x70(%rbp), %rdx
callq 0x2070
movq 0x10(%r15), %rsi
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rdx
callq 0x2070
movq 0x18(%r15), %rdi
callq 0x21b0
movl %eax, %ebx
movq 0x20(%r15), %rdi
callq 0x21b0
movl %eax, %r14d
movq 0x30(%r15), %rdi
callq 0x21b0
movl %eax, %r12d
movq 0x28(%r15), %rdi
callq 0x2140
movsd %xmm0, -0x50(%rbp)
movq 0x38(%r15), %rdi
callq 0x2140
movsd %xmm0, -0x48(%rbp)
leaq 0x7c2c(%rip), %rdx      # 0xa058
leaq -0x90(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x3f83
leaq 0x7c22(%rip), %rdx      # 0xa065
leaq -0x1f0(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x3f83
pushq $0x28
popq %rdi
callq 0x2110
movq %rax, %r15
leaq -0x1d0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x2160
leaq -0x1b0(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
callq 0x2160
leaq -0x1d0(%rbp), %rsi
leaq -0x1b0(%rbp), %rdx
movq %r15, %rdi
movsd -0x50(%rbp), %xmm0
movsd -0x48(%rbp), %xmm1
callq 0x4230
leaq -0x1b0(%rbp), %rdi
callq 0x2090
leaq -0x1d0(%rbp), %rdi
callq 0x2090
decl %r12d
cmpl $0x3, %r12d
ja 0x2624
leaq 0x7b34(%rip), %rax      # 0xa004
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq -0x190(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x2160
leaq -0x170(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x2160
leaq -0x190(%rbp), %rsi
leaq -0x170(%rbp), %rdx
movq %r15, %rdi
movl %ebx, %ecx
movl %r14d, %r8d
callq 0x2746
leaq -0x170(%rbp), %rdi
callq 0x2090
leaq -0x190(%rbp), %rdi
jmp 0x261d
leaq -0x110(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x2160
leaq -0xf0(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x2160
leaq -0x110(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
movq %r15, %rdi
movl %ebx, %ecx
movl %r14d, %r8d
callq 0x30a5
leaq -0xf0(%rbp), %rdi
callq 0x2090
leaq -0x110(%rbp), %rdi
jmp 0x261d
leaq -0xd0(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x2160
leaq -0xb0(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x2160
leaq -0xd0(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
movq %r15, %rdi
movl %ebx, %ecx
movl %r14d, %r8d
callq 0x364a
leaq -0xb0(%rbp), %rdi
callq 0x2090
leaq -0xd0(%rbp), %rdi
jmp 0x261d
leaq -0x150(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x2160
leaq -0x130(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x2160
leaq -0x150(%rbp), %rsi
leaq -0x130(%rbp), %rdx
movq %r15, %rdi
movl %ebx, %ecx
movl %r14d, %r8d
callq 0x2bd4
leaq -0x130(%rbp), %rdi
callq 0x2090
leaq -0x150(%rbp), %rdi
callq 0x2090
jmp 0x2630
leaq 0x7ab7(%rip), %rdi      # 0xa0e2
callq 0x21a0
leaq -0x1f0(%rbp), %rdi
callq 0x2090
leaq -0x90(%rbp), %rdi
callq 0x2090
leaq -0x70(%rbp), %rdi
callq 0x2090
leaq -0x40(%rbp), %rdi
callq 0x2090
xorl %eax, %eax
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x130(%rbp), %rdi
callq 0x2090
jmp 0x26b3
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x2090
jmp 0x26cb
movq %rax, %rbx
leaq -0x170(%rbp), %rdi
callq 0x2090
jmp 0x26bf
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
callq 0x2090
jmp 0x26d7
movq %rax, %rbx
leaq -0x150(%rbp), %rdi
jmp 0x26fb
movq %rax, %rbx
leaq -0x190(%rbp), %rdi
jmp 0x26fb
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
jmp 0x26fb
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
jmp 0x26fb
movq %rax, %rbx
leaq -0x1b0(%rbp), %rdi
callq 0x2090
jmp 0x26f4
movq %rax, %rbx
leaq -0x1d0(%rbp), %rdi
callq 0x2090
jmp 0x2714
movq %rax, %rbx
jmp 0x2720
movq %rax, %rbx
jmp 0x272c
movq %rax, %rbx
jmp 0x2735
movq %rax, %rbx
leaq -0x1f0(%rbp), %rdi
callq 0x2090
leaq -0x90(%rbp), %rdi
callq 0x2090
leaq -0x70(%rbp), %rdi
callq 0x2090
leaq -0x40(%rbp), %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x2200