// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movsd %xmm0, -0x20(%rbp)
movl $0x0, -0x48(%rbp)
movl $0x0, -0x4c(%rbp)
leaq 0xae7e6(%rip), %rdi     # 0xe4a53
leaq 0xb1f4a(%rip), %rsi     # 0xe81be
callq 0x40c0
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x36289
jmp 0x368a6
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x362e9
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
cvtsi2sdl -0xc(%rbp), %xmm2
movsd 0xabd66(%rip), %xmm0    # 0xe2018
addsd %xmm2, %xmm0
movsd 0xac9e2(%rip), %xmm2    # 0xe2ca0
divsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x362d3
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x362dc
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x362de
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x36290
movl -0x48(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jle 0x362f9
movl -0x48(%rbp), %eax
movl %eax, -0x50(%rbp)
jmp 0x362ff
movl -0x4c(%rbp), %eax
movl %eax, -0x50(%rbp)
movl $0x0, -0x48(%rbp)
movl $0x0, -0x4c(%rbp)
movb $0x0, %al
callq 0x41a40
movl $0x22, -0x3c(%rbp)
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
movl $0x1a4, %eax            # imm = 0x1A4
cltd
idivl %ecx
movl %eax, -0x44(%rbp)
movl -0x3c(%rbp), %eax
movl -0x50(%rbp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
movl %eax, -0x40(%rbp)
movq -0x28(%rbp), %rdi
movl -0x40(%rbp), %edx
addl -0x3c(%rbp), %edx
movl $0x294, %esi            # imm = 0x294
callq 0x31a50
movq -0x28(%rbp), %rdi
movl -0x40(%rbp), %edx
movl -0x40(%rbp), %r8d
movl $0x50, %esi
movl $0x1f4, %ecx            # imm = 0x1F4
callq 0x32a70
movl $0x1, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0xc(%rbp), %eax
jg 0x36429
leaq -0x2b(%rbp), %rdi
movl -0x30(%rbp), %edx
leaq 0xb6edb(%rip), %rsi     # 0xed265
movb $0x0, %al
callq 0x4170
movq -0x28(%rbp), %rdi
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
movl $0x1a4, %eax            # imm = 0x1A4
cltd
idivl %ecx
movl %eax, %esi
movl -0x30(%rbp), %eax
subl $0x1, %eax
imull %eax, %esi
addl $0x50, %esi
movl -0x40(%rbp), %edx
addl $0xa, %edx
leaq -0x2b(%rbp), %rcx
movl $0x2, %r8d
callq 0x32c00
movq -0x28(%rbp), %rdi
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
movl $0x1a4, %eax            # imm = 0x1A4
cltd
idivl %ecx
movl %eax, %esi
movl -0x30(%rbp), %eax
subl $0x1, %eax
imull %eax, %esi
addl $0x50, %esi
movl -0x40(%rbp), %eax
subl $0x5, %eax
movl %eax, -0x58(%rbp)
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
movl $0x1a4, %eax            # imm = 0x1A4
cltd
idivl %ecx
movl -0x58(%rbp), %edx
movl %eax, %ecx
movl -0x30(%rbp), %eax
subl $0x1, %eax
imull %eax, %ecx
addl $0x50, %ecx
movl -0x40(%rbp), %r8d
addl $0x5, %r8d
callq 0x32a70
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x36370
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x36671
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
cvtsi2sdl -0xc(%rbp), %xmm2
movsd 0xabbc2(%rip), %xmm0    # 0xe2018
addsd %xmm2, %xmm0
movsd 0xac83e(%rip), %xmm2    # 0xe2ca0
divsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x3656b
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0xabb86(%rip), %xmm1    # 0xe2018
subsd %xmm1, %xmm0
cvtsi2sdl -0x44(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd 0xae4e1(%rip), %xmm1    # 0xe4988
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %esi
movl -0x40(%rbp), %edx
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0xabb51(%rip), %xmm1    # 0xe2018
subsd %xmm1, %xmm0
cvtsi2sdl -0x44(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd 0xae4ac(%rip), %xmm1    # 0xe4988
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
movl -0x3c(%rbp), %r8d
imull -0x48(%rbp), %r8d
callq 0x32a70
movq -0x28(%rbp), %rdi
movl -0x3c(%rbp), %edx
imull -0x48(%rbp), %edx
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0xabb06(%rip), %xmm1    # 0xe2018
subsd %xmm1, %xmm0
cvtsi2sdl -0x44(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd 0xae461(%rip), %xmm1    # 0xe4988
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
movl -0x3c(%rbp), %r8d
imull -0x48(%rbp), %r8d
movl $0x46, %esi
callq 0x32a70
movq -0x28(%rbp), %rdi
movl -0x3c(%rbp), %edx
imull -0x48(%rbp), %edx
movq -0x18(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movl $0x5, %esi
xorl %r8d, %r8d
callq 0x32c00
jmp 0x36661
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0xaba8b(%rip), %xmm1    # 0xe2018
subsd %xmm1, %xmm0
cvtsi2sdl -0x44(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd 0xae3e6(%rip), %xmm1    # 0xe4988
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %esi
movl -0x40(%rbp), %edx
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0xaba56(%rip), %xmm1    # 0xe2018
subsd %xmm1, %xmm0
cvtsi2sdl -0x44(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd 0xae3b1(%rip), %xmm1    # 0xe4988
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
movl -0x3c(%rbp), %r8d
imull -0x4c(%rbp), %r8d
callq 0x32a70
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0xaba12(%rip), %xmm1    # 0xe2018
subsd %xmm1, %xmm0
cvtsi2sdl -0x44(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd 0xae36d(%rip), %xmm1    # 0xe4988
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %esi
movl -0x3c(%rbp), %edx
imull -0x4c(%rbp), %edx
movl -0x3c(%rbp), %r8d
imull -0x4c(%rbp), %r8d
movl $0x1fe, %ecx            # imm = 0x1FE
callq 0x32a70
movq -0x28(%rbp), %rdi
movl -0x3c(%rbp), %edx
imull -0x4c(%rbp), %edx
movq -0x18(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movl $0x203, %esi            # imm = 0x203
xorl %r8d, %r8d
callq 0x32c00
jmp 0x36663
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x36430
movq -0x8(%rbp), %rdi
movslq -0xc(%rbp), %rsi
movl $0x8, %edx
leaq 0x1ce3b(%rip), %rcx     # 0x534c0
callq 0x41f0
movl $0x1, -0x54(%rbp)
movl $0x0, -0x38(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x36894
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movq -0x8(%rbp), %rax
movslq -0x34(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
subsd (%rax,%rcx,8), %xmm1
movsd -0x20(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x3672c
jmp 0x366e0
movl -0x34(%rbp), %ecx
xorl %eax, %eax
cmpl -0xc(%rbp), %ecx
movb %al, -0x59(%rbp)
jge 0x36716
movq -0x8(%rbp), %rax
movslq -0x34(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
subsd (%rax,%rcx,8), %xmm1
movsd -0x20(%rbp), %xmm0
ucomisd %xmm1, %xmm0
seta %al
movb %al, -0x59(%rbp)
movb -0x59(%rbp), %al
testb $0x1, %al
jne 0x3671f
jmp 0x3672a
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x366e0
jmp 0x3672c
movl -0x34(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x34(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x34(%rbp), %eax
je 0x36880
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jle 0x36880
movq -0x28(%rbp), %rdi
movsd 0xac327(%rip), %xmm0    # 0xe2a80
callq 0x32a40
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0xab8a1(%rip), %xmm1    # 0xe2018
subsd %xmm1, %xmm0
cvtsi2sdl -0x44(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd 0xae1fc(%rip), %xmm1    # 0xe4988
addsd %xmm1, %xmm0
movsd 0xae108(%rip), %xmm1    # 0xe48a0
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %esi
cvtsi2sdl -0x40(%rbp), %xmm1
cvtsi2sdl -0x54(%rbp), %xmm0
movsd 0xac2c6(%rip), %xmm2    # 0xe2a78
mulsd %xmm2, %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd 0xae0cb(%rip), %xmm2    # 0xe48a0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %edx
movq -0x8(%rbp), %rax
movslq -0x34(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0xab822(%rip), %xmm1    # 0xe2018
subsd %xmm1, %xmm0
cvtsi2sdl -0x44(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd 0xae17d(%rip), %xmm1    # 0xe4988
addsd %xmm1, %xmm0
movsd 0xae089(%rip), %xmm1    # 0xe48a0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
cvtsi2sdl -0x40(%rbp), %xmm1
cvtsi2sdl -0x54(%rbp), %xmm0
movsd 0xac247(%rip), %xmm2    # 0xe2a78
mulsd %xmm2, %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %r8 # imm = 0x8000000000000000
xorq %r8, %rax
movq %rax, %xmm0
movsd 0xae04c(%rip), %xmm2    # 0xe48a0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %r8d
callq 0x32a70
movq -0x28(%rbp), %rdi
movsd 0xab7a6(%rip), %xmm0    # 0xe2018
callq 0x32a40
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x38(%rbp)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x3669f
movq -0x28(%rbp), %rdi
callq 0x32ec0
movq -0x28(%rbp), %rdi
callq 0x4250
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)