// File: /workspace/github_c_makefile_star2_O1/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, %r15
movl %esi, %ebx
movq %rdi, %r14
movl 0x1bc(%rdx), %edx
leaq 0x2590c(%rip), %rsi     # 0xa6d93
movl %ebx, %ecx
callq 0x7b551
cmpl $0x2, %ebx
jne 0x814ac
leaq 0x2bdce(%rip), %rdi     # 0xad268
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
subq $0x8, %rsp
leaq 0x2c55b(%rip), %r10     # 0xada12
leaq 0x2c763(%rip), %r8      # 0xadc21
leaq 0x2c628(%rip), %r9      # 0xadaed
movq %r14, %rdi
movl %ebx, %esi
xorl %edx, %edx
movl $0x3, %ecx
xorl %eax, %eax
pushq %r10
callq 0x7bd1c
addq $0x10, %rsp
movl 0x10(%r15), %r9d
leaq 0x2c66a(%rip), %r8      # 0xadb53
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %edx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x7bab4
cmpl $0x2, %ebx
jne 0x8151a
leaq 0x2bb70(%rip), %rdi     # 0xad078
movl $0x6, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
incl 0x32dcc8(%rip)          # 0x3af1e8
movl 0x10(%r15), %ecx
leaq 0x2c628(%rip), %rdx     # 0xadb53
leaq 0x21c77(%rip), %r8      # 0xa31a9
movq %r14, %rdi
movl %ebx, %esi
callq 0x7d402
movq (%r13), %r13
testq %r13, %r13
je 0x815b4
leaq 0x7a120(%rsp), %r12
movq %rsp, %rbp
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
movq %r13, %r8
callq 0x7e19b
movl (%r13), %ecx
movq %r12, %rdi
movl %ebx, %esi
leaq 0x2c5e3(%rip), %rdx     # 0xadb53
callq 0x7c219
movl 0x4(%r13), %ecx
subl 0x8(%r13), %ecx
movq %rbp, %rdi
leaq 0x2c5d1(%rip), %rsi     # 0xadb58
movq %r12, %rdx
xorl %eax, %eax
callq 0x41b0
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
movq %rbp, %rcx
callq 0x7ba46
movq %r14, %rdi
movl %ebx, %esi
callq 0x7c903
movq 0x30(%r13), %r13
testq %r13, %r13
jne 0x81550
movl 0x10(%r15), %ecx
leaq 0x2cb17(%rip), %rax     # 0xae0d6
leaq 0x2c58d(%rip), %rdx     # 0xadb53
leaq 0x2c593(%rip), %r8      # 0xadb60
leaq 0x2c519(%rip), %r9      # 0xadaed
movq %r14, %rdi
movl %ebx, %esi
pushq %rax
leaq 0x2c431(%rip), %r15     # 0xada12
pushq %r15
callq 0x7e698
addq $0x10, %rsp
leaq 0x257a0(%rip), %rsi     # 0xa6d93
movq %r14, %rdi
movl %ebx, %edx
movq %r15, %rcx
callq 0x7bffb
movq %r14, %rdi
movl %ebx, %esi
callq 0x7c1ca
addq $0xf4248, %rsp          # imm = 0xF4248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq