// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/eps.c
// Function: rangetest_plot
void rangetest_plot(double* ranks, int algorithmcount, char** algorithms, double critical_difference)
{
 FILE* outfile;
 char st[3];
 int i, j, oldj, algheight, axisheight, algwidth, leftcount = 0, rightcount = 0, maxcount, linecount;
 outfile = fopen("image.eps", "w");
 if (!outfile)
   return;
 for (i = 0; i < algorithmcount; i++)
   if (ranks[i] < (1.0 + algorithmcount) / 2)
     leftcount++;
   else 
     rightcount++;
 if (leftcount > rightcount)
   maxcount = leftcount;
 else 
   maxcount = rightcount;
 leftcount = 0;
 rightcount = 0;
 clear_image();
 algheight = 0.4 * (MARGIN + SMALLMARGIN);
 algwidth = (epsaxis - MARGIN) / (algorithmcount - 1);
 axisheight = algheight * (maxcount + 1);
 write_image_header(outfile, 2 * MARGIN + epsaxis, axisheight + algheight);
 write_line(outfile, MARGIN, axisheight, epsaxis, axisheight);
 for (i = 1; i <= algorithmcount; i++)
  {
   sprintf(st, "%d", i);
   write_string(outfile, MARGIN + ((epsaxis - MARGIN) / (algorithmcount - 1)) * (i - 1), axisheight + 2 * SMALLMARGIN, st, ALIGN_CENTER);  
   write_line(outfile,  MARGIN + ((epsaxis - MARGIN) / (algorithmcount - 1)) * (i - 1), axisheight - SMALLMARGIN,  MARGIN + ((epsaxis - MARGIN) / (algorithmcount - 1)) * (i - 1), axisheight + SMALLMARGIN);
  }
 for (i = 0; i < algorithmcount; i++)
  {
   if (ranks[i] < (1.0 + algorithmcount) / 2)
    {
     leftcount++;
     write_line(outfile, MARGIN + (ranks[i] - 1) * algwidth, axisheight, MARGIN + (ranks[i] - 1) * algwidth, algheight * leftcount);
     write_line(outfile, MARGIN - 2 * SMALLMARGIN, algheight * leftcount, MARGIN + (ranks[i] - 1) * algwidth, algheight * leftcount);
     write_string(outfile, SMALLMARGIN, algheight * leftcount, algorithms[i], ALIGN_LEFT);
    }
   else
    {
     rightcount++;
     write_line(outfile, MARGIN + (ranks[i] - 1) * algwidth, axisheight, MARGIN + (ranks[i] - 1) * algwidth, algheight * rightcount);
     write_line(outfile, MARGIN + (ranks[i] - 1) * algwidth, algheight * rightcount, epsaxis + 2 * SMALLMARGIN, algheight * rightcount);
     write_string(outfile, epsaxis + 3 * SMALLMARGIN, algheight * rightcount, algorithms[i], ALIGN_LEFT);
    }
  }
 qsort(ranks, algorithmcount, sizeof(double), sort_function_double_ascending);
 linecount = 1;
 oldj = 0;
 for (i = 0; i < algorithmcount - 1; i++)
  {
   j = i + 1;
   if (ranks[j] - ranks[i] < critical_difference)
     while (j < algorithmcount && ranks[j] - ranks[i] < critical_difference)
       j++;
   j--;
   if (i != j && j > oldj)
    {
     setlinewidth(outfile, 4.0);
     write_line(outfile, MARGIN + (ranks[i] - 1) * algwidth - SMALLMARGIN, axisheight - linecount * 1.5 * SMALLMARGIN, MARGIN + (ranks[j] - 1) * algwidth + SMALLMARGIN, axisheight - linecount * 1.5 * SMALLMARGIN);
     setlinewidth(outfile, 1.0);
     linecount++;
    }
   oldj = j;
  }
 write_image_footer(outfile);
 fclose(outfile);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movsd %xmm0, 0x50(%rsp)
movq %rdx, 0x58(%rsp)
movl %esi, %r12d
movq %rdi, (%rsp)
leaq 0x81aff(%rip), %rdi     # 0xa7f0b
leaq 0x8555a(%rip), %rsi     # 0xab96d
callq 0x40f0
testq %rax, %rax
je 0x26942
movq %rax, %r15
movl %r12d, %r8d
testl %r12d, %r12d
jle 0x26469
leal 0x1(%r12), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0x7f8d7(%rip), %xmm0    # 0xa5d18
xorl %ecx, %ecx
xorl %ebx, %ebx
xorl %eax, %eax
movq (%rsp), %rdi
xorl %edx, %edx
xorl %esi, %esi
ucomisd (%rdi,%rcx,8), %xmm0
setbe %dl
seta %sil
addl %esi, %eax
addl %edx, %ebx
incq %rcx
cmpq %rcx, %r8
jne 0x2644b
jmp 0x2646d
xorl %eax, %eax
xorl %ebx, %ebx
movq %r8, 0x38(%rsp)
cmpl %ebx, %eax
cmovgl %eax, %ebx
xorl %eax, %eax
callq 0x2e342
leal -0x1(%r12), %ecx
movl $0x1a4, %eax            # imm = 0x1A4
xorl %edx, %edx
movl %ecx, 0x44(%rsp)
idivl %ecx
movl %eax, 0x34(%rsp)
movl %ebx, %r14d
shll $0x5, %r14d
leal (%r14,%rbx,2), %ebp
addl $0x22, %ebp
leal (%r14,%rbx,2), %edx
addl $0x44, %edx
movq %r15, %rdi
movl $0x294, %esi            # imm = 0x294
callq 0x22a5c
leaq 0x81b9d(%rip), %rsi     # 0xa805a
movl $0x50, %r13d
movq %r15, 0x20(%rsp)
movq %r15, %rdi
movl $0x50, %edx
movl %ebp, %ecx
movl $0x1f4, %r8d            # imm = 0x1F4
movl %ebp, 0xc(%rsp)
movl %ebp, %r9d
xorl %eax, %eax
callq 0x42e0
testl %r12d, %r12d
jle 0x268eb
leal (%r14,%rbx,2), %eax
leal 0x2c(%rax), %ecx
movl %ecx, 0x10(%rsp)
leal 0x1d(%rax), %ecx
movl %ecx, 0x28(%rsp)
addl $0x27, %eax
movq %rax, 0x18(%rsp)
movq %r12, 0x48(%rsp)
negl %r12d
movl $0x1, %r14d
leaq 0x65(%rsp), %rbx
movq 0x20(%rsp), %r15
movl 0x34(%rsp), %ebp
movq %rbx, %rdi
leaq 0x8a6c6(%rip), %rsi     # 0xb0bf5
movl %r14d, %edx
xorl %eax, %eax
callq 0x41b0
movq %r15, %rdi
movl %r13d, %esi
movl 0x10(%rsp), %edx
movq %rbx, %rcx
movl $0x2, %r8d
callq 0x23500
movq %r15, %rdi
leaq 0x81aff(%rip), %rsi     # 0xa805a
movl %r13d, %edx
movl 0x28(%rsp), %ecx
movl %r13d, %r8d
movq 0x18(%rsp), %r9
xorl %eax, %eax
callq 0x42e0
leal (%r12,%r14), %eax
incl %eax
movl %r14d, %ecx
incl %ecx
addl %ebp, %r13d
movl %ecx, %r14d
cmpl $0x1, %eax
jne 0x26525
movq 0x48(%rsp), %r12
testl %r12d, %r12d
jle 0x268eb
leal 0x1(%r12), %eax
cvtsi2sd %rax, %xmm0
mulsd 0x7f771(%rip), %xmm0    # 0xa5d18
movsd %xmm0, 0x10(%rsp)
cvtsi2sdl 0x34(%rsp), %xmm1
movsd 0x7f7ed(%rip), %xmm2    # 0xa5da8
movsd 0x81845(%rip), %xmm3    # 0xa7e08
xorl %r14d, %r14d
xorl %ecx, %ecx
xorl %edi, %edi
movq (%rsp), %r12
movsd %xmm1, 0x18(%rsp)
movsd (%r12,%r14,8), %xmm0
movsd 0x10(%rsp), %xmm4
ucomisd %xmm0, %xmm4
addsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
addsd %xmm3, %xmm0
cvttsd2si %xmm0, %edx
jbe 0x2668d
movl %edi, %ebp
incl %ebp
movl %ebp, %eax
shll $0x5, %eax
leal (%rax,%rdi,2), %ebx
addl $0x2, %ebx
movq 0x20(%rsp), %r13
movq %r13, %rdi
leaq 0x81a42(%rip), %rsi     # 0xa805a
movq %rcx, %r15
movl 0xc(%rsp), %ecx
movl %edx, %r8d
movl %ebx, %r9d
xorl %eax, %eax
callq 0x42e0
movsd (%r12,%r14,8), %xmm0
addsd 0x7f76e(%rip), %xmm0    # 0xa5da8
mulsd 0x18(%rsp), %xmm0
addsd 0x817c0(%rip), %xmm0    # 0xa7e08
cvttsd2si %xmm0, %r8d
movq %r13, %rdi
leaq 0x81a03(%rip), %rsi     # 0xa805a
movl $0x46, %edx
movl %ebx, %ecx
movl %ebx, %r9d
xorl %eax, %eax
callq 0x42e0
movq 0x58(%rsp), %rax
movq (%rax,%r14,8), %rcx
movq %r13, %rdi
movl $0x5, %esi
movl %ebx, %edx
xorl %r8d, %r8d
callq 0x23500
movq %r15, %rcx
movl %ebp, %edi
jmp 0x2671e
movl %ecx, %ebp
incl %ebp
movl %ebp, %eax
shll $0x5, %eax
leal (%rax,%rcx,2), %ebx
addl $0x2, %ebx
movq 0x20(%rsp), %r15
movq %rdi, 0x28(%rsp)
movq %r15, %rdi
leaq 0x819aa(%rip), %r13     # 0xa805a
movq %r13, %rsi
movl 0xc(%rsp), %ecx
movl %edx, %r8d
movl %ebx, %r9d
xorl %eax, %eax
callq 0x42e0
movsd (%r12,%r14,8), %xmm0
addsd 0x7f6d6(%rip), %xmm0    # 0xa5da8
mulsd 0x18(%rsp), %xmm0
addsd 0x81728(%rip), %xmm0    # 0xa7e08
cvttsd2si %xmm0, %edx
movq %r15, %rdi
movq %r13, %rsi
movl %ebx, %ecx
movl $0x1fe, %r8d            # imm = 0x1FE
movl %ebx, %r9d
xorl %eax, %eax
callq 0x42e0
movq 0x58(%rsp), %rax
movq (%rax,%r14,8), %rcx
movq %r15, %rdi
movl $0x203, %esi            # imm = 0x203
movl %ebx, %edx
xorl %r8d, %r8d
callq 0x23500
movq 0x28(%rsp), %rdi
movl %ebp, %ecx
incq %r14
movq 0x38(%rsp), %rsi
cmpq %r14, %rsi
movq (%rsp), %r12
movsd 0x18(%rsp), %xmm1
movsd 0x7f66d(%rip), %xmm2    # 0xa5da8
movsd 0x816c5(%rip), %xmm3    # 0xa7e08
jne 0x265d4
leaq 0x13ea3(%rip), %rcx     # 0x3a5f3
movl $0x8, %edx
movq (%rsp), %rdi
callq 0x4240
movq 0x38(%rsp), %rsi
movq (%rsp), %rdx
cmpl $0x1, 0x48(%rsp)
movsd 0x50(%rsp), %xmm2
je 0x26903
xorps %xmm0, %xmm0
cvtsi2sdl 0xc(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movl 0x44(%rsp), %ebp
movl $0x1, 0x10(%rsp)
movl $0x1, %r14d
xorl %r13d, %r13d
xorl %eax, %eax
movq 0x20(%rsp), %rbx
leaq 0x1(%r13), %r12
movsd (%rdx,%r13,8), %xmm0
movsd 0x8(%rdx,%r13,8), %xmm1
subsd %xmm0, %xmm1
ucomisd %xmm1, %xmm2
movl %r12d, %r15d
jbe 0x267df
movq %r14, %r15
movsd (%rdx,%r15,8), %xmm1
subsd %xmm0, %xmm1
ucomisd %xmm1, %xmm2
jbe 0x267df
incq %r15
cmpq %r15, %rsi
jne 0x267c4
movl %esi, %r15d
decl %r15d
cmpq %r15, %r13
sete %cl
cmpl %eax, %r15d
setle %al
orb %cl, %al
jne 0x268d7
movq %rbx, %rdi
leaq 0x81753(%rip), %rsi     # 0xa7f53
movsd 0x7f5e0(%rip), %xmm0    # 0xa5de8
movb $0x1, %al
callq 0x42e0
movq (%rsp), %rax
movsd (%rax,%r13,8), %xmm0
movsd 0x7f587(%rip), %xmm2    # 0xa5da8
addsd %xmm2, %xmm0
movsd 0x18(%rsp), %xmm1
mulsd %xmm1, %xmm0
movsd 0x815d1(%rip), %xmm3    # 0xa7e08
addsd %xmm3, %xmm0
addsd 0x815dd(%rip), %xmm0    # 0xa7e20
cvttsd2si %xmm0, %edx
movl 0x10(%rsp), %r13d
xorps %xmm0, %xmm0
cvtsi2sd %r13d, %xmm0
mulsd 0x81584(%rip), %xmm0    # 0xa7de0
movsd 0x815c4(%rip), %xmm4    # 0xa7e28
mulsd %xmm4, %xmm0
addsd 0x28(%rsp), %xmm0
cvttsd2si %xmm0, %ecx
movslq %r15d, %rax
movq (%rsp), %rsi
movsd (%rsi,%rax,8), %xmm0
addsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
addsd %xmm3, %xmm0
addsd %xmm4, %xmm0
cvttsd2si %xmm0, %r8d
movq %rbx, %rdi
leaq 0x817bd(%rip), %rsi     # 0xa805a
movl %ecx, %r9d
xorl %eax, %eax
callq 0x42e0
movq %rbx, %rdi
leaq 0x816a2(%rip), %rsi     # 0xa7f53
movsd 0x7ec67(%rip), %xmm0    # 0xa5520
movb $0x1, %al
callq 0x42e0
movq 0x38(%rsp), %rsi
movsd 0x50(%rsp), %xmm2
movq (%rsp), %rdx
incl %r13d
movl %r13d, 0x10(%rsp)
incq %r14
movq %r12, %r13
movl %r15d, %eax
cmpq %rbp, %r12
jne 0x267a3
jmp 0x26903
movslq %r12d, %rsi
leaq 0x13cfe(%rip), %rcx     # 0x3a5f3
movl $0x8, %edx
movq (%rsp), %rdi
callq 0x4240
leaq 0x815ac(%rip), %rdi     # 0xa7eb6
movl $0x7, %esi
movl $0x1, %edx
movq 0x20(%rsp), %rbx
movq %rbx, %rcx
callq 0x42c0
leaq 0x816ee(%rip), %rdi     # 0xa8016
movl $0x9, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
movq %rbx, %rdi
callq 0x42a0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq