// File: /workspace/github_c_makefile_star2_O3/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 0x10da8
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 0x10d16
movq %rbx, %rdi
movq %r12, %rsi
callq 0xb1f6
testq %rax, %rax
je 0x10d6a
movq %rbx, %rdi
movq %r12, %rsi
callq 0xb30e
movq %rax, %rdi
movq %r13, %rsi
callq 0xb7d0
movq %rax, %r14
movq %rbx, %rdi
movq %r12, %rsi
callq 0xb30e
testq %r14, %r14
je 0x10d89
movq %rbx, %rdi
movq %r12, %rsi
callq 0xb30e
movq %rax, %rdi
movq %r13, %rsi
callq 0xb8cc
movq (%rax), %rax
movsd (%rsp), %xmm0
movsd %xmm0, 0x38(%rax)
jmp 0x10c71
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x10d32
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x10d4e
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 0x8587(%rip), %rdi      # 0x192f8
leaq 0x765a(%rip), %rsi      # 0x183d2
leaq 0x8544(%rip), %rcx      # 0x192c3
movl $0x411, %edx            # imm = 0x411
callq 0x31b0
leaq 0x8597(%rip), %rdi      # 0x19327
leaq 0x763b(%rip), %rsi      # 0x183d2
leaq 0x8525(%rip), %rcx      # 0x192c3
movl $0x412, %edx            # imm = 0x412
callq 0x31b0
movq 0x10221(%rip), %rdi     # 0x20fd0
leaq 0x84d0(%rip), %rsi      # 0x19286
movl $0x3c, %edx
callq 0x3340
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x10202(%rip), %rdi     # 0x20fd0
callq 0x3340
movq %rax, %rdi
callq 0x3160
leaq 0x75ee(%rip), %rdi      # 0x183d0
leaq 0x75e9(%rip), %rsi      # 0x183d2
leaq 0x84d3(%rip), %rcx      # 0x192c3
movl $0x40a, %edx            # imm = 0x40A
callq 0x31b0
movq %rax, %rbx
jmp 0x10e40
jmp 0x10e05
jmp 0x10e05
jmp 0x10e05
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x10e24
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32f0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x10e40
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32f0
leaq 0x50(%rsp), %rdi
callq 0x30d0
movq %rbx, %rdi
callq 0x3570