// File: /workspace/github_c_makefile_star2_O2/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, %r12
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
movl 0x1bc(%rdx), %edx
leaq 0x26d9d(%rip), %rsi     # 0x9f9c9
movl %ebx, %ecx
callq 0x72674
movq %r14, %rdi
movl %ebx, %esi
callq 0x72b0a
movl 0x1c0(%r15), %r8d
decl %r8d
leaq 0x28b9d(%rip), %rcx     # 0xa17eb
leaq 0x331353(%rip), %r9     # 0x3a9fa8
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
callq 0x73bdf
movl 0x1c0(%r15), %r8d
decl %r8d
leaq 0x1d7b1(%rip), %rcx     # 0x96424
leaq 0x33135e(%rip), %r9     # 0x3a9fd8
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
callq 0x73bdf
movl 0x10(%r12), %ecx
movl 0x14(%r12), %r8d
movq 0x18(%r12), %r9
leaq 0x2741f(%rip), %rdx     # 0xa00bc
movq %r14, %rdi
movl %ebx, %esi
callq 0x73ec6
movl 0x34(%r12), %ecx
movq 0x38(%r12), %rax
movq (%rax), %r8
leaq 0x22bd6(%rip), %rdx     # 0x9b891
pushq $0x1
popq %rbp
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %r9d
callq 0x73cac
movl 0x24(%r12), %ecx
movq 0x28(%r12), %rax
movq (%rax), %r8
leaq 0x1f1f2(%rip), %rdx     # 0x97ed1
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %r9d
callq 0x73cac
movq %r14, %rdi
movl %ebx, %esi
callq 0x72fb3
movl (%r12), %r9d
incl %r9d
movl 0x1c0(%r15), %r10d
subq $0x8, %rsp
leaq 0x27ad9(%rip), %r11     # 0xa07e8
leaq 0x28018(%rip), %r8      # 0xa0d2e
pushq $0x2
popq %rdx
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %ecx
xorl %eax, %eax
pushq %r10
pushq %r11
pushq $0x1
callq 0x72b76
addq $0x18, %rsp
leaq 0x27bf4(%rip), %r10     # 0xa092c
leaq 0x27eee(%rip), %rbp     # 0xa0c2d
leaq 0x27f28(%rip), %r13     # 0xa0c6e
leaq 0x1cc7c(%rip), %r8      # 0x959c9
leaq 0x27f28(%rip), %r9      # 0xa0c7c
pushq $0x9
popq %rcx
movq %r14, %rdi
movl %ebx, %esi
pushq $0x1
popq %rdx
movl $0x0, %eax
leaq 0x27e00(%rip), %r11     # 0xa0b6b
pushq %r11
pushq %r10
pushq %rbp
pushq %r13
leaq 0x27e98(%rip), %r10     # 0xa0c11
pushq %r10
leaq 0x27ea1(%rip), %r10     # 0xa0c23
pushq %r10
leaq 0x27e94(%rip), %r10     # 0xa0c1f
pushq %r10
callq 0x72de1
addq $0x40, %rsp
leaq 0x1f083(%rip), %r10     # 0x97e20
leaq 0x27f42(%rip), %r11     # 0xa0ce6
leaq 0x27c63(%rip), %rbp     # 0xa0a0e
leaq 0x27ecc(%rip), %r13     # 0xa0c7e
leaq 0x27e64(%rip), %r8      # 0xa0c1d
leaq 0x27b58(%rip), %r9      # 0xa0918
pushq $0x6
popq %rcx
movq %r14, %rdi
movl %ebx, %esi
movl $0x0, %edx
xorl %eax, %eax
pushq %r10
pushq %r11
pushq %rbp
pushq %r13
callq 0x72de1
addq $0x20, %rsp
movq %r14, %rdi
movl %ebx, %esi
callq 0x726d3
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
pushq $0x1
popq %r13
movl %r13d, %ecx
callq 0x753f5
leaq 0x1d3ad(%rip), %rcx     # 0x961b1
movq %rsp, %rbp
movq %rbp, %rdi
movl %ebx, %esi
leaq 0x27f1b(%rip), %rdx     # 0xa0d2e
callq 0x7327f
leaq 0x1f68f(%rip), %rcx     # 0x984ae
movq %r14, %rdi
movl %ebx, %esi
movq %rbp, %rdx
callq 0x72b25
movl (%r12), %r8d
movq %r14, %rdi
movl %ebx, %esi
leaq 0x27e42(%rip), %rdx     # 0xa0c7e
movl %r13d, %ecx
movl %r13d, %r9d
callq 0x73938
leaq 0x27d2b(%rip), %rcx     # 0xa0b79
movq %r14, %rdi
movl %ebx, %esi
leaq 0x27dc9(%rip), %rdx     # 0xa0c23
callq 0x72b25
movl 0x1c0(%r15), %r8d
addl $-0x2, %r8d
movq %r14, %rdi
movl %ebx, %esi
leaq 0x27aa2(%rip), %r15     # 0xa0918
movq %r15, %rdx
xorl %ecx, %ecx
movl %r13d, %r9d
callq 0x73938
movq %rbp, %rdi
movl %ebx, %esi
leaq 0x2722d(%rip), %rdx     # 0xa00bc
leaq 0x27de8(%rip), %rcx     # 0xa0c7e
movq %rcx, %r13
movq %r15, %r8
callq 0x7329c
movq %r14, %rdi
movl %ebx, %esi
leaq 0x27d80(%rip), %rdx     # 0xa0c2d
movq %rbp, %rcx
callq 0x72b25
movq %rbp, %rdi
movl %ebx, %esi
leaq 0x27927(%rip), %rdx     # 0xa07e8
movq %r15, %rcx
callq 0x7327f
movq %r14, %rdi
movl %ebx, %esi
leaq 0x27a57(%rip), %rdx     # 0xa092c
movq %rbp, %rcx
callq 0x72b25
leaq 0x27d4e(%rip), %rcx     # 0xa0c32
movq %r14, %rdi
movl %ebx, %esi
leaq 0x27d33(%rip), %rdx     # 0xa0c23
callq 0x72b25
movq %r14, %rdi
movl %ebx, %esi
callq 0x73b72
movq %rbp, %rdi
movl %ebx, %esi
leaq 0x1efc6(%rip), %rdx     # 0x97ed1
movq %r13, %rcx
callq 0x7327f
movq %r14, %rdi
movl %ebx, %esi
leaq 0x27d00(%rip), %rdx     # 0xa0c1f
movq %rbp, %rcx
callq 0x72b25
movq %rbp, %rdi
movl %ebx, %esi
leaq 0x27dfb(%rip), %rdx     # 0xa0d2e
movq %r13, %rcx
callq 0x7327f
leaq 0x27d02(%rip), %rcx     # 0xa0c44
movq %r14, %rdi
movl %ebx, %esi
movq %rbp, %rdx
callq 0x72b25
movq %r14, %rdi
movl %ebx, %esi
callq 0x73b72
movq %r14, %rdi
movl %ebx, %esi
leaq 0x1ca64(%rip), %r15     # 0x959c9
movq %r15, %rdx
leaq 0x27c0a(%rip), %rcx     # 0xa0b79
callq 0x72b25
movl (%r12), %r8d
movq %r14, %rdi
movl %ebx, %esi
movq %r13, %rdx
xorl %ecx, %ecx
pushq $0x1
popq %r9
callq 0x73938
movq %rbp, %rdi
movl %ebx, %esi
leaq 0x228fa(%rip), %rdx     # 0x9b891
movq %r13, %rcx
callq 0x7327f
movq %r14, %rdi
movl %ebx, %esi
leaq 0x27cc3(%rip), %rdx     # 0xa0c6e
movq %rbp, %rcx
callq 0x72b25
movq %rbp, %rdi
movl %ebx, %esi
leaq 0x27d6f(%rip), %rdx     # 0xa0d2e
movq %r13, %rcx
callq 0x7327f
movq %r14, %rdi
movl %ebx, %esi
leaq 0x27ca9(%rip), %rdx     # 0xa0c7c
movq %rbp, %rcx
callq 0x72b25
leaq 0x27c90(%rip), %rcx     # 0xa0c72
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
callq 0x72b25
movq %r14, %rdi
movl %ebx, %esi
callq 0x73b72
movq %r14, %rdi
leaq 0x269c6(%rip), %rsi     # 0x9f9c9
movl %ebx, %edx
movq %r15, %rcx
callq 0x7308c
movq %r14, %rdi
movl %ebx, %esi
callq 0x7320f
addq $0x7a128, %rsp          # imm = 0x7A128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq