// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/savecode.c
// Function: code_forward_propagation
void code_forward_propagation(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, int row, int col, char* weightname, char* inputname, char* outputname, int sigmoid)
{
 /*!Last Changed 16.06.2006*/
 char st[MAXLENGTH];
 code_for(testcodefile, language, "i", 0, row - 1, 1);     
 code_2d_array_index_variable(st, language, weightname, "i", "0");
 code_set_variable(testcodefile, language, "sum", st);   
 code_for(testcodefile, language, "j", 1, col - 1, 1);
 code_2d_array_index_variable(st, language, weightname, "i", "j");
 code_set_variable(testcodefile, language, "weights_ij", st);        
 code_array_index_variable(st, language, inputname, "j - 1");            
 code_set_variable(testcodefile, language, "x_j", st);        
 code_set_variable(testcodefile, language, "sum", "sum + weights_ij * x_j");        
 code_endfor(testcodefile, language, "j");
 code_array_index_variable(st, language, outputname, "i");            
 if (sigmoid)
  {
   code_set_variable(testcodefile, language, "sigmoid", "1 / (1 + exp(-sum))");
   code_set_variable(testcodefile, language, st, "sigmoid");
  }
 else
   code_set_variable(testcodefile, language, st, "sum");
 code_endfor(testcodefile, language, "i");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x7a150, %rsp          # imm = 0x7A150
movl 0x18(%rbp), %eax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movq %r8, -0x20(%rbp)
movq %r9, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %r8d
subl $0x1, %r8d
leaq 0x3a23c(%rip), %rdx     # 0xed329
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0xb10b0
leaq -0x7a150(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x20(%rbp), %rdx
leaq 0x3a21a(%rip), %rcx     # 0xed329
leaq 0x3a171(%rip), %r8      # 0xed287
callq 0xb0560
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq -0x7a150(%rbp), %rcx
leaq 0x3a1ed(%rip), %rdx     # 0xed31d
callq 0xafa00
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x14(%rbp), %r8d
subl $0x1, %r8d
leaq 0x39ed9(%rip), %rdx     # 0xed024
movl $0x1, %r9d
movl %r9d, %ecx
callq 0xb10b0
leaq -0x7a150(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x20(%rbp), %rdx
leaq 0x3a1bb(%rip), %rcx     # 0xed329
leaq 0x39eaf(%rip), %r8      # 0xed024
callq 0xb0560
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq -0x7a150(%rbp), %rcx
leaq 0x39e57(%rip), %rdx     # 0xecfe6
callq 0xafa00
leaq -0x7a150(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rdx
leaq 0x3a263(%rip), %rcx     # 0xed40c
callq 0xb04c0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq -0x7a150(%rbp), %rcx
leaq 0x39e75(%rip), %rdx     # 0xed038
callq 0xafa00
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x3a147(%rip), %rdx     # 0xed31d
leaq 0x39e14(%rip), %rcx     # 0xecff1
callq 0xafa00
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x39e34(%rip), %rdx     # 0xed024
callq 0xb13f0
leaq -0x7a150(%rbp), %rdi
movl -0xc(%rbp), %esi
movq 0x10(%rbp), %rdx
leaq 0x3a11f(%rip), %rcx     # 0xed329
callq 0xb04c0
cmpl $0x0, 0x18(%rbp)
je 0xb324b
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x344c1(%rip), %rdx     # 0xe76e4
leaq 0x39dde(%rip), %rcx     # 0xed008
callq 0xafa00
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq -0x7a150(%rbp), %rdx
leaq 0x344a0(%rip), %rcx     # 0xe76e4
callq 0xafa00
jmp 0xb3265
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq -0x7a150(%rbp), %rdx
leaq 0x3a0bd(%rip), %rcx     # 0xed31d
callq 0xafa00
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x3a0b6(%rip), %rdx     # 0xed329
callq 0xb13f0
addq $0x7a150, %rsp          # imm = 0x7A150
popq %rbp
retq
nopw %cs:(%rax,%rax)