// File: /workspace/github_c_makefile_star2_O1/pwelke[P]GraphMiningTools/poset_pathCover.c
// Function: latticeLongestWeightedPathEmbeddingForLocalEasy
struct IntSet* latticeLongestWeightedPathEmbeddingForLocalEasy(struct Graph* g, struct EvaluationPlan p, int sampleSize, int databaseSize, struct GraphPool* gp, struct ShallowGraphPool* sgp) {

	struct SpanningtreeTree spTree = getSampledSpanningtreeTree(getBlockTreeT(g, sgp), sampleSize, 1, gp, sgp);

	int nEvaluations = 0;
	cleanEvaluationPlan(p);
	for (int i=1; i<p.poset->n; ++i) {
		if (!embeddingValueKnown(p.poset->vertices[i])) {
			int* path = getLongestPathInDAG(p.poset->vertices[i], p.poset, sgp);
			double* weights = getWeightsOfPath(p.poset, path, databaseSize);
			nEvaluations += weightedBinarySearchEvaluationLE(&spTree, p, path, weights, gp);
			free(path);
			free(weights);
		}
	}

	dumpSpanningtreeTree(spTree, gp);

	fprintf(stderr, "%i\n", nEvaluations);
	return patternPosetInfoToFeatureSet(p);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %r8, %r12
movq %rcx, %r15
movl %edx, 0x3c(%rsp)
movl %esi, %ebp
movq %rdi, %rsi
leaq 0x130(%rsp), %rbx
leaq 0xd0(%rsp), %r14
movq %r14, %rdi
movq %r8, %rdx
callq 0xe85c
movq 0x20(%r14), %rax
movq %rax, 0x20(%rsp)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x68(%rsp), %rdi
pushq $0x1
popq %rdx
movl %ebp, %esi
movq %r15, 0x40(%rsp)
movq %r15, %rcx
movq %r12, 0x50(%rsp)
movq %r12, %r8
callq 0xf05d
movapd (%rbx), %xmm0
movapd 0x10(%rbx), %xmm1
movapd 0x20(%rbx), %xmm2
movupd %xmm2, 0x20(%rsp)
movupd %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
callq 0x1539d
movq (%rbx), %rax
xorl %r14d, %r14d
cmpl $0x2, (%rax)
jl 0x2e51
xorl %r14d, %r14d
pushq $0x1
popq %r15
movq 0x10(%rax), %rax
movq (%rax,%r15,8), %rdi
callq 0x153d8
testl %eax, %eax
jne 0x2e3f
movq %r14, 0x60(%rsp)
movq (%rbx), %rsi
movq 0x10(%rsi), %rax
movq %r15, 0x58(%rsp)
movq (%rax,%r15,8), %rdi
movq 0x50(%rsp), %rdx
callq 0x18acf
movq %rax, %r13
movq (%rbx), %rdi
movq %rax, %rsi
movl 0x3c(%rsp), %edx
callq 0x18be7
movq %rax, %rbp
movupd (%rbx), %xmm0
movupd 0x10(%rbx), %xmm1
movupd 0x20(%rbx), %xmm2
movapd %xmm2, 0xc0(%rsp)
movapd %xmm1, 0xb0(%rsp)
movapd %xmm0, 0xa0(%rsp)
movslq (%r13), %rbx
decq %rbx
je 0x2ce1
movsd (%rbp), %xmm0
xorl %r12d, %r12d
movsd 0x1e096(%rip), %xmm1    # 0x20d38
pushq $0x1
popq %rax
movsd 0x1e093(%rip), %xmm3    # 0x20d40
movapd 0x1e09b(%rip), %xmm4    # 0x20d50
movsd (%rbp,%rax,8), %xmm2
divsd %xmm0, %xmm2
addsd %xmm3, %xmm2
andpd %xmm4, %xmm2
ucomisd %xmm2, %xmm1
cmovaq %rax, %r12
minsd %xmm1, %xmm2
incq %rax
movapd %xmm2, %xmm1
cmpq %rbx, %rax
jbe 0x2cb5
jmp 0x2ce4
xorl %r12d, %r12d
testq %rbx, %rbx
je 0x2e18
movq $0x0, 0x48(%rsp)
movq 0xa0(%rsp), %rax
movq 0x10(%rax), %rax
movslq (%r13,%r12,4), %r14
movq (%rax,%r14,8), %rdi
callq 0x153d8
movq 0xa0(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq (%rcx,%r14,8), %rdi
testl %eax, %eax
je 0x2d2e
callq 0x153e2
jmp 0x2db2
movq (%rdi), %rsi
leaq 0x68(%rsp), %rdi
movq 0x40(%rsp), %rdx
callq 0xfadf
movl %eax, %r15d
movq 0x98(%rsp), %rax
movq %rax, 0x30(%rsp)
movups 0x68(%rsp), %xmm0
movups 0x78(%rsp), %xmm1
movups 0x88(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0xf483
incq 0x48(%rsp)
movapd 0xa0(%rsp), %xmm0
movapd 0xb0(%rsp), %xmm1
movapd 0xc0(%rsp), %xmm2
movupd %xmm2, 0x20(%rsp)
movupd %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
movsbl %r15b, %esi
movl %r14d, %edi
callq 0x153ec
leaq 0x1(%r12), %rax
cmpq %rbx, %rax
movsd 0x1df7e(%rip), %xmm3    # 0x20d40
movapd 0x1df86(%rip), %xmm4    # 0x20d50
ja 0x2e08
movsd (%rbp,%r12,8), %xmm0
movsd 0x1df5d(%rip), %xmm1    # 0x20d38
movq %rax, %rcx
movsd (%rbp,%rcx,8), %xmm2
divsd %xmm0, %xmm2
addsd %xmm3, %xmm2
andpd %xmm4, %xmm2
ucomisd %xmm2, %xmm1
cmovaq %rcx, %r12
minsd %xmm1, %xmm2
incq %rcx
movapd %xmm2, %xmm1
cmpq %rbx, %rcx
jbe 0x2dde
cmpq %rbx, %rax
jbe 0x2cf6
movq 0x48(%rsp), %rax
jmp 0x2e1a
xorl %eax, %eax
movq 0x60(%rsp), %r14
addl %eax, %r14d
movq %r13, %rdi
callq 0x1030
movq %rbp, %rdi
callq 0x1030
leaq 0x130(%rsp), %rbx
movq 0x58(%rsp), %r15
incq %r15
movq (%rbx), %rax
movslq (%rax), %rcx
cmpq %rcx, %r15
jl 0x2c17
movq 0x98(%rsp), %rax
movq %rax, 0x30(%rsp)
movups 0x68(%rsp), %xmm0
movups 0x78(%rsp), %xmm1
movups 0x88(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq 0x40(%rsp), %rdi
callq 0xf502
movq 0x2a169(%rip), %rax     # 0x2cff8
movq (%rax), %rdi
leaq 0x1d19d(%rip), %rsi     # 0x20036
movl %r14d, %edx
xorl %eax, %eax
callq 0x1160
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x15543
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)