// File: /workspace/github_cpp_makefile_star2_O3/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, 0x8(%rsp)
movq %rdx, 0x100(%rsp)
movq %rdi, %rbx
leaq 0x280(%rsp), %rdi
callq 0x5420
leaq 0x68(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x214d2(%rip), %rdx     # 0x32973
leaq 0x58(%rsp), %rdi
movq %rdx, %rsi
callq 0x8264
movq %rbx, (%rsp)
movq %rbx, %rdi
callq 0xeaac
cmpl $0x0, 0x8(%rsp)
je 0x11b75
leaq 0x88(%rsp), %r14
leaq 0x40(%rsp), %r15
leaq 0x118(%rsp), %rbx
movl 0x8(%rsp), %eax
movq %rax, 0xf8(%rsp)
movl $0x1, 0xc(%rsp)
leaq 0x10(%rsp), %r13
movq %r14, 0x78(%rsp)
movq 0x100(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %r12
movq %r12, %rdi
callq 0x82fa
movq %r12, %rdi
leaq 0x2048e(%rip), %rsi     # 0x319af
callq 0x56f0
movl $0x1, %eax
cmpl $0xa, 0xc(%rsp)
jb 0x11578
movl $0x4, %eax
movl 0xc(%rsp), %ecx
cmpl $0x63, %ecx
jbe 0x11571
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x11576
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x11578
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 0x1153b
addl $-0x3, %eax
jmp 0x11578
addl $-0x2, %eax
jmp 0x11578
decl %eax
movl %eax, %esi
leaq 0xc8(%rsp), %rax
movq %rax, 0xb8(%rsp)
leaq 0xb8(%rsp), %rdi
xorl %edx, %edx
callq 0x5460
movq 0xb8(%rsp), %rdi
movl 0xc0(%rsp), %esi
movl 0xc(%rsp), %edx
callq 0xe98e
movq 0x78(%rsp), %rcx
movl $0xf, %edi
cmpq %r14, %rcx
je 0x115c8
movq 0x88(%rsp), %rdi
movq 0x80(%rsp), %r8
movq 0xb8(%rsp), %rsi
movq 0xc0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x11608
movl $0xf, %edi
leaq 0xc8(%rsp), %r9
cmpq %r9, %rsi
je 0x11603
movq 0xc8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x11614
leaq 0x78(%rsp), %rdi
callq 0x5110
jmp 0x11625
leaq 0xb8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5400
movq %r15, 0x30(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x11645
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x1164c
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x30(%rsp), %rdi
leaq 0x1fdcc(%rip), %rsi     # 0x31441
callq 0x56f0
leaq 0x20(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x116a2
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x116a8
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl $0x1, %eax
cmpl $0xa, 0x8(%rsp)
jb 0x11712
movl $0x4, %eax
movl 0x8(%rsp), %ecx
cmpl $0x63, %ecx
jbe 0x1170b
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x11710
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x11712
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 0x116d5
addl $-0x3, %eax
jmp 0x11712
addl $-0x2, %eax
jmp 0x11712
decl %eax
movl %eax, %esi
leaq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
leaq 0x98(%rsp), %rdi
xorl %edx, %edx
callq 0x5460
movq 0x98(%rsp), %rdi
movl 0xa0(%rsp), %esi
movl 0x8(%rsp), %edx
callq 0xe98e
movq 0x10(%rsp), %rcx
movl $0xf, %edi
leaq 0x20(%rsp), %rax
cmpq %rax, %rcx
je 0x11764
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %r8
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x117a1
movl $0xf, %edi
leaq 0xa8(%rsp), %r9
cmpq %r9, %rsi
je 0x1179c
movq 0xa8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x117ab
movq %r13, %rdi
callq 0x5110
jmp 0x117bc
leaq 0x98(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5400
movq %rbx, 0x108(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x117e5
movq %rdx, 0x108(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x118(%rsp)
jmp 0x117eb
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
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 0x201a2(%rip), %rsi     # 0x319bc
callq 0x56f0
leaq 0xe8(%rsp), %rsi
movq %rsi, 0xd8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x11853
movq %rdx, 0xd8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe8(%rsp)
jmp 0x11859
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
cmpq %rbx, %rdi
je 0x11891
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
leaq 0x78(%rsp), %rbx
je 0x118bb
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x118d7
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x118ee
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x11913
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x1192d
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x53b0
leaq 0x280(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
movl $0x8, %edx
callq 0x5330
leaq 0x20(%rsp), %r14
leaq 0x2f8(%rsp), %rdi
callq 0x50d0
testb %al, %al
je 0x11bcc
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0x30(%rsp), %rdi
movq 0xf8(%rsp), %rsi
callq 0x12190
leaq 0x108(%rsp), %r12
movq %r12, %rdi
callq 0x54c0
movq %r12, %rdi
leaq 0x290(%rsp), %rsi
callq 0x50b0
movq %r13, %rdi
leaq 0x110(%rsp), %rsi
callq 0x55a0
movq %rbx, %rdi
movq %r13, %rdx
movl $0xa, %ecx
callq 0x11e40
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x119db
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x78(%rsp), %r14
movq 0x80(%rsp), %rbx
cmpq %rbx, %r14
je 0x11ac7
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x82fa
movq 0x10(%rsp), %r15
callq 0x5060
movq %rax, %rbp
movl (%rax), %r12d
movl $0x0, (%rax)
movq %r15, %rdi
leaq 0xb8(%rsp), %rsi
movl $0xa, %edx
callq 0x5500
cmpq %r15, 0xb8(%rsp)
je 0x11bb4
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x11bc0
movl (%rbp), %ecx
cmpl $0x22, %ecx
je 0x11bc0
testl %ecx, %ecx
jne 0x11a66
movl %r12d, (%rbp)
movl %eax, 0x98(%rsp)
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0x11a8b
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x38(%rsp)
leaq 0x40(%rsp), %r15
jmp 0x11aa2
leaq 0x30(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0xf0f0
leaq 0x40(%rsp), %r15
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x11abe
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53b0
addq $0x20, %r14
jmp 0x119e8
leaq 0x280(%rsp), %rdi
callq 0x50a0
movq (%rsp), %rdi
callq 0xeabc
movq %rax, %rdi
leaq 0x30(%rsp), %rsi
callq 0xb26a
leaq 0x78(%rsp), %rdi
callq 0x8206
leaq 0x108(%rsp), %rdi
movq 0x3048d(%rip), %rsi     # 0x41f90
callq 0x5200
leaq 0x178(%rsp), %rdi
callq 0x5130
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
leaq 0x88(%rsp), %r14
leaq 0x118(%rsp), %rbx
je 0x11b3c
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x53b0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x11b61
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x53b0
movl 0xc(%rsp), %eax
incl %eax
movl %eax, 0xc(%rsp)
cmpl 0x8(%rsp), %eax
jbe 0x114f3
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x11b91
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x53b0
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 0x1f6c6(%rip), %rdi     # 0x31281
callq 0x5240
leaq 0x1f6ba(%rip), %rdi     # 0x31281
callq 0x5540
movq 0x303cd(%rip), %rdi     # 0x41fa0
leaq 0x1fde7(%rip), %rsi     # 0x319c1
movl $0x12, %edx
callq 0x5430
movq 0x303b5(%rip), %rdi     # 0x41fa0
callq 0x51b0
movl $0x1, %edi
callq 0x5470
movq %rax, %rbx
leaq 0x68(%rsp), %r15
jmp 0x11e14
movq %rax, %rbx
jmp 0x11e2b
jmp 0x11d12
movq %rax, %rbx
jmp 0x11d04
jmp 0x11c1e
movq %rax, %rbx
jmp 0x11cea
movq %rax, %rbx
jmp 0x11cbd
movq %rax, %rbx
jmp 0x11ca1
movq %rax, %rbx
jmp 0x11c85
movq %rax, %rbx
jmp 0x11c60
movq %rbx, %rcx
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %rcx, %rdi
je 0x11c60
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x11c85
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x11ca1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x11cbd
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x11ce2
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x53b0
leaq 0x88(%rsp), %r14
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x11d04
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x53b0
movq (%rsp), %r14
leaq 0x68(%rsp), %r15
jmp 0x11e0c
movq %rax, %rbx
movq (%rsp), %r14
leaq 0x68(%rsp), %r15
jmp 0x11de7
jmp 0x11d25
movq %rax, %rbx
movq (%rsp), %r14
leaq 0x68(%rsp), %r15
jmp 0x11dd0
jmp 0x11d38
movq %rax, %rbx
jmp 0x11d57
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x11d57
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53b0
movq (%rsp), %r14
leaq 0x68(%rsp), %r15
jmp 0x11daf
jmp 0x11d6e
movq %rax, %rbx
leaq 0x20(%rsp), %rax
jmp 0x11d85
movq %rax, %rbx
jmp 0x11d9c
movq %rax, %rbx
cmpl $0x0, (%rbp)
leaq 0x20(%rsp), %rax
jne 0x11d85
movl %r12d, (%rbp)
movq 0x10(%rsp), %rdi
cmpq %rax, %rdi
je 0x11d9c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53b0
movq (%rsp), %r14
leaq 0x68(%rsp), %r15
leaq 0x78(%rsp), %rdi
callq 0x8206
movq 0x301da(%rip), %rsi     # 0x41f90
leaq 0x108(%rsp), %rdi
callq 0x5200
leaq 0x178(%rsp), %rdi
callq 0x5130
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x11de7
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x53b0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x11e0c
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x53b0
movq %r14, %rdi
callq 0x8122
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x11e2b
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x53b0
leaq 0x280(%rsp), %rdi
callq 0x50e0
movq %rbx, %rdi
callq 0x5660