// File: /workspace/github_c_makefile_star2_O0/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:
subq $0xd8, %rsp
leaq 0xe0(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %rdi, 0xd0(%rsp)
movl %esi, 0xcc(%rsp)
movl %edx, 0xc8(%rsp)
movq %rcx, 0xc0(%rsp)
movq %r8, 0xb8(%rsp)
movq 0xd0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
leaq 0x58(%rsp), %rdi
callq 0x15fb0
movl 0xcc(%rsp), %esi
movq 0xc0(%rsp), %rcx
movq 0xb8(%rsp), %r8
movq 0x78(%rsp), %rdx
movq %rsp, %rax
movq %rdx, 0x20(%rax)
movups 0x58(%rsp), %xmm0
movups 0x68(%rsp), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq 0x80(%rsp), %rdi
movl $0x1, %edx
callq 0x16fa0
movq 0x38(%rsp), %rax
movl $0x0, 0x54(%rsp)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movq %rsp, %rax
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x21020
movl $0x1, 0x50(%rsp)
movq 0x38(%rsp), %rcx
movl 0x50(%rsp), %eax
movq (%rcx), %rcx
cmpl (%rcx), %eax
jge 0x28e9d
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movslq 0x50(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x21090
cmpl $0x0, %eax
jne 0x28e8b
movq 0x38(%rsp), %rax
movq (%rax), %rcx
movq 0x10(%rcx), %rcx
movslq 0x50(%rsp), %rdx
movq (%rcx,%rdx,8), %rdi
movq (%rax), %rsi
movq 0xb8(%rsp), %rdx
callq 0x27b80
movq %rax, %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x48(%rsp)
movq (%rax), %rdi
movq 0x48(%rsp), %rsi
movl 0xc8(%rsp), %edx
callq 0x28010
movq %rax, %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x40(%rsp)
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0xc0(%rsp), %rcx
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movq %rsp, %rax
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq 0x80(%rsp), %rdi
callq 0x28f30
addl 0x54(%rsp), %eax
movl %eax, 0x54(%rsp)
movq 0x48(%rsp), %rdi
callq 0x1030
movq 0x40(%rsp), %rdi
callq 0x1030
jmp 0x28e8d
movl 0x50(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x50(%rsp)
jmp 0x28dad
movq 0xc0(%rsp), %rdi
movq 0xb0(%rsp), %rcx
movq %rsp, %rax
movq %rcx, 0x30(%rax)
movups 0x80(%rsp), %xmm0
movups 0x90(%rsp), %xmm1
movups 0xa0(%rsp), %xmm2
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x175f0
movq 0x15115(%rip), %rax     # 0x3dff8
movq (%rax), %rdi
movl 0x54(%rsp), %edx
leaq 0xc145(%rip), %rsi      # 0x35036
movb $0x0, %al
callq 0x1140
movq 0x38(%rsp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movq %rsp, %rax
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x21370
addq $0xd8, %rsp
retq
nopw %cs:(%rax,%rax)