// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/pstricks.c
// Function: rangetest_plot_pstricks
void rangetest_plot_pstricks(double* ranks, int algorithmcount, char** algorithms, double critical_difference)
{
 FILE* outfile;
 char st[3];
 int i, j, oldj, leftcount = 0, rightcount = 0, maxcount, linecount;
 double algheight, axisheight, algwidth;
 outfile = fopen("image.txt", "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.5;
 algwidth = 1.0;
 axisheight = algheight * (maxcount + 1);
 write_image_header_pstricks(outfile, -2, -1, algorithmcount + algwidth, axisheight + algheight);
 write_line_pstricks(outfile, 0, axisheight, algorithmcount - 1, axisheight);
 for (i = 1; i <= algorithmcount; i++)
  {
   sprintf(st, "%d", i);
   write_string_pstricks(outfile, (i - 1), axisheight + .2, st, ALIGN_CENTER);
   write_line_pstricks(outfile, i - 1, axisheight - 0.1, i - 1, axisheight + 0.1);
  }
 for (i = 0; i < algorithmcount; i++)
  {
   if (ranks[i] < (1.0 + algorithmcount) / 2)
    {
     leftcount++;
     write_line_pstricks(outfile, (ranks[i] - 1) * algwidth, axisheight, (ranks[i] - 1) * algwidth, algheight * leftcount);
     write_line_pstricks(outfile, 0, algheight * leftcount, (ranks[i] - 1) * algwidth, algheight * leftcount);
     write_string_pstricks(outfile, -1.9, algheight * leftcount, algorithms[i], ALIGN_LEFT);
    }
   else
    {
     rightcount++;
     write_line_pstricks(outfile, (ranks[i] - 1) * algwidth, axisheight, (ranks[i] - 1) * algwidth, algheight * rightcount);
     write_line_pstricks(outfile, (ranks[i] - 1) * algwidth, algheight * rightcount, algorithmcount - .8, algheight * rightcount);
     write_string_pstricks(outfile, algorithmcount - .7, 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)
    {
     set_line_width_pstricks(outfile, 2.0);
     write_line_pstricks(outfile, (ranks[i] - 1) * algwidth - .1, axisheight - linecount * 0.15, (ranks[j] - 1) * algwidth + 0.1, axisheight - linecount * .15);
     set_line_width_pstricks(outfile, 1.0);
     linecount++;
    }
   oldj = j;
  }
 write_image_footer_pstricks(outfile);
 fclose(outfile);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movsd %xmm0, -0x20(%rbp)
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x40(%rbp)
leaq 0x48c7b(%rip), %rdi     # 0xe54f8
leaq 0x4b93a(%rip), %rsi     # 0xe81be
callq 0x40c0
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x9c899
jmp 0x9ce4c
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x9c8f9
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
cvtsi2sdl -0xc(%rbp), %xmm2
movsd 0x45756(%rip), %xmm0    # 0xe2018
addsd %xmm2, %xmm0
movsd 0x463d2(%rip), %xmm2    # 0xe2ca0
divsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x9c8e3
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x9c8ec
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0x9c8ee
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x9c8a0
movl -0x3c(%rbp), %eax
cmpl -0x40(%rbp), %eax
jle 0x9c909
movl -0x3c(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0x9c90f
movl -0x40(%rbp), %eax
movl %eax, -0x44(%rbp)
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x40(%rbp)
movb $0x0, %al
callq 0x41a40
movsd 0x4608c(%rip), %xmm0    # 0xe29b8
movsd %xmm0, -0x50(%rbp)
movsd 0x456df(%rip), %xmm0    # 0xe2018
movsd %xmm0, -0x60(%rbp)
movsd -0x50(%rbp), %xmm0
movl -0x44(%rbp), %eax
addl $0x1, %eax
cvtsi2sd %eax, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, -0x58(%rbp)
movq -0x28(%rbp), %rdi
cvtsi2sdl -0xc(%rbp), %xmm2
addsd -0x60(%rbp), %xmm2
movsd -0x58(%rbp), %xmm3
addsd -0x50(%rbp), %xmm3
movsd 0x47f42(%rip), %xmm0    # 0xe48b8
movsd 0x460ca(%rip), %xmm1    # 0xe2a48
callq 0x9a5a0
movq -0x28(%rbp), %rdi
movsd -0x58(%rbp), %xmm1
movl -0xc(%rbp), %eax
subl $0x1, %eax
cvtsi2sd %eax, %xmm2
movsd -0x58(%rbp), %xmm3
xorps %xmm0, %xmm0
callq 0x9a3e0
movl $0x1, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0xc(%rbp), %eax
jg 0x9ca3d
leaq -0x2b(%rbp), %rdi
movl -0x30(%rbp), %edx
leaq 0x508a1(%rip), %rsi     # 0xed265
movb $0x0, %al
callq 0x4170
movq -0x28(%rbp), %rdi
movl -0x30(%rbp), %eax
subl $0x1, %eax
cvtsi2sd %eax, %xmm0
movsd 0x47e3f(%rip), %xmm1    # 0xe4820
addsd -0x58(%rbp), %xmm1
leaq -0x2b(%rbp), %rsi
movl $0x2, %edx
callq 0x9a130
movq -0x28(%rbp), %rdi
movl -0x30(%rbp), %eax
subl $0x1, %eax
cvtsi2sd %eax, %xmm0
movsd -0x58(%rbp), %xmm1
movsd 0x4ac91(%rip), %xmm2    # 0xe76a0
subsd %xmm2, %xmm1
movl -0x30(%rbp), %eax
subl $0x1, %eax
cvtsi2sd %eax, %xmm2
movsd 0x4ac7b(%rip), %xmm3    # 0xe76a0
addsd -0x58(%rbp), %xmm3
callq 0x9a3e0
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x9c9aa
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x9cc58
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
cvtsi2sdl -0xc(%rbp), %xmm2
movsd 0x455ae(%rip), %xmm0    # 0xe2018
addsd %xmm2, %xmm0
movsd 0x4622a(%rip), %xmm2    # 0xe2ca0
divsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x9cb5d
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0x45572(%rip), %xmm1    # 0xe2018
subsd %xmm1, %xmm0
mulsd -0x60(%rbp), %xmm0
movsd -0x58(%rbp), %xmm1
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2
movsd 0x4554f(%rip), %xmm3    # 0xe2018
subsd %xmm3, %xmm2
mulsd -0x60(%rbp), %xmm2
movsd -0x50(%rbp), %xmm3
cvtsi2sdl -0x3c(%rbp), %xmm4
mulsd %xmm4, %xmm3
callq 0x9a3e0
movq -0x28(%rbp), %rdi
movsd -0x50(%rbp), %xmm1
cvtsi2sdl -0x3c(%rbp), %xmm0
mulsd %xmm0, %xmm1
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2
movsd 0x4550c(%rip), %xmm0    # 0xe2018
subsd %xmm0, %xmm2
mulsd -0x60(%rbp), %xmm2
movsd -0x50(%rbp), %xmm3
cvtsi2sdl -0x3c(%rbp), %xmm0
mulsd %xmm0, %xmm3
xorps %xmm0, %xmm0
callq 0x9a3e0
movq -0x28(%rbp), %rdi
movsd -0x50(%rbp), %xmm1
cvtsi2sdl -0x3c(%rbp), %xmm0
mulsd %xmm0, %xmm1
movq -0x18(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movsd 0x4ea17(%rip), %xmm0    # 0xeb568
xorl %edx, %edx
callq 0x9a130
jmp 0x9cc48
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0x45499(%rip), %xmm1    # 0xe2018
subsd %xmm1, %xmm0
mulsd -0x60(%rbp), %xmm0
movsd -0x58(%rbp), %xmm1
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2
movsd 0x45476(%rip), %xmm3    # 0xe2018
subsd %xmm3, %xmm2
mulsd -0x60(%rbp), %xmm2
movsd -0x50(%rbp), %xmm3
cvtsi2sdl -0x40(%rbp), %xmm4
mulsd %xmm4, %xmm3
callq 0x9a3e0
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0x45441(%rip), %xmm1    # 0xe2018
subsd %xmm1, %xmm0
mulsd -0x60(%rbp), %xmm0
movsd -0x50(%rbp), %xmm1
cvtsi2sdl -0x40(%rbp), %xmm2
mulsd %xmm2, %xmm1
cvtsi2sdl -0xc(%rbp), %xmm2
movsd 0x47c95(%rip), %xmm3    # 0xe4890
subsd %xmm3, %xmm2
movsd -0x50(%rbp), %xmm3
cvtsi2sdl -0x40(%rbp), %xmm4
mulsd %xmm4, %xmm3
callq 0x9a3e0
movq -0x28(%rbp), %rdi
cvtsi2sdl -0xc(%rbp), %xmm0
movsd 0x4acc5(%rip), %xmm1    # 0xe78e8
subsd %xmm1, %xmm0
movsd -0x50(%rbp), %xmm1
cvtsi2sdl -0x40(%rbp), %xmm2
mulsd %xmm2, %xmm1
movq -0x18(%rbp), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
xorl %edx, %edx
callq 0x9a130
jmp 0x9cc4a
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x9ca44
movq -0x8(%rbp), %rdi
movslq -0xc(%rbp), %rsi
movl $0x8, %edx
leaq -0x497ac(%rip), %rcx    # 0x534c0
callq 0x41f0
movl $0x1, -0x48(%rbp)
movl $0x0, -0x38(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x9ce3a
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 0x9cd13
jmp 0x9ccc7
movl -0x34(%rbp), %ecx
xorl %eax, %eax
cmpl -0xc(%rbp), %ecx
movb %al, -0x61(%rbp)
jge 0x9ccfd
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, -0x61(%rbp)
movb -0x61(%rbp), %al
testb $0x1, %al
jne 0x9cd06
jmp 0x9cd11
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x9ccc7
jmp 0x9cd13
movl -0x34(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x34(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x34(%rbp), %eax
je 0x9ce26
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jle 0x9ce26
movq -0x28(%rbp), %rdi
movsd 0x45f60(%rip), %xmm0    # 0xe2ca0
callq 0x9a620
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd 0x452ba(%rip), %xmm1    # 0xe2018
subsd %xmm1, %xmm0
movsd -0x60(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd 0x4e7ed(%rip), %xmm1    # 0xeb560
addsd %xmm1, %xmm0
movsd -0x58(%rbp), %xmm2
cvtsi2sdl -0x48(%rbp), %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
movsd 0x4e7b8(%rip), %xmm3    # 0xeb558
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
movq -0x8(%rbp), %rax
movslq -0x34(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm2
movsd 0x4525b(%rip), %xmm3    # 0xe2018
subsd %xmm3, %xmm2
movsd -0x60(%rbp), %xmm3
mulsd %xmm3, %xmm2
movsd 0x4a8ce(%rip), %xmm3    # 0xe76a0
addsd %xmm3, %xmm2
movsd -0x58(%rbp), %xmm4
cvtsi2sdl -0x48(%rbp), %xmm3
movq %xmm3, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm3
movsd 0x4e759(%rip), %xmm5    # 0xeb558
mulsd %xmm5, %xmm3
addsd %xmm4, %xmm3
callq 0x9a3e0
movq -0x28(%rbp), %rdi
movsd 0x45200(%rip), %xmm0    # 0xe2018
callq 0x9a620
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x38(%rbp)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x9cc86
movq -0x28(%rbp), %rdi
callq 0x9a5f0
movq -0x28(%rbp), %rdi
callq 0x4250
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)