// File: /workspace/github_c_makefile_star2_O3/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 0x2a54d(%rip), %rsi     # 0xafaa9
movl %ebx, %ecx
callq 0x7ce21
cmpl $0x2, %ebx
jne 0x85581
leaq 0x2ad2e(%rip), %rdi     # 0xb029d
movl $0x6, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
movl 0x1c0(%r12), %r8d
decl %r8d
leaq 0x2c2f8(%rip), %rcx     # 0xb188b
leaq 0x32ca0e(%rip), %r9     # 0x3b1fa8
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x7e724
movl 0x1c0(%r12), %r8d
decl %r8d
leaq 0x20e6b(%rip), %rcx     # 0xa6424
leaq 0x32ca18(%rip), %r9     # 0x3b1fd8
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x7e724
movl 0x10(%r15), %ecx
movl 0x14(%r15), %r8d
movq 0x18(%r15), %r9
leaq 0x2ab78(%rip), %rdx     # 0xb0158
movq %r14, %rdi
movl %ebx, %esi
callq 0x7ea43
movl 0x34(%r15), %ecx
movq 0x38(%r15), %rax
movq (%rax), %r8
leaq 0x26371(%rip), %rdx     # 0xab96d
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %r9d
callq 0x7e7f5
movl 0x24(%r15), %ecx
movq 0x28(%r15), %rax
movq (%rax), %r8
leaq 0x22933(%rip), %rdx     # 0xa7f51
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %r9d
callq 0x7e7f5
cmpl $0x2, %ebx
jne 0x857a2
leaq 0x2acc2(%rip), %rdi     # 0xb0300
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
movl (%r15), %r9d
incl %r9d
movl 0x1c0(%r12), %r10d
subq $0x8, %rsp
leaq 0x2b21b(%rip), %r11     # 0xb0884
leaq 0x2b75a(%rip), %r8      # 0xb0dca
movq %r14, %rdi
movl $0x2, %esi
movl $0x2, %edx
movl $0x1, %ecx
xorl %eax, %eax
pushq %r10
pushq %r11
pushq $0x1
callq 0x7d384
addq $0x18, %rsp
leaq 0x2b56d(%rip), %r10     # 0xb0c07
leaq 0x2b327(%rip), %r11     # 0xb09c8
leaq 0x2b621(%rip), %r13     # 0xb0cc9
leaq 0x2b65b(%rip), %rbp     # 0xb0d0a
leaq 0x20313(%rip), %r8      # 0xa59c9
leaq 0x2b65b(%rip), %r9      # 0xb0d18
movq %r14, %rdi
movl $0x2, %esi
movl $0x1, %edx
movl $0x9, %ecx
movl $0x0, %eax
pushq %r10
pushq %r11
pushq %r13
pushq %rbp
leaq 0x2b5cb(%rip), %r10     # 0xb0cad
pushq %r10
leaq 0x2b5d4(%rip), %r10     # 0xb0cbf
pushq %r10
leaq 0x2b5c7(%rip), %r10     # 0xb0cbb
pushq %r10
callq 0x7d617
addq $0x40, %rsp
leaq 0x2279a(%rip), %r10     # 0xa7ea0
leaq 0x2b675(%rip), %r11     # 0xb0d82
leaq 0x2b396(%rip), %r13     # 0xb0aaa
leaq 0x2b5ff(%rip), %rbp     # 0xb0d1a
leaq 0x2b597(%rip), %r8      # 0xb0cb9
leaq 0x2b28b(%rip), %r9      # 0xb09b4
movq %r14, %rdi
movl $0x2, %esi
xorl %edx, %edx
movl $0x6, %ecx
xorl %eax, %eax
pushq %r10
pushq %r11
pushq %r13
pushq %rbp
callq 0x7d617
addq $0x20, %rsp
leaq 0x2a9bf(%rip), %rdi     # 0xb0110
movl $0x6, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
incl 0x32ca7f(%rip)          # 0x3b21e8
movq %r14, %rdi
movl $0x2, %esi
movq %r12, %rdx
movl $0x1, %ecx
callq 0x8050d
leaq 0x2ac06(%rip), %rsi     # 0xb038b
leaq 0x2b63e(%rip), %rdx     # 0xb0dca
leaq 0x20a16(%rip), %rcx     # 0xa61a9
movq %rsp, %rdi
xorl %eax, %eax
callq 0x41b0
jmp 0x858cc
movl (%r15), %r9d
incl %r9d
movl 0x1c0(%r12), %r10d
subq $0x8, %rsp
leaq 0x2b0c9(%rip), %r11     # 0xb0884
leaq 0x2b608(%rip), %r8      # 0xb0dca
movq %r14, %rdi
movl %ebx, %esi
movl $0x2, %edx
movl $0x1, %ecx
xorl %eax, %eax
pushq %r10
pushq %r11
pushq $0x1
callq 0x7d384
addq $0x18, %rsp
leaq 0x2b41e(%rip), %r10     # 0xb0c07
leaq 0x2b1d8(%rip), %r11     # 0xb09c8
leaq 0x2b4d2(%rip), %r13     # 0xb0cc9
leaq 0x2b50c(%rip), %rbp     # 0xb0d0a
leaq 0x201c4(%rip), %r8      # 0xa59c9
leaq 0x2b50c(%rip), %r9      # 0xb0d18
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %edx
movl $0x9, %ecx
movl $0x0, %eax
pushq %r10
pushq %r11
pushq %r13
pushq %rbp
leaq 0x2b47f(%rip), %r10     # 0xb0cad
pushq %r10
leaq 0x2b488(%rip), %r10     # 0xb0cbf
pushq %r10
leaq 0x2b47b(%rip), %r10     # 0xb0cbb
pushq %r10
callq 0x7d617
addq $0x40, %rsp
leaq 0x2264e(%rip), %r10     # 0xa7ea0
leaq 0x2b529(%rip), %r11     # 0xb0d82
leaq 0x2b24a(%rip), %r13     # 0xb0aaa
leaq 0x2b4b3(%rip), %rbp     # 0xb0d1a
leaq 0x2b44b(%rip), %r8      # 0xb0cb9
leaq 0x2b13f(%rip), %r9      # 0xb09b4
movq %r14, %rdi
movl %ebx, %esi
xorl %edx, %edx
movl $0x6, %ecx
xorl %eax, %eax
pushq %r10
pushq %r11
pushq %r13
pushq %rbp
callq 0x7d617
addq $0x20, %rsp
incl 0x32c94f(%rip)          # 0x3b21e8
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
movl $0x1, %ecx
callq 0x8050d
cmpl $0x5, %ebx
ja 0x858cc
movl $0x3b, %eax
btl %ebx, %eax
jae 0x858cc
movl %ebx, %eax
leaq 0x4e3fd(%rip), %rcx     # 0xd3cc0
movq (%rcx,%rax,8), %rsi
jmp 0x85785
leaq 0x22c5b(%rip), %rcx     # 0xa852e
movq %rsp, %rdx
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d316
movl (%r15), %r8d
leaq 0x2b430(%rip), %rdx     # 0xb0d1a
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %ecx
movl $0x1, %r9d
callq 0x7e3dc
leaq 0x2b3b9(%rip), %rdx     # 0xb0cbf
leaq 0x2b308(%rip), %rcx     # 0xb0c15
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d316
movl 0x1c0(%r12), %r8d
addl $-0x2, %r8d
leaq 0x2b08a(%rip), %rdx     # 0xb09b4
movq %r14, %rdi
movl %ebx, %esi
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x7e3dc
cmpl $0x5, %ebx
ja 0x8596d
movl %ebx, %eax
leaq 0x4e3a6(%rip), %rcx     # 0xd3cf0
movq (%rcx,%rax,8), %rsi
leaq 0x2a803(%rip), %rdx     # 0xb0158
leaq 0x2b3be(%rip), %rcx     # 0xb0d1a
leaq 0x2b051(%rip), %r8      # 0xb09b4
movq %rsp, %rdi
xorl %eax, %eax
callq 0x41b0
leaq 0x2b355(%rip), %rdx     # 0xb0cc9
movq %rsp, %rcx
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d316
leaq 0x4e3f8(%rip), %r12     # 0xd3d80
cmpl $0x5, %ebx
ja 0x859ab
movl %ebx, %eax
movq (%r12,%rax,8), %rsi
leaq 0x2aeea(%rip), %rdx     # 0xb0884
leaq 0x2b013(%rip), %rcx     # 0xb09b4
movq %rsp, %rdi
xorl %eax, %eax
callq 0x41b0
leaq 0x2b016(%rip), %rdx     # 0xb09c8
movq %rsp, %rcx
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d316
leaq 0x2b2f9(%rip), %rdx     # 0xb0cbf
leaq 0x2b301(%rip), %rcx     # 0xb0cce
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d316
movq %r14, %rdi
movl %ebx, %esi
callq 0x7e686
cmpl $0x5, %ebx
ja 0x85a04
movl %ebx, %eax
movq (%r12,%rax,8), %rsi
leaq 0x2255e(%rip), %rdx     # 0xa7f51
leaq 0x2b320(%rip), %rcx     # 0xb0d1a
movq %rsp, %rdi
xorl %eax, %eax
callq 0x41b0
leaq 0x2b2b0(%rip), %rdx     # 0xb0cbb
movq %rsp, %rcx
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d316
cmpl $0x5, %ebx
ja 0x85a3b
movl %ebx, %eax
movq (%r12,%rax,8), %rsi
leaq 0x2b3a0(%rip), %rdx     # 0xb0dca
leaq 0x2b2e9(%rip), %rcx     # 0xb0d1a
movq %rsp, %rdi
xorl %eax, %eax
callq 0x41b0
leaq 0x2b29e(%rip), %rcx     # 0xb0ce0
movq %rsp, %rdx
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d316
movq %r14, %rdi
movl %ebx, %esi
callq 0x7e686
leaq 0x1ff69(%rip), %rdx     # 0xa59c9
leaq 0x2b1ae(%rip), %rcx     # 0xb0c15
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d316
movl (%r15), %r8d
leaq 0x2b29f(%rip), %rdx     # 0xb0d1a
movq %r14, %rdi
movl %ebx, %esi
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x7e3dc
cmpl $0x5, %ebx
ja 0x85ab0
movl %ebx, %eax
movq (%r12,%rax,8), %rsi
leaq 0x25ece(%rip), %rdx     # 0xab96d
leaq 0x2b274(%rip), %rcx     # 0xb0d1a
movq %rsp, %rdi
xorl %eax, %eax
callq 0x41b0
leaq 0x2b253(%rip), %rdx     # 0xb0d0a
movq %rsp, %rcx
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d316
cmpl $0x5, %ebx
ja 0x85ae7
movl %ebx, %eax
movq (%r12,%rax,8), %rsi
leaq 0x2b2f4(%rip), %rdx     # 0xb0dca
leaq 0x2b23d(%rip), %rcx     # 0xb0d1a
movq %rsp, %rdi
xorl %eax, %eax
callq 0x41b0
leaq 0x2b22a(%rip), %rdx     # 0xb0d18
movq %rsp, %rcx
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d316
leaq 0x1fec7(%rip), %r15     # 0xa59c9
leaq 0x2b205(%rip), %rcx     # 0xb0d0e
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
callq 0x7d316
movq %r14, %rdi
movl %ebx, %esi
callq 0x7e686
leaq 0x29f82(%rip), %rsi     # 0xafaa9
movq %r14, %rdi
movl %ebx, %edx
movq %r15, %rcx
callq 0x7d912
movq %r14, %rdi
movl %ebx, %esi
callq 0x7db1b
addq $0x7a128, %rsp          # imm = 0x7A128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq