// File: /workspace/github_c_makefile_star2_O2/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 0x72674
movq %r14, %rdi
movl %ebp, %esi
callq 0x72b0a
movl 0x1c0(%r12), %r8d
decl %r8d
leaq 0x2a4d2(%rip), %rcx     # 0xa17eb
leaq 0x332c88(%rip), %r9     # 0x3a9fa8
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x73bdf
movl 0x1c0(%r12), %r8d
decl %r8d
leaq 0x1f0e5(%rip), %rcx     # 0x96424
leaq 0x332c92(%rip), %r9     # 0x3a9fd8
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x73bdf
movq %r14, %rdi
movl %ebp, %esi
callq 0x72fb3
leaq 0x20abc(%rip), %r10     # 0x97e20
leaq 0x2997b(%rip), %r11     # 0xa0ce6
leaq 0x298ab(%rip), %r8      # 0xa0c1d
leaq 0x2959f(%rip), %r9      # 0xa0918
pushq $0x4
popq %rcx
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x72de1
popq %rax
popq %rcx
movl 0x1c0(%r12), %r9d
leaq 0x29449(%rip), %r8      # 0xa07e8
pushq $0x1
popq %r13
movq %r14, %rdi
movl %ebp, %esi
movl %r13d, %edx
movl %r13d, %ecx
xorl %eax, %eax
callq 0x72b76
movq %r14, %rdi
movl %ebp, %esi
callq 0x726d3
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
movl %r13d, %ecx
callq 0x753f5
movq %rbx, %r13
movq (%r13), %r13
testq %r13, %r13
je 0x7740c
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
movq %r13, %r8
callq 0x74e4f
movl (%r13), %ecx
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x72fce
movq %r14, %rdi
movl %ebp, %esi
callq 0x737c1
addq $0x30, %r13
jmp 0x773d2
movl 0x14(%rbx), %ecx
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x72fce
xorl %r15d, %r15d
cmpl 0x10(%rbx), %r15d
jge 0x77434
movq %r14, %rdi
movl %ebp, %esi
callq 0x737fd
incl %r15d
jmp 0x7741f
movq %r14, %rdi
movl %ebp, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7320f