// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/savecode.c
// Function: generate_test_code_rbf
void generate_test_code_rbf(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, Datasetptr d, Rbfnetworkptr m)
{
 /*!Last Changed 21.08.2007*/
 char st[MAXLENGTH];
 code_function_header(testcodefile, "rbf", 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_2d_array_constant(testcodefile, language, "w", m->weights.w.row, m->weights.w.col, m->weights.w.values);
 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, 3, REAL_VARIABLE, "p", m->hidden + 1, REAL_VARIABLE, "y", m->output, REAL_VARIABLE, "testdataconverted", d->multifeaturecount);
 code_add_variable(testcodefile, language, REAL_VARIABLE, 8, "p_h", "s_h", "dist", "sum", "w_ih", "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_for(testcodefile, language, "i", 0, d->classno - 1, 1);
 code_set_variable(testcodefile, language, "sum", "0.0");
 code_for(testcodefile, language, "h", 0, m->hidden, 1);
 code_2d_array_index_variable(st, language, "w", "i", "h");
 code_set_variable(testcodefile, language, "w_ih", st);
 code_array_index_variable(st, language, "p", "h");  
 code_set_variable(testcodefile, language, "p_h", st);
 code_set_variable(testcodefile, language, "sum", "sum + w_ih * p_h");    
 code_endfor(testcodefile, language, "h");
 code_array_index_variable(st, language, "y", "i");
 code_set_variable(testcodefile, language, st, "sum");
 code_endfor(testcodefile, language, "i");
 code_find_bound_of_list(testcodefile, language, "y", d->classno, "-10000.0", "maxvalue", "maxindex", ">");
 code_function_return_string(testcodefile, "rbf", language, "maxindex");   
 code_function_end(testcodefile, language);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x7a178, %rsp          # imm = 0x7A178
movq %rdi, -0x20(%rbp)
movl %esi, -0x24(%rbp)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rax
movl 0x1bc(%rax), %edx
movl -0x24(%rbp), %ecx
leaq 0x2f33d(%rip), %rsi     # 0xe6884
callq 0xaf1e0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
callq 0xaf9c0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x30(%rbp), %rdx
movq -0x30(%rbp), %rax
movl 0x1c0(%rax), %r8d
subl $0x1, %r8d
leaq 0x2bb21(%rip), %rcx     # 0xe309a
leaq 0x32a9f8(%rip), %r9     # 0x3e1f78
callq 0xb14a0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x30(%rbp), %rdx
movq -0x30(%rbp), %rax
movl 0x1c0(%rax), %r8d
subl $0x1, %r8d
leaq 0x2bafe(%rip), %rcx     # 0xe30a4
leaq 0x32a9fb(%rip), %r9     # 0x3e1fa8
callq 0xb14a0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x38(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x38(%rbp), %rax
movl 0x14(%rax), %r8d
movq -0x38(%rbp), %rax
movq 0x18(%rax), %r9
leaq 0x351f1(%rip), %rdx     # 0xec7c8
callq 0xb18c0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x38(%rbp), %rax
movl 0x30(%rax), %ecx
movq -0x38(%rbp), %rax
movl 0x34(%rax), %r8d
movq -0x38(%rbp), %rax
movq 0x38(%rax), %r9
leaq 0x30bbd(%rip), %rdx     # 0xe81be
callq 0xb18c0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x38(%rbp), %rax
movl 0x24(%rax), %ecx
movq -0x38(%rbp), %rax
movq 0x28(%rax), %rax
movq (%rax), %r8
leaq 0x2d473(%rip), %rdx     # 0xe4a99
movl $0x1, %r9d
callq 0xb15d0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
callq 0xb00e0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x38(%rbp), %rax
movl (%rax), %r9d
addl $0x1, %r9d
movq -0x38(%rbp), %rax
movl 0x4(%rax), %r11d
movq -0x30(%rbp), %rax
movl 0x1c0(%rax), %eax
movl $0x3, %edx
movl $0x1, %ecx
leaq 0x35dc8(%rip), %r8      # 0xed43a
leaq 0x2b0c5(%rip), %rbx     # 0xe273e
leaq 0x35874(%rip), %r10     # 0xecef4
movl $0x1, (%rsp)
movq %rbx, 0x8(%rsp)
movl %r11d, 0x10(%rsp)
movl $0x1, 0x18(%rsp)
movq %r10, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movb $0x0, %al
callq 0xafab0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movl $0x1, %edx
movl $0x8, %ecx
leaq 0x35cc7(%rip), %r8      # 0xed388
leaq 0x35c63(%rip), %r9      # 0xed32b
leaq 0x35c60(%rip), %r15     # 0xed32f
leaq 0x35c47(%rip), %r14     # 0xed31d
leaq 0x35c57(%rip), %rbx     # 0xed334
leaq 0x35c55(%rip), %r11     # 0xed339
leaq 0x3594d(%rip), %r10     # 0xed038
leaq 0x35b85(%rip), %rax     # 0xed277
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq %r11, 0x18(%rsp)
movq %r10, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movb $0x0, %al
callq 0xafe40
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
xorl %edx, %edx
movl $0x6, %ecx
leaq 0x35bfe(%rip), %r8      # 0xed329
leaq 0x358f2(%rip), %r9      # 0xed024
leaq 0x35c51(%rip), %rbx     # 0xed38a
leaq 0x359da(%rip), %r11     # 0xed11a
leaq 0x35cab(%rip), %r10     # 0xed3f2
leaq 0x2d29a(%rip), %rax     # 0xe49e8
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0xafe40
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
callq 0xaf2c0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x30(%rbp), %rdx
movl $0x1, %ecx
callq 0xb3590
leaq -0x7a160(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x35ca0(%rip), %rdx     # 0xed43a
leaq 0x35ae6(%rip), %rcx     # 0xed287
callq 0xb04c0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq -0x7a160(%rbp), %rdx
leaq 0x2d8e9(%rip), %rcx     # 0xe50a4
callq 0xafa00
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x38(%rbp), %rax
movl (%rax), %r8d
leaq 0x35bb5(%rip), %rdx     # 0xed38a
movl $0x1, %r9d
movl %r9d, %ecx
callq 0xb10b0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x35b3e(%rip), %rdx     # 0xed32f
leaq 0x35a8d(%rip), %rcx     # 0xed285
callq 0xafa00
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x30(%rbp), %rax
movl 0x1c0(%rax), %r8d
subl $0x2, %r8d
leaq 0x3580a(%rip), %rdx     # 0xed024
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0xb10b0
leaq -0x7a160(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x34f90(%rip), %rdx     # 0xec7c8
leaq 0x35b4b(%rip), %rcx     # 0xed38a
leaq 0x357de(%rip), %r8      # 0xed024
callq 0xb0560
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq -0x7a160(%rbp), %rcx
leaq 0x35ad9(%rip), %rdx     # 0xed339
callq 0xafa00
leaq -0x7a160(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x3567e(%rip), %rdx     # 0xecef4
leaq 0x357a7(%rip), %rcx     # 0xed024
callq 0xb04c0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq -0x7a160(%rbp), %rcx
leaq 0x357a1(%rip), %rdx     # 0xed038
callq 0xafa00
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x35a85(%rip), %rdx     # 0xed32f
leaq 0x35a8d(%rip), %rcx     # 0xed33e
callq 0xafa00
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x35760(%rip), %rdx     # 0xed024
callq 0xb13f0
leaq -0x7a160(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x2d1bf(%rip), %rdx     # 0xe4a99
leaq 0x35aa9(%rip), %rcx     # 0xed38a
callq 0xb04c0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq -0x7a160(%rbp), %rcx
leaq 0x35a30(%rip), %rdx     # 0xed32b
callq 0xafa00
leaq -0x7a160(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x35b29(%rip), %rdx     # 0xed43a
leaq 0x35a72(%rip), %rcx     # 0xed38a
callq 0xb04c0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq -0x7a160(%rbp), %rdx
leaq 0x35a1e(%rip), %rcx     # 0xed350
callq 0xafa00
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x35a45(%rip), %rdx     # 0xed38a
callq 0xb13f0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x30(%rbp), %rax
movl 0x10(%rax), %r8d
subl $0x1, %r8d
leaq 0x359c5(%rip), %rdx     # 0xed329
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0xb10b0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x3599e(%rip), %rdx     # 0xed31d
leaq 0x358ff(%rip), %rcx     # 0xed285
callq 0xafa00
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x38(%rbp), %rax
movl (%rax), %r8d
leaq 0x359ea(%rip), %rdx     # 0xed38a
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0xb10b0
leaq -0x7a160(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x30800(%rip), %rdx     # 0xe81be
leaq 0x35964(%rip), %rcx     # 0xed329
leaq 0x359be(%rip), %r8      # 0xed38a
callq 0xb0560
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq -0x7a160(%rbp), %rcx
leaq 0x3594e(%rip), %rdx     # 0xed334
callq 0xafa00
leaq -0x7a160(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x35a3e(%rip), %rdx     # 0xed43a
leaq 0x35987(%rip), %rcx     # 0xed38a
callq 0xb04c0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq -0x7a160(%rbp), %rcx
leaq 0x3596b(%rip), %rdx     # 0xed388
callq 0xafa00
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x358ed(%rip), %rdx     # 0xed31d
leaq 0x35932(%rip), %rcx     # 0xed369
callq 0xafa00
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x35940(%rip), %rdx     # 0xed38a
callq 0xb13f0
leaq -0x7a160(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x2acde(%rip), %rdx     # 0xe273e
leaq 0x358c2(%rip), %rcx     # 0xed329
callq 0xb04c0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq -0x7a160(%rbp), %rdx
leaq 0x3589c(%rip), %rcx     # 0xed31d
callq 0xafa00
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
leaq 0x35895(%rip), %rdx     # 0xed329
callq 0xb13f0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x30(%rbp), %rax
movl 0x10(%rax), %ecx
leaq 0x2ac90(%rip), %rdx     # 0xe273e
leaq 0x357cb(%rip), %r8      # 0xed280
leaq 0x357bb(%rip), %r9      # 0xed277
leaq 0x35657(%rip), %r10     # 0xed11a
leaq 0x35d14(%rip), %rax     # 0xed7de
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0xb3440
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %edx
leaq 0x2ed9e(%rip), %rsi     # 0xe6884
leaq 0x3562d(%rip), %rcx     # 0xed11a
callq 0xb01f0
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
callq 0xb03a0
addq $0x7a178, %rsp          # imm = 0x7A178
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)