// File: /workspace/github_c_makefile_star2_O3/stonezwr[P]SpiKL-IP/neuron.C
// Function: Neuron::PrintSyn(std::basic_ofstream<char, std::char_traits<char>>&, char const*, char)
void Neuron::PrintSyn(ofstream& f_out, const char * t, const char s){
    bool f;
    if(strcmp(t, "in") == 0)  f = false;
    else if(strcmp(t, "out") == 0)  f = true;
    else assert(0);
    vector<Synapse*>& syns = !f ? _inputSyns : _outputSyns;

    // print all the input synapses starts with 's':
    for(auto it=syns.begin();it != syns.end(); ++it){
        Neuron * neu = !f ? (*it)->PreNeuron() : (*it)->PostNeuron();  assert(neu);
        char * name = neu->Name();  assert(name);
        if(name[0] == s){
            if(!f)
                f_out<<name<<"\t"<<_name;
            else
                f_out<<_name<<"\t"<<name;
        }   
    }
    f_out<<endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r13d
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0x69, (%rdx)
jne 0x8060
cmpb $0x6e, 0x1(%rdx)
jne 0x8060
cmpb $0x0, 0x2(%rdx)
je 0x81f0
leaq 0x11909(%rip), %rsi     # 0x19970
movq %rdx, %rdi
callq 0x33f0
testl %eax, %eax
jne 0x823e
movl $0x18, %ebp
movl $0x0, 0xc(%rsp)
movq (%r14,%rbp), %r15
cmpq 0x8(%r14,%rbp), %r15
je 0x81bb
movq %r14, 0x10(%rsp)
movq (%r15), %rdi
cmpb $0x0, 0xc(%rsp)
je 0x80a9
callq 0xc17c
jmp 0x80ae
callq 0xc180
testq %rax, %rax
je 0x8200
movq 0x10(%rax), %r12
testq %r12, %r12
je 0x821f
cmpb %r13b, (%r12)
jne 0x81ac
cmpb $0x0, 0xc(%rsp)
je 0x8123
movq %r12, %rdi
callq 0x3150
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x3340
movl $0x1, %edx
movq %rbx, %rdi
leaq 0xef56(%rip), %rsi      # 0x17050
callq 0x3340
movq 0x10(%r14), %r12
testq %r12, %r12
je 0x814a
movq %r12, %rdi
callq 0x3150
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x3340
jmp 0x81ac
movq %r14, %rax
movl %r13d, %r14d
movq 0x10(%rax), %r13
testq %r13, %r13
je 0x8163
movq %r13, %rdi
callq 0x3150
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x3340
jmp 0x817a
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x3550
jmp 0x81ac
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x3550
movl %r14d, %r13d
movl $0x1, %edx
movq %rbx, %rdi
leaq 0xeec4(%rip), %rsi      # 0x17050
callq 0x3340
movq %r12, %rdi
callq 0x3150
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x3340
movq 0x10(%rsp), %r14
addq $0x8, %r15
cmpq 0x8(%r14,%rbp), %r15
jne 0x8098
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x31e0
movl $0x30, %ebp
movb $0x1, %al
movl %eax, 0xc(%rsp)
jmp 0x8084
leaq 0xf84f(%rip), %rdi      # 0x17a56
leaq 0xf57b(%rip), %rsi      # 0x17789
leaq 0xf805(%rip), %rcx      # 0x17a1a
movl $0x268, %edx            # imm = 0x268
callq 0x31b0
leaq 0xf7ef(%rip), %rdi      # 0x17a15
leaq 0xf55c(%rip), %rsi      # 0x17789
leaq 0xf7e6(%rip), %rcx      # 0x17a1a
movl $0x269, %edx            # imm = 0x269
callq 0x31b0
leaq 0x1018b(%rip), %rdi     # 0x183d0
leaq 0xf53d(%rip), %rsi      # 0x17789
leaq 0xf7c7(%rip), %rcx      # 0x17a1a
movl $0x263, %edx            # imm = 0x263
callq 0x31b0
nop