// File: /workspace/github_cpp_makefile_star2_O3/CK7[P]abawaca/src/Dimension.cpp
// Function: Dimension::Dimension(std::vector<unsigned long, std::allocator<unsigned long>> const&, std::vector<double, std::allocator<double>> const&, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Dimension::Dimension(const vector<size_t>& dp_ids, const vector<double>& dp_values, size_t _dimension_index, 
	string _dimension_name) : dimension_index(_dimension_index), dimension_name(_dimension_name)
{
	if(dp_values.size() != dp_ids.size()) {
		cerr <<  __FILE__ << " (" << __LINE__ << "): fatal error, number of datapoints (" << dp_ids.size() << ") and values (" 
			<< dp_values.size() << ")for dimension " << dimension_name << " is different" << endl << endl;
		exit(-1);
	}

	vector<size_t>::const_iterator vits = dp_ids.begin();
	vector<double>::const_iterator vitd = dp_values.begin();
	while(vits != dp_ids.end())
		this->insert(*(vits++), *(vitd++));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
xorl %edx, %edx
movl %edx, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rdx, 0x28(%rdi)
leaq 0x38(%rdi), %rax
movl %edx, 0x38(%rdi)
movq %rdx, 0x40(%rdi)
movq %rax, 0x48(%rdi)
movq %rax, 0x50(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rdi)
movups %xmm0, 0x68(%rdi)
movq %rcx, 0x78(%rdi)
addq $0x80, %rdi
leaq 0x90(%rbx), %rax
movq %rax, -0x30(%rbp)
movq %rax, 0x80(%rbx)
movq (%r8), %rsi
movq 0x8(%r8), %rdx
addq %rsi, %rdx
movq %rdi, -0x38(%rbp)
callq 0xb188
movq (%r15), %r13
movq 0x8(%r15), %rax
subq %r13, %rax
movq (%r12), %r14
movq 0x8(%r12), %rcx
subq %r14, %rcx
cmpq %rcx, %rax
jne 0xf69d
cmpq 0x8(%r12), %r14
je 0xf68e
movq (%r14), %rsi
addq $0x8, %r14
movsd (%r13), %xmm0
addq $0x8, %r13
movq %rbx, %rdi
callq 0xf7d6
jmp 0xf66c
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x12944(%rip), %rdi     # 0x21fe8
leaq 0xa68d(%rip), %rsi      # 0x19d38
movl $0x11, %edx
callq 0x5420
movq 0x1292c(%rip), %rdi     # 0x21fe8
leaq 0xa86a(%rip), %rsi      # 0x19f2d
movl $0x2, %edx
callq 0x5420
movq 0x12914(%rip), %rdi     # 0x21fe8
movl $0xa, %esi
callq 0x5670
movq %rax, %r14
leaq 0xa662(%rip), %rsi      # 0x19d4a
movl $0x26, %edx
movq %rax, %rdi
callq 0x5420
movq 0x8(%r12), %rsi
subq (%r12), %rsi
sarq $0x3, %rsi
movq %r14, %rdi
callq 0x5240
movq %rax, %r12
leaq 0xa65d(%rip), %rsi      # 0x19d71
movl $0xe, %edx
movq %rax, %rdi
callq 0x5420
movq 0x8(%r15), %rsi
subq (%r15), %rsi
sarq $0x3, %rsi
movq %r12, %rdi
callq 0x5240
movq %rax, %r15
leaq 0xa642(%rip), %rsi      # 0x19d80
movl $0xf, %edx
movq %rax, %rdi
callq 0x5420
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
movq %r15, %rdi
callq 0x5420
movq %rax, %r15
leaq 0xa625(%rip), %rsi      # 0x19d90
movl $0xd, %edx
movq %rax, %rdi
callq 0x5420
movq %r15, %rdi
callq 0x51a0
movq %rax, %rdi
callq 0x51a0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x5480
jmp 0xf799
movq %rax, %r15
jmp 0xf7ae
movq %rax, %r15
movq -0x38(%rbp), %rax
movq (%rax), %rdi
cmpq -0x30(%rbp), %rdi
je 0xf7ae
callq 0x5340
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0xf7bc
callq 0x5340
leaq 0x30(%rbx), %rdi
callq 0x9c62
movq %rbx, %rdi
callq 0xfa50
movq %r15, %rdi
callq 0x56a0
nop