// File: /workspace/github_c_makefile_star2_O3/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 0x26642(%rip), %rsi     # 0xa9e03
movl %ebx, %ecx
callq 0x7ce21
cmpl $0x2, %ebx
jne 0x837e6
leaq 0x2cb2c(%rip), %rdi     # 0xb0300
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
subq $0x8, %rsp
leaq 0x2d2b9(%rip), %r10     # 0xb0aaa
leaq 0x2d4c1(%rip), %r8      # 0xb0cb9
leaq 0x2d386(%rip), %r9      # 0xb0b85
movq %r14, %rdi
movl %ebx, %esi
xorl %edx, %edx
movl $0x3, %ecx
xorl %eax, %eax
pushq %r10
callq 0x7d617
addq $0x10, %rsp
movl 0x10(%r15), %r9d
leaq 0x2d3c8(%rip), %r8      # 0xb0beb
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %edx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x7d384
cmpl $0x2, %ebx
jne 0x83854
leaq 0x2c8ce(%rip), %rdi     # 0xb0110
movl $0x6, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
incl 0x32e98e(%rip)          # 0x3b21e8
movl 0x10(%r15), %ecx
leaq 0x2d386(%rip), %rdx     # 0xb0beb
leaq 0x2293d(%rip), %r8      # 0xa61a9
movq %r14, %rdi
movl %ebx, %esi
callq 0x7ee51
movq (%r13), %r13
testq %r13, %r13
je 0x838ee
leaq 0x7a120(%rsp), %r12
movq %rsp, %rbp
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
movq %r13, %r8
callq 0x7fde8
movl (%r13), %ecx
movq %r12, %rdi
movl %ebx, %esi
leaq 0x2d341(%rip), %rdx     # 0xb0beb
callq 0x7db6a
movl 0x4(%r13), %ecx
subl 0x8(%r13), %ecx
movq %rbp, %rdi
leaq 0x2d32f(%rip), %rsi     # 0xb0bf0
movq %r12, %rdx
xorl %eax, %eax
callq 0x41b0
movq %r14, %rdi
movl %ebx, %esi
movq %r12, %rdx
movq %rbp, %rcx
callq 0x7d316
movq %r14, %rdi
movl %ebx, %esi
callq 0x7e23a
movq 0x30(%r13), %r13
testq %r13, %r13
jne 0x8388a
movl 0x10(%r15), %ecx
leaq 0x2d875(%rip), %rax     # 0xb116e
leaq 0x2d2eb(%rip), %rdx     # 0xb0beb
leaq 0x2d2f1(%rip), %r8      # 0xb0bf8
leaq 0x2d277(%rip), %r9      # 0xb0b85
movq %r14, %rdi
movl %ebx, %esi
pushq %rax
leaq 0x2d18f(%rip), %r15     # 0xb0aaa
pushq %r15
callq 0x803e7
addq $0x10, %rsp
leaq 0x264d6(%rip), %rsi     # 0xa9e03
movq %r14, %rdi
movl %ebx, %edx
movq %r15, %rcx
callq 0x7d912
movq %r14, %rdi
movl %ebx, %esi
callq 0x7db1b
addq $0xf4248, %rsp          # imm = 0xF4248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq