// File: /workspace/github_cpp_makefile_star2_O1/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 0xb27a
movq (%r15), %r13
movq 0x8(%r15), %rax
subq %r13, %rax
movq (%r12), %r14
movq 0x8(%r12), %rcx
subq %r14, %rcx
cmpq %rcx, %rax
jne 0xf7b9
cmpq 0x8(%r12), %r14
je 0xf7aa
movq (%r14), %rsi
addq $0x8, %r14
movsd (%r13), %xmm0
addq $0x8, %r13
movq %rbx, %rdi
callq 0xf8f2
jmp 0xf788
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x13828(%rip), %rdi     # 0x22fe8
leaq 0xb581(%rip), %rsi      # 0x1ad48
movl $0x11, %edx
callq 0x5420
movq 0x13810(%rip), %rdi     # 0x22fe8
leaq 0xb75e(%rip), %rsi      # 0x1af3d
movl $0x2, %edx
callq 0x5420
movq 0x137f8(%rip), %rdi     # 0x22fe8
movl $0xa, %esi
callq 0x5670
movq %rax, %r14
leaq 0xb556(%rip), %rsi      # 0x1ad5a
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 0xb551(%rip), %rsi      # 0x1ad81
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 0xb536(%rip), %rsi      # 0x1ad90
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 0xb519(%rip), %rsi      # 0x1ada0
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 0xf8b5
movq %rax, %r15
jmp 0xf8ca
movq %rax, %r15
movq -0x38(%rbp), %rax
movq (%rax), %rdi
cmpq -0x30(%rbp), %rdi
je 0xf8ca
callq 0x5340
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0xf8d8
callq 0x5340
leaq 0x30(%rbx), %rdi
callq 0x9d4e
movq %rbx, %rdi
callq 0xfb7e
movq %r15, %rdi
callq 0x56a0
nop