// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/savecode.c
// Function: generate_test_code_rbfreg
void generate_test_code_rbfreg(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, Datasetptr d, Rbfnetworkptr m)
{
 /*!Last Changed 21.08.2007*/
 char st[MAXLENGTH];
 code_function_header(testcodefile, "rbfreg", d->featurecount, language);
 code_constant_start(testcodefile, language);
 code_1d_array_constant_instance(testcodefile, language, d, "mean", d->multifeaturecount - 1, &mean);
 code_1d_array_constant_instance(testcodefile, language, d, "variance", d->multifeaturecount - 1, &variance);
 code_2d_array_constant(testcodefile, language, "m", m->weights.m.row, m->weights.m.col, m->weights.m.values);
 code_1d_array_constant(testcodefile, language, "w", m->weights.w.col, m->weights.w.values[0], REAL_TYPE);
 code_1d_array_constant(testcodefile, language, "s", m->weights.s.col, m->weights.s.values[0], REAL_TYPE);
 code_variable_start(testcodefile, language);
 code_add_array_variable(testcodefile, language, 2, REAL_VARIABLE, "p", m->hidden + 1, REAL_VARIABLE, "testdataconverted", d->multifeaturecount);
 code_add_variable(testcodefile, language, REAL_VARIABLE, 9, "y", "p_h", "s_h", "dist", "sum", "w_h", "m_hj", "x_j", "maxvalue");
 code_add_variable(testcodefile, language, INTEGER_VARIABLE, 6, "i", "j", "h", "maxindex", "k", "a");
 code_start(testcodefile, language);
 code_realize(testcodefile, language, d, YES);
 code_array_index_variable(st, language, "p", "0");
 code_set_variable(testcodefile, language, st, "1.0");
 code_for(testcodefile, language, "h", 1, m->hidden, 1);
 code_set_variable(testcodefile, language, "dist", "0.0");
 code_for(testcodefile, language, "j", 0, d->multifeaturecount - 2, 1);
 code_2d_array_index_variable(st, language, "m", "h", "j");
 code_set_variable(testcodefile, language, "m_hj", st);
 code_array_index_variable(st, language, "testdataconverted", "j");  
 code_set_variable(testcodefile, language, "x_j", st); 
 code_set_variable(testcodefile, language, "dist", "dist + m_hj * x_j");    
 code_endfor(testcodefile, language, "j");
 code_array_index_variable(st, language, "s", "h");  
 code_set_variable(testcodefile, language, "s_h", st);
 code_array_index_variable(st, language, "p", "h");  
 code_set_variable(testcodefile, language, st, "exp(-dist / (s_h * s_h))");
 code_endfor(testcodefile, language, "h");
 code_set_variable(testcodefile, language, "y", "0.0");
 code_for(testcodefile, language, "h", 0, m->hidden, 1);
 code_array_index_variable(st, language, "w", "h");
 code_set_variable(testcodefile, language, "w_h", st);
 code_array_index_variable(st, language, "p", "h");  
 code_set_variable(testcodefile, language, "p_h", st);
 code_set_variable(testcodefile, language, "y", "y + w_h * p_h");    
 code_endfor(testcodefile, language, "h");
 code_function_return_string(testcodefile, "rbfreg", language, "y");   
 code_function_end(testcodefile, language);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7a128, %rsp          # imm = 0x7A128
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %ebx
movq %rdi, %r14
movl 0x1bc(%rdx), %edx
leaq 0x299ed(%rip), %rsi     # 0xac9d1
movl %ebx, %ecx
callq 0x7b551
cmpl $0x2, %ebx
jne 0x83009
leaq 0x2a20e(%rip), %rdi     # 0xad205
movl $0x6, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
movl 0x1c0(%r12), %r8d
decl %r8d
leaq 0x2b7e0(%rip), %rcx     # 0xae7fb
leaq 0x32bf86(%rip), %r9     # 0x3aefa8
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x7cde7
movl 0x1c0(%r12), %r8d
decl %r8d
leaq 0x203e3(%rip), %rcx     # 0xa3424
leaq 0x32bf90(%rip), %r9     # 0x3aefd8
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x7cde7
movl 0x10(%r15), %ecx
movl 0x14(%r15), %r8d
movq 0x18(%r15), %r9
leaq 0x2a058(%rip), %rdx     # 0xad0c0
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d0d5
movl 0x34(%r15), %ecx
movq 0x38(%r15), %rax
movq (%rax), %r8
leaq 0x2581d(%rip), %rdx     # 0xa88a1
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %r9d
callq 0x7ceb8
movl 0x24(%r15), %ecx
movq 0x28(%r15), %rax
movq (%rax), %r8
leaq 0x21e53(%rip), %rdx     # 0xa4ef9
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %r9d
callq 0x7ceb8
cmpl $0x2, %ebx
jne 0x831e7
leaq 0x2a1a2(%rip), %rdi     # 0xad268
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
movl (%r15), %r9d
incl %r9d
movl 0x1c0(%r12), %r10d
subq $0x8, %rsp
leaq 0x2a6fb(%rip), %r11     # 0xad7ec
leaq 0x2ac3a(%rip), %r8      # 0xadd32
movq %r14, %rdi
movl %ebx, %esi
movl $0x2, %edx
movl $0x1, %ecx
xorl %eax, %eax
pushq %r10
pushq %r11
pushq $0x1
callq 0x7bab4
addq $0x18, %rsp
leaq 0x2aa50(%rip), %r10     # 0xadb6f
leaq 0x2a80a(%rip), %r11     # 0xad930
leaq 0x2ab04(%rip), %r13     # 0xadc31
leaq 0x2ab3e(%rip), %rbp     # 0xadc72
leaq 0x1f88e(%rip), %r8      # 0xa29c9
leaq 0x2ab3e(%rip), %r9      # 0xadc80
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %edx
movl $0x9, %ecx
movl $0x0, %eax
pushq %r10
pushq %r11
pushq %r13
pushq %rbp
leaq 0x2aab1(%rip), %r10     # 0xadc15
pushq %r10
leaq 0x2aaba(%rip), %r10     # 0xadc27
pushq %r10
leaq 0x2aaad(%rip), %r10     # 0xadc23
pushq %r10
callq 0x7bd1c
addq $0x40, %rsp
leaq 0x21cc0(%rip), %r10     # 0xa4e48
leaq 0x2ab5b(%rip), %r11     # 0xadcea
leaq 0x2a87c(%rip), %r13     # 0xada12
leaq 0x2aae5(%rip), %rbp     # 0xadc82
leaq 0x2aa7d(%rip), %r8      # 0xadc21
leaq 0x2a771(%rip), %r9      # 0xad91c
movq %r14, %rdi
movl %ebx, %esi
xorl %edx, %edx
movl $0x6, %ecx
xorl %eax, %eax
pushq %r10
pushq %r11
pushq %r13
pushq %rbp
callq 0x7bd1c
addq $0x20, %rsp
leaq 0x29ea8(%rip), %rdi     # 0xad078
movl $0x6, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
jmp 0x832d8
movl (%r15), %r9d
incl %r9d
movl 0x1c0(%r12), %r10d
subq $0x8, %rsp
leaq 0x2a5ec(%rip), %r11     # 0xad7ec
leaq 0x2ab2b(%rip), %r8      # 0xadd32
movq %r14, %rdi
movl %ebx, %esi
movl $0x2, %edx
movl $0x1, %ecx
xorl %eax, %eax
pushq %r10
pushq %r11
pushq $0x1
callq 0x7bab4
addq $0x18, %rsp
leaq 0x2a941(%rip), %r10     # 0xadb6f
leaq 0x2a6fb(%rip), %r11     # 0xad930
leaq 0x2a9f5(%rip), %r13     # 0xadc31
leaq 0x2aa2f(%rip), %rbp     # 0xadc72
leaq 0x1f77f(%rip), %r8      # 0xa29c9
leaq 0x2aa2f(%rip), %r9      # 0xadc80
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %edx
movl $0x9, %ecx
movl $0x0, %eax
pushq %r10
pushq %r11
pushq %r13
pushq %rbp
leaq 0x2a9a2(%rip), %r10     # 0xadc15
pushq %r10
leaq 0x2a9ab(%rip), %r10     # 0xadc27
pushq %r10
leaq 0x2a99e(%rip), %r10     # 0xadc23
pushq %r10
callq 0x7bd1c
addq $0x40, %rsp
leaq 0x21bb1(%rip), %r10     # 0xa4e48
leaq 0x2aa4c(%rip), %r11     # 0xadcea
leaq 0x2a76d(%rip), %r13     # 0xada12
leaq 0x2a9d6(%rip), %rbp     # 0xadc82
leaq 0x2a96e(%rip), %r8      # 0xadc21
leaq 0x2a662(%rip), %r9      # 0xad91c
movq %r14, %rdi
movl %ebx, %esi
xorl %edx, %edx
movl $0x6, %ecx
xorl %eax, %eax
pushq %r10
pushq %r11
pushq %r13
pushq %rbp
callq 0x7bd1c
addq $0x20, %rsp
incl 0x32bf0a(%rip)          # 0x3af1e8
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
movl $0x1, %ecx
callq 0x7e795
leaq 0x2aa3b(%rip), %rdx     # 0xadd32
leaq 0x1feab(%rip), %rcx     # 0xa31a9
movq %rsp, %r13
movq %r13, %rdi
movl %ebx, %esi
callq 0x7c24c
leaq 0x221c4(%rip), %rcx     # 0xa54d6
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rdx
callq 0x7ba46
movl (%r15), %r8d
leaq 0x2a959(%rip), %rbp     # 0xadc82
movq %r14, %rdi
movl %ebx, %esi
movq %rbp, %rdx
movl $0x1, %ecx
movl $0x1, %r9d
callq 0x7ca9f
leaq 0x2a8df(%rip), %rdx     # 0xadc27
leaq 0x2a82e(%rip), %rcx     # 0xadb7d
movq %r14, %rdi
movl %ebx, %esi
callq 0x7ba46
movl 0x1c0(%r12), %r8d
addl $-0x2, %r8d
leaq 0x2a5b0(%rip), %r12     # 0xad91c
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x7ca9f
leaq 0x29d38(%rip), %rdx     # 0xad0c0
movq %r13, %rdi
movl %ebx, %esi
movq %rbp, %rcx
movq %r12, %r8
callq 0x7c269
leaq 0x2a892(%rip), %rdx     # 0xadc31
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rcx
callq 0x7ba46
leaq 0x2a439(%rip), %rdx     # 0xad7ec
movq %r13, %rdi
movl %ebx, %esi
movq %r12, %rcx
callq 0x7c24c
leaq 0x2a569(%rip), %rdx     # 0xad930
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rcx
callq 0x7ba46
leaq 0x2a85b(%rip), %rcx     # 0xadc36
movq %r14, %rdi
movl %ebx, %esi
leaq 0x2a840(%rip), %rdx     # 0xadc27
callq 0x7ba46
movq %r14, %rdi
movl %ebx, %esi
callq 0x7cd49
leaq 0x21afc(%rip), %rdx     # 0xa4ef9
movq %r13, %rdi
movl %ebx, %esi
movq %rbp, %rcx
callq 0x7c24c
leaq 0x2a812(%rip), %rdx     # 0xadc23
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rcx
callq 0x7ba46
movq %r13, %rdi
movl %ebx, %esi
leaq 0x2a908(%rip), %rdx     # 0xadd32
movq %rbp, %rcx
callq 0x7c24c
leaq 0x2a80f(%rip), %rcx     # 0xadc48
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rdx
callq 0x7ba46
movq %r14, %rdi
movl %ebx, %esi
callq 0x7cd49
leaq 0x1f572(%rip), %r12     # 0xa29c9
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
leaq 0x2a717(%rip), %rcx     # 0xadb7d
callq 0x7ba46
movl (%r15), %r8d
movq %r14, %rdi
movl %ebx, %esi
movq %rbp, %rdx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x7ca9f
leaq 0x25417(%rip), %rdx     # 0xa88a1
movq %r13, %rdi
movl %ebx, %esi
movq %rbp, %rcx
callq 0x7c24c
leaq 0x2a7d4(%rip), %rdx     # 0xadc72
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rcx
callq 0x7ba46
movq %r13, %rdi
movl %ebx, %esi
leaq 0x2a87b(%rip), %rdx     # 0xadd32
movq %rbp, %rcx
callq 0x7c24c
leaq 0x2a7ba(%rip), %rdx     # 0xadc80
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rcx
callq 0x7ba46
leaq 0x2a79c(%rip), %rcx     # 0xadc76
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x7ba46
movq %r14, %rdi
movl %ebx, %esi
callq 0x7cd49
leaq 0x294d9(%rip), %rsi     # 0xac9d1
movq %r14, %rdi
movl %ebx, %edx
movq %r12, %rcx
callq 0x7bffb
movq %r14, %rdi
movl %ebx, %esi
callq 0x7c1ca
addq $0x7a128, %rsp          # imm = 0x7A128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq