// File: /workspace/github_c_makefile_star2_O1/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 0x7b551
cmpl $0x2, %ebp
jne 0x80f8f
leaq 0x2c288(%rip), %rdi     # 0xad205
movl $0x6, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
movl 0x1c0(%r12), %r8d
decl %r8d
leaq 0x2d85a(%rip), %rcx     # 0xae7fb
leaq 0x32e000(%rip), %r9     # 0x3aefa8
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x7cde7
movl 0x1c0(%r12), %r8d
decl %r8d
leaq 0x2245d(%rip), %rcx     # 0xa3424
leaq 0x32e00a(%rip), %r9     # 0x3aefd8
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x7cde7
cmpl $0x2, %ebp
jne 0x81074
leaq 0x2c27d(%rip), %rdi     # 0xad268
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
leaq 0x23e44(%rip), %r10     # 0xa4e48
leaq 0x2ccdf(%rip), %r11     # 0xadcea
leaq 0x2cc0f(%rip), %r8      # 0xadc21
leaq 0x2c903(%rip), %r9      # 0xad91c
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
movl $0x4, %ecx
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x7bd1c
addq $0x10, %rsp
movl 0x1c0(%r12), %r9d
leaq 0x2c7a9(%rip), %r8      # 0xad7ec
movq %r14, %rdi
movl %ebp, %esi
movl $0x1, %edx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x7bab4
leaq 0x2c018(%rip), %rdi     # 0xad078
movl $0x6, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
jmp 0x810d0
leaq 0x23dcd(%rip), %r10     # 0xa4e48
leaq 0x2cc68(%rip), %r11     # 0xadcea
leaq 0x2cb98(%rip), %r8      # 0xadc21
leaq 0x2c88c(%rip), %r9      # 0xad91c
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
movl $0x4, %ecx
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x7bd1c
addq $0x10, %rsp
movl 0x1c0(%r12), %r9d
leaq 0x2c732(%rip), %r8      # 0xad7ec
movq %r14, %rdi
movl %ebp, %esi
movl $0x1, %edx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x7bab4
incl 0x32e112(%rip)          # 0x3af1e8
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
movl $0x1, %ecx
callq 0x7e795
movq (%rbx), %r13
testq %r13, %r13
je 0x81121
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
movq %r13, %r8
callq 0x7e19b
movl (%r13), %ecx
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x7bf18
movq %r14, %rdi
movl %ebp, %esi
callq 0x7c8ac
movq 0x30(%r13), %r13
jmp 0x810eb
movl 0x14(%rbx), %ecx
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x7bf18
cmpl $0x0, 0x10(%rbx)
jle 0x8114d
xorl %r15d, %r15d
movq %r14, %rdi
movl %ebp, %esi
callq 0x7c903
incl %r15d
cmpl 0x10(%rbx), %r15d
jl 0x8113a
movq %r14, %rdi
movl %ebp, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7c1ca