LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Base.cpp
// Function: realDistance(double, double, double)
double realDistance(const double lonDiff, const double latDiff, const double cosLongitude)
{
	const  double CONST_DISTANCE_ONE_DEGREE = 111111;
	double lonDistance = lonDiff * CONST_DISTANCE_ONE_DEGREE * cos(cosLongitude);
	double latDistance = latDiff * CONST_DISTANCE_ONE_DEGREE;
	double dist = sqrt(lonDistance * lonDistance + latDistance * latDistance);
	return dist;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movsd %xmm1, -0x10(%rbp)
mulsd 0x679f(%rip), %xmm0     # 0xc170
movsd %xmm0, -0x8(%rbp)
movapd %xmm2, %xmm0
callq 0x2230
mulsd -0x8(%rbp), %xmm0
movsd -0x10(%rbp), %xmm1
mulsd 0x677f(%rip), %xmm1     # 0xc170
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Base.cpp
// Function: setReferPathLength(ReferencePath*)
void setReferPathLength(ReferencePath* temPath)
{
	temPath->referenceLength = 0.0;
	for (unsigned int i = 0; i < temPath->edges.size(); i++)
	{
		Edge temEdge = temPath->edges[i];
		temPath->referenceLength += (temEdge.realLength);
	}
}

// Assembly:
movq 0x20(%rdi), %rax
movq 0x28(%rdi), %rcx
movq $0x0, 0x18(%rdi)
subq %rax, %rcx
je 0x5a48
pushq %rbp
movq %rsp, %rbp
sarq $0x5, %rcx
addq $0x18, %rax
xorpd %xmm0, %xmm0
movl $0x1, %edx
addsd (%rax), %xmm0
movsd %xmm0, 0x18(%rdi)
movl %edx, %esi
addq $0x20, %rax
incl %edx
cmpq %rsi, %rcx
ja 0x5a31
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Base.cpp
// Function: filterVertexIsSafeArea(Graph*, ReferencePath*)
void filterVertexIsSafeArea(Graph* myGraph, ReferencePath* temPath)
{
	printf("Start filtering the vertices in the safe area...\n");
	int count = 0;
	for (int i = 0; i < (myGraph->vertexPos); i++)
	{
		if (myGraph->vertexsVector[i].referFlag == true)
		{
			myGraph->vertexsVector[i].locationFlag = true;
			count++;
			continue;
		}
		for (unsigned int j = 0; j < temPath->edges.size(); j++)
		{
			double x = myGraph->vertexsVector[i].longitude;
			double y = myGraph->vertexsVector[i].latitude;
			double x1 = myGraph->vertexsVector[temPath->edges[j].firstVertexID].longitude;
			double y1 = myGraph->vertexsVector[temPath->edges[j].firstVertexID].latitude;
			double x2 = myGraph->vertexsVector[temPath->edges[j].secVertexID].longitude;
			double y2 = myGraph->vertexsVector[temPath->edges[j].secVertexID].latitude;
			double dist = pointToSegDist(x, y, x1, y1, x2, y2);
			if (dist <= (myGraph->delta))
			{
				myGraph->vertexsVector[i].locationFlag = true;
				count++;
				break;
			}
		}
	}
	printf("Finished filtering the vertices in the safe area!!!\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, -0x38(%rbp)
movq %rdi, %rbx
leaq 0x6a4d(%rip), %rdi      # 0xc4b5
callq 0x21b0
movq %rbx, -0x30(%rbp)
movslq 0x4(%rbx), %rax
movq %rax, -0x48(%rbp)
testq %rax, %rax
jle 0x5b61
movq -0x30(%rbp), %rax
movq 0x10(%rax), %r12
xorl %r13d, %r13d
imulq $0x70, %r13, %rcx
leaq (%r12,%rcx), %rax
cmpb $0x0, 0x10(%r12,%rcx)
je 0x5aa6
addq $0x11, %rax
jmp 0x5b51
movq %rcx, -0x40(%rbp)
movq -0x38(%rbp), %rcx
movq 0x20(%rcx), %rbx
movq 0x28(%rcx), %r15
subq %rbx, %r15
je 0x5b54
sarq $0x5, %r15
movsd 0x18(%rax), %xmm0
movsd %xmm0, -0x60(%rbp)
movsd 0x20(%rax), %xmm0
movsd %xmm0, -0x58(%rbp)
movq -0x30(%rbp), %rax
movsd 0x18(%rax), %xmm0
movsd %xmm0, -0x50(%rbp)
movl $0x1, %r14d
xorl %eax, %eax
shlq $0x5, %rax
movslq 0x4(%rbx,%rax), %rcx
imulq $0x70, %rcx, %rcx
movsd 0x18(%r12,%rcx), %xmm2
movsd 0x20(%r12,%rcx), %xmm3
movslq 0x8(%rbx,%rax), %rax
imulq $0x70, %rax, %rax
movsd 0x18(%r12,%rax), %xmm4
movsd 0x20(%r12,%rax), %xmm5
movsd -0x60(%rbp), %xmm0
movsd -0x58(%rbp), %xmm1
callq 0x5b7b
movsd -0x50(%rbp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x5b46
movl %r14d, %eax
incl %r14d
cmpq %rax, %r15
ja 0x5aed
jmp 0x5b54
movq -0x40(%rbp), %rax
addq %r12, %rax
addq $0x11, %rax
movb $0x1, (%rax)
incq %r13
cmpq -0x48(%rbp), %r13
jne 0x5a8d
leaq 0x697e(%rip), %rdi      # 0xc4e6
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21b0
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Base.cpp
// Function: pointToSegDist(double, double, double, double, double, double)
double pointToSegDist(const double x, const double y, const double x1, const double y1, const double x2, const double y2)
{
	double cross = (x2 - x1) * (x - x1) + (y2 - y1) * (y - y1);
	if (cross <= 0)
	{
		return sqrt((x - x1) * (x - x1) + (y - y1) * (y - y1));
	}
	double d2 = (x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1);
	if (cross >= d2)
	{
		return sqrt((x - x2) * (x - x2) + (y - y2) * (y - y2));
	}
	double r = cross / d2;
	double px = x1 + (x2 - x1) * r;
	double py = y1 + (y2 - y1) * r;
	return sqrt((x - px) * (x - px) + (py - y) * (py - y));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movapd %xmm4, %xmm7
subsd %xmm2, %xmm7
movapd %xmm0, %xmm8
subsd %xmm2, %xmm8
movapd %xmm5, %xmm6
subsd %xmm3, %xmm6
movapd %xmm1, %xmm10
subsd %xmm3, %xmm10
movapd %xmm10, %xmm11
mulsd %xmm6, %xmm11
movapd %xmm7, %xmm9
mulsd %xmm8, %xmm9
addsd %xmm11, %xmm9
xorpd %xmm11, %xmm11
ucomisd %xmm9, %xmm11
jae 0x5c15
movapd %xmm6, %xmm10
mulsd %xmm6, %xmm10
movapd %xmm7, %xmm8
mulsd %xmm7, %xmm8
addsd %xmm10, %xmm8
ucomisd %xmm8, %xmm9
jae 0x5c26
divsd %xmm8, %xmm9
mulsd %xmm9, %xmm7
addsd %xmm2, %xmm7
mulsd %xmm9, %xmm6
addsd %xmm3, %xmm6
subsd %xmm7, %xmm0
subsd %xmm1, %xmm6
mulsd %xmm6, %xmm6
mulsd %xmm0, %xmm0
addsd %xmm6, %xmm0
jmp 0x5c3a
mulsd %xmm10, %xmm10
mulsd %xmm8, %xmm8
addsd %xmm10, %xmm8
jmp 0x5c3f
subsd %xmm4, %xmm0
subsd %xmm5, %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
movapd %xmm0, %xmm8
xorps %xmm0, %xmm0
sqrtsd %xmm8, %xmm0
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Base.cpp
// Function: setMinPosAndMaxPos(Graph*, ReferencePath*)
void setMinPosAndMaxPos(Graph* myGraph, ReferencePath* temReferPath)
{
	printf("Start to set the minPos and maxPos of each vertex...\n");
	for (unsigned int i = 0; i < (myGraph->vertexPos); i++)
	{
		myGraph->vertexsVector[i].minPos = 0;
		myGraph->vertexsVector[i].maxPos = 0;
		if (myGraph->vertexsVector[i].locationFlag == true)
		{
			double x1 = myGraph->vertexsVector[i].longitude;
			double y1 = myGraph->vertexsVector[i].latitude;
			for (unsigned int j = 0; j < temReferPath->numOfReferPoint; j++)
			{
				double x2 = temReferPath->pointOfRefer[j].x;
				double y2 = temReferPath->pointOfRefer[j].y;
				double dist = euc(x1, y1, x2, y2);
				if (dist <= (myGraph->delta))
				{
					myGraph->vertexsVector[i].minPos = j;
					break;
				}
			}
			int numOfReferPoint = temReferPath->numOfReferPoint - 1;
			for (int j = numOfReferPoint; j >= 0; j--)
			{
				double x2 = temReferPath->pointOfRefer[j].x;
				double y2 = temReferPath->pointOfRefer[j].y;
				double dist = euc(x1, y1, x2, y2);
				if (dist <= (myGraph->delta))
				{
					myGraph->vertexsVector[i].maxPos = j;
					break;
				}
			}
		}
	}
	printf("The minPos and maxPos of each vertex are set...\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x68bd(%rip), %rdi      # 0xc51a
callq 0x21b0
movl 0x4(%r14), %eax
testq %rax, %rax
je 0x5d59
movq 0x10(%r14), %rcx
xorl %edx, %edx
imulq $0x70, %rdx, %rdi
movq $0x0, 0x4(%rcx,%rdi)
cmpb $0x1, 0x11(%rcx,%rdi)
jne 0x5d4d
leaq (%rcx,%rdi), %rsi
movsd 0x18(%rsi), %xmm0
movsd 0x20(%rsi), %xmm1
movl 0x8(%rbx), %esi
testq %rsi, %rsi
je 0x5cf3
leaq (%rcx,%rdi), %r8
addq $0x4, %r8
movq 0x10(%rbx), %r9
movsd 0x18(%r14), %xmm2
addq $0x8, %r9
xorl %r10d, %r10d
movapd %xmm0, %xmm3
subsd -0x8(%r9), %xmm3
movapd %xmm1, %xmm4
subsd (%r9), %xmm4
mulsd %xmm4, %xmm4
mulsd %xmm3, %xmm3
addsd %xmm4, %xmm3
sqrtsd %xmm3, %xmm3
ucomisd %xmm3, %xmm2
jae 0x5cf7
incq %r10
addq $0x10, %r9
cmpq %r10, %rsi
jne 0x5cbc
jmp 0x5cfa
xorl %esi, %esi
jmp 0x5cfa
movl %r10d, (%r8)
addq %rcx, %rdi
addq $0x8, %rdi
movq %rsi, %r8
shlq $0x4, %r8
addq $-0x8, %r8
testl %esi, %esi
jle 0x5d4d
movq 0x10(%rbx), %r9
movapd %xmm0, %xmm2
subsd -0x8(%r9,%r8), %xmm2
movapd %xmm1, %xmm3
subsd (%r9,%r8), %xmm3
mulsd %xmm3, %xmm3
mulsd %xmm2, %xmm2
addsd %xmm3, %xmm2
sqrtsd %xmm2, %xmm2
movsd 0x18(%r14), %xmm3
decl %esi
addq $-0x10, %r8
ucomisd %xmm2, %xmm3
jb 0x5d0c
movl %esi, (%rdi)
incq %rdx
cmpq %rax, %rdx
jne 0x5c75
leaq 0x67ef(%rip), %rdi      # 0xc54f
popq %rbx
popq %r14
popq %rbp
jmp 0x21b0
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Base.cpp
// Function: setReferDFDFlag(Graph*, ReferencePath*)
void setReferDFDFlag(Graph* myGraph, ReferencePath* temPath)
{
	Vertex finalVertex = myGraph->vertexsVector[temPath->finalVertex];
	if (finalVertex.locationFlag == false)
	{
		temPath->referDFDFlag = false;
	}
	else
	{
		int flag = 0;
		for (int j = finalVertex.minPos; j <= finalVertex.maxPos; j++)
		{
			double x1 = finalVertex.longitude;
			double y1 = finalVertex.latitude;
			double x2 = temPath->pointOfRefer[j].x;
			double y2 = temPath->pointOfRefer[j].y;
			if (euc(x1, y1, x2, y2) > (myGraph->delta))
			{
				flag = 1;
				break;
			}
		}
		if (flag == 1)
		{
			temPath->referDFDFlag = false;
		}
		else
		{
			temPath->referDFDFlag = true;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdi), %r15
movslq 0x4(%rsi), %rax
imulq $0x70, %rax, %r12
leaq (%r15,%r12), %rsi
addq $0x40, %rsi
movupd -0x40(%rsi), %xmm0
movupd -0x30(%rsi), %xmm1
movupd -0x20(%rsi), %xmm2
movupd -0x10(%rsi), %xmm3
leaq -0x50(%rbp), %rdi
movapd %xmm3, -0x10(%rdi)
movapd %xmm2, -0x20(%rdi)
movapd %xmm1, -0x30(%rdi)
movapd %xmm0, -0x40(%rdi)
callq 0x6c1e
leaq -0x38(%rbp), %rdi
leaq (%r15,%r12), %rsi
addq $0x58, %rsi
callq 0x6c1e
cmpb $0x0, -0x7f(%rbp)
je 0x5e62
movslq -0x8c(%rbp), %rsi
movl -0x88(%rbp), %ecx
movb $0x1, %al
cmpl %ecx, %esi
jg 0x5e64
movsd -0x78(%rbp), %xmm0
movsd -0x70(%rbp), %xmm1
movq 0x10(%rbx), %rdx
movsd 0x18(%r14), %xmm2
movq %rsi, %rdi
shlq $0x4, %rdi
addq %rdi, %rdx
addq $0x8, %rdx
subl %esi, %ecx
incl %ecx
movapd %xmm0, %xmm3
subsd -0x8(%rdx), %xmm3
movapd %xmm1, %xmm4
subsd (%rdx), %xmm4
mulsd %xmm4, %xmm4
mulsd %xmm3, %xmm3
addsd %xmm4, %xmm3
sqrtsd %xmm3, %xmm3
ucomisd %xmm2, %xmm3
ja 0x5e62
addq $0x10, %rdx
decl %ecx
jne 0x5e31
jmp 0x5e64
xorl %eax, %eax
movb %al, 0xc(%rbx)
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x5e75
callq 0x2120
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x5e83
callq 0x2120
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x5ea1
callq 0x2120
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Base.cpp
// Function: setDistToRefer(Graph*, ReferencePath*)
void setDistToRefer(Graph* myGraph, ReferencePath* temPath)
{
	printf("Start calculating the shortest distance from each vertex to the reference path...\n");
	for (unsigned int i = 0; i < myGraph->vertexPos; i++)
	{
		double temDist = std::numeric_limits<double>::max();
		if (myGraph->vertexsVector[i].referFlag == true)
		{
			myGraph->vertexsVector[i].distToRefer = 0;
			continue;
		}
		for (unsigned int j = 0; j < temPath->edges.size(); j++)
		{
			double x  = myGraph->vertexsVector[i].longitude;
			double y  = myGraph->vertexsVector[i].latitude;
			double x1 = myGraph->vertexsVector[temPath->edges[j].firstVertexID].longitude;
			double y1 = myGraph->vertexsVector[temPath->edges[j].firstVertexID].latitude;
			double x2 = myGraph->vertexsVector[temPath->edges[j].secVertexID].longitude;
			double y2 = myGraph->vertexsVector[temPath->edges[j].secVertexID].latitude;
			double dist = pointToSegDist(x, y, x1, y1, x2, y2);
			temDist = dist < temDist ? dist : temDist;
		}
		myGraph->vertexsVector[i].distToRefer = temDist;
	}
	printf("The shortest distance from each vertex to the reference path is calculated!!!\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, -0x38(%rbp)
movq %rdi, %r14
leaq 0x66b7(%rip), %rdi      # 0xc57f
callq 0x21b0
movl 0x4(%r14), %ecx
testq %rcx, %rcx
je 0x5fbf
movq 0x10(%r14), %r14
xorl %r12d, %r12d
movq %rcx, -0x30(%rbp)
imulq $0x70, %r12, %rdx
leaq (%r14,%rdx), %rax
cmpb $0x0, 0x10(%r14,%rdx)
je 0x5f02
movq $0x0, 0x28(%rax)
jmp 0x5fb3
movq %rdx, -0x40(%rbp)
movq -0x38(%rbp), %rcx
movq 0x20(%rcx), %rbx
movq 0x28(%rcx), %r15
movsd 0x625e(%rip), %xmm0     # 0xc178
subq %rbx, %r15
je 0x5fa4
sarq $0x5, %r15
movsd 0x18(%rax), %xmm0
movsd %xmm0, -0x50(%rbp)
movsd 0x20(%rax), %xmm0
movsd %xmm0, -0x48(%rbp)
addq $0x8, %rbx
movl $0x1, %r13d
movsd 0x622b(%rip), %xmm1     # 0xc178
movsd %xmm1, -0x58(%rbp)
movslq -0x4(%rbx), %rax
imulq $0x70, %rax, %rax
movsd 0x18(%r14,%rax), %xmm2
movsd 0x20(%r14,%rax), %xmm3
movslq (%rbx), %rax
imulq $0x70, %rax, %rax
movsd 0x18(%r14,%rax), %xmm4
movsd 0x20(%r14,%rax), %xmm5
movsd -0x50(%rbp), %xmm0
movsd -0x48(%rbp), %xmm1
callq 0x5b7b
minsd -0x58(%rbp), %xmm0
movl %r13d, %eax
addq $0x20, %rbx
incl %r13d
movapd %xmm0, %xmm1
cmpq %rax, %r15
ja 0x5f4d
movq -0x40(%rbp), %rax
movsd %xmm0, 0x28(%r14,%rax)
movq -0x30(%rbp), %rcx
incq %r12
cmpq %rcx, %r12
jne 0x5ee5
leaq 0x660b(%rip), %rdi      # 0xc5d1
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21b0
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Base.cpp
// Function: setTraversalOrderWeights(Graph*, ReferencePath*)
void setTraversalOrderWeights(Graph* myGraph, ReferencePath* temPath)
{
	const double x1 = myGraph->vertexsVector[temPath->finalVertex].longitude;
	const double y1 = myGraph->vertexsVector[temPath->finalVertex].latitude;
	double maxEuc = 0.0;
	for (unsigned int i = 0; i < myGraph->vertexPos; i++)
	{
		if (myGraph->vertexsVector[i].locationFlag == true)
		{
			const double x2 = myGraph->vertexsVector[i].longitude;
			const double y2 = myGraph->vertexsVector[i].latitude;
			double eucLength = euc(x1, y1, x2, y2);
			myGraph->vertexsVector[i].eucLengthToFinalVertex = eucLength;
			maxEuc = (std::max)(maxEuc, eucLength);
		}
	}
	for (unsigned int i = 0; i < myGraph->vertexPos; i++)
	{
		if (myGraph->vertexsVector[i].locationFlag == true)
		{
			double firstHalf = (myGraph->vertexsVector[i].distToRefer);
			double secHalf   = (myGraph->vertexsVector[i].eucLengthToFinalVertex) / (maxEuc / (myGraph->delta));
			double temWeights = (0.5) * firstHalf+ (0.5) * secHalf;
			myGraph->vertexsVector[i].traversalOrderWeights = temWeights;
		}
	}
}

// Assembly:
movl 0x4(%rdi), %edx
testq %rdx, %rdx
je 0x6098
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rdi), %rax
movslq 0x4(%rsi), %rcx
imulq $0x70, %rcx, %rcx
movsd 0x18(%rax,%rcx), %xmm1
movsd 0x20(%rax,%rcx), %xmm2
imulq $0x70, %rdx, %rcx
xorpd %xmm0, %xmm0
xorl %esi, %esi
cmpb $0x1, 0x11(%rax,%rsi)
jne 0x6044
movapd %xmm1, %xmm3
subsd 0x18(%rax,%rsi), %xmm3
movapd %xmm2, %xmm4
subsd 0x20(%rax,%rsi), %xmm4
mulsd %xmm4, %xmm4
mulsd %xmm3, %xmm3
addsd %xmm4, %xmm3
sqrtsd %xmm3, %xmm3
movsd %xmm3, 0x30(%rax,%rsi)
maxsd %xmm0, %xmm3
movapd %xmm3, %xmm0
addq $0x70, %rsi
cmpq %rsi, %rcx
jne 0x600b
testq %rdx, %rdx
je 0x6097
xorl %edx, %edx
movsd 0x6124(%rip), %xmm1     # 0xc180
cmpb $0x1, 0x11(%rax,%rdx)
jne 0x608e
movsd 0x30(%rax,%rdx), %xmm2
movapd %xmm0, %xmm3
divsd 0x18(%rdi), %xmm3
divsd %xmm3, %xmm2
mulsd %xmm1, %xmm2
movsd 0x28(%rax,%rdx), %xmm3
mulsd %xmm1, %xmm3
addsd %xmm2, %xmm3
movsd %xmm3, 0x38(%rax,%rdx)
addq $0x70, %rdx
cmpq %rdx, %rcx
jne 0x605c
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Base.cpp
// Function: setEdgeLength(Graph*, Edge*)
void setEdgeLength(Graph* myGraph, Edge* temEdge)
{
	double px = myGraph->vertexsVector[temEdge->firstVertexID].longitude;
	double py = myGraph->vertexsVector[temEdge->firstVertexID].latitude;
	double qx = myGraph->vertexsVector[temEdge->secVertexID].longitude;
	double qy = myGraph->vertexsVector[temEdge->secVertexID].latitude;
	double x = px - qx;
	double y = py - qy;
	temEdge->length = sqrt(x * x + y * y);
	temEdge->realLength = realDistance(x, y, py);
	// printf("%lf %lf %lf\n", x, y, py);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq 0x10(%rdi), %rax
movslq 0x4(%rsi), %rcx
imulq $0x70, %rcx, %rcx
movsd 0x18(%rax,%rcx), %xmm3
movsd 0x20(%rax,%rcx), %xmm0
movslq 0x8(%rsi), %rcx
imulq $0x70, %rcx, %rcx
subsd 0x18(%rax,%rcx), %xmm3
movapd %xmm0, %xmm1
subsd 0x20(%rax,%rcx), %xmm1
movsd %xmm1, -0x18(%rbp)
mulsd %xmm1, %xmm1
movapd %xmm3, %xmm2
mulsd %xmm3, %xmm2
addsd %xmm1, %xmm2
xorps %xmm1, %xmm1
sqrtsd %xmm2, %xmm1
movsd %xmm1, 0x10(%rsi)
mulsd 0x6072(%rip), %xmm3     # 0xc170
movsd %xmm3, -0x10(%rbp)
callq 0x2230
mulsd -0x10(%rbp), %xmm0
movsd -0x18(%rbp), %xmm1
mulsd 0x6056(%rip), %xmm1     # 0xc170
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
movsd %xmm0, 0x18(%rbx)
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Base.cpp
// Function: writeContinuousRecordToFile(Record*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, double)
void writeContinuousRecordToFile(Record record[], const unsigned int recordPos, const string filePath, double totalRunTime)
{
	FILE* fp = fopen(filePath.c_str(), "w");
	if (!fp)
	{
		printf("Error writing record infomation!!!\n");
	}
	else
	{
		int i = 0;
		while (i < recordPos)
		{
			fprintf(fp, "%lf\t", record[i].ratioNumEdge);
			fprintf(fp, "%lf\t", totalRunTime);
			fprintf(fp, "%d\t",  i + 1);
			fprintf(fp, "%d\t",  record[i].comPathSize);
			fprintf(fp, "%d\t",  record[i].numOfOutPriQueue);
			fprintf(fp, "%lf\t", record[i].referPathLength);
			fprintf(fp, "%lf\t", record[i].ratioPathLength);
			fprintf(fp, "%lf\t", record[i].currPathLength);
			fprintf(fp, "%lf\n", record[i].comPathLength);
			i++;
		}
	}
	fclose(fp);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movsd %xmm0, -0x38(%rbp)
movl %esi, %r15d
movq %rdi, %r14
movq (%rdx), %rdi
leaq 0x5e89(%rip), %rsi      # 0xc1aa
callq 0x2160
movq %rax, %rbx
testq %rax, %rax
je 0x6429
testl %r15d, %r15d
je 0x6435
movl %r15d, %eax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rax
movq %rax, -0x30(%rbp)
movl $0x1, %r15d
xorl %r13d, %r13d
movsd 0x38(%r14,%r13), %xmm0
movq %rbx, %rdi
leaq 0x5e48(%rip), %r12      # 0xc1ac
movq %r12, %rsi
movb $0x1, %al
callq 0x2180
movq %rbx, %rdi
movq %r12, %rsi
movsd -0x38(%rbp), %xmm0
movb $0x1, %al
callq 0x2180
movq %rbx, %rdi
leaq 0x5e27(%rip), %r12      # 0xc1b1
movq %r12, %rsi
movl %r15d, %edx
xorl %eax, %eax
callq 0x2180
movl 0x14(%r14,%r13), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x2180
movl 0x10(%r14,%r13), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x2180
movsd 0x48(%r14,%r13), %xmm0
movq %rbx, %rdi
leaq 0x5de0(%rip), %r12      # 0xc1ac
movq %r12, %rsi
movb $0x1, %al
callq 0x2180
movsd 0x40(%r14,%r13), %xmm0
movq %rbx, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x2180
movsd 0x28(%r14,%r13), %xmm0
movq %rbx, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x2180
movsd 0x30(%r14,%r13), %xmm0
movq %rbx, %rdi
leaq 0x5daa(%rip), %rsi      # 0xc1b9
movb $0x1, %al
callq 0x2180
addq $0x50, %r13
incl %r15d
cmpq %r13, -0x30(%rbp)
jne 0x6353
jmp 0x6435
leaq 0x6227(%rip), %rdi      # 0xc657
callq 0x21b0
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2130
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Base.cpp
// Function: checkIfAccess(Graph*, TraversingPath*, int)
bool checkIfAccess(Graph* myGraph, TraversingPath* temPath, const int vertexID)
{
	for (unsigned int i = 0; i < temPath->edges.size(); i++)
	{
		int firstVertexID = myGraph->edgesVector[temPath->edges[i]].firstVertexID;
		int secVertexID   = myGraph->edgesVector[temPath->edges[i]].secVertexID;
		if ((firstVertexID == vertexID) || (secVertexID == vertexID))
		{
			return false;
		}
	}
	return true;
}

// Assembly:
movq 0x28(%rsi), %rcx
movq 0x30(%rsi), %rsi
movb $0x1, %al
subq %rcx, %rsi
je 0x688e
pushq %rbp
movq %rsp, %rbp
sarq $0x2, %rsi
movq 0x8(%rdi), %rdi
movl $0x1, %r8d
xorl %r9d, %r9d
movslq (%rcx,%r9,4), %r9
shlq $0x5, %r9
cmpl %edx, 0x4(%rdi,%r9)
je 0x688b
cmpl %edx, 0x8(%rdi,%r9)
je 0x688b
movl %r8d, %r9d
incl %r8d
cmpq %r9, %rsi
ja 0x6868
jmp 0x688d
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Base.cpp
// Function: updateLastPath(std::vector<Edge, std::allocator<Edge>>&, std::vector<Edge, std::allocator<Edge>>&, double*, double*)
void updateLastPath(std::vector<Edge>& lastPath, std::vector<Edge>& temLastPath, double* boundDistance, double* temBoundDistance)
{
	lastPath.clear();
	for (unsigned int j = 0; j < temLastPath.size(); j++)
	{
		lastPath.push_back(temLastPath[j]);
	}
	(*boundDistance) = (*temBoundDistance);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movq (%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x6a95
movq %rax, 0x8(%r12)
movq (%r15), %rax
cmpq %rax, 0x8(%r15)
je 0x6af0
movl $0x1, %r13d
xorl %edx, %edx
shlq $0x5, %rdx
addq %rax, %rdx
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x6acf
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, 0x8(%r12)
jmp 0x6ad7
movq %r12, %rdi
callq 0x4d16
movl %r13d, %edx
movq (%r15), %rax
movq 0x8(%r15), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
incl %r13d
cmpq %rdx, %rcx
ja 0x6aa6
movsd (%r14), %xmm0
movsd %xmm0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Construct.cpp
// Function: readVertexs(Graph*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void readVertexs(Graph* myGraph, const std::string nodeFilePath)
{
	printf("Reading vertex information from file...\n");
	int   count = 0;
	char  line[100];
	FILE* fp;
	char* p;
	fp = fopen(nodeFilePath.c_str(), "r");
	if (!fp)
	{
		printf("Error when reading vertex file...\n");
	}
	else
	{
		myGraph->vertexPos = 0;
		while (fgets(line, 100, fp) != NULL)
		{
			p = strtok(line, " |\t");
			int ID = atoi(p);
			p = strtok(NULL, " |\t");
			double latitude = atof(p);
			p = strtok(NULL, " |\t");
			double longitude = atof(p);
			myGraph->vertexsVector[myGraph->vertexPos].vertexID  = ID;
			myGraph->vertexsVector[myGraph->vertexPos].longitude = longitude;
			myGraph->vertexsVector[myGraph->vertexPos].latitude  = latitude;
			myGraph->vertexPos += 1;
			count++;
		}
	}
	fclose(fp);
	printf("Finish reading vertex information from file---A total of %d vertex are read!!!\n", count);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x589d(%rip), %rdi      # 0xc84b
callq 0x21b0
movq (%rbx), %rdi
leaq 0x57ec(%rip), %rsi      # 0xc7a9
callq 0x2160
movq %rax, %r13
testq %rax, %rax
je 0x7088
movl $0x0, 0x4(%r14)
leaq -0xa0(%rbp), %rdi
movl $0x64, %esi
movq %r13, %rdx
callq 0x21e0
testq %rax, %rax
je 0x7094
xorl %r15d, %r15d
leaq -0xa0(%rbp), %rdi
leaq 0x57a7(%rip), %r12      # 0xc7ab
movq %r12, %rsi
callq 0x21d0
movq %rax, %rdi
callq 0x21c0
movl %eax, %ebx
xorl %edi, %edi
movq %r12, %rsi
callq 0x21d0
movq %rax, %rdi
callq 0x2170
movsd %xmm0, -0x30(%rbp)
xorl %edi, %edi
movq %r12, %rsi
callq 0x21d0
movq %rax, %rdi
callq 0x2170
movq 0x10(%r14), %rax
movslq 0x4(%r14), %rcx
imulq $0x70, %rcx, %rdx
movl %ebx, (%rax,%rdx)
movsd %xmm0, 0x18(%rax,%rdx)
movsd -0x30(%rbp), %xmm0
movsd %xmm0, 0x20(%rax,%rdx)
leal 0x1(%rcx), %eax
movl %eax, 0x4(%r14)
incl %r15d
leaq -0xa0(%rbp), %rdi
movl $0x64, %esi
movq %r13, %rdx
callq 0x21e0
testq %rax, %rax
jne 0x6ff6
jmp 0x7097
leaq 0x57e4(%rip), %rdi      # 0xc873
callq 0x21b0
xorl %r15d, %r15d
movq %r13, %rdi
callq 0x2130
leaq 0x5709(%rip), %rdi      # 0xc7af
movl %r15d, %esi
xorl %eax, %eax
callq 0x2040
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Construct.cpp
// Function: readReferencePath(Graph*, ReferencePath*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void readReferencePath(Graph* myGraph, ReferencePath* referencePath, const std::string referFilePath)
{
	printf("Reading reference path information from file...\n");
	int   count = 0;
	char  line[200];
	FILE* fp;
	char* p;
	fp = fopen(referFilePath.c_str(), "r");
	if (!fp)
	{
		printf("Error when reading reference path file...\n");
	}
	else
	{
		while (fgets(line, 200, fp) != NULL)
		{
			p = strtok(line, " |\t");
			int pos = atoi(p);
			referencePath->edges.push_back(myGraph->edgesVector[pos]);
			myGraph->vertexsVector[myGraph->edgesVector[pos].firstVertexID].referFlag = true;
			myGraph->vertexsVector[myGraph->edgesVector[pos].secVertexID].referFlag   = true;
			count++;
		}
	}
	fclose(fp);
	printf("Finish reading reference path information from file!!!\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x55e9(%rip), %rdi      # 0xc8db
callq 0x21b0
movq (%r15), %rdi
leaq 0x54a8(%rip), %rsi      # 0xc7a9
callq 0x2160
movq %rax, %r12
testq %rax, %rax
je 0x73d0
leaq -0x100(%rbp), %rdi
movl $0xc8, %esi
movq %r12, %rdx
callq 0x21e0
testq %rax, %rax
je 0x73dc
leaq 0x20(%rbx), %rax
movq %rax, -0x30(%rbp)
leaq -0x100(%rbp), %rdi
movq %rdi, %r13
leaq 0x5463(%rip), %rsi      # 0xc7ab
callq 0x21d0
movq %rax, %rdi
callq 0x21c0
movslq %eax, %r15
shlq $0x5, %r15
movq 0x8(%r14), %rdx
addq %r15, %rdx
movq 0x28(%rbx), %rsi
cmpq 0x30(%rbx), %rsi
je 0x7382
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, 0x28(%rbx)
jmp 0x738b
movq -0x30(%rbp), %rdi
callq 0x4d16
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movslq 0x4(%rax,%r15), %rdx
imulq $0x70, %rdx, %rdx
movb $0x1, %sil
movb %sil, 0x10(%rcx,%rdx)
movslq 0x8(%rax,%r15), %rax
imulq $0x70, %rax, %rax
movb %sil, 0x10(%rcx,%rax)
movq %r13, %rdi
movl $0xc8, %esi
movq %r12, %rdx
callq 0x21e0
movq %r13, %rdi
testq %rax, %rax
jne 0x733e
jmp 0x73dc
leaq 0x5534(%rip), %rdi      # 0xc90b
callq 0x21b0
movq %r12, %rdi
callq 0x2130
leaq 0x554a(%rip), %rdi      # 0xc935
callq 0x21b0
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Construct.cpp
// Function: readCompletePath(Graph*, CompletePath*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void readCompletePath(Graph* myGraph, CompletePath* completePath, const std::string comFilePath)
{
	int   count = 0;
	char  line[200];
	FILE* fp;
	char* p;
	fp = fopen(comFilePath.c_str(), "r");
	if (!fp)
	{
		printf("Error when reading complete path file...\n");
	}
	else
	{
		while (fgets(line, 200, fp) != NULL)
		{
			p = strtok(line, " |\t");
			int pos = atoi(p);
			completePath->edges.push_back(myGraph->edgesVector[pos]);
			count++;
		}
	}
	fclose(fp);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r14
movq %rdi, %r15
movq (%rdx), %rdi
leaq 0x5383(%rip), %rsi      # 0xc7a9
callq 0x2160
movq %rax, %rbx
testq %rax, %rax
je 0x74c3
leaq -0x100(%rbp), %rdi
movl $0xc8, %esi
movq %rbx, %rdx
callq 0x21e0
testq %rax, %rax
je 0x74cf
leaq 0x10(%r14), %rax
movq %rax, -0x30(%rbp)
leaq 0x534c(%rip), %r13      # 0xc7ab
leaq -0x100(%rbp), %r12
movq %r12, %rdi
movq %r13, %rsi
callq 0x21d0
movq %rax, %rdi
callq 0x21c0
movslq %eax, %rdx
shlq $0x5, %rdx
addq 0x8(%r15), %rdx
movq 0x18(%r14), %rsi
cmpq 0x20(%r14), %rsi
je 0x74a3
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups %xmm1, 0x10(%rsi)
movups %xmm0, (%rsi)
addq $0x20, 0x18(%r14)
jmp 0x74ac
movq -0x30(%rbp), %rdi
callq 0x4d16
movq %r12, %rdi
movl $0xc8, %esi
movq %rbx, %rdx
callq 0x21e0
testq %rax, %rax
jne 0x7466
jmp 0x74cf
leaq 0x54a2(%rip), %rdi      # 0xc96c
callq 0x21b0
movq %rbx, %rdi
callq 0x2130
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Discrete.cpp
// Function: discreteReferPath(Graph*, ReferencePath*)
void discreteReferPath(Graph* myGraph, ReferencePath* temPath)
{
	// printf("Start discretizing the reference path...\n");
	temPath->numOfReferPoint = 0;
	std::vector<Point> pointList;
	pointList = creatTrajPoint(myGraph, temPath->edges, temPath->initialVertex);
	for (unsigned int i = 0; i < pointList.size(); i++)
	{
		temPath->pointOfRefer[i].x = pointList[i].x;
		temPath->pointOfRefer[i].y = pointList[i].y;
		temPath->numOfReferPoint += 1;
	}
	// printf("Discretization of the reference path completed!!!\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %rsi
movl $0x0, 0x8(%rbx)
leaq 0x20(%rbx), %rdx
movl (%rbx), %ecx
leaq -0x28(%rbp), %r14
movq %r14, %rdi
callq 0x7577
movq (%r14), %rdi
movq 0x8(%r14), %rax
subq %rdi, %rax
je 0x7564
sarq $0x4, %rax
movq 0x10(%rbx), %rdx
movl 0x8(%rbx), %ecx
movl $0x8, %esi
movl $0x1, %r8d
movsd -0x8(%rdi,%rsi), %xmm0
movsd %xmm0, -0x8(%rdx,%rsi)
movsd (%rdi,%rsi), %xmm0
movsd %xmm0, (%rdx,%rsi)
incl %ecx
movl %r8d, %r9d
addq $0x10, %rsi
incl %r8d
cmpq %r9, %rax
ja 0x7538
movl %ecx, 0x8(%rbx)
jmp 0x7569
testq %rdi, %rdi
je 0x756e
callq 0x2120
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Frechet.cpp
// Function: DFD(Graph*, std::vector<Edge, std::allocator<Edge>>, ReferencePath*)
double DFD(Graph* myGraph, std::vector<Edge> finalPath, ReferencePath* referencePath)
{
	std::vector<Point> temPointList;
	temPointList = creatTrajPoint(myGraph, finalPath, referencePath->initialVertex);
	Point p[temPointList.size()];
	for (unsigned int i = 0; i < temPointList.size(); i++)
	{
		p[i].x = temPointList[i].x;
		p[i].y = temPointList[i].y;
	}
	double temDist = dfdDist(temPointList.size(), referencePath->numOfReferPoint, p, referencePath->pointOfRefer);
	return temDist;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %rdx
movq %rdi, %rsi
movl (%r14), %ecx
leaq -0x40(%rbp), %r15
movq %r15, %rdi
callq 0x7577
movq %rsp, %r12
movq (%r15), %rbx
movq 0x8(%r15), %rax
movq %rax, %rdi
subq %rbx, %rdi
movq %rsp, %rdx
subq %rdi, %rdx
sarq $0x4, %rdi
movq %rdx, %rsp
cmpq %rbx, %rax
je 0x7ecb
movl $0x8, %eax
movl $0x1, %ecx
movsd -0x8(%rbx,%rax), %xmm0
movsd %xmm0, -0x8(%rdx,%rax)
movsd (%rbx,%rax), %xmm0
movsd %xmm0, (%rdx,%rax)
movl %ecx, %esi
addq $0x10, %rax
incl %ecx
cmpq %rsi, %rdi
ja 0x7ea8
movl 0x8(%r14), %esi
movq 0x10(%r14), %rcx
callq 0x7924
movq %r12, %rsp
testq %rbx, %rbx
je 0x7ef2
movq %rbx, %rdi
movsd %xmm0, -0x28(%rbp)
callq 0x2120
movsd -0x28(%rbp), %xmm0
leaq -0x20(%rbp), %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
testq %rbx, %rbx
je 0x7f0f
movq %rbx, %rdi
callq 0x2120
movq %r14, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O3/Proudc[P]CTSS/src/ContinuousQuery/Frechet.cpp
// Function: dfdBetweenTwoLocalPaths(Graph*, std::vector<Edge, std::allocator<Edge>>&, std::vector<Edge, std::allocator<Edge>>&, int)
double dfdBetweenTwoLocalPaths(Graph* myGraph, std::vector<Edge>& firstPath, std::vector<Edge>& secPath, int initialVertex)
{
	std::vector<Point> firstPointList;
	std::vector<Point> secPointList;
	firstPointList = creatTrajPoint(myGraph, firstPath, initialVertex);
	secPointList   = creatTrajPoint(myGraph, secPath, initialVertex);
	Point p[firstPointList.size()];
	Point q[secPointList.size()];
	for (unsigned int i = 0; i < firstPointList.size(); i++)
	{
		p[i].x = firstPointList[i].x;
		p[i].y = firstPointList[i].y;
	}
	for (unsigned int i = 0; i < secPointList.size(); i++)
	{
		q[i].x = secPointList[i].x;
		q[i].y = secPointList[i].y;
	}
	return dfdDist(firstPointList.size(), secPointList.size(), p, q);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %r14d
movq %rdx, %r15
movq %rsi, %rdx
movq %rdi, %r12
leaq -0x48(%rbp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x7577
movq (%r13), %rbx
movq 0x8(%r13), %r13
leaq -0x48(%rbp), %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %r14d, %ecx
callq 0x7577
movq %rsp, %r15
movq -0x48(%rbp), %r14
movq -0x40(%rbp), %rax
movq %r13, %rdi
subq %rbx, %rdi
movq %rsp, %rdx
subq %rdi, %rdx
sarq $0x4, %rdi
movq %rdx, %rsp
movq %rax, %rsi
subq %r14, %rsi
movq %rsp, %rcx
subq %rsi, %rcx
movq %rcx, %rsp
cmpq %rbx, %r13
je 0x7fc4
movl $0x8, %r8d
movl $0x1, %r9d
movsd -0x8(%rbx,%r8), %xmm0
movsd %xmm0, -0x8(%rdx,%r8)
movsd (%rbx,%r8), %xmm0
movsd %xmm0, (%rdx,%r8)
movl %r9d, %r10d
addq $0x10, %r8
incl %r9d
cmpq %r10, %rdi
ja 0x7f9b
sarq $0x4, %rsi
cmpq %r14, %rax
je 0x7fff
movl $0x8, %eax
movl $0x1, %r8d
movsd -0x8(%r14,%rax), %xmm0
movsd %xmm0, -0x8(%rcx,%rax)
movsd (%r14,%rax), %xmm0
movsd %xmm0, (%rcx,%rax)
movl %r8d, %r9d
addq $0x10, %rax
incl %r8d
cmpq %r9, %rsi
ja 0x7fd8
callq 0x7924
movsd %xmm0, -0x30(%rbp)
movq %r15, %rsp
testq %r14, %r14
je 0x8019
movq %r14, %rdi
callq 0x2120
testq %rbx, %rbx
je 0x8026
movq %rbx, %rdi
callq 0x2120
movsd -0x30(%rbp), %xmm0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
testq %r14, %r14
je 0x804f
movq %r14, %rdi
callq 0x2120
jmp 0x804f
movq %rax, %r15
testq %rbx, %rbx
je 0x805c
movq %rbx, %rdi
callq 0x2120
movq %r15, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O3/jorbs[P]stellar-keypair-tool/keypair.cpp
// Function: encode[abi:cxx11](VersionByte const&, std::vector<unsigned char, std::allocator<unsigned char>>&)
std::string encode(const VersionByte &versionByte, std::vector<uint8_t> &data) {
  std::vector<uint8_t> bytes;

  bytes.push_back(versionByte);
  bytes.insert(bytes.end(), data.begin(), data.end());

  uint16_t crc = crc16((char *) bytes.data(), bytes.size());

  bytes.emplace_back(static_cast<uint8_t>(crc & 0xFF));
  bytes.emplace_back(static_cast<uint8_t>((crc >> 8) & 0xFF));

  return bn::encode_b32(bytes);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdx, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movb (%rsi), %al
leaq 0xf(%rsp), %rsi
movb %al, (%rsi)
callq 0x2de2
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rsi
movq (%r14), %rdx
movq 0x8(%r14), %rcx
callq 0x306a
movq 0x10(%rsp), %rdi
movl 0x18(%rsp), %esi
subl %edi, %esi
callq 0x3624
movl %eax, %ebx
leaq 0xf(%rsp), %rsi
movb %bl, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x2de2
movb %bh, 0xf(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rsi
callq 0x2de2
leaq 0x10(%r15), %rbx
movq %rbx, (%r15)
movq $0x0, 0x8(%r15)
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
addq $0x2, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
mulq %rcx
movb $0x0, 0x10(%r15)
andq $-0x2, %rdx
leaq 0x1(,%rdx,2), %rsi
movq %r15, %rdi
callq 0x2220
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %r15, %rdx
callq 0x3344
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x261a
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %r15, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x262f
jmp 0x262f
jmp 0x262f
jmp 0x262f
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2649
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
movq %r14, %rdi
callq 0x2290
movq %rax, %r14
movq (%r15), %rdi
cmpq %rbx, %rdi
je 0x2632
movq (%rbx), %rsi
incq %rsi
callq 0x2180
jmp 0x2632
// File: /workspace/github_cpp_makefile_star2_O3/jorbs[P]stellar-keypair-tool/lib/crc16.cpp
// Function: crc16(char const*, int)
uint16_t crc16(const char *buf, int len) {
    int counter;
    uint16_t crc = 0;
    for (counter = 0; counter < len; counter++)
            crc = ((crc<<8) & uint16_t(0xFFFF)) ^
        crc16tab[((crc>>8) ^ *buf++) & uint16_t(0x00FF)];
    return crc;
}

// Assembly:
testl %esi, %esi
jle 0x365c
movl %esi, %ecx
xorl %edx, %edx
leaq 0xd6d(%rip), %rsi       # 0x43a0
xorl %r8d, %r8d
movl %r8d, %eax
shll $0x8, %eax
movzwl %r8w, %r8d
shrl $0x8, %r8d
movzbl (%rdi,%rdx), %r9d
xorl %r8d, %r9d
xorw (%rsi,%r9,2), %ax
incq %rdx
movl %eax, %r8d
cmpl %edx, %ecx
jne 0x3636
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/searsm8[P]FM_Partitioning/fmpart.cpp
// Function: initialPartition()
void initialPartition()
{
	srand(time(0)); //use current time for random seed				
	int index;
	
	//randomly move cells into other partition until approximately half area in each
	while((float)partition_area[1] / (float)(partition_area[0] + partition_area[1]) < .5 )
	{
		//select a random cell to move to partition 1
		index = rand() % cells.size();
		if(cells[index]->partition == 0)
		{	
			cells[index]->partition = 1;
			cells[index]->best_partition = 1;
			partition_area[0] -= cells[index]->area;
			partition_area[1] += cells[index]->area;		
		}
	}
	
	printf("\nInitial Partition:\n");		
	printPartitionAreas();		
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
xorl %edi, %edi
callq 0x2130
movl %eax, %edi
callq 0x2150
movl 0x52b3(%rip), %eax      # 0x8250
cvtsi2ss %eax, %xmm0
addl 0x52a5(%rip), %eax      # 0x824c
cvtsi2ss %eax, %xmm1
divss %xmm1, %xmm0
movss 0x2069(%rip), %xmm1     # 0x5020
ucomiss %xmm0, %xmm1
jbe 0x3042
movabsq $0x100000001, %rbx      # imm = 0x100000001
callq 0x2060
cltq
movq 0x5230(%rip), %rcx      # 0x8208
movq 0x5221(%rip), %rsi      # 0x8200
subq %rsi, %rcx
sarq $0x3, %rcx
xorl %edx, %edx
divq %rcx
movslq %edx, %rax
movq (%rsi,%rax,8), %rdx
cmpl $0x0, 0x84(%rdx)
movl 0x5251(%rip), %ecx      # 0x8250
movl 0x5247(%rip), %eax      # 0x824c
jne 0x3021
movq %rbx, 0x84(%rdx)
movl 0x78(%rdx), %edx
subl %edx, %eax
movl %eax, 0x5233(%rip)      # 0x824c
addl %edx, %ecx
movl %ecx, 0x522f(%rip)      # 0x8250
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
addl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
divss %xmm1, %xmm0
movss 0x1fe3(%rip), %xmm1     # 0x5020
ucomiss %xmm0, %xmm1
ja 0x2fca
leaq 0x239e(%rip), %rdi      # 0x53e7
callq 0x21f0
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3059
// File: /workspace/github_cpp_makefile_star2_O3/searsm8[P]FM_Partitioning/fmpart.cpp
// Function: findCutsize()
void findCutsize()
{
	cut_size = 0;	
	
	//loop through each net. If there is at least one cell in each partition, add 1 to cutsize	
	for(int i = 0; i < nets.size(); i++)
	{		
		nets[i]->partition_count[0] = 0;
		nets[i]->partition_count[1] = 0;
		
		for(int j = 0; j < nets[i]->cell_list.size(); j++)
		{
			//count how many cells in each partition on this net
			nets[i]->partition_count[nets[i]->cell_list[j]->partition]++;			
		}
		
		if(nets[i]->partition_count[0] > 0 && nets[i]->partition_count[1] > 0)
			cut_size++;
	}				
	printf("Cutsize: %d\n", cut_size);
}

// Assembly:
movl $0x0, 0x5172(%rip)      # 0x8248
movq 0x5183(%rip), %rax      # 0x8260
movq 0x5174(%rip), %rcx      # 0x8258
subq %rcx, %rax
je 0x3161
pushq %rbp
movq %rsp, %rbp
sarq $0x3, %rax
cmpq $0x1, %rax
adcq $0x0, %rax
xorl %edx, %edx
movq (%rcx,%rdx,8), %rsi
movq $0x0, 0x6c(%rsi)
movq 0x78(%rsi), %rdi
movq 0x80(%rsi), %r8
subq %rdi, %r8
je 0x3150
sarq $0x3, %r8
cmpq $0x1, %r8
adcq $0x0, %r8
xorl %r9d, %r9d
movq (%rdi,%r9,8), %r10
movslq 0x84(%r10), %r10
incl 0x6c(%rsi,%r10,4)
incq %r9
cmpq %r9, %r8
jne 0x3126
cmpl $0x0, 0x6c(%rsi)
jle 0x3150
cmpl $0x0, 0x70(%rsi)
jle 0x3150
incl 0x50f8(%rip)            # 0x8248
incq %rdx
cmpq %rax, %rdx
jne 0x30fb
movl 0x50ea(%rip), %esi      # 0x8248
popq %rbp
jmp 0x3163
xorl %esi, %esi
leaq 0x1fd0(%rip), %rdi      # 0x513a
xorl %eax, %eax
jmp 0x2040
// File: /workspace/github_cpp_makefile_star2_O3/searsm8[P]FM_Partitioning/fmpart.cpp
// Function: printCutsize()
int printCutsize()  //finds and returns the cutsize from scratch
{
	int my_cut_size = 0;
	int my_partition_count[2];	
	
	//loop through each net. If there is at least one cell in each partition, add 1 to cutsize	
	for(int i = 0; i < nets.size(); i++)
	{		
		my_partition_count[0] = 0;
		my_partition_count[1] = 0;
		
		for(int j = 0; j < nets[i]->cell_list.size(); j++)
		{
			//count how many cells in each partition on this net
			my_partition_count[nets[i]->cell_list[j]->partition]++;			
		}

		if(my_partition_count[0] && my_partition_count[1])
			my_cut_size++;
	}		
		
	return my_cut_size;
}

// Assembly:
movq 0x50e8(%rip), %rcx      # 0x8260
movq 0x50d9(%rip), %rdx      # 0x8258
subq %rdx, %rcx
je 0x3209
pushq %rbp
movq %rsp, %rbp
sarq $0x3, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
xorl %eax, %eax
movq $0x0, -0x8(%rbp)
movq (%rdx,%rsi,8), %r8
movq 0x78(%r8), %rdi
movq 0x80(%r8), %r8
movl $0x0, %r9d
subq %rdi, %r8
je 0x31fc
sarq $0x3, %r8
cmpq $0x1, %r8
adcq $0x0, %r8
xorl %r9d, %r9d
movq (%rdi,%r9,8), %r10
movslq 0x84(%r10), %r10
incl -0x8(%rbp,%r10,4)
incq %r9
cmpq %r9, %r8
jne 0x31cd
cmpl $0x0, -0x8(%rbp)
setne %dil
cmpl $0x0, -0x4(%rbp)
setne %r8b
andb %dil, %r8b
movzbl %r8b, %r9d
addl %r9d, %eax
incq %rsi
cmpq %rcx, %rsi
jne 0x319c
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/searsm8[P]FM_Partitioning/fmpart.cpp
// Function: computeGains()
void computeGains()
{
	gain_bucket[0].clear();
	gain_bucket[1].clear();
	
	//look through all cells, compute gain for each cell 
	for(int i = 0; i < cells.size(); i++)
	{	
		cells[i]->gain = 0;
		
			
		//for each net the cell is in, check if there is any gain for that net
		for (int j = 0; j < cells[i]->net_list.size(); j++)
		{	
			NET* current_net = cells[i]->net_list[j];				
						
			//if there is exactly one cell in the "From" partition, increase gain
			if(current_net->partition_count[cells[i]->partition] == 1)
			{	
				cells[i]->gain++;
				current_net->critical = true;
			}
			
			//if there is exactly zero cells in the "To" partition, decrease gain
			if(current_net->partition_count[!cells[i]->partition] == 0)
			{	
				cells[i]->gain--;
				current_net->critical = true;
			}			
		}
		
		//add this cell to a gain bucket, and initialize gain_itr				
		cells[i]->gain_itr = gain_bucket[cells[i]->partition].insert(pair <int, CELL*> (cells[i]->gain,  cells[i]));	
	} 			
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x4f80(%rip), %rbx      # 0x81a0
movq %rbx, %rdi
callq 0x4c74
leaq 0x4fa1(%rip), %rdi      # 0x81d0
callq 0x4c74
movq 0x4fc5(%rip), %rcx      # 0x8200
cmpq %rcx, 0x4fc6(%rip)      # 0x8208
je 0x331f
xorl %r15d, %r15d
leaq -0x28(%rbp), %r14
movq (%rcx,%r15,8), %rax
movl $0x0, 0x80(%rax)
movq 0x98(%rax), %rdx
movq 0xa0(%rax), %rsi
subq %rdx, %rsi
je 0x32ce
sarq $0x3, %rsi
movslq 0x84(%rax), %rcx
xorl %edi, %edi
testq %rcx, %rcx
sete %dil
cmpq $0x1, %rsi
adcq $0x0, %rsi
xorl %r8d, %r8d
xorl %r9d, %r9d
movq (%rdx,%r9,8), %r10
cmpl $0x1, 0x6c(%r10,%rcx,4)
jne 0x32ad
incl %r8d
movl %r8d, 0x80(%rax)
movb $0x1, 0x69(%r10)
cmpl $0x0, 0x6c(%r10,%rdi,4)
jne 0x32c4
decl %r8d
movl %r8d, 0x80(%rax)
movb $0x1, 0x69(%r10)
incq %r9
cmpq %r9, %rsi
jne 0x3292
jmp 0x32d8
movslq 0x84(%rax), %rcx
xorl %r8d, %r8d
leaq (%rcx,%rcx,2), %rdi
shlq $0x4, %rdi
addq %rbx, %rdi
movl %r8d, -0x28(%rbp)
movq %rax, -0x20(%rbp)
movq %r14, %rsi
callq 0x41f6
movq 0x4f06(%rip), %rcx      # 0x8200
movq (%rcx,%r15,8), %rdx
movq %rax, 0x90(%rdx)
incq %r15
movq 0x4ef9(%rip), %rax      # 0x8208
subq %rcx, %rax
sarq $0x3, %rax
cmpq %r15, %rax
ja 0x324f
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/searsm8[P]FM_Partitioning/fmpart.cpp
// Function: saveBestSolution()
void saveBestSolution()
{	
	//keep track of the best solution found
	min_cut_size = cut_size;
			
	for(int i = 0; i < cells.size(); i++)
		cells[i]->best_partition = cells[i]->partition;
				
	//printf("SAVED new best solution: (cutsize = %d)\n", cut_size);	
}

// Assembly:
movl 0x4f18(%rip), %eax      # 0x8248
movl %eax, 0x4f3a(%rip)      # 0x8270
movq 0x4ecb(%rip), %rax      # 0x8208
movq 0x4ebc(%rip), %rcx      # 0x8200
subq %rcx, %rax
je 0x3374
pushq %rbp
movq %rsp, %rbp
sarq $0x3, %rax
cmpq $0x1, %rax
adcq $0x0, %rax
xorl %edx, %edx
movq (%rcx,%rdx,8), %rsi
movl 0x84(%rsi), %edi
movl %edi, 0x88(%rsi)
incq %rdx
cmpq %rdx, %rax
jne 0x335b
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/searsm8[P]FM_Partitioning/fmpart.cpp
// Function: recallBestSolution()
void recallBestSolution()
{
	cut_size = min_cut_size;
	
	//reset the cells partitions to the best solution
	//unlock all cells
	for(int i = 0; i < cells.size(); i++)
	{
		cells[i]->partition = cells[i]->best_partition;
		cells[i]->locked = false;		
	}				

	//reset the partition counts for the best solution
	for(int i = 0; i < nets.size(); i++)
	{	
		//reset nets	
		nets[i]->partition_count[0] = 0;
		nets[i]->partition_count[1] = 0;
		
		nets[i]->has_locked[0] = 0; 
		nets[i]->has_locked[1] = 0;
		
		for(int j = 0; j < nets[i]->cell_list.size(); j++)
		{
			//count how many cells in each partition on this net
			nets[i]->partition_count[nets[i]->cell_list[j]->partition]++;			
		}		
	}
	
	//recalculate the gains for the best solution
	computeGains(); 
	
	//set the partition areas to the best solution
	partition_area[0] = 0;
	partition_area[1] = 0;
	
	for(int i = 0; i < cells.size(); i++)
	{		
		partition_area[cells[i]->partition] += cells[i]->area;
	}	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x4ef1(%rip), %eax      # 0x8270
movl %eax, 0x4ec3(%rip)      # 0x8248
movq 0x4e7c(%rip), %rax      # 0x8208
movq 0x4e6d(%rip), %rcx      # 0x8200
subq %rcx, %rax
je 0x33c2
sarq $0x3, %rax
cmpq $0x1, %rax
adcq $0x0, %rax
xorl %edx, %edx
movq (%rcx,%rdx,8), %rsi
movl 0x88(%rsi), %edi
movl %edi, 0x84(%rsi)
movb $0x0, 0x7d(%rsi)
incq %rdx
cmpq %rdx, %rax
jne 0x33a6
movq 0x4e97(%rip), %rax      # 0x8260
movq 0x4e88(%rip), %rcx      # 0x8258
subq %rcx, %rax
je 0x3434
sarq $0x3, %rax
cmpq $0x1, %rax
adcq $0x0, %rax
xorl %edx, %edx
movq (%rcx,%rdx,8), %rsi
movw $0x0, 0x72(%rsi)
movq $0x0, 0x6a(%rsi)
movq 0x78(%rsi), %rdi
movq 0x80(%rsi), %r8
subq %rdi, %r8
je 0x342c
sarq $0x3, %r8
cmpq $0x1, %r8
adcq $0x0, %r8
xorl %r9d, %r9d
movq (%rdi,%r9,8), %r10
movslq 0x84(%r10), %r10
incl 0x6c(%rsi,%r10,4)
incq %r9
cmpq %r9, %r8
jne 0x3414
incq %rdx
cmpq %rax, %rdx
jne 0x33e3
callq 0x320c
movq $0x0, 0x4e08(%rip) # 0x824c
movq 0x4dbd(%rip), %rax      # 0x8208
movq 0x4dae(%rip), %rcx      # 0x8200
subq %rcx, %rax
je 0x3487
sarq $0x3, %rax
cmpq $0x1, %rax
adcq $0x0, %rax
xorl %edx, %edx
leaq 0x4de0(%rip), %rsi      # 0x824c
movq (%rcx,%rdx,8), %rdi
movl 0x78(%rdi), %r8d
movslq 0x84(%rdi), %rdi
addl %r8d, (%rsi,%rdi,4)
incq %rdx
cmpq %rdx, %rax
jne 0x346c
popq %rbp
retq