// File: /workspace/github_cpp_makefile_star2_O1/GAStudyGroup[P]GPX2/src/base/sources/ImportData.cpp
// Function: ImportData::importFirstPopulation(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned int)
Population ImportData::importFirstPopulation(string name, unsigned popSize)
{
    ifstream file;
    string word{ "" };
    Population pop;
    for (unsigned i = 1; i <= popSize; i++) {
        string fileName{ name + "_exec_1_sol_" + to_string(i) + "_" + to_string(popSize) + ".dat" };
        /* string fileName{ name + to_string(i) + ".dat2" }; */
        file.open(fileName);
        if (!file.is_open()) {
            cout << "error reading file" << endl;
            exit(EXIT_FAILURE);
        }

        vector<int> newT;
        newT.reserve(popSize);
        auto ss = ostringstream{};
        ss <<file.rdbuf();
        auto cities = explode(ss.str(),'\n');
        //while (file >> word) {
        for(auto wordaux : cities){
            newT.push_back(stoi(wordaux));
        }
        //}
        file.close();
        pop.getPopulation().push_back(newT);
    }
    return (pop);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x488, %rsp            # imm = 0x488
movl %ecx, %ebp
movq %rdx, 0x100(%rsp)
movq %rdi, %rbx
leaq 0x280(%rsp), %rdi
callq 0x5430
leaq 0x60(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x214c4(%rip), %rdx     # 0x32973
leaq 0x50(%rsp), %rdi
movq %rdx, %rsi
callq 0x823c
movq %rbx, (%rsp)
movq %rbx, %rdi
callq 0xeac4
testl %ebp, %ebp
je 0x11b63
leaq 0x80(%rsp), %r14
leaq 0xc0(%rsp), %rbx
leaq 0x40(%rsp), %r12
leaq 0xa0(%rsp), %r13
movl %ebp, %eax
movq %rax, 0xf8(%rsp)
movl $0x1, 0xc(%rsp)
movl %ebp, 0xd4(%rsp)
movq %r14, 0x70(%rsp)
movq 0x100(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %r15
movq %r15, %rdi
callq 0x82cc
movq %r15, %rdi
leaq 0x2047b(%rip), %rsi     # 0x319af
callq 0x5700
movl $0x1, %eax
cmpl $0xa, 0xc(%rsp)
jb 0x1158b
movl $0x4, %eax
movl 0xc(%rsp), %ecx
cmpl $0x63, %ecx
jbe 0x11584
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x11589
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x1158b
movl %ecx, %edx
movl $0xd1b71759, %esi       # imm = 0xD1B71759
imulq %rsi, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x1154e
addl $-0x3, %eax
jmp 0x1158b
addl $-0x2, %eax
jmp 0x1158b
decl %eax
movl %eax, %esi
movq %rbx, 0xb0(%rsp)
leaq 0xb0(%rsp), %rdi
xorl %edx, %edx
callq 0x5470
movq 0xb0(%rsp), %rdi
movl 0xb8(%rsp), %esi
movl 0xc(%rsp), %edx
callq 0xe9a5
movq 0x70(%rsp), %rcx
movl $0xf, %esi
cmpq %r14, %rcx
je 0x115d3
movq 0x80(%rsp), %rsi
movq 0x78(%rsp), %r8
movq 0xb8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x11605
movl $0xf, %esi
cmpq %rbx, 0xb0(%rsp)
je 0x11600
movq 0xc0(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x11619
movq 0xb0(%rsp), %rsi
leaq 0x70(%rsp), %rdi
callq 0x5110
jmp 0x1162a
leaq 0xb0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5410
leaq 0x20(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x1164f
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x11655
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x10(%rsp), %rdi
leaq 0x1fdc3(%rip), %rsi     # 0x31441
callq 0x5700
movq %r12, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x116a6
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x116ae
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x11714
movl $0x4, %eax
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x1170d
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x11712
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x11714
movl %ecx, %edx
movl $0xd1b71759, %esi       # imm = 0xD1B71759
imulq %rsi, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x116d7
addl $-0x3, %eax
jmp 0x11714
addl $-0x2, %eax
jmp 0x11714
decl %eax
movl %eax, %esi
movq %r13, 0x90(%rsp)
leaq 0x90(%rsp), %rdi
xorl %edx, %edx
callq 0x5470
movq 0x90(%rsp), %rdi
movl 0x98(%rsp), %esi
movl %ebp, %edx
callq 0xe9a5
movq 0x30(%rsp), %rcx
movl $0xf, %esi
cmpq %r12, %rcx
je 0x11757
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %r8
movq 0x98(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x11789
movl $0xf, %esi
cmpq %r13, 0x90(%rsp)
je 0x11784
movq 0xa0(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x1179d
movq 0x90(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x5110
jmp 0x117ae
leaq 0x90(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5410
leaq 0x118(%rsp), %rsi
movq %rsi, 0x108(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x117df
movq %rdx, 0x108(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x118(%rsp)
jmp 0x117e5
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x110(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x108(%rsp), %rdi
leaq 0x201a8(%rip), %rsi     # 0x319bc
callq 0x5700
leaq 0xe8(%rsp), %rsi
movq %rsi, 0xd8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1184d
movq %rdx, 0xd8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe8(%rsp)
jmp 0x11853
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xe0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x11893
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x90(%rsp), %rdi
cmpq %r13, %rdi
je 0x118b0
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
leaq 0x108(%rsp), %r15
leaq 0x20(%rsp), %r13
je 0x118d4
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x118eb
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0xb0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x11908
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
leaq 0x70(%rsp), %rbx
je 0x11927
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x53c0
leaq 0x280(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
movl $0x8, %edx
callq 0x5340
leaq 0x30(%rsp), %r14
leaq 0x2f8(%rsp), %rdi
callq 0x50d0
testb %al, %al
je 0x11bba
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
leaq 0x10(%rsp), %rdi
movq 0xf8(%rsp), %rsi
callq 0x12174
movq %r15, %rdi
callq 0x54d0
movq %r15, %rdi
leaq 0x290(%rsp), %rsi
callq 0x50b0
movq %r14, %rdi
leaq 0x110(%rsp), %rsi
callq 0x55b0
movq %rbx, %rdi
movq %r14, %rdx
movl $0xa, %ecx
callq 0x11e24
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x119cd
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x70(%rsp), %r13
movq 0x78(%rsp), %rbx
cmpq %rbx, %r13
je 0x11aa8
movq %r12, 0x30(%rsp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x82cc
movq 0x30(%rsp), %r14
callq 0x5060
movq %rax, %rbp
movl (%rax), %r15d
movl $0x0, (%rax)
movq %r14, %rdi
leaq 0xb0(%rsp), %rsi
movl $0xa, %edx
callq 0x5510
cmpq %r14, 0xb0(%rsp)
je 0x11ba2
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x11bae
movl (%rbp), %ecx
cmpl $0x22, %ecx
je 0x11bae
testl %ecx, %ecx
jne 0x11a51
movl %r15d, (%rbp)
movl %eax, 0x90(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
leaq 0x30(%rsp), %r14
je 0x11a76
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x11a88
leaq 0x10(%rsp), %rdi
leaq 0x90(%rsp), %rdx
callq 0xf0e2
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x11a9f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53c0
addq $0x20, %r13
jmp 0x119d7
leaq 0x280(%rsp), %rdi
callq 0x50a0
movq (%rsp), %rdi
callq 0xead4
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0xb24e
leaq 0x70(%rsp), %rdi
callq 0x81e0
leaq 0x108(%rsp), %rdi
movq 0x304ac(%rip), %rsi     # 0x41f90
callq 0x5200
leaq 0x178(%rsp), %rdi
callq 0x5130
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
leaq 0x80(%rsp), %r14
leaq 0xc0(%rsp), %rbx
movl 0xd4(%rsp), %ebp
leaq 0xa0(%rsp), %r13
je 0x11b2c
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x11b51
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x53c0
movl 0xc(%rsp), %eax
incl %eax
movl %eax, 0xc(%rsp)
cmpl %ebp, %eax
jbe 0x11506
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x11b7f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x53c0
leaq 0x280(%rsp), %rdi
callq 0x50e0
movq (%rsp), %rax
addq $0x488, %rsp            # imm = 0x488
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1f6d8(%rip), %rdi     # 0x31281
callq 0x5240
leaq 0x1f6cc(%rip), %rdi     # 0x31281
callq 0x5550
movq 0x303df(%rip), %rdi     # 0x41fa0
leaq 0x1fdf9(%rip), %rsi     # 0x319c1
movl $0x12, %edx
callq 0x5440
movq 0x303c7(%rip), %rdi     # 0x41fa0
callq 0x51b0
movl $0x1, %edi
callq 0x5480
movq %rax, %rbx
leaq 0x60(%rsp), %r15
jmp 0x11df8
movq %rax, %rbx
jmp 0x11e0f
jmp 0x11d00
movq %rax, %rbx
jmp 0x11cf2
jmp 0x11c0c
movq %rax, %rbx
jmp 0x11cd8
movq %rax, %rbx
jmp 0x11cab
movq %rax, %rbx
jmp 0x11c8f
movq %rax, %rbx
jmp 0x11c78
movq %rax, %rbx
jmp 0x11c53
movq %rax, %rbx
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x11c53
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x11c78
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x11c8f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x11cab
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53c0
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x11cd0
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x53c0
leaq 0x80(%rsp), %r14
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x11cf2
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x53c0
movq (%rsp), %r14
leaq 0x60(%rsp), %r15
jmp 0x11df0
movq %rax, %rbx
movq (%rsp), %r14
leaq 0x60(%rsp), %r15
jmp 0x11dcb
jmp 0x11d13
movq %rax, %rbx
movq (%rsp), %r14
leaq 0x60(%rsp), %r15
jmp 0x11db4
jmp 0x11d26
movq %rax, %rbx
jmp 0x11d45
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x11d45
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53c0
movq (%rsp), %r14
leaq 0x60(%rsp), %r15
jmp 0x11d93
jmp 0x11d57
movq %rax, %rbx
jmp 0x11d69
movq %rax, %rbx
jmp 0x11d80
movq %rax, %rbx
cmpl $0x0, (%rbp)
jne 0x11d69
movl %r15d, (%rbp)
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x11d80
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53c0
movq (%rsp), %r14
leaq 0x60(%rsp), %r15
leaq 0x70(%rsp), %rdi
callq 0x81e0
movq 0x301f6(%rip), %rsi     # 0x41f90
leaq 0x108(%rsp), %rdi
callq 0x5200
leaq 0x178(%rsp), %rdi
callq 0x5130
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x11dcb
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x11df0
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x53c0
movq %r14, %rdi
callq 0x8102
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x11e0f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x53c0
leaq 0x280(%rsp), %rdi
callq 0x50e0
movq %rbx, %rdi
callq 0x5670