// File: /workspace/github_c_makefile_star2_O1/stonezwr[P]SpiKL-IP/network.C
// Function: Network::LoadSynWeightsFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Network::LoadSynWeightsFromFile(const string& filename)
{
    ifstream f_in(filename);
    if(!f_in.is_open()){
        cout<<"In Network::LoadSynWeightsFromFile(), cannot open the file: "<<filename<<endl;
        assert(0);
    }
    int index;
    string pre;
    string post; 
    double weight;
    while(f_in>>index>>pre>>post>>weight){
        assert(_synapses_map.find(pre) != _synapses_map.end());
        assert(_synapses_map[pre].find(post) != _synapses_map[pre].end());
        _synapses_map[pre][post]->Weight(weight);
    }
   
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x50(%rsp), %rdi
movl $0x8, %edx
callq 0x3500
leaq 0xc8(%rsp), %rdi
callq 0x30b0
testb %al, %al
je 0x110a6
leaq 0x38(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
addq $0x50, %rbx
leaq 0x4c(%rsp), %r15
leaq 0x28(%rsp), %r12
leaq 0x8(%rsp), %r13
movq %rsp, %rbp
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
callq 0x31a0
movq %rax, %rdi
movq %r12, %rsi
callq 0x33c0
movq %rax, %rdi
movq %r13, %rsi
callq 0x33c0
movq %rax, %rdi
movq %rbp, %rsi
callq 0x31c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x11014
movq %rbx, %rdi
movq %r12, %rsi
callq 0xb464
testq %rax, %rax
je 0x11068
movq %rbx, %rdi
movq %r12, %rsi
callq 0xb57c
movq %rax, %rdi
movq %r13, %rsi
callq 0xba4a
movq %rax, %r14
movq %rbx, %rdi
movq %r12, %rsi
callq 0xb57c
testq %r14, %r14
je 0x11087
movq %rbx, %rdi
movq %r12, %rsi
callq 0xb57c
movq %rax, %rdi
movq %r13, %rsi
callq 0xbb46
movq (%rax), %rax
movsd (%rsp), %xmm0
movsd %xmm0, 0x38(%rax)
jmp 0x10f6f
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x11030
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1104c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32f0
leaq 0x50(%rsp), %rdi
callq 0x30d0
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x81e9(%rip), %rdi      # 0x19258
leaq 0x72bc(%rip), %rsi      # 0x18332
leaq 0x81a6(%rip), %rcx      # 0x19223
movl $0x411, %edx            # imm = 0x411
callq 0x31b0
leaq 0x81f9(%rip), %rdi      # 0x19287
leaq 0x729d(%rip), %rsi      # 0x18332
leaq 0x8187(%rip), %rcx      # 0x19223
movl $0x412, %edx            # imm = 0x412
callq 0x31b0
movq 0xff23(%rip), %rdi      # 0x20fd0
leaq 0x8132(%rip), %rsi      # 0x191e6
movl $0x3c, %edx
callq 0x3340
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0xff04(%rip), %rdi      # 0x20fd0
callq 0x3340
movq %rax, %rdi
callq 0x3160
leaq 0x7250(%rip), %rdi      # 0x18330
leaq 0x724b(%rip), %rsi      # 0x18332
leaq 0x8135(%rip), %rcx      # 0x19223
movl $0x40a, %edx            # imm = 0x40A
callq 0x31b0
movq %rax, %rbx
jmp 0x1113e
jmp 0x11103
jmp 0x11103
jmp 0x11103
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x11122
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1113e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32f0
leaq 0x50(%rsp), %rdi
callq 0x30d0
movq %rbx, %rdi
callq 0x3570