// File: /workspace/github_cpp_makefile_star2_O2/istellartech[P]OpenTsiolkovsky/src/fileio.cpp
// Function: read_csv_vector_4d(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
MatrixXd read_csv_vector_4d(string filename,
                            string col_name0, string col_name1,
                            string col_name2, string col_name3){
    //    ファイル名と列数を入れるとMatrixXd(n行4列)を返す
    int col_number = 4;
    io::CSVReader<4> in(filename);
    in.read_header(io::ignore_extra_column, col_name0, col_name1, col_name2, col_name3);
    MatrixXd value = MatrixXd::Zero(1,col_number);
    double value0, value1, value2, value3;
    int max_col = 1;
    int now_col = 0;
    while(in.read_row(value0, value1, value2, value3)){
        value.conservativeResize(max_col, col_number);
        value(now_col, 0) = value0;
        value(now_col, 1) = value1;
        value(now_col, 2) = value2;
        value(now_col, 3) = value3;
        now_col++; max_col++;
    }
    return value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x348, %rsp            # imm = 0x348
movq %r9, %r14
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rdi, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x173aa
leaq 0xa0(%rsp), %rdi
movq %r13, %rsi
callq 0x54c0
leaq 0x80(%rsp), %rdi
movq %r12, %rsi
callq 0x54c0
leaq 0x60(%rsp), %rdi
movq %r15, %rsi
callq 0x54c0
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x54c0
leaq 0xc0(%rsp), %rdi
pushq $0x1
popq %rsi
leaq 0xa0(%rsp), %rdx
leaq 0x80(%rsp), %rcx
leaq 0x60(%rsp), %r8
leaq 0x40(%rsp), %r9
callq 0x174ee
leaq 0x40(%rsp), %rdi
callq 0x56e8
leaq 0x60(%rsp), %rdi
callq 0x56e8
leaq 0x80(%rsp), %rdi
callq 0x56e8
leaq 0xa0(%rsp), %rdi
callq 0x56e8
leaq 0x28(%rsp), %rdi
pushq $0x1
popq %rsi
pushq $0x4
popq %rdx
callq 0xfc8a
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x16ebe
xorl %r13d, %r13d
leaq 0x10(%rsp), %rbp
pushq $0x2
popq %r14
pushq $0x3
popq %r12
leaq 0xc0(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x18(%rsp), %rcx
movq %rbp, %r8
callq 0x17676
testb %al, %al
je 0x169f0
leaq 0x1(%r13), %r15
movq %rbx, %rdi
movq %r15, %rsi
pushq $0x4
popq %rdx
callq 0x1965e
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x6548
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
pushq $0x1
popq %rdx
callq 0x6548
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x6548
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x6548
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movq %r15, %r13
jmp 0x16920
leaq 0xc0(%rsp), %rdi
callq 0x17746
movq %rbx, %rax
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x56e8
jmp 0x16a24
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x56e8
jmp 0x16a33
movq %rax, %r14
leaq 0x80(%rsp), %rdi
callq 0x56e8
jmp 0x16a45
movq %rax, %r14
leaq 0xa0(%rsp), %rdi
callq 0x56e8
jmp 0x16a66
jmp 0x16a56
movq %rax, %r14
jmp 0x16a66
movq %rax, %r14
movq %rbx, %rdi
callq 0x6592
leaq 0xc0(%rsp), %rdi
callq 0x17746
movq %r14, %rdi
callq 0x5640