// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x7a180, %rsp          # imm = 0x7A180
movq %rdi, -0x28(%rbp)
movl %esi, -0x2c(%rbp)
movq %rdx, -0x38(%rbp)
movq %rcx, -0x40(%rbp)
movq -0x28(%rbp), %rdi
movq -0x38(%rbp), %rax
movl 0x1bc(%rax), %edx
movl -0x2c(%rbp), %ecx
leaq 0x34684(%rip), %rsi     # 0xec1cd
callq 0xaf1e0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0xaf9c0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
movq -0x38(%rbp), %rdx
movq -0x38(%rbp), %rax
movl 0x1c0(%rax), %r8d
subl $0x1, %r8d
leaq 0x2b51f(%rip), %rcx     # 0xe309a
leaq 0x32a3f6(%rip), %r9     # 0x3e1f78
callq 0xb14a0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
movq -0x38(%rbp), %rdx
movq -0x38(%rbp), %rax
movl 0x1c0(%rax), %r8d
subl $0x1, %r8d
leaq 0x2b4fc(%rip), %rcx     # 0xe30a4
leaq 0x32a3f9(%rip), %r9     # 0x3e1fa8
callq 0xb14a0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
movq -0x40(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x40(%rbp), %rax
movl 0x14(%rax), %r8d
movq -0x40(%rbp), %rax
movq 0x18(%rax), %r9
leaq 0x34bef(%rip), %rdx     # 0xec7c8
callq 0xb18c0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
movq -0x40(%rbp), %rax
movl 0x34(%rax), %ecx
movq -0x40(%rbp), %rax
movq 0x38(%rax), %rax
movq (%rax), %r8
leaq 0x305c0(%rip), %rdx     # 0xe81be
movl $0x1, %r9d
callq 0xb15d0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
movq -0x40(%rbp), %rax
movl 0x24(%rax), %ecx
movq -0x40(%rbp), %rax
movq 0x28(%rax), %rax
movq (%rax), %r8
leaq 0x2ce70(%rip), %rdx     # 0xe4a99
movl $0x1, %r9d
callq 0xb15d0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0xb00e0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
movq -0x40(%rbp), %rax
movl (%rax), %r9d
addl $0x1, %r9d
movq -0x38(%rbp), %rax
movl 0x1c0(%rax), %eax
movl $0x2, %edx
movl $0x1, %ecx
leaq 0x357cd(%rip), %r8      # 0xed43a
leaq 0x35280(%rip), %r10     # 0xecef4
movl $0x1, (%rsp)
movq %r10, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movb $0x0, %al
callq 0xafab0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
movl $0x1, %edx
movl $0x9, %ecx
leaq 0x2aa9b(%rip), %r8      # 0xe273e
leaq 0x356de(%rip), %r9      # 0xed388
leaq 0x3567a(%rip), %r12     # 0xed32b
leaq 0x35677(%rip), %r15     # 0xed32f
leaq 0x3565e(%rip), %r14     # 0xed31d
leaq 0x356b4(%rip), %rbx     # 0xed37a
leaq 0x3566c(%rip), %r11     # 0xed339
leaq 0x35364(%rip), %r10     # 0xed038
leaq 0x3559c(%rip), %rax     # 0xed277
movq %r12, (%rsp)
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
movq %r11, 0x20(%rsp)
movq %r10, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movb $0x0, %al
callq 0xafe40
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
xorl %edx, %edx
movl $0x6, %ecx
leaq 0x35610(%rip), %r8      # 0xed329
leaq 0x35304(%rip), %r9      # 0xed024
leaq 0x35663(%rip), %rbx     # 0xed38a
leaq 0x353ec(%rip), %r11     # 0xed11a
leaq 0x356bd(%rip), %r10     # 0xed3f2
leaq 0x2ccac(%rip), %rax     # 0xe49e8
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0xafe40
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0xaf2c0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
movq -0x38(%rbp), %rdx
movl $0x1, %ecx
callq 0xb3590
leaq -0x7a160(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x356b2(%rip), %rdx     # 0xed43a
leaq 0x354f8(%rip), %rcx     # 0xed287
callq 0xb04c0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq -0x7a160(%rbp), %rdx
leaq 0x2d2fb(%rip), %rcx     # 0xe50a4
callq 0xafa00
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
movq -0x40(%rbp), %rax
movl (%rax), %r8d
leaq 0x355c7(%rip), %rdx     # 0xed38a
movl $0x1, %r9d
movl %r9d, %ecx
callq 0xb10b0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x35550(%rip), %rdx     # 0xed32f
leaq 0x3549f(%rip), %rcx     # 0xed285
callq 0xafa00
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
movq -0x38(%rbp), %rax
movl 0x1c0(%rax), %r8d
subl $0x2, %r8d
leaq 0x3521c(%rip), %rdx     # 0xed024
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0xb10b0
leaq -0x7a160(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x349a2(%rip), %rdx     # 0xec7c8
leaq 0x3555d(%rip), %rcx     # 0xed38a
leaq 0x351f0(%rip), %r8      # 0xed024
callq 0xb0560
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq -0x7a160(%rbp), %rcx
leaq 0x354eb(%rip), %rdx     # 0xed339
callq 0xafa00
leaq -0x7a160(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x35090(%rip), %rdx     # 0xecef4
leaq 0x351b9(%rip), %rcx     # 0xed024
callq 0xb04c0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq -0x7a160(%rbp), %rcx
leaq 0x351b3(%rip), %rdx     # 0xed038
callq 0xafa00
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x35497(%rip), %rdx     # 0xed32f
leaq 0x3549f(%rip), %rcx     # 0xed33e
callq 0xafa00
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x35172(%rip), %rdx     # 0xed024
callq 0xb13f0
leaq -0x7a160(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x2cbd1(%rip), %rdx     # 0xe4a99
leaq 0x354bb(%rip), %rcx     # 0xed38a
callq 0xb04c0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq -0x7a160(%rbp), %rcx
leaq 0x35442(%rip), %rdx     # 0xed32b
callq 0xafa00
leaq -0x7a160(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x3553b(%rip), %rdx     # 0xed43a
leaq 0x35484(%rip), %rcx     # 0xed38a
callq 0xb04c0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq -0x7a160(%rbp), %rdx
leaq 0x35430(%rip), %rcx     # 0xed350
callq 0xafa00
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x35457(%rip), %rdx     # 0xed38a
callq 0xb13f0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x2a7f8(%rip), %rdx     # 0xe273e
leaq 0x35338(%rip), %rcx     # 0xed285
callq 0xafa00
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
movq -0x40(%rbp), %rax
movl (%rax), %r8d
leaq 0x35423(%rip), %rdx     # 0xed38a
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0xb10b0
leaq -0x7a160(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x30239(%rip), %rdx     # 0xe81be
leaq 0x353fe(%rip), %rcx     # 0xed38a
callq 0xb04c0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq -0x7a160(%rbp), %rcx
leaq 0x353d4(%rip), %rdx     # 0xed37a
callq 0xafa00
leaq -0x7a160(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x3547e(%rip), %rdx     # 0xed43a
leaq 0x353c7(%rip), %rcx     # 0xed38a
callq 0xb04c0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq -0x7a160(%rbp), %rcx
leaq 0x353ab(%rip), %rdx     # 0xed388
callq 0xafa00
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x2a74e(%rip), %rdx     # 0xe273e
leaq 0x35387(%rip), %rcx     # 0xed37e
callq 0xafa00
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
leaq 0x35380(%rip), %rdx     # 0xed38a
callq 0xb13f0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %edx
leaq 0x341b0(%rip), %rsi     # 0xec1cd
leaq 0x2a71a(%rip), %rcx     # 0xe273e
callq 0xb01f0
movq -0x28(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0xb03a0
addq $0x7a180, %rsp          # imm = 0x7A180
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)