// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/savecode.c
// Function: generate_test_code_multiripper
void generate_test_code_multiripper(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, Datasetptr d, char* algorithm, Rulesetptr m)
{
 /*!Last Changed 26.06.2006*/
 int i;
 Decisionruleptr rule;
 code_function_header(testcodefile, algorithm, 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_variable_start(testcodefile, language);
 code_add_variable(testcodefile, language, INTEGER_VARIABLE, 4, "i", "j", "k", "a");
 code_add_array_variable(testcodefile, language, 1, REAL_VARIABLE, "testdataconverted", d->multifeaturecount);
	code_start(testcodefile, language);
	code_realize(testcodefile, language, d, YES);
 rule = m->start;
 while (rule)
  {
   code_rule(testcodefile, language, d, algorithm, rule);
   code_function_return_classification(testcodefile, algorithm, language, rule->classno);   
   code_else(testcodefile, language);
   rule = rule->next;
  }
 code_function_return_classification(testcodefile, algorithm, language, m->defaultclass);
 for (i = 0; i < m->rulecount; i++)
   code_endif(testcodefile, language);
 code_function_end(testcodefile, language);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r14
movl 0x1bc(%rdx), %edx
movq %rcx, %rsi
movl %ebp, %ecx
callq 0x7ce21
cmpl $0x2, %ebp
jne 0x832b5
leaq 0x2cffa(%rip), %rdi     # 0xb029d
movl $0x6, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
movl 0x1c0(%r12), %r8d
decl %r8d
leaq 0x2e5c4(%rip), %rcx     # 0xb188b
leaq 0x32ecda(%rip), %r9     # 0x3b1fa8
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x7e724
movl 0x1c0(%r12), %r8d
decl %r8d
leaq 0x23137(%rip), %rcx     # 0xa6424
leaq 0x32ece4(%rip), %r9     # 0x3b1fd8
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x7e724
cmpl $0x2, %ebp
jne 0x833a0
leaq 0x2cfef(%rip), %rdi     # 0xb0300
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
leaq 0x24b76(%rip), %r10     # 0xa7ea0
leaq 0x2da51(%rip), %r11     # 0xb0d82
leaq 0x2d981(%rip), %r8      # 0xb0cb9
leaq 0x2d675(%rip), %r9      # 0xb09b4
movq %r14, %rdi
movl $0x2, %esi
xorl %edx, %edx
movl $0x4, %ecx
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x7d617
addq $0x10, %rsp
movl 0x1c0(%r12), %r9d
leaq 0x2d518(%rip), %r8      # 0xb0884
movq %r14, %rdi
movl $0x2, %esi
movl $0x1, %edx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x7d384
leaq 0x2cd84(%rip), %rdi     # 0xb0110
movl $0x6, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
jmp 0x833fc
leaq 0x24af9(%rip), %r10     # 0xa7ea0
leaq 0x2d9d4(%rip), %r11     # 0xb0d82
leaq 0x2d904(%rip), %r8      # 0xb0cb9
leaq 0x2d5f8(%rip), %r9      # 0xb09b4
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
movl $0x4, %ecx
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x7d617
addq $0x10, %rsp
movl 0x1c0(%r12), %r9d
leaq 0x2d49e(%rip), %r8      # 0xb0884
movq %r14, %rdi
movl %ebp, %esi
movl $0x1, %edx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x7d384
incl 0x32ede6(%rip)          # 0x3b21e8
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
movl $0x1, %ecx
callq 0x8050d
movq (%rbx), %r13
testq %r13, %r13
je 0x8344d
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
movq %r13, %r8
callq 0x7fde8
movl (%r13), %ecx
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x7d813
movq %r14, %rdi
movl %ebp, %esi
callq 0x7e1e3
movq 0x30(%r13), %r13
jmp 0x83417
movl 0x14(%rbx), %ecx
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x7d813
cmpl $0x0, 0x10(%rbx)
jle 0x83479
xorl %r15d, %r15d
movq %r14, %rdi
movl %ebp, %esi
callq 0x7e23a
incl %r15d
cmpl 0x10(%rbx), %r15d
jl 0x83466
movq %r14, %rdi
movl %ebp, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7db1b