// File: /workspace/github_cpp_makefile_star2_O2/It4innovations[P]Handicap/src/GraphLabelings/GraphLabeling.h
// Function: GraphLabeling::GraphLabeling(std::shared_ptr<ExtendedHandicapGraph>&)
explicit GraphLabeling(std::shared_ptr<ExtendedHandicapGraph> & graph) : graph{graph} {
			solutionValidator = std::unique_ptr<SolutionValidator>(new SolutionValidator(graph));
			solutionPrinter = std::unique_ptr<SolutionPrinter>(new SolutionPrinter(graph));
			generator = std::unique_ptr<CombinatorialGenerator>(new CombinatorialGenerator(graph));
			this->solution = std::unique_ptr<LabelingSolution<int>>(
					new LabelingSolution<int>(graph->getRegularConstant(), graph->getVerticesCount() + 2,
					                          graph->getMissingLabel()));

			this->intermediateNSumResults = std::unique_ptr<std::stack<int>[]>(
					new std::stack<int>[graph->getVerticesCount() + 1]);
			this->disabledNumbersArray = std::unique_ptr<int[]>(new int[graph->getRegularConstant()]());

			for (int i = 0; i < graph->getVerticesCount() + 2; i++) {
				this->solution->setMagicWeight(i, (i == 0 || i == graph->getMissingLabel()) ? 0 :
				                                  graph->getMagicConstant() + i);
			}
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r12
movq %rdi, %r14
callq 0x53f0
leaq 0x10(%r14), %rbx
leaq 0x18(%r14), %rbp
leaq 0x20(%r14), %rax
movq %rax, 0x30(%rsp)
leaq 0x28(%r14), %rax
movq %rax, 0x28(%rsp)
leaq 0x30(%r14), %rax
movq %rax, 0x20(%rsp)
leaq 0x38(%r14), %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r14)
movups %xmm0, 0x20(%r14)
movups %xmm0, 0x10(%r14)
orl $-0x1, 0x40(%r14)
pushq $0x4
popq %rdi
movq %rbx, 0x18(%rsp)
movq %r14, 0x40(%rsp)
movq %rbp, 0x38(%rsp)
movq %r13, 0x10(%rsp)
callq 0x2190
movq (%r12), %rcx
movl 0x4(%rcx), %ecx
addl $0x2, %ecx
movl %ecx, (%rax)
leaq 0x8(%rsp), %r15
andq $0x0, (%r15)
movq %rbp, %rdi
movq %rax, %rsi
callq 0x5424
movq %r15, %rdi
callq 0x519a
pushq $0x8
popq %rdi
callq 0x2190
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x51b2
leaq 0x8(%rsp), %r13
andq $0x0, (%r13)
movq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x5576
movq %r13, %rdi
callq 0x5222
pushq $0x38
popq %rdi
callq 0x2190
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x523c
leaq 0x8(%rsp), %r13
andq $0x0, (%r13)
movq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x55a4
movq %r13, %rdi
callq 0x52e6
pushq $0x60
popq %rdi
callq 0x2190
movq %rax, %r13
movq (%r12), %rax
movl 0x4(%rax), %edx
movl 0x8(%rax), %esi
addl $0x2, %edx
movl 0x10(%rax), %ecx
movq %r13, %rdi
callq 0x5300
leaq 0x8(%rsp), %r15
andq $0x0, (%r15)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x58c2
movq %r15, %rdi
callq 0x53bc
movq (%r12), %rax
movl 0x4(%rax), %eax
incl %eax
movslq %eax, %r15
pushq $0x50
popq %rcx
movq %r15, %rax
mulq %rcx
seto %cl
orq $0x8, %rax
pushq $-0x1
popq %rdx
testb %cl, %cl
cmovneq %rdx, %rax
movq %rax, %rdi
callq 0x2030
movq %rax, %r13
movq %r15, (%rax)
leaq 0x8(%rax), %rbp
testl %r15d, %r15d
je 0x4f48
imulq $-0x50, %r15, %r14
xorl %ebx, %ebx
movq %rbp, %r15
movq %r15, %rdi
callq 0x2fec
addq $-0x50, %rbx
addq $0x50, %r15
cmpq %rbx, %r14
jne 0x4f33
leaq 0x8(%rsp), %r15
andq $0x0, (%r15)
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x5918
movq %r15, %rdi
callq 0x53d6
movq (%r12), %rax
movslq 0x8(%rax), %rax
leaq (,%rax,4), %r15
testq %rax, %rax
pushq $-0x1
popq %rax
cmovsq %rax, %r15
movq %r15, %rdi
callq 0x2030
movq %rax, %r13
xorl %ebx, %ebx
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x2100
leaq 0x8(%rsp), %r14
andq $0x0, (%r14)
movq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0x596c
movq %r14, %rdi
callq 0x3192
movq (%r12), %rax
movq 0x18(%rsp), %rcx
movq (%rcx), %rcx
movslq 0x4(%rax), %rdx
addq $0x2, %rdx
cmpq %rdx, %rbx
jge 0x4ff1
xorl %edx, %edx
testq %rbx, %rbx
je 0x4fe5
movl 0x10(%rax), %esi
cmpq %rsi, %rbx
je 0x4fe5
movl 0xc(%rax), %edx
addl %ebx, %edx
movq 0x20(%rcx), %rsi
movl %edx, (%rsi,%rbx,4)
incq %rbx
jmp 0x4fc4
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5021
jmp 0x5021
movq %rax, %r12
movq %r13, %rdi
jmp 0x5018
jmp 0x5021
jmp 0x5012
jmp 0x5021
movq %rax, %r12
movq %r15, %rdi
callq 0x2170
jmp 0x504f
jmp 0x5021
movq %rax, %r12
jmp 0x504f
movq %rax, %r12
testq %rbx, %rbx
je 0x5047
negq %rbx
movq %r13, %r14
addq $-0x48, %r14
leaq (%r14,%rbx), %rdi
callq 0x461c
addq $-0x50, %rbx
jne 0x5038
movq %r13, %rdi
callq 0x21c0
movq 0x10(%rsp), %rdi
callq 0x3192
movq 0x20(%rsp), %rdi
callq 0x53d6
movq 0x28(%rsp), %rdi
callq 0x52e6
movq 0x30(%rsp), %rdi
callq 0x5222
movq 0x38(%rsp), %rdi
callq 0x519a
movq 0x18(%rsp), %rdi
callq 0x53bc
movq 0x40(%rsp), %rdi
addq $0x8, %rdi
callq 0x3c12
movq %r12, %rdi
callq 0x22a0
nop