// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/savecode.c
// Function: generate_test_code_rise
void generate_test_code_rise(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, Datasetptr d, Rulesetptr m)
{
 char st[MAXLENGTH], st2[MAXLENGTH];
 Decisionruleptr rule;
 code_function_header(testcodefile, "rise", d->featurecount, language);
 code_variable_start(testcodefile, language); 
 code_add_variable(testcodefile, language, INTEGER_VARIABLE, 3, "i", "maxcount", "maxindex"); 
 code_add_array_variable(testcodefile, language, 1, INTEGER_VARIABLE, "vote", d->classno);
 code_start(testcodefile, language);
 code_array_initialize(testcodefile, language, "vote", d->classno, "0");
 rule = m->start;
 while (rule)
  {
   code_rule(testcodefile, language, d, "rise", rule);
   code_array_index(st, language, "vote", rule->classno);
   sprintf(st2, "%s + %d", st, rule->covered - rule->falsepositives);
   code_set_variable(testcodefile, language, st, st2); 
   code_endif(testcodefile, language);
   rule = rule->next;
  }
 code_find_bound_of_list(testcodefile, language, "vote", d->classno, "-10000", "maxcount", "maxindex", ">");
 code_function_return_string(testcodefile, "rise", language, "maxindex");   
 code_function_end(testcodefile, language); 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf4248, %rsp          # imm = 0xF4248
movq %rcx, %r13
movq %rdx, %r12
movl %esi, %ebx
movq %rdi, %r14
movl 0x1bc(%rdx), %edx
leaq 0x22645(%rip), %rsi     # 0x99d2b
movl %ebx, %ecx
callq 0x72674
movq %r14, %rdi
movl %ebx, %esi
callq 0x72fb3
subq $0x8, %rsp
leaq 0x2930c(%rip), %r10     # 0xa0a0e
leaq 0x29514(%rip), %r8      # 0xa0c1d
leaq 0x293d9(%rip), %r9      # 0xa0ae9
pushq $0x3
popq %rcx
movq %r14, %rdi
movl %ebx, %esi
xorl %edx, %edx
xorl %eax, %eax
pushq %r10
callq 0x72de1
popq %rax
popq %rcx
movl 0x10(%r12), %r9d
leaq 0x2941e(%rip), %r15     # 0xa0b4f
pushq $0x1
popq %rdx
movq %r14, %rdi
movl %ebx, %esi
xorl %ecx, %ecx
movq %r15, %r8
xorl %eax, %eax
callq 0x72b76
movq %r14, %rdi
movl %ebx, %esi
callq 0x726d3
movl 0x10(%r12), %ecx
leaq 0x1ea56(%rip), %r8      # 0x961b1
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
callq 0x741f5
leaq 0x7a120(%rsp), %r15
movq %rsp, %rbp
movq (%r13), %r13
testq %r13, %r13
je 0x777dd
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
movq %r13, %r8
callq 0x74e4f
movl (%r13), %ecx
movq %r15, %rdi
movl %ebx, %esi
leaq 0x293b3(%rip), %rdx     # 0xa0b4f
callq 0x73250
movl 0x4(%r13), %ecx
subl 0x8(%r13), %ecx
movq %rbp, %rdi
leaq 0x293a1(%rip), %rsi     # 0xa0b54
movq %r15, %rdx
xorl %eax, %eax
callq 0x41b0
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
movq %rbp, %rcx
callq 0x72b25
movq %r14, %rdi
movl %ebx, %esi
callq 0x737fd
addq $0x30, %r13
jmp 0x77773
movl 0x10(%r12), %ecx
leaq 0x298e9(%rip), %rax     # 0xa10d2
leaq 0x2935f(%rip), %rdx     # 0xa0b4f
leaq 0x29365(%rip), %r8      # 0xa0b5c
leaq 0x292eb(%rip), %r9      # 0xa0ae9
movq %r14, %rdi
movl %ebx, %esi
pushq %rax
leaq 0x29203(%rip), %r15     # 0xa0a0e
pushq %r15
callq 0x752fa
popq %rax
popq %rcx
leaq 0x22510(%rip), %rsi     # 0x99d2b
movq %r14, %rdi
movl %ebx, %edx
movq %r15, %rcx
callq 0x7308c
movq %r14, %rdi
movl %ebx, %esi
callq 0x7320f
addq $0xf4248, %rsp          # imm = 0xF4248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq