// File: /workspace/github_cpp_makefile_star2_O3/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 0x21c0
movl %eax, %r14d
movq 0x20(%r15), %rdi
callq 0x21c0
movl %eax, %ebx
movq 0x30(%r15), %rdi
callq 0x21c0
movl %eax, %r12d
movq 0x28(%r15), %rdi
callq 0x2170
movsd %xmm0, -0xc0(%rbp)
movq 0x38(%r15), %rdi
callq 0x2170
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 0x4c5a
leaq 0x9aa5(%rip), %rsi      # 0xc058
leaq -0x70(%rbp), %rdi
callq 0x2240
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0xb0(%rbp), %rdi
callq 0x4c5a
leaq 0x9a80(%rip), %rsi      # 0xc065
leaq -0xb0(%rbp), %rdi
callq 0x2240
movl %ebx, -0x2c(%rbp)
movl $0x28, %edi
callq 0x2140
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 0x4c5a
leaq -0x1d0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1e0(%rbp), %rdi
callq 0x4c5a
leaq -0x200(%rbp), %rsi
leaq -0x1e0(%rbp), %rdx
movq %r15, %rdi
movsd -0xc0(%rbp), %xmm0
movsd -0xb8(%rbp), %xmm1
callq 0x4e50
movq -0x1e0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2682
callq 0x2120
movq -0x200(%rbp), %rdi
cmpq %r13, %rdi
je 0x2693
callq 0x2120
decl %r12d
cmpl $0x3, %r12d
ja 0x28cb
leaq 0x995d(%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 0x4c5a
leaq -0x190(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1a0(%rbp), %rdi
callq 0x4c5a
leaq -0x1c0(%rbp), %rsi
leaq -0x1a0(%rbp), %rdx
movq %r15, %rdi
movl %r14d, %ecx
movl -0x2c(%rbp), %r8d
callq 0x2a5e
movq -0x1a0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2729
callq 0x2120
movq -0x1c0(%rbp), %rdi
jmp 0x28bf
leaq -0x130(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x140(%rbp), %rdi
callq 0x4c5a
leaq -0x110(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x120(%rbp), %rdi
callq 0x4c5a
leaq -0x140(%rbp), %rsi
leaq -0x120(%rbp), %rdx
movq %r15, %rdi
movl %r14d, %ecx
movl -0x2c(%rbp), %r8d
callq 0x37bc
movq -0x120(%rbp), %rdi
cmpq %rbx, %rdi
je 0x27ae
callq 0x2120
movq -0x140(%rbp), %rdi
jmp 0x28bf
leaq -0xf0(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x100(%rbp), %rdi
callq 0x4c5a
leaq -0xd0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0xe0(%rbp), %rdi
callq 0x4c5a
leaq -0x100(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
movq %r15, %rdi
movl %r14d, %ecx
movl -0x2c(%rbp), %r8d
callq 0x3f79
movq -0xe0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x2833
callq 0x2120
movq -0x100(%rbp), %rdi
jmp 0x28bf
leaq -0x170(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
leaq -0x180(%rbp), %rdi
callq 0x4c5a
leaq -0x150(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x160(%rbp), %rdi
callq 0x4c5a
leaq -0x180(%rbp), %rsi
leaq -0x160(%rbp), %rdx
movq %r15, %rdi
movl %r14d, %ecx
movl -0x2c(%rbp), %r8d
callq 0x3109
movq -0x160(%rbp), %rdi
cmpq %rbx, %rdi
je 0x28b8
callq 0x2120
movq -0x180(%rbp), %rdi
cmpq %r12, %rdi
je 0x28d7
callq 0x2120
jmp 0x28d7
leaq 0x983a(%rip), %rdi      # 0xc10c
callq 0x21b0
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x28ef
callq 0x2120
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x2901
callq 0x2120
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2913
callq 0x2120
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2925
callq 0x2120
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 0x2994
callq 0x2120
jmp 0x2994
movq %rax, %r14
movq -0x1a0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x29a0
callq 0x2120
jmp 0x29a0
movq %rax, %r14
movq -0xe0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x29ac
callq 0x2120
jmp 0x29ac
movq %rax, %r14
movq -0x120(%rbp), %rdi
cmpq %rbx, %rdi
je 0x29b8
callq 0x2120
jmp 0x29b8
movq %rax, %r14
movq -0x180(%rbp), %rdi
jmp 0x29bf
movq %rax, %r14
movq -0x1c0(%rbp), %rdi
jmp 0x29bf
movq %rax, %r14
movq -0x100(%rbp), %rdi
jmp 0x29bf
movq %rax, %r14
movq -0x140(%rbp), %rdi
cmpq %r12, %rdi
jne 0x29eb
jmp 0x2a08
movq %rax, %r14
movq -0x1e0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x29df
callq 0x2120
jmp 0x29df
movq %rax, %r14
movq -0x200(%rbp), %rdi
cmpq %r13, %rdi
je 0x2a08
callq 0x2120
jmp 0x2a08
jmp 0x2a05
jmp 0x29f6
movq %rax, %r14
jmp 0x2a20
movq %rax, %r14
jmp 0x2a32
movq %rax, %r14
jmp 0x2a44
movq %rax, %r14
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x2a20
callq 0x2120
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x2a32
callq 0x2120
leaq -0x80(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a44
callq 0x2120
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a56
callq 0x2120
movq %r14, %rdi
callq 0x2210