// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/savecode.c
// Function: generate_test_code_svmreg
void generate_test_code_svmreg(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, Datasetptr d, char* algorithmname, Svm_modelptr m)
{
 /*!Last Changed 25.06.2006*/
 char st[MAXLENGTH], st2[MAXLENGTH];
 code_function_header(testcodefile, algorithmname, 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_constant_real(testcodefile, language, "gamma", m->param.gamma);
 code_constant_real(testcodefile, language, "coef0", m->param.coef0);
 code_constant_real(testcodefile, language, "rho", m->rho[0]);
 code_constant_integer(testcodefile, language, "degree", m->param.degree);
 code_2d_array_constant_sv(testcodefile, language, "sv", m->l, d->multifeaturecount - 1, m->SV);
	code_1d_array_constant(testcodefile, language, "sv_coef", m->l, m->sv_coef, REAL_TYPE);
 code_variable_start(testcodefile, language); 
 code_add_variable(testcodefile, language, INTEGER_VARIABLE, 4, "i", "j", "k", "a");
 code_add_variable(testcodefile, language, REAL_VARIABLE, 4, "x_j", "sv_ij", "sum", "regvalue");
 code_add_array_variable(testcodefile, language, 1, REAL_VARIABLE, "testdataconverted", d->multifeaturecount);
 code_start(testcodefile, language);  
	code_realize(testcodefile, language, d, YES);
	code_set_variable(testcodefile, language, "regvalue", "0.0");
	code_for(testcodefile, language, "i", 0, m->l - 1, 1);
	code_kernel_function(testcodefile, language, d, m->param);
 code_array_index_variable(st, language, "sv_coef", "i");  
	sprintf(st2, "regvalue + sum * %s", st);
	code_set_variable(testcodefile, language, "regvalue", st2);
	code_endfor(testcodefile, language, "i");
	code_set_variable(testcodefile, language, "regvalue", "regvalue - rho");
 code_function_return_string(testcodefile, algorithmname, language, "regvalue");   
 code_function_end(testcodefile, language);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf42d0, %rsp          # imm = 0xF42D0
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x18(%rbp), %rax
movl 0x1bc(%rax), %edx
movl -0xc(%rbp), %ecx
callq 0xaf1e0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0xaf9c0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x18(%rbp), %rax
movl 0x1c0(%rax), %r8d
subl $0x1, %r8d
leaq 0x298d5(%rip), %rcx     # 0xe309a
leaq 0x3287ac(%rip), %r9     # 0x3e1f78
callq 0xb14a0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x18(%rbp), %rax
movl 0x1c0(%rax), %r8d
subl $0x1, %r8d
leaq 0x298b2(%rip), %rcx     # 0xe30a4
leaq 0x3287af(%rip), %r9     # 0x3e1fa8
callq 0xb14a0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rax
movsd 0x10(%rax), %xmm0
leaq 0x28d53(%rip), %rdx     # 0xe2568
callq 0xaf870
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rax
movsd 0x18(%rax), %xmm0
leaq 0x28d24(%rip), %rdx     # 0xe2555
callq 0xaf870
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rax
movq 0x70(%rax), %rax
movsd (%rax), %xmm0
leaq 0x33c11(%rip), %rdx     # 0xed461
callq 0xaf870
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rax
movl 0x8(%rax), %ecx
leaq 0x28cf4(%rip), %rdx     # 0xe255e
callq 0xaf920
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rax
movl 0x5c(%rax), %ecx
movq -0x18(%rbp), %rax
movl 0x1c0(%rax), %r8d
subl $0x1, %r8d
movq -0x28(%rbp), %rax
movq 0x60(%rax), %r9
leaq 0x33b16(%rip), %rdx     # 0xed3b1
callq 0xb1c00
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rax
movl 0x5c(%rax), %ecx
movq -0x28(%rbp), %rax
movq 0x68(%rax), %r8
leaq 0x33aeb(%rip), %rdx     # 0xed3a8
movl $0x1, %r9d
callq 0xb15d0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0xb00e0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
xorl %edx, %edx
movl $0x4, %ecx
leaq 0x33a40(%rip), %r8      # 0xed329
leaq 0x33734(%rip), %r9      # 0xed024
leaq 0x33afb(%rip), %r10     # 0xed3f2
leaq 0x2b0ea(%rip), %rax     # 0xe49e8
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
movb $0x0, %al
callq 0xafe40
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl $0x1, %edx
movl $0x4, %ecx
leaq 0x33712(%rip), %r8      # 0xed038
leaq 0x3376f(%rip), %r9      # 0xed09c
leaq 0x339e9(%rip), %r10     # 0xed31d
leaq 0x338d6(%rip), %rax     # 0xed211
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
movb $0x0, %al
callq 0xafe40
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rax
movl 0x1c0(%rax), %r9d
movl $0x1, %ecx
leaq 0x3358b(%rip), %r8      # 0xecef4
movl %ecx, %edx
movb $0x0, %al
callq 0xafab0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0xaf2c0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movl $0x1, %ecx
callq 0xb3590
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x33870(%rip), %rdx     # 0xed211
leaq 0x338dd(%rip), %rcx     # 0xed285
callq 0xafa00
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rax
movl 0x5c(%rax), %r8d
subl $0x1, %r8d
leaq 0x33962(%rip), %rdx     # 0xed329
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0xb10b0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq 0x50(%rcx), %r8
movq %rsp, %rax
movq %r8, 0x50(%rax)
movups 0x40(%rcx), %xmm0
movups %xmm0, 0x40(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups 0x20(%rcx), %xmm2
movups 0x30(%rcx), %xmm3
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0xb3c20
leaq -0x7a150(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x3397e(%rip), %rdx     # 0xed3a8
leaq 0x338f8(%rip), %rcx     # 0xed329
callq 0xb04c0
leaq -0xf4270(%rbp), %rdi
leaq -0x7a150(%rbp), %rdx
leaq 0x339f7(%rip), %rsi     # 0xed442
movb $0x0, %al
callq 0x4170
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq -0xf4270(%rbp), %rcx
leaq 0x337aa(%rip), %rdx     # 0xed211
callq 0xafa00
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x338af(%rip), %rdx     # 0xed329
callq 0xb13f0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
leaq 0x33784(%rip), %rdx     # 0xed211
leaq 0x339c2(%rip), %rcx     # 0xed456
callq 0xafa00
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0xc(%rbp), %edx
leaq 0x33766(%rip), %rcx     # 0xed211
callq 0xb01f0
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0xb03a0
addq $0xf42d0, %rsp          # imm = 0xF42D0
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop