#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ fr_quicksort3way_integer_i_(int *, size_t *, int, int);
int /*<<< orphan*/ fr_quicksortclassic_int_i_(int *, size_t *, int, int);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ quicksort3way(int *, int);
int /*<<< orphan*/ quicksort3way_i_(int *, size_t *, int, int);
int /*<<< orphan*/ quicksort3wayorig(int *, int /*<<< orphan*/, int);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int *vrandi(int, int, int);
int main(int argc, char *argv[]) {
  srand(time(NULL));
  int max = atoi(argv[1]);
  int n = atoi(argv[2]);
  printf("random vector:  max: %d   n: %d  sum:", max, n);
  int *v = vrandi(10, max, n);
  double sum = 0;
  for (int i = 0; i < n; ++i)
    sum += v[i];
  printf("%g\n", sum);
  int *w = (int *)malloc(n * sizeof(int));
  int *x = (int *)malloc(n * sizeof(int));
  int *y = (int *)malloc(n * sizeof(int));
  int *z = (int *)malloc(n * sizeof(int));
  int *za = (int *)malloc(n * sizeof(int));
  int *zb = (int *)malloc(n * sizeof(int));
  int *zc = (int *)malloc(n * sizeof(int));
  for (int i = 0; i < n; ++i)
    zc[i] = zb[i] = za[i] = z[i] = y[i] = x[i] = w[i] = v[i];
  size_t *indx = (size_t *)malloc(n * sizeof(size_t));
  size_t *indx2 = (size_t *)malloc(n * sizeof(size_t));
  size_t *indxza = (size_t *)malloc(n * sizeof(size_t));
  size_t *indxzb = (size_t *)malloc(n * sizeof(size_t));
  size_t *indxzc = (size_t *)malloc(n * sizeof(size_t));
  for (size_t i = 0; i < n; ++i)
    indxzc[i] = indxzb[i] = indxza[i] = indx2[i] = indx[i] = i;
  fr_quicksortclassic_int_i_(w, indx, n, 1);
  quicksort3wayorig(x, 0, n - 1);
  printf("comparing fr_quicksortclassic_int_i_ w[] with quicksort3wayorig "
         "x[]...\n");
  for (int i = 0; i < n; ++i)
    if (w[indx[i]] != x[i])
      printf("mismatch: indx[%d] = %d, w[indx[%d]] = %d    x[%d] = %d\n", i,
             indx[i], i, w[indx[i]], i, x[i]);
  quicksort3way(y, n);
  printf("comparing quicksort3wayorig x[] with quicksort3way y[]...\n");
  for (int i = 0; i < n; ++i)
    if (x[i] != y[i])
      printf("mismatch: x[%d] = %d    y[%d] = %d\n", i, x[i], i, y[i]);
  quicksort3way_i_(z, indx2, n, 1);
  printf("comparing quicksort3way_i_ z[] with quicksort3wayorig x[]...\n");
  for (int i = 0; i < n; ++i)
    if (z[indx2[i]] != x[i])
      printf("mismatch: indx2[%d] = %d, z[indx2[%d]] = %d    x[%d] = %d\n", i,
             indx2[i], i, z[indx2[i]], i, x[i]);
  fr_quicksort3way_integer_i_(za, indxza, n, 1);
  printf("comparing fr_quicksort3way_integer_i_(..., 1) za[] with "
         "quicksort3wayorig x[]...\n");
  for (int i = 0; i < n; ++i)
    if (za[indxza[i]] != x[i])
      printf("mismatch: indxza[%d] = %d, za[indxza[%d]] = %d    x[%d] = %d\n",
             i, indxza[i], i, za[indxza[i]], i, x[i]);
  fr_quicksort3way_integer_i_(zb, indxzb, n, 20);
  printf("comparing fr_quicksort3way_integer_i_(..., 20) zb[] with "
         "quicksort3wayorig x[]...\n");
  for (int i = 0; i < n; ++i)
    if (zb[indxzb[i]] != x[i])
      printf("mismatch: indxzb[%d] = %d, zb[indxzb[%d]] = %d    x[%d] = %d\n",
             i, indxzb[i], i, zb[indxzb[i]], i, x[i]);
  printf("comparing fr_quicksort3way_integer_i_(..., 20) zb[] with "
         "fr_quicksortclassic_int_i_ w[]...\n");
  for (int i = 0; i < n; ++i)
    if (zb[indxzb[i]] != w[indx[i]])
      printf("mismatch: indxzb[%d] = %d, zb[indxzb[%d]] = %d    indx[%d]=%d "
             "w[indx[%d]] = %d\n",
             i, indxzb[i], i, zb[indxzb[i]], i, indx[i], i, w[indx[i]]);
  const int lim = 40;
  printf("za: ");
  for (int i = 0; i < n; ++i) {
    if (i > 0 && za[indxza[i - 1]] > za[indxza[i]])
      printf(">>>> ");
    if (i > 0 && i <= lim && za[indxza[i - 1]] == za[indxza[i]])
      printf("= ");
    if (i < lim)
      printf("%d ", za[indxza[i]]);
    else if (i == lim)
      printf("...", za[indxza[i]]);
  }
  putchar('\n');
  return 0;
  return 0;
  double *ranks = (double *)malloc(n * sizeof(double));
  double b = x[indx[0]];
  int ib = 0;
  int i;
  for (i = 1; i < n; ++i) {
    if (x[indx[i]] != b) {
      if (ib < i - 1) {
        double rnk = (i - 1 + ib + 2) / 2.0;
        for (int j = ib; j <= i - 1; ++j)
          ranks[indx[j]] = rnk;
      } else {
        ranks[indx[ib]] = ib + 1;
      }
      b = x[indx[i]];
      ib = i;
    }
  }
  if (ib == i - 1)
    ranks[indx[ib]] = i;
  else {
    double rnk = (i - 1 + ib + 2) / 2.0;
    for (int j = ib; j <= i - 1; ++j)
      ranks[indx[j]] = rnk;
  }
  printf("after average ranking: x[] and indx[]\n");
  for (int i = 0; i < n; ++i)
    printf(" %.0f  ", x[i]);
  putchar('\n');
  for (int i = 0; i < n; ++i)
    printf("%.1f  ", ranks[i]);
  putchar('\n');
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0xf8,%rsp
movl   $0x0,-0xc(%rbp)
mov    %edi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1080 <srand@plt>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
lea    0xde9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    $0xa,%edi
call   1070 <vrandi@plt>
mov    %rax,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1272 <main+0xb2>
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1241 <main+0x81>
movsd  -0x30(%rbp),%xmm0
lea    0xda8(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movslq -0x20(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x40(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x48(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x50(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x58(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x60(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x68(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x70(%rbp)
movl   $0x0,-0x74(%rbp)
mov    -0x74(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1383 <main+0x1c3>
mov    -0x28(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x40(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x48(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x50(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x58(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x60(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x68(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x70(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    1311 <main+0x151>
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x80(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x88(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x90(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x98(%rbp)
movslq -0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0xa0(%rbp)
movq   $0x0,-0xa8(%rbp)
mov    -0xa8(%rbp),%rax
movslq -0x20(%rbp),%rcx
cmp    %rcx,%rax
jae    1482 <main+0x2c2>
mov    -0xa8(%rbp),%rdx
mov    -0x80(%rbp),%rax
mov    -0xa8(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x88(%rbp),%rax
mov    -0xa8(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x90(%rbp),%rax
mov    -0xa8(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x98(%rbp),%rax
mov    -0xa8(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0xa0(%rbp),%rax
mov    -0xa8(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0xa8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xa8(%rbp)
jmp    13f9 <main+0x239>
mov    -0x40(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    -0x20(%rbp),%edx
mov    $0x1,%ecx
call   10e0 <fr_quicksortclassic_int_i_@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%edx
sub    $0x1,%edx
xor    %esi,%esi
call   10d0 <quicksort3wayorig@plt>
lea    0xb7b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0xac(%rbp)
mov    -0xac(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    156a <main+0x3aa>
mov    -0x40(%rbp),%rax
mov    -0x80(%rbp),%rcx
movslq -0xac(%rbp),%rdx
mov    (%rcx,%rdx,8),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x48(%rbp),%rcx
movslq -0xac(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     1551 <main+0x391>
mov    -0xac(%rbp),%esi
mov    -0x80(%rbp),%rax
movslq -0xac(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0xac(%rbp),%ecx
mov    -0x40(%rbp),%rax
mov    -0x80(%rbp),%rdi
movslq -0xac(%rbp),%r8
mov    (%rdi,%r8,8),%rdi
mov    (%rax,%rdi,4),%r8d
mov    -0xac(%rbp),%r9d
mov    -0x48(%rbp),%rax
movslq -0xac(%rbp),%rdi
mov    (%rax,%rdi,4),%eax
lea    0xb2b(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1556 <main+0x396>
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
jmp    14c0 <main+0x300>
mov    -0x50(%rbp),%rdi
mov    -0x20(%rbp),%esi
call   1040 <quicksort3way@plt>
lea    0xb2e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0xb0(%rbp)
mov    -0xb0(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    160f <main+0x44f>
mov    -0x48(%rbp),%rax
movslq -0xb0(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x50(%rbp),%rcx
movslq -0xb0(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     15f6 <main+0x436>
mov    -0xb0(%rbp),%esi
mov    -0x48(%rbp),%rax
movslq -0xb0(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0xb0(%rbp),%ecx
mov    -0x50(%rbp),%rax
movslq -0xb0(%rbp),%rdi
mov    (%rax,%rdi,4),%r8d
lea    0xaf7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    15fb <main+0x43b>
mov    -0xb0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb0(%rbp)
jmp    158e <main+0x3ce>
mov    -0x58(%rbp),%rdi
mov    -0x88(%rbp),%rsi
mov    -0x20(%rbp),%edx
mov    $0x1,%ecx
call   10c0 <quicksort3way_i_@plt>
lea    0xadc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0xb4(%rbp)
mov    -0xb4(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    16f2 <main+0x532>
mov    -0x58(%rbp),%rax
mov    -0x88(%rbp),%rcx
movslq -0xb4(%rbp),%rdx
mov    (%rcx,%rdx,8),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x48(%rbp),%rcx
movslq -0xb4(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     16d9 <main+0x519>
mov    -0xb4(%rbp),%esi
mov    -0x88(%rbp),%rax
movslq -0xb4(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0xb4(%rbp),%ecx
mov    -0x58(%rbp),%rax
mov    -0x88(%rbp),%rdi
movslq -0xb4(%rbp),%r8
mov    (%rdi,%r8,8),%rdi
mov    (%rax,%rdi,4),%r8d
mov    -0xb4(%rbp),%r9d
mov    -0x48(%rbp),%rax
movslq -0xb4(%rbp),%rdi
mov    (%rax,%rdi,4),%eax
lea    0xa79(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1060 <printf@plt>
jmp    16de <main+0x51e>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
jmp    163f <main+0x47f>
mov    -0x60(%rbp),%rdi
mov    -0x90(%rbp),%rsi
mov    -0x20(%rbp),%edx
mov    $0x1,%ecx
call   1050 <fr_quicksort3way_integer_i_@plt>
lea    0xa72(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0xb8(%rbp)
mov    -0xb8(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    17d5 <main+0x615>
mov    -0x60(%rbp),%rax
mov    -0x90(%rbp),%rcx
movslq -0xb8(%rbp),%rdx
mov    (%rcx,%rdx,8),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x48(%rbp),%rcx
movslq -0xb8(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     17bc <main+0x5fc>
mov    -0xb8(%rbp),%esi
mov    -0x90(%rbp),%rax
movslq -0xb8(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0xb8(%rbp),%ecx
mov    -0x60(%rbp),%rax
mov    -0x90(%rbp),%rdi
movslq -0xb8(%rbp),%r8
mov    (%rdi,%r8,8),%rdi
mov    (%rax,%rdi,4),%r8d
mov    -0xb8(%rbp),%r9d
mov    -0x48(%rbp),%rax
movslq -0xb8(%rbp),%rdi
mov    (%rax,%rdi,4),%eax
lea    0xa23(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1060 <printf@plt>
jmp    17c1 <main+0x601>
mov    -0xb8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb8(%rbp)
jmp    1722 <main+0x562>
mov    -0x68(%rbp),%rdi
mov    -0x98(%rbp),%rsi
mov    -0x20(%rbp),%edx
mov    $0x14,%ecx
call   1050 <fr_quicksort3way_integer_i_@plt>
lea    0xa1f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0xbc(%rbp)
mov    -0xbc(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    18b8 <main+0x6f8>
mov    -0x68(%rbp),%rax
mov    -0x98(%rbp),%rcx
movslq -0xbc(%rbp),%rdx
mov    (%rcx,%rdx,8),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x48(%rbp),%rcx
movslq -0xbc(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     189f <main+0x6df>
mov    -0xbc(%rbp),%esi
mov    -0x98(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0xbc(%rbp),%ecx
mov    -0x68(%rbp),%rax
mov    -0x98(%rbp),%rdi
movslq -0xbc(%rbp),%r8
mov    (%rdi,%r8,8),%rdi
mov    (%rax,%rdi,4),%r8d
mov    -0xbc(%rbp),%r9d
mov    -0x48(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,4),%eax
lea    0x9d1(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1060 <printf@plt>
jmp    18a4 <main+0x6e4>
mov    -0xbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
jmp    1805 <main+0x645>
lea    0x9e5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0xc0(%rbp)
mov    -0xc0(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    19b3 <main+0x7f3>
mov    -0x68(%rbp),%rax
mov    -0x98(%rbp),%rcx
movslq -0xc0(%rbp),%rdx
mov    (%rcx,%rdx,8),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x40(%rbp),%rcx
mov    -0x80(%rbp),%rdx
movslq -0xc0(%rbp),%rsi
mov    (%rdx,%rsi,8),%rdx
cmp    (%rcx,%rdx,4),%eax
je     199a <main+0x7da>
mov    -0xc0(%rbp),%esi
mov    -0x98(%rbp),%rax
movslq -0xc0(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0xc0(%rbp),%ecx
mov    -0x68(%rbp),%rax
mov    -0x98(%rbp),%rdi
movslq -0xc0(%rbp),%r8
mov    (%rdi,%r8,8),%rdi
mov    (%rax,%rdi,4),%r8d
mov    -0xc0(%rbp),%r9d
mov    -0x80(%rbp),%rax
movslq -0xc0(%rbp),%rdi
mov    (%rax,%rdi,8),%r11
mov    -0xc0(%rbp),%r10d
mov    -0x40(%rbp),%rax
mov    -0x80(%rbp),%rdi
movslq -0xc0(%rbp),%rbx
mov    (%rdi,%rbx,8),%rdi
mov    (%rax,%rdi,4),%eax
lea    0x97a(%rip),%rdi
mov    %r11,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1060 <printf@plt>
jmp    199f <main+0x7df>
mov    -0xc0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc0(%rbp)
jmp    18d0 <main+0x710>
movl   $0x28,-0xc4(%rbp)
lea    0x98c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0xc8(%rbp)
mov    -0xc8(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1b2c <main+0x96c>
cmpl   $0x0,-0xc8(%rbp)
jle    1a3c <main+0x87c>
mov    -0x60(%rbp),%rax
mov    -0x90(%rbp),%rcx
mov    -0xc8(%rbp),%edx
sub    $0x1,%edx
movslq %edx,%rdx
mov    (%rcx,%rdx,8),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x60(%rbp),%rcx
mov    -0x90(%rbp),%rdx
movslq -0xc8(%rbp),%rsi
mov    (%rdx,%rsi,8),%rdx
cmp    (%rcx,%rdx,4),%eax
jle    1a3c <main+0x87c>
lea    0x920(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x0,-0xc8(%rbp)
jle    1aa1 <main+0x8e1>
cmpl   $0x28,-0xc8(%rbp)
jg     1aa1 <main+0x8e1>
mov    -0x60(%rbp),%rax
mov    -0x90(%rbp),%rcx
mov    -0xc8(%rbp),%edx
sub    $0x1,%edx
movslq %edx,%rdx
mov    (%rcx,%rdx,8),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x60(%rbp),%rcx
mov    -0x90(%rbp),%rdx
movslq -0xc8(%rbp),%rsi
mov    (%rdx,%rsi,8),%rdx
cmp    (%rcx,%rdx,4),%eax
jne    1aa1 <main+0x8e1>
lea    0x8c1(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x28,-0xc8(%rbp)
jge    1ada <main+0x91a>
mov    -0x60(%rbp),%rax
mov    -0x90(%rbp),%rcx
movslq -0xc8(%rbp),%rdx
mov    (%rcx,%rdx,8),%rcx
mov    (%rax,%rcx,4),%esi
lea    0x890(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1b13 <main+0x953>
cmpl   $0x28,-0xc8(%rbp)
jne    1b0e <main+0x94e>
mov    -0x60(%rbp),%rax
mov    -0x90(%rbp),%rcx
movslq -0xc8(%rbp),%rdx
mov    (%rcx,%rdx,8),%rcx
mov    (%rax,%rcx,4),%esi
lea    0x85b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1b13 <main+0x953>
jmp    1b18 <main+0x958>
mov    -0xc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc8(%rbp)
jmp    19d5 <main+0x815>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0xf8,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rsi,%rbx
xor    %edi,%edi
call   10a0 <time@plt>
mov    %eax,%edi
call   1090 <srand@plt>
mov    0x8(%rbx),%rdi
call   10c0 <atoi@plt>
mov    %eax,%r14d
mov    0x10(%rbx),%rdi
call   10c0 <atoi@plt>
mov    %eax,%ebp
mov    %eax,%r13d
lea    0xdf0(%rip),%rdi
mov    %r14d,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xa,%edi
mov    %r14d,%esi
mov    %ebp,%edx
call   1080 <vrandi@plt>
mov    %rax,%r15
test   %ebp,%ebp
jle    124a <main+0x7a>
lea    -0x1(%r13),%rcx
mov    %r13d,%eax
and    $0x3,%eax
cmp    $0x3,%rcx
jae    1250 <main+0x80>
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
jmp    12a0 <main+0xd0>
xorpd  %xmm0,%xmm0
jmp    12c5 <main+0xf5>
mov    %r13d,%edx
and    $0xfffffffc,%edx
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
nopl   0x0(%rax)
xorps  %xmm1,%xmm1
cvtsi2sdl (%r15,%rcx,4),%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm2,%xmm2
cvtsi2sdl 0x4(%r15,%rcx,4),%xmm2
addsd  %xmm1,%xmm2
xorps  %xmm1,%xmm1
cvtsi2sdl 0x8(%r15,%rcx,4),%xmm1
xorps  %xmm0,%xmm0
cvtsi2sdl 0xc(%r15,%rcx,4),%xmm0
addsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
add    $0x4,%rcx
cmp    %rcx,%rdx
jne    1260 <main+0x90>
test   %rax,%rax
je     12c5 <main+0xf5>
lea    (%r15,%rcx,4),%rcx
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
xorps  %xmm1,%xmm1
cvtsi2sdl (%rcx,%rdx,4),%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%rdx
cmp    %rdx,%rax
jne    12b0 <main+0xe0>
lea    0xd5a(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
lea    0x0(,%r13,4),%ebx
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    %rax,0x38(%rsp)
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    %rax,%r14
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    %rax,0x48(%rsp)
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    %rax,0x30(%rsp)
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    %rax,%r12
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    %rax,%rbp
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    0x48(%rsp),%rbx
mov    0x30(%rsp),%rdi
mov    %rbp,%rsi
mov    0x38(%rsp),%rbp
test   %r13d,%r13d
jle    1365 <main+0x195>
xor    %ecx,%ecx
nopl   (%rax)
mov    (%r15,%rcx,4),%edx
mov    %edx,0x0(%rbp,%rcx,4)
mov    %edx,(%r14,%rcx,4)
mov    %edx,(%rbx,%rcx,4)
mov    %edx,(%rdi,%rcx,4)
mov    %edx,(%r12,%rcx,4)
mov    %edx,(%rsi,%rcx,4)
mov    %edx,(%rax,%rcx,4)
add    $0x1,%rcx
cmp    %rcx,%r13
jne    1340 <main+0x170>
mov    %rsi,0x28(%rsp)
mov    %r12,0x50(%rsp)
lea    0x0(,%r13,8),%ebx
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    %rax,%r15
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    %rax,%r12
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    %rax,%rbp
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    %rax,0x20(%rsp)
mov    %ebx,%edi
call   10b0 <malloc@plt>
mov    0x38(%rsp),%rdi
test   %r13,%r13
je     142b <main+0x25b>
movslq %r13d,%r8
cmp    $0x1,%r8d
jne    13bf <main+0x1ef>
xor    %edx,%edx
jmp    140b <main+0x23b>
mov    %r8,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %edx,%edx
mov    0x20(%rsp),%rcx
nopl   (%rax)
mov    %rdx,(%r15,%rdx,8)
mov    %rdx,(%r12,%rdx,8)
mov    %rdx,0x0(%rbp,%rdx,8)
mov    %rdx,(%rcx,%rdx,8)
mov    %rdx,(%rax,%rdx,8)
lea    0x1(%rdx),%rbx
mov    %rbx,0x8(%r15,%rdx,8)
mov    %rbx,0x8(%r12,%rdx,8)
mov    %rbx,0x8(%rbp,%rdx,8)
mov    %rbx,0x8(%rcx,%rdx,8)
mov    %rbx,0x8(%rax,%rdx,8)
add    $0x2,%rdx
cmp    %rsi,%rdx
jne    13d0 <main+0x200>
test   $0x1,%r8b
je     142b <main+0x25b>
mov    %rdx,(%r15,%rdx,8)
mov    %rdx,(%r12,%rdx,8)
mov    %rdx,0x0(%rbp,%rdx,8)
mov    0x20(%rsp),%rcx
mov    %rdx,(%rcx,%rdx,8)
mov    %rdx,(%rax,%rdx,8)
mov    %r15,%rsi
mov    %r13d,%edx
mov    $0x1,%ecx
call   10f0 <fr_quicksortclassic_int_i_@plt>
lea    -0x1(%r13),%edx
mov    %r14,%rdi
xor    %esi,%esi
call   10e0 <quicksort3wayorig@plt>
lea    0xd50(%rip),%rdi
call   1050 <puts@plt>
test   %r13d,%r13d
mov    %rbp,0x40(%rsp)
jle    1514 <main+0x344>
xor    %ebx,%ebx
mov    0x38(%rsp),%rcx
jmp    1479 <main+0x2a9>
nopl   0x0(%rax)
add    $0x1,%rbx
cmp    %rbx,%r13
je     14a9 <main+0x2d9>
mov    (%r15,%rbx,8),%rdx
mov    (%rcx,%rdx,4),%r8d
mov    (%r14,%rbx,4),%eax
cmp    %eax,%r8d
je     1470 <main+0x2a0>
mov    %eax,(%rsp)
lea    0xb96(%rip),%rdi
mov    %ebx,%esi
mov    %ebx,%ecx
mov    %ebx,%r9d
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x38(%rsp),%rcx
jmp    1470 <main+0x2a0>
mov    0x48(%rsp),%rdi
mov    %r13d,%esi
call   1040 <quicksort3way@plt>
lea    0xd2a(%rip),%rdi
call   1050 <puts@plt>
test   %r13d,%r13d
jle    17c3 <main+0x5f3>
xor    %ebx,%ebx
mov    0x30(%rsp),%rdi
jmp    14e9 <main+0x319>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rbx
cmp    %rbx,%r13
je     1532 <main+0x362>
mov    (%r14,%rbx,4),%edx
mov    0x48(%rsp),%rax
mov    (%rax,%rbx,4),%r8d
cmp    %r8d,%edx
je     14e0 <main+0x310>
lea    0xb61(%rip),%rdi
mov    %ebx,%esi
mov    %ebx,%ecx
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x30(%rsp),%rdi
jmp    14e0 <main+0x310>
mov    0x48(%rsp),%rdi
mov    %r13d,%esi
call   1040 <quicksort3way@plt>
lea    0xcbf(%rip),%rdi
call   1050 <puts@plt>
mov    0x30(%rsp),%rdi
mov    %r12,%rsi
mov    %r13d,%edx
mov    $0x1,%ecx
call   10d0 <quicksort3way_i_@plt>
lea    0xcd8(%rip),%rdi
call   1050 <puts@plt>
test   %r13d,%r13d
jle    15a9 <main+0x3d9>
lea    0xb2d(%rip),%rbp
xor    %ebx,%ebx
mov    0x30(%rsp),%rcx
jmp    157d <main+0x3ad>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%rbx
cmp    %rbx,%r13
je     17e4 <main+0x614>
mov    (%r12,%rbx,8),%rdx
mov    (%rcx,%rdx,4),%r8d
mov    (%r14,%rbx,4),%eax
cmp    %eax,%r8d
je     1570 <main+0x3a0>
mov    %eax,(%rsp)
mov    %rbp,%rdi
mov    %ebx,%esi
mov    %ebx,%ecx
mov    %ebx,%r9d
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x30(%rsp),%rcx
jmp    1570 <main+0x3a0>
mov    0x50(%rsp),%r12
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r13d,%edx
mov    $0x1,%ecx
call   1060 <fr_quicksort3way_integer_i_@plt>
lea    0xc96(%rip),%rdi
call   1050 <puts@plt>
mov    0x28(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    %r13d,%edx
mov    $0x14,%ecx
call   1060 <fr_quicksort3way_integer_i_@plt>
lea    0xcc4(%rip),%rdi
call   1050 <puts@plt>
test   %r13d,%r13d
jle    1896 <main+0x6c6>
lea    0xb00(%rip),%rbp
xor    %ebx,%ebx
mov    0x28(%rsp),%rcx
mov    0x20(%rsp),%rsi
jmp    1619 <main+0x449>
xchg   %ax,%ax
add    $0x1,%rbx
cmp    %rbx,%r13
je     164a <main+0x47a>
mov    (%rsi,%rbx,8),%rdx
mov    (%rcx,%rdx,4),%r8d
mov    (%r14,%rbx,4),%eax
cmp    %eax,%r8d
je     1610 <main+0x440>
mov    %eax,(%rsp)
mov    %rbp,%rdi
mov    %ebx,%esi
mov    %ebx,%ecx
mov    %ebx,%r9d
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rcx
jmp    1610 <main+0x440>
lea    0xcb0(%rip),%rdi
call   1050 <puts@plt>
test   %r13d,%r13d
jle    18a2 <main+0x6d2>
lea    0xad8(%rip),%r14
xor    %ebp,%ebp
mov    0x38(%rsp),%rsi
mov    0x28(%rsp),%rdi
mov    0x20(%rsp),%rbx
jmp    1689 <main+0x4b9>
nopl   0x0(%rax)
add    $0x1,%rbp
cmp    %rbp,%r13
je     16cb <main+0x4fb>
mov    (%rbx,%rbp,8),%rdx
mov    (%rdi,%rdx,4),%r8d
mov    (%r15,%rbp,8),%rax
mov    (%rsi,%rax,4),%ecx
cmp    %ecx,%r8d
je     1680 <main+0x4b0>
mov    %ecx,0x10(%rsp)
mov    %ebp,0x8(%rsp)
mov    %rax,(%rsp)
mov    %r14,%rdi
mov    %ebp,%esi
mov    %ebp,%ecx
mov    %ebp,%r9d
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x20(%rsp),%rbx
mov    0x28(%rsp),%rdi
mov    0x38(%rsp),%rsi
jmp    1680 <main+0x4b0>
lea    0xabc(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
test   %r13d,%r13d
jle    18b0 <main+0x6e0>
mov    0x40(%rsp),%rax
mov    (%rax),%rax
mov    (%r12,%rax,4),%esi
lea    0xaa7(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
cmp    $0x1,%r13d
je     18b0 <main+0x6e0>
mov    0x40(%rsp),%rbx
lea    0x140(%rbx),%rbp
add    $0x8,%rbx
mov    $0x1,%r14d
jmp    173f <main+0x56f>
xchg   %ax,%ax
mov    (%rax),%rax
mov    (%r12,%rax,4),%esi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%r14
add    $0x8,%rbx
cmp    %r14,%r13
je     18b0 <main+0x6e0>
mov    %r12,%rdx
lea    -0x1(%r14),%r12
mov    %r12d,%r15d
mov    0x40(%rsp),%rax
mov    (%rax,%r15,8),%rax
mov    (%rdx,%rax,4),%eax
mov    (%rbx),%rcx
cmp    (%rdx,%rcx,4),%eax
jle    176b <main+0x59b>
lea    0xa2f(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
cmp    $0x27,%r12
mov    0x50(%rsp),%r12
ja     179a <main+0x5ca>
mov    0x40(%rsp),%rax
mov    (%rax,%r15,8),%rax
mov    (%r12,%rax,4),%eax
mov    (%rbx),%rcx
cmp    (%r12,%rcx,4),%eax
jne    179a <main+0x5ca>
lea    0xa06(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rax
lea    0x9f8(%rip),%rdi
cmp    $0x28,%r14
jb     1720 <main+0x550>
mov    %rbp,%rax
lea    0xba0(%rip),%rdi
je     1720 <main+0x550>
jmp    172e <main+0x55e>
mov    0x30(%rsp),%rdi
mov    %r12,%rsi
mov    %r13d,%edx
mov    $0x1,%ecx
call   10d0 <quicksort3way_i_@plt>
lea    0xa42(%rip),%rdi
call   1050 <puts@plt>
mov    0x50(%rsp),%r12
mov    %r12,%rdi
mov    0x40(%rsp),%rsi
mov    %r13d,%edx
mov    $0x1,%ecx
call   1060 <fr_quicksort3way_integer_i_@plt>
lea    0xa59(%rip),%rdi
call   1050 <puts@plt>
test   %r13d,%r13d
jle    1873 <main+0x6a3>
lea    0x8ac(%rip),%rbp
xor    %ebx,%ebx
mov    0x28(%rsp),%rdi
mov    0x20(%rsp),%rsi
jmp    183d <main+0x66d>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rbx
cmp    %rbx,%r13
je     15d7 <main+0x407>
mov    0x40(%rsp),%rax
mov    (%rax,%rbx,8),%rdx
mov    (%r12,%rdx,4),%r8d
mov    (%r14,%rbx,4),%eax
cmp    %eax,%r8d
je     1830 <main+0x660>
mov    %eax,(%rsp)
mov    %rbp,%rdi
mov    %ebx,%esi
mov    %ebx,%ecx
mov    %ebx,%r9d
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdi
jmp    1830 <main+0x660>
mov    0x28(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    %r13d,%edx
mov    $0x14,%ecx
call   1060 <fr_quicksort3way_integer_i_@plt>
lea    0xa1e(%rip),%rdi
call   1050 <puts@plt>
lea    0xa64(%rip),%rdi
call   1050 <puts@plt>
lea    0x8e5(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [38 x i8] c"random vector: max: %d n: %d sum:\00"
@.str.1 = [4 x i8] c"%g\0A\00"
@.str.2 = [72 x i8] c"comparing fr_quicksortclassic_int_i_ w[] with quicksort3wayorig x[]...\0A\00"
@.str.3 = [57 x i8] c"mismatch: indx[%d] = %d, w[indx[%d]] = %d x[%d] = %d\0A\00"
@.str.4 = [59 x i8] c"comparing quicksort3wayorig x[] with quicksort3way y[]...\0A\00"
@.str.5 = [36 x i8] c"mismatch: x[%d] = %d y[%d] = %d\0A\00"
@.str.6 = [62 x i8] c"comparing quicksort3way_i_ z[] with quicksort3wayorig x[]...\0A\00"
@.str.7 = [59 x i8] c"mismatch: indx2[%d] = %d, z[indx2[%d]] = %d x[%d] = %d\0A\00"
@.str.8 = [82 x i8] c"comparing fr_quicksort3way_integer_i_(..., 1) za[] with quicksort3wayorig x[]...\0A\00"
@.str.9 = [62 x i8] c"mismatch: indxza[%d] = %d, za[indxza[%d]] = %d x[%d] = %d\0A\00"
@.str.10 = [83 x i8] c"comparing fr_quicksort3way_integer_i_(..., 20) zb[] with quicksort3wayorig x[]...\0A\00"
@.str.11 = [62 x i8] c"mismatch: indxzb[%d] = %d, zb[indxzb[%d]] = %d x[%d] = %d\0A\00"
@.str.12 = [92 x i8] c"comparing fr_quicksort3way_integer_i_(..., 20) zb[] with fr_quicksortclassic_int_i_ w[]...\0A\00"
@.str.13 = [80 x i8] c"mismatch: indxzb[%d] = %d, zb[indxzb[%d]] = %d indx[%d]=%d w[indx[%d]] = %d\0A\00"
@.str.14 = [5 x i8] c"za: \00"
@.str.15 = [6 x i8] c">>>> \00"
@.str.16 = [3 x i8] c"= \00"
@.str.17 = [4 x i8] c"%d \00"
@.str.18 = [4 x i8] c"...\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
%9 = alloca double
%10 = alloca i32
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32
%19 = alloca i64*
%20 = alloca i64*
%21 = alloca i64*
%22 = alloca i64*
%23 = alloca i64*
%24 = alloca i64
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca double*
%34 = alloca double
%35 = alloca i32
%36 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%37 = call i32 @time(i32* null)
%38 = call i32 @srand(i32 %37)
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 1
%41 = load i8*, i8** %40
%42 = call i32 @atoi(i8* %41)
store i32 %42, i32* %6
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 2
%45 = load i8*, i8** %44
%46 = call i32 @atoi(i8* %45)
store i32 %46, i32* %7
%47 = load i32, i32* %6
%48 = load i32, i32* %7
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %47, i32 %48)
%50 = load i32, i32* %6
%51 = load i32, i32* %7
%52 = call i32* @vrandi(i32 10, i32 %50, i32 %51)
store i32* %52, i32** %8
store double 0.000000e+00, double* %9
store i32 0, i32* %10
br label %53
53: ; preds = %66, %2
%54 = load i32, i32* %10
%55 = load i32, i32* %7
%56 = icmp slt i32 %54, %55
br i1 %56, label %57, label %69
57: ; preds = %53
%58 = load i32*, i32** %8
%59 = load i32, i32* %10
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, i32* %58, i64 %60
%62 = load i32, i32* %61
%63 = sitofp i32 %62 to double
%64 = load double, double* %9
%65 = fadd double %64, %63
store double %65, double* %9
br label %66
66: ; preds = %57
%67 = load i32, i32* %10
%68 = add nsw i32 %67, 1
store i32 %68, i32* %10
br label %53
69: ; preds = %53
%70 = load double, double* %9
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %70)
%72 = load i32, i32* %7
%73 = sext i32 %72 to i64
%74 = mul i64 %73, 4
%75 = trunc i64 %74 to i32
%76 = call i64 @malloc(i32 %75)
%77 = inttoptr i64 %76 to i32*
store i32* %77, i32** %11
%78 = load i32, i32* %7
%79 = sext i32 %78 to i64
%80 = mul i64 %79, 4
%81 = trunc i64 %80 to i32
%82 = call i64 @malloc(i32 %81)
%83 = inttoptr i64 %82 to i32*
store i32* %83, i32** %12
%84 = load i32, i32* %7
%85 = sext i32 %84 to i64
%86 = mul i64 %85, 4
%87 = trunc i64 %86 to i32
%88 = call i64 @malloc(i32 %87)
%89 = inttoptr i64 %88 to i32*
store i32* %89, i32** %13
%90 = load i32, i32* %7
%91 = sext i32 %90 to i64
%92 = mul i64 %91, 4
%93 = trunc i64 %92 to i32
%94 = call i64 @malloc(i32 %93)
%95 = inttoptr i64 %94 to i32*
store i32* %95, i32** %14
%96 = load i32, i32* %7
%97 = sext i32 %96 to i64
%98 = mul i64 %97, 4
%99 = trunc i64 %98 to i32
%100 = call i64 @malloc(i32 %99)
%101 = inttoptr i64 %100 to i32*
store i32* %101, i32** %15
%102 = load i32, i32* %7
%103 = sext i32 %102 to i64
%104 = mul i64 %103, 4
%105 = trunc i64 %104 to i32
%106 = call i64 @malloc(i32 %105)
%107 = inttoptr i64 %106 to i32*
store i32* %107, i32** %16
%108 = load i32, i32* %7
%109 = sext i32 %108 to i64
%110 = mul i64 %109, 4
%111 = trunc i64 %110 to i32
%112 = call i64 @malloc(i32 %111)
%113 = inttoptr i64 %112 to i32*
store i32* %113, i32** %17
store i32 0, i32* %18
br label %114
114: ; preds = %152, %69
%115 = load i32, i32* %18
%116 = load i32, i32* %7
%117 = icmp slt i32 %115, %116
br i1 %117, label %118, label %155
118: ; preds = %114
%119 = load i32*, i32** %8
%120 = load i32, i32* %18
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i32, i32* %119, i64 %121
%123 = load i32, i32* %122
%124 = load i32*, i32** %11
%125 = load i32, i32* %18
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i32, i32* %124, i64 %126
store i32 %123, i32* %127
%128 = load i32*, i32** %12
%129 = load i32, i32* %18
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i32, i32* %128, i64 %130
store i32 %123, i32* %131
%132 = load i32*, i32** %13
%133 = load i32, i32* %18
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i32, i32* %132, i64 %134
store i32 %123, i32* %135
%136 = load i32*, i32** %14
%137 = load i32, i32* %18
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i32, i32* %136, i64 %138
store i32 %123, i32* %139
%140 = load i32*, i32** %15
%141 = load i32, i32* %18
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds i32, i32* %140, i64 %142
store i32 %123, i32* %143
%144 = load i32*, i32** %16
%145 = load i32, i32* %18
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i32, i32* %144, i64 %146
store i32 %123, i32* %147
%148 = load i32*, i32** %17
%149 = load i32, i32* %18
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i32, i32* %148, i64 %150
store i32 %123, i32* %151
br label %152
152: ; preds = %118
%153 = load i32, i32* %18
%154 = add nsw i32 %153, 1
store i32 %154, i32* %18
br label %114
155: ; preds = %114
%156 = load i32, i32* %7
%157 = sext i32 %156 to i64
%158 = mul i64 %157, 8
%159 = trunc i64 %158 to i32
%160 = call i64 @malloc(i32 %159)
%161 = inttoptr i64 %160 to i64*
store i64* %161, i64** %19
%162 = load i32, i32* %7
%163 = sext i32 %162 to i64
%164 = mul i64 %163, 8
%165 = trunc i64 %164 to i32
%166 = call i64 @malloc(i32 %165)
%167 = inttoptr i64 %166 to i64*
store i64* %167, i64** %20
%168 = load i32, i32* %7
%169 = sext i32 %168 to i64
%170 = mul i64 %169, 8
%171 = trunc i64 %170 to i32
%172 = call i64 @malloc(i32 %171)
%173 = inttoptr i64 %172 to i64*
store i64* %173, i64** %21
%174 = load i32, i32* %7
%175 = sext i32 %174 to i64
%176 = mul i64 %175, 8
%177 = trunc i64 %176 to i32
%178 = call i64 @malloc(i32 %177)
%179 = inttoptr i64 %178 to i64*
store i64* %179, i64** %22
%180 = load i32, i32* %7
%181 = sext i32 %180 to i64
%182 = mul i64 %181, 8
%183 = trunc i64 %182 to i32
%184 = call i64 @malloc(i32 %183)
%185 = inttoptr i64 %184 to i64*
store i64* %185, i64** %23
store i64 0, i64* %24
br label %186
186: ; preds = %208, %155
%187 = load i64, i64* %24
%188 = load i32, i32* %7
%189 = sext i32 %188 to i64
%190 = icmp ult i64 %187, %189
br i1 %190, label %191, label %211
191: ; preds = %186
%192 = load i64, i64* %24
%193 = load i64*, i64** %19
%194 = load i64, i64* %24
%195 = getelementptr inbounds i64, i64* %193, i64 %194
store i64 %192, i64* %195
%196 = load i64*, i64** %20
%197 = load i64, i64* %24
%198 = getelementptr inbounds i64, i64* %196, i64 %197
store i64 %192, i64* %198
%199 = load i64*, i64** %21
%200 = load i64, i64* %24
%201 = getelementptr inbounds i64, i64* %199, i64 %200
store i64 %192, i64* %201
%202 = load i64*, i64** %22
%203 = load i64, i64* %24
%204 = getelementptr inbounds i64, i64* %202, i64 %203
store i64 %192, i64* %204
%205 = load i64*, i64** %23
%206 = load i64, i64* %24
%207 = getelementptr inbounds i64, i64* %205, i64 %206
store i64 %192, i64* %207
br label %208
208: ; preds = %191
%209 = load i64, i64* %24
%210 = add i64 %209, 1
store i64 %210, i64* %24
br label %186
211: ; preds = %186
%212 = load i32*, i32** %11
%213 = load i64*, i64** %19
%214 = load i32, i32* %7
%215 = call i32 @fr_quicksortclassic_int_i_(i32* %212, i64* %213, i32 %214, i32 1)
%216 = load i32*, i32** %12
%217 = load i32, i32* %7
%218 = sub nsw i32 %217, 1
%219 = call i32 @quicksort3wayorig(i32* %216, i32 0, i32 %218)
%220 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %25
br label %221
221: ; preds = %264, %211
%222 = load i32, i32* %25
%223 = load i32, i32* %7
%224 = icmp slt i32 %222, %223
br i1 %224, label %225, label %267
225: ; preds = %221
%226 = load i32*, i32** %11
%227 = load i64*, i64** %19
%228 = load i32, i32* %25
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds i64, i64* %227, i64 %229
%231 = load i64, i64* %230
%232 = getelementptr inbounds i32, i32* %226, i64 %231
%233 = load i32, i32* %232
%234 = load i32*, i32** %12
%235 = load i32, i32* %25
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds i32, i32* %234, i64 %236
%238 = load i32, i32* %237
%239 = icmp ne i32 %233, %238
br i1 %239, label %240, label %263
240: ; preds = %225
%241 = load i32, i32* %25
%242 = load i64*, i64** %19
%243 = load i32, i32* %25
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds i64, i64* %242, i64 %244
%246 = load i64, i64* %245
%247 = load i32, i32* %25
%248 = load i32*, i32** %11
%249 = load i64*, i64** %19
%250 = load i32, i32* %25
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds i64, i64* %249, i64 %251
%253 = load i64, i64* %252
%254 = getelementptr inbounds i32, i32* %248, i64 %253
%255 = load i32, i32* %254
%256 = load i32, i32* %25
%257 = load i32*, i32** %12
%258 = load i32, i32* %25
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds i32, i32* %257, i64 %259
%261 = load i32, i32* %260
%262 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0), i32 %241, i64 %246, i32 %247, i32 %255, i32 %256, i32 %261)
br label %263
263: ; preds = %240, %225
br label %264
264: ; preds = %263
%265 = load i32, i32* %25
%266 = add nsw i32 %265, 1
store i32 %266, i32* %25
br label %221
267: ; preds = %221
%268 = load i32*, i32** %13
%269 = load i32, i32* %7
%270 = call i32 @quicksort3way(i32* %268, i32 %269)
%271 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %26
br label %272
272: ; preds = %303, %267
%273 = load i32, i32* %26
%274 = load i32, i32* %7
%275 = icmp slt i32 %273, %274
br i1 %275, label %276, label %306
276: ; preds = %272
%277 = load i32*, i32** %12
%278 = load i32, i32* %26
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds i32, i32* %277, i64 %279
%281 = load i32, i32* %280
%282 = load i32*, i32** %13
%283 = load i32, i32* %26
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds i32, i32* %282, i64 %284
%286 = load i32, i32* %285
%287 = icmp ne i32 %281, %286
br i1 %287, label %288, label %302
288: ; preds = %276
%289 = load i32, i32* %26
%290 = load i32*, i32** %12
%291 = load i32, i32* %26
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds i32, i32* %290, i64 %292
%294 = load i32, i32* %293
%295 = load i32, i32* %26
%296 = load i32*, i32** %13
%297 = load i32, i32* %26
%298 = sext i32 %297 to i64
%299 = getelementptr inbounds i32, i32* %296, i64 %298
%300 = load i32, i32* %299
%301 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i32 %289, i32 %294, i32 %295, i32 %300)
br label %302
302: ; preds = %288, %276
br label %303
303: ; preds = %302
%304 = load i32, i32* %26
%305 = add nsw i32 %304, 1
store i32 %305, i32* %26
br label %272
306: ; preds = %272
%307 = load i32*, i32** %14
%308 = load i64*, i64** %20
%309 = load i32, i32* %7
%310 = call i32 @quicksort3way_i_(i32* %307, i64* %308, i32 %309, i32 1)
%311 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %27
br label %312
312: ; preds = %355, %306
%313 = load i32, i32* %27
%314 = load i32, i32* %7
%315 = icmp slt i32 %313, %314
br i1 %315, label %316, label %358
316: ; preds = %312
%317 = load i32*, i32** %14
%318 = load i64*, i64** %20
%319 = load i32, i32* %27
%320 = sext i32 %319 to i64
%321 = getelementptr inbounds i64, i64* %318, i64 %320
%322 = load i64, i64* %321
%323 = getelementptr inbounds i32, i32* %317, i64 %322
%324 = load i32, i32* %323
%325 = load i32*, i32** %12
%326 = load i32, i32* %27
%327 = sext i32 %326 to i64
%328 = getelementptr inbounds i32, i32* %325, i64 %327
%329 = load i32, i32* %328
%330 = icmp ne i32 %324, %329
br i1 %330, label %331, label %354
331: ; preds = %316
%332 = load i32, i32* %27
%333 = load i64*, i64** %20
%334 = load i32, i32* %27
%335 = sext i32 %334 to i64
%336 = getelementptr inbounds i64, i64* %333, i64 %335
%337 = load i64, i64* %336
%338 = load i32, i32* %27
%339 = load i32*, i32** %14
%340 = load i64*, i64** %20
%341 = load i32, i32* %27
%342 = sext i32 %341 to i64
%343 = getelementptr inbounds i64, i64* %340, i64 %342
%344 = load i64, i64* %343
%345 = getelementptr inbounds i32, i32* %339, i64 %344
%346 = load i32, i32* %345
%347 = load i32, i32* %27
%348 = load i32*, i32** %12
%349 = load i32, i32* %27
%350 = sext i32 %349 to i64
%351 = getelementptr inbounds i32, i32* %348, i64 %350
%352 = load i32, i32* %351
%353 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0), i32 %332, i64 %337, i32 %338, i32 %346, i32 %347, i32 %352)
br label %354
354: ; preds = %331, %316
br label %355
355: ; preds = %354
%356 = load i32, i32* %27
%357 = add nsw i32 %356, 1
store i32 %357, i32* %27
br label %312
358: ; preds = %312
%359 = load i32*, i32** %15
%360 = load i64*, i64** %21
%361 = load i32, i32* %7
%362 = call i32 @fr_quicksort3way_integer_i_(i32* %359, i64* %360, i32 %361, i32 1)
%363 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %28
br label %364
364: ; preds = %407, %358
%365 = load i32, i32* %28
%366 = load i32, i32* %7
%367 = icmp slt i32 %365, %366
br i1 %367, label %368, label %410
368: ; preds = %364
%369 = load i32*, i32** %15
%370 = load i64*, i64** %21
%371 = load i32, i32* %28
%372 = sext i32 %371 to i64
%373 = getelementptr inbounds i64, i64* %370, i64 %372
%374 = load i64, i64* %373
%375 = getelementptr inbounds i32, i32* %369, i64 %374
%376 = load i32, i32* %375
%377 = load i32*, i32** %12
%378 = load i32, i32* %28
%379 = sext i32 %378 to i64
%380 = getelementptr inbounds i32, i32* %377, i64 %379
%381 = load i32, i32* %380
%382 = icmp ne i32 %376, %381
br i1 %382, label %383, label %406
383: ; preds = %368
%384 = load i32, i32* %28
%385 = load i64*, i64** %21
%386 = load i32, i32* %28
%387 = sext i32 %386 to i64
%388 = getelementptr inbounds i64, i64* %385, i64 %387
%389 = load i64, i64* %388
%390 = load i32, i32* %28
%391 = load i32*, i32** %15
%392 = load i64*, i64** %21
%393 = load i32, i32* %28
%394 = sext i32 %393 to i64
%395 = getelementptr inbounds i64, i64* %392, i64 %394
%396 = load i64, i64* %395
%397 = getelementptr inbounds i32, i32* %391, i64 %396
%398 = load i32, i32* %397
%399 = load i32, i32* %28
%400 = load i32*, i32** %12
%401 = load i32, i32* %28
%402 = sext i32 %401 to i64
%403 = getelementptr inbounds i32, i32* %400, i64 %402
%404 = load i32, i32* %403
%405 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0), i32 %384, i64 %389, i32 %390, i32 %398, i32 %399, i32 %404)
br label %406
406: ; preds = %383, %368
br label %407
407: ; preds = %406
%408 = load i32, i32* %28
%409 = add nsw i32 %408, 1
store i32 %409, i32* %28
br label %364
410: ; preds = %364
%411 = load i32*, i32** %16
%412 = load i64*, i64** %22
%413 = load i32, i32* %7
%414 = call i32 @fr_quicksort3way_integer_i_(i32* %411, i64* %412, i32 %413, i32 20)
%415 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %29
br label %416
416: ; preds = %459, %410
%417 = load i32, i32* %29
%418 = load i32, i32* %7
%419 = icmp slt i32 %417, %418
br i1 %419, label %420, label %462
420: ; preds = %416
%421 = load i32*, i32** %16
%422 = load i64*, i64** %22
%423 = load i32, i32* %29
%424 = sext i32 %423 to i64
%425 = getelementptr inbounds i64, i64* %422, i64 %424
%426 = load i64, i64* %425
%427 = getelementptr inbounds i32, i32* %421, i64 %426
%428 = load i32, i32* %427
%429 = load i32*, i32** %12
%430 = load i32, i32* %29
%431 = sext i32 %430 to i64
%432 = getelementptr inbounds i32, i32* %429, i64 %431
%433 = load i32, i32* %432
%434 = icmp ne i32 %428, %433
br i1 %434, label %435, label %458
435: ; preds = %420
%436 = load i32, i32* %29
%437 = load i64*, i64** %22
%438 = load i32, i32* %29
%439 = sext i32 %438 to i64
%440 = getelementptr inbounds i64, i64* %437, i64 %439
%441 = load i64, i64* %440
%442 = load i32, i32* %29
%443 = load i32*, i32** %16
%444 = load i64*, i64** %22
%445 = load i32, i32* %29
%446 = sext i32 %445 to i64
%447 = getelementptr inbounds i64, i64* %444, i64 %446
%448 = load i64, i64* %447
%449 = getelementptr inbounds i32, i32* %443, i64 %448
%450 = load i32, i32* %449
%451 = load i32, i32* %29
%452 = load i32*, i32** %12
%453 = load i32, i32* %29
%454 = sext i32 %453 to i64
%455 = getelementptr inbounds i32, i32* %452, i64 %454
%456 = load i32, i32* %455
%457 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.11, i64 0, i64 0), i32 %436, i64 %441, i32 %442, i32 %450, i32 %451, i32 %456)
br label %458
458: ; preds = %435, %420
br label %459
459: ; preds = %458
%460 = load i32, i32* %29
%461 = add nsw i32 %460, 1
store i32 %461, i32* %29
br label %416
462: ; preds = %416
%463 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %30
br label %464
464: ; preds = %519, %462
%465 = load i32, i32* %30
%466 = load i32, i32* %7
%467 = icmp slt i32 %465, %466
br i1 %467, label %468, label %522
468: ; preds = %464
%469 = load i32*, i32** %16
%470 = load i64*, i64** %22
%471 = load i32, i32* %30
%472 = sext i32 %471 to i64
%473 = getelementptr inbounds i64, i64* %470, i64 %472
%474 = load i64, i64* %473
%475 = getelementptr inbounds i32, i32* %469, i64 %474
%476 = load i32, i32* %475
%477 = load i32*, i32** %11
%478 = load i64*, i64** %19
%479 = load i32, i32* %30
%480 = sext i32 %479 to i64
%481 = getelementptr inbounds i64, i64* %478, i64 %480
%482 = load i64, i64* %481
%483 = getelementptr inbounds i32, i32* %477, i64 %482
%484 = load i32, i32* %483
%485 = icmp ne i32 %476, %484
br i1 %485, label %486, label %518
486: ; preds = %468
%487 = load i32, i32* %30
%488 = load i64*, i64** %22
%489 = load i32, i32* %30
%490 = sext i32 %489 to i64
%491 = getelementptr inbounds i64, i64* %488, i64 %490
%492 = load i64, i64* %491
%493 = load i32, i32* %30
%494 = load i32*, i32** %16
%495 = load i64*, i64** %22
%496 = load i32, i32* %30
%497 = sext i32 %496 to i64
%498 = getelementptr inbounds i64, i64* %495, i64 %497
%499 = load i64, i64* %498
%500 = getelementptr inbounds i32, i32* %494, i64 %499
%501 = load i32, i32* %500
%502 = load i32, i32* %30
%503 = load i64*, i64** %19
%504 = load i32, i32* %30
%505 = sext i32 %504 to i64
%506 = getelementptr inbounds i64, i64* %503, i64 %505
%507 = load i64, i64* %506
%508 = load i32, i32* %30
%509 = load i32*, i32** %11
%510 = load i64*, i64** %19
%511 = load i32, i32* %30
%512 = sext i32 %511 to i64
%513 = getelementptr inbounds i64, i64* %510, i64 %512
%514 = load i64, i64* %513
%515 = getelementptr inbounds i32, i32* %509, i64 %514
%516 = load i32, i32* %515
%517 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.13, i64 0, i64 0), i32 %487, i64 %492, i32 %493, i32 %501, i32 %502, i64 %507, i32 %508, i32 %516)
br label %518
518: ; preds = %486, %468
br label %519
519: ; preds = %518
%520 = load i32, i32* %30
%521 = add nsw i32 %520, 1
store i32 %521, i32* %30
br label %464
522: ; preds = %464
store i32 40, i32* %31
%523 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %32
br label %524
524: ; preds = %607, %522
%525 = load i32, i32* %32
%526 = load i32, i32* %7
%527 = icmp slt i32 %525, %526
br i1 %527, label %528, label %610
528: ; preds = %524
%529 = load i32, i32* %32
%530 = icmp sgt i32 %529, 0
br i1 %530, label %531, label %552
531: ; preds = %528
%532 = load i32*, i32** %15
%533 = load i64*, i64** %21
%534 = load i32, i32* %32
%535 = sub nsw i32 %534, 1
%536 = sext i32 %535 to i64
%537 = getelementptr inbounds i64, i64* %533, i64 %536
%538 = load i64, i64* %537
%539 = getelementptr inbounds i32, i32* %532, i64 %538
%540 = load i32, i32* %539
%541 = load i32*, i32** %15
%542 = load i64*, i64** %21
%543 = load i32, i32* %32
%544 = sext i32 %543 to i64
%545 = getelementptr inbounds i64, i64* %542, i64 %544
%546 = load i64, i64* %545
%547 = getelementptr inbounds i32, i32* %541, i64 %546
%548 = load i32, i32* %547
%549 = icmp sgt i32 %540, %548
br i1 %549, label %550, label %552
550: ; preds = %531
%551 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
br label %552
552: ; preds = %550, %531, %528
%553 = load i32, i32* %32
%554 = icmp sgt i32 %553, 0
br i1 %554, label %555, label %579
555: ; preds = %552
%556 = load i32, i32* %32
%557 = icmp sle i32 %556, 40
br i1 %557, label %558, label %579
558: ; preds = %555
%559 = load i32*, i32** %15
%560 = load i64*, i64** %21
%561 = load i32, i32* %32
%562 = sub nsw i32 %561, 1
%563 = sext i32 %562 to i64
%564 = getelementptr inbounds i64, i64* %560, i64 %563
%565 = load i64, i64* %564
%566 = getelementptr inbounds i32, i32* %559, i64 %565
%567 = load i32, i32* %566
%568 = load i32*, i32** %15
%569 = load i64*, i64** %21
%570 = load i32, i32* %32
%571 = sext i32 %570 to i64
%572 = getelementptr inbounds i64, i64* %569, i64 %571
%573 = load i64, i64* %572
%574 = getelementptr inbounds i32, i32* %568, i64 %573
%575 = load i32, i32* %574
%576 = icmp eq i32 %567, %575
br i1 %576, label %577, label %579
577: ; preds = %558
%578 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
br label %579
579: ; preds = %577, %558, %555, %552
%580 = load i32, i32* %32
%581 = icmp slt i32 %580, 40
br i1 %581, label %582, label %592
582: ; preds = %579
%583 = load i32*, i32** %15
%584 = load i64*, i64** %21
%585 = load i32, i32* %32
%586 = sext i32 %585 to i64
%587 = getelementptr inbounds i64, i64* %584, i64 %586
%588 = load i64, i64* %587
%589 = getelementptr inbounds i32, i32* %583, i64 %588
%590 = load i32, i32* %589
%591 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i32 %590)
br label %606
592: ; preds = %579
%593 = load i32, i32* %32
%594 = icmp eq i32 %593, 40
br i1 %594, label %595, label %605
595: ; preds = %592
%596 = load i32*, i32** %15
%597 = load i64*, i64** %21
%598 = load i32, i32* %32
%599 = sext i32 %598 to i64
%600 = getelementptr inbounds i64, i64* %597, i64 %599
%601 = load i64, i64* %600
%602 = getelementptr inbounds i32, i32* %596, i64 %601
%603 = load i32, i32* %602
%604 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %603)
br label %605
605: ; preds = %595, %592
br label %606
606: ; preds = %605, %582
br label %607
607: ; preds = %606
%608 = load i32, i32* %32
%609 = add nsw i32 %608, 1
store i32 %609, i32* %32
br label %524
610: ; preds = %524
%611 = call i32 @putchar(i8 signext 10)
ret i32 0
}

LLVM IR (-O2):
@.str = [38 x i8] c"random vector: max: %d n: %d sum:\00"
@.str.1 = [4 x i8] c"%g\0A\00"
@.str.3 = [57 x i8] c"mismatch: indx[%d] = %d, w[indx[%d]] = %d x[%d] = %d\0A\00"
@.str.5 = [36 x i8] c"mismatch: x[%d] = %d y[%d] = %d\0A\00"
@.str.7 = [59 x i8] c"mismatch: indx2[%d] = %d, z[indx2[%d]] = %d x[%d] = %d\0A\00"
@.str.9 = [62 x i8] c"mismatch: indxza[%d] = %d, za[indxza[%d]] = %d x[%d] = %d\0A\00"
@.str.11 = [62 x i8] c"mismatch: indxzb[%d] = %d, zb[indxzb[%d]] = %d x[%d] = %d\0A\00"
@.str.13 = [80 x i8] c"mismatch: indxzb[%d] = %d, zb[indxzb[%d]] = %d indx[%d]=%d w[indx[%d]] = %d\0A\00"
@.str.14 = [5 x i8] c"za: \00"
@.str.15 = [6 x i8] c">>>> \00"
@.str.16 = [3 x i8] c"= \00"
@.str.17 = [4 x i8] c"%d \00"
@.str.18 = [4 x i8] c"...\00"
@str = [71 x i8] c"comparing fr_quicksortclassic_int_i_ w[] with quicksort3wayorig x[]...\00"
@str.19 = [58 x i8] c"comparing quicksort3wayorig x[] with quicksort3way y[]...\00"
@str.20 = [61 x i8] c"comparing quicksort3way_i_ z[] with quicksort3wayorig x[]...\00"
@str.21 = [81 x i8] c"comparing fr_quicksort3way_integer_i_(..., 1) za[] with quicksort3wayorig x[]...\00"
@str.22 = [82 x i8] c"comparing fr_quicksort3way_integer_i_(..., 20) zb[] with quicksort3wayorig x[]...\00"
@str.23 = [91 x i8] c"comparing fr_quicksort3way_integer_i_(..., 20) zb[] with fr_quicksortclassic_int_i_ w[]...\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 @time(i32* null)
%4 = tail call i32 @srand(i32 %3)
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @atoi(i8* %6)
%8 = getelementptr inbounds i8*, i8** %1, i64 2
%9 = load i8*, i8** %8
%10 = tail call i32 @atoi(i8* %9)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %10)
%12 = tail call i32* @vrandi(i32 10, i32 %7, i32 %10)
%13 = icmp sgt i32 %10, 0
br i1 %13, label %14, label %37
14: ; preds = %2
%15 = zext i32 %10 to i64
%16 = add nsw i64 %15, -1
%17 = and i64 %15, 3
%18 = icmp ult i64 %16, 3
br i1 %18, label %21, label %19
19: ; preds = %14
%20 = and i64 %15, 4294967292
br label %57
21: ; preds = %57, %14
%22 = phi double [ undef, %14 ], [ %79, %57 ]
%23 = phi i64 [ 0, %14 ], [ %80, %57 ]
%24 = phi double [ 0.000000e+00, %14 ], [ %79, %57 ]
%25 = icmp eq i64 %17, 0
br i1 %25, label %37, label %26
26: ; preds = %21, %26
%27 = phi i64 [ %34, %26 ], [ %23, %21 ]
%28 = phi double [ %33, %26 ], [ %24, %21 ]
%29 = phi i64 [ %35, %26 ], [ 0, %21 ]
%30 = getelementptr inbounds i32, i32* %12, i64 %27
%31 = load i32, i32* %30
%32 = sitofp i32 %31 to double
%33 = fadd double %28, %32
%34 = add nuw nsw i64 %27, 1
%35 = add i64 %29, 1
%36 = icmp eq i64 %35, %17
br i1 %36, label %37, label %26
37: ; preds = %21, %26, %2
%38 = phi double [ 0.000000e+00, %2 ], [ %22, %21 ], [ %33, %26 ]
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %38)
%40 = shl i32 %10, 2
%41 = tail call i64 @malloc(i32 %40)
%42 = inttoptr i64 %41 to i32*
%43 = tail call i64 @malloc(i32 %40)
%44 = inttoptr i64 %43 to i32*
%45 = tail call i64 @malloc(i32 %40)
%46 = inttoptr i64 %45 to i32*
%47 = tail call i64 @malloc(i32 %40)
%48 = inttoptr i64 %47 to i32*
%49 = tail call i64 @malloc(i32 %40)
%50 = inttoptr i64 %49 to i32*
%51 = tail call i64 @malloc(i32 %40)
%52 = inttoptr i64 %51 to i32*
%53 = tail call i64 @malloc(i32 %40)
%54 = inttoptr i64 %53 to i32*
br i1 %13, label %55, label %83
55: ; preds = %37
%56 = zext i32 %10 to i64
br label %102
57: ; preds = %57, %19
%58 = phi i64 [ 0, %19 ], [ %80, %57 ]
%59 = phi double [ 0.000000e+00, %19 ], [ %79, %57 ]
%60 = phi i64 [ 0, %19 ], [ %81, %57 ]
%61 = getelementptr inbounds i32, i32* %12, i64 %58
%62 = load i32, i32* %61
%63 = sitofp i32 %62 to double
%64 = fadd double %59, %63
%65 = or i64 %58, 1
%66 = getelementptr inbounds i32, i32* %12, i64 %65
%67 = load i32, i32* %66
%68 = sitofp i32 %67 to double
%69 = fadd double %64, %68
%70 = or i64 %58, 2
%71 = getelementptr inbounds i32, i32* %12, i64 %70
%72 = load i32, i32* %71
%73 = sitofp i32 %72 to double
%74 = fadd double %69, %73
%75 = or i64 %58, 3
%76 = getelementptr inbounds i32, i32* %12, i64 %75
%77 = load i32, i32* %76
%78 = sitofp i32 %77 to double
%79 = fadd double %74, %78
%80 = add nuw nsw i64 %58, 4
%81 = add i64 %60, 4
%82 = icmp eq i64 %81, %20
br i1 %82, label %21, label %57
83: ; preds = %102, %37
%84 = shl i32 %10, 3
%85 = tail call i64 @malloc(i32 %84)
%86 = inttoptr i64 %85 to i64*
%87 = tail call i64 @malloc(i32 %84)
%88 = inttoptr i64 %87 to i64*
%89 = tail call i64 @malloc(i32 %84)
%90 = inttoptr i64 %89 to i64*
%91 = tail call i64 @malloc(i32 %84)
%92 = inttoptr i64 %91 to i64*
%93 = tail call i64 @malloc(i32 %84)
%94 = inttoptr i64 %93 to i64*
%95 = icmp eq i32 %10, 0
br i1 %95, label %124, label %96
96: ; preds = %83
%97 = sext i32 %10 to i64
%98 = and i64 %97, 1
%99 = icmp eq i32 %10, 1
br i1 %99, label %115, label %100
100: ; preds = %96
%101 = and i64 %97, -2
br label %131
102: ; preds = %55, %102
%103 = phi i64 [ 0, %55 ], [ %113, %102 ]
%104 = getelementptr inbounds i32, i32* %12, i64 %103
%105 = load i32, i32* %104
%106 = getelementptr inbounds i32, i32* %42, i64 %103
store i32 %105, i32* %106
%107 = getelementptr inbounds i32, i32* %44, i64 %103
store i32 %105, i32* %107
%108 = getelementptr inbounds i32, i32* %46, i64 %103
store i32 %105, i32* %108
%109 = getelementptr inbounds i32, i32* %48, i64 %103
store i32 %105, i32* %109
%110 = getelementptr inbounds i32, i32* %50, i64 %103
store i32 %105, i32* %110
%111 = getelementptr inbounds i32, i32* %52, i64 %103
store i32 %105, i32* %111
%112 = getelementptr inbounds i32, i32* %54, i64 %103
store i32 %105, i32* %112
%113 = add nuw nsw i64 %103, 1
%114 = icmp eq i64 %113, %56
br i1 %114, label %83, label %102
115: ; preds = %131, %96
%116 = phi i64 [ 0, %96 ], [ %145, %131 ]
%117 = icmp eq i64 %98, 0
br i1 %117, label %124, label %118
118: ; preds = %115
%119 = getelementptr inbounds i64, i64* %86, i64 %116
store i64 %116, i64* %119
%120 = getelementptr inbounds i64, i64* %88, i64 %116
store i64 %116, i64* %120
%121 = getelementptr inbounds i64, i64* %90, i64 %116
store i64 %116, i64* %121
%122 = getelementptr inbounds i64, i64* %92, i64 %116
store i64 %116, i64* %122
%123 = getelementptr inbounds i64, i64* %94, i64 %116
store i64 %116, i64* %123
br label %124
124: ; preds = %118, %115, %83
%125 = tail call i32 @fr_quicksortclassic_int_i_(i32* %42, i64* %86, i32 %10, i32 1)
%126 = add nsw i32 %10, -1
%127 = tail call i32 @quicksort3wayorig(i32* %44, i32 0, i32 %126)
%128 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str, i64 0, i64 0))
br i1 %13, label %129, label %168
129: ; preds = %124
%130 = zext i32 %10 to i64
br label %153
131: ; preds = %131, %100
%132 = phi i64 [ 0, %100 ], [ %145, %131 ]
%133 = phi i64 [ 0, %100 ], [ %146, %131 ]
%134 = getelementptr inbounds i64, i64* %86, i64 %132
store i64 %132, i64* %134
%135 = getelementptr inbounds i64, i64* %88, i64 %132
store i64 %132, i64* %135
%136 = getelementptr inbounds i64, i64* %90, i64 %132
store i64 %132, i64* %136
%137 = getelementptr inbounds i64, i64* %92, i64 %132
store i64 %132, i64* %137
%138 = getelementptr inbounds i64, i64* %94, i64 %132
store i64 %132, i64* %138
%139 = or i64 %132, 1
%140 = getelementptr inbounds i64, i64* %86, i64 %139
store i64 %139, i64* %140
%141 = getelementptr inbounds i64, i64* %88, i64 %139
store i64 %139, i64* %141
%142 = getelementptr inbounds i64, i64* %90, i64 %139
store i64 %139, i64* %142
%143 = getelementptr inbounds i64, i64* %92, i64 %139
store i64 %139, i64* %143
%144 = getelementptr inbounds i64, i64* %94, i64 %139
store i64 %139, i64* %144
%145 = add nuw i64 %132, 2
%146 = add i64 %133, 2
%147 = icmp eq i64 %146, %101
br i1 %147, label %115, label %131
148: ; preds = %165
%149 = tail call i32 @quicksort3way(i32* %46, i32 %10)
%150 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.19, i64 0, i64 0))
br i1 %13, label %151, label %189
151: ; preds = %148
%152 = zext i32 %10 to i64
br label %176
153: ; preds = %129, %165
%154 = phi i64 [ 0, %129 ], [ %166, %165 ]
%155 = getelementptr inbounds i64, i64* %86, i64 %154
%156 = load i64, i64* %155
%157 = getelementptr inbounds i32, i32* %42, i64 %156
%158 = load i32, i32* %157
%159 = getelementptr inbounds i32, i32* %44, i64 %154
%160 = load i32, i32* %159
%161 = icmp eq i32 %158, %160
br i1 %161, label %165, label %162
162: ; preds = %153
%163 = trunc i64 %154 to i32
%164 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0), i32 %163, i64 %156, i32 %163, i32 %158, i32 %163, i32 %160)
br label %165
165: ; preds = %153, %162
%166 = add nuw nsw i64 %154, 1
%167 = icmp eq i64 %166, %130
br i1 %167, label %148, label %153
168: ; preds = %124
%169 = tail call i32 @quicksort3way(i32* %46, i32 %10)
%170 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.19, i64 0, i64 0))
br label %171
171: ; preds = %186, %168
%172 = tail call i32 @quicksort3way_i_(i32* %48, i64* %88, i32 %10, i32 1)
%173 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.20, i64 0, i64 0))
br i1 %13, label %174, label %212
174: ; preds = %171
%175 = zext i32 %10 to i64
br label %197
176: ; preds = %151, %186
%177 = phi i64 [ 0, %151 ], [ %187, %186 ]
%178 = getelementptr inbounds i32, i32* %44, i64 %177
%179 = load i32, i32* %178
%180 = getelementptr inbounds i32, i32* %46, i64 %177
%181 = load i32, i32* %180
%182 = icmp eq i32 %179, %181
br i1 %182, label %186, label %183
183: ; preds = %176
%184 = trunc i64 %177 to i32
%185 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i32 %184, i32 %179, i32 %184, i32 %181)
br label %186
186: ; preds = %176, %183
%187 = add nuw nsw i64 %177, 1
%188 = icmp eq i64 %187, %152
br i1 %188, label %171, label %176
189: ; preds = %148
%190 = tail call i32 @quicksort3way_i_(i32* %48, i64* %88, i32 %10, i32 1)
%191 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.20, i64 0, i64 0))
br label %192
192: ; preds = %209, %189
%193 = tail call i32 @fr_quicksort3way_integer_i_(i32* %50, i64* %90, i32 %10, i32 1)
%194 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.21, i64 0, i64 0))
br i1 %13, label %195, label %218
195: ; preds = %192
%196 = zext i32 %10 to i64
br label %225
197: ; preds = %174, %209
%198 = phi i64 [ 0, %174 ], [ %210, %209 ]
%199 = getelementptr inbounds i64, i64* %88, i64 %198
%200 = load i64, i64* %199
%201 = getelementptr inbounds i32, i32* %48, i64 %200
%202 = load i32, i32* %201
%203 = getelementptr inbounds i32, i32* %44, i64 %198
%204 = load i32, i32* %203
%205 = icmp eq i32 %202, %204
br i1 %205, label %209, label %206
206: ; preds = %197
%207 = trunc i64 %198 to i32
%208 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0), i32 %207, i64 %200, i32 %207, i32 %202, i32 %207, i32 %204)
br label %209
209: ; preds = %197, %206
%210 = add nuw nsw i64 %198, 1
%211 = icmp eq i64 %210, %175
br i1 %211, label %192, label %197
212: ; preds = %171
%213 = tail call i32 @fr_quicksort3way_integer_i_(i32* %50, i64* %90, i32 %10, i32 1)
%214 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.21, i64 0, i64 0))
br label %215
215: ; preds = %237, %212
%216 = tail call i32 @fr_quicksort3way_integer_i_(i32* %52, i64* %92, i32 %10, i32 20)
%217 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.22, i64 0, i64 0))
br i1 %13, label %223, label %221
218: ; preds = %192
%219 = tail call i32 @fr_quicksort3way_integer_i_(i32* %52, i64* %92, i32 %10, i32 20)
%220 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.22, i64 0, i64 0))
br label %221
221: ; preds = %218, %215
%222 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @str.23, i64 0, i64 0))
br label %259
223: ; preds = %215
%224 = zext i32 %10 to i64
br label %244
225: ; preds = %195, %237
%226 = phi i64 [ 0, %195 ], [ %238, %237 ]
%227 = getelementptr inbounds i64, i64* %90, i64 %226
%228 = load i64, i64* %227
%229 = getelementptr inbounds i32, i32* %50, i64 %228
%230 = load i32, i32* %229
%231 = getelementptr inbounds i32, i32* %44, i64 %226
%232 = load i32, i32* %231
%233 = icmp eq i32 %230, %232
br i1 %233, label %237, label %234
234: ; preds = %225
%235 = trunc i64 %226 to i32
%236 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0), i32 %235, i64 %228, i32 %235, i32 %230, i32 %235, i32 %232)
br label %237
237: ; preds = %225, %234
%238 = add nuw nsw i64 %226, 1
%239 = icmp eq i64 %238, %196
br i1 %239, label %215, label %225
240: ; preds = %256
%241 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @str.23, i64 0, i64 0))
br i1 %13, label %242, label %259
242: ; preds = %240
%243 = zext i32 %10 to i64
br label %271
244: ; preds = %223, %256
%245 = phi i64 [ 0, %223 ], [ %257, %256 ]
%246 = getelementptr inbounds i64, i64* %92, i64 %245
%247 = load i64, i64* %246
%248 = getelementptr inbounds i32, i32* %52, i64 %247
%249 = load i32, i32* %248
%250 = getelementptr inbounds i32, i32* %44, i64 %245
%251 = load i32, i32* %250
%252 = icmp eq i32 %249, %251
br i1 %252, label %256, label %253
253: ; preds = %244
%254 = trunc i64 %245 to i32
%255 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.11, i64 0, i64 0), i32 %254, i64 %247, i32 %254, i32 %249, i32 %254, i32 %251)
br label %256
256: ; preds = %244, %253
%257 = add nuw nsw i64 %245, 1
%258 = icmp eq i64 %257, %224
br i1 %258, label %240, label %244
259: ; preds = %221, %240
%260 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
br label %288
261: ; preds = %285
%262 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
br i1 %13, label %263, label %288
263: ; preds = %261
%264 = getelementptr inbounds i64, i64* %90, i64 40
%265 = zext i32 %10 to i64
%266 = load i64, i64* %90
%267 = getelementptr inbounds i32, i32* %50, i64 %266
%268 = load i32, i32* %267
%269 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i32 %268)
%270 = icmp eq i32 %10, 1
br i1 %270, label %288, label %290
271: ; preds = %242, %285
%272 = phi i64 [ 0, %242 ], [ %286, %285 ]
%273 = getelementptr inbounds i64, i64* %92, i64 %272
%274 = load i64, i64* %273
%275 = getelementptr inbounds i32, i32* %52, i64 %274
%276 = load i32, i32* %275
%277 = getelementptr inbounds i64, i64* %86, i64 %272
%278 = load i64, i64* %277
%279 = getelementptr inbounds i32, i32* %42, i64 %278
%280 = load i32, i32* %279
%281 = icmp eq i32 %276, %280
br i1 %281, label %285, label %282
282: ; preds = %271
%283 = trunc i64 %272 to i32
%284 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @.str.13, i64 0, i64 0), i32 %283, i64 %274, i32 %283, i32 %276, i32 %283, i64 %278, i32 %283, i32 %280)
br label %285
285: ; preds = %271, %282
%286 = add nuw nsw i64 %272, 1
%287 = icmp eq i64 %286, %243
br i1 %287, label %261, label %271
288: ; preds = %330, %263, %259, %261
%289 = tail call i32 @putchar(i8 signext 10)
ret i32 0
290: ; preds = %263, %330
%291 = phi i64 [ %331, %330 ], [ 1, %263 ]
%292 = add nsw i64 %291, -1
%293 = and i64 %292, 4294967295
%294 = getelementptr inbounds i64, i64* %90, i64 %293
%295 = load i64, i64* %294
%296 = getelementptr inbounds i32, i32* %50, i64 %295
%297 = load i32, i32* %296
%298 = getelementptr inbounds i64, i64* %90, i64 %291
%299 = load i64, i64* %298
%300 = getelementptr inbounds i32, i32* %50, i64 %299
%301 = load i32, i32* %300
%302 = icmp sgt i32 %297, %301
br i1 %302, label %303, label %305
303: ; preds = %290
%304 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
br label %305
305: ; preds = %303, %290
%306 = icmp ult i64 %292, 40
br i1 %306, label %307, label %317
307: ; preds = %305
%308 = load i64, i64* %294
%309 = getelementptr inbounds i32, i32* %50, i64 %308
%310 = load i32, i32* %309
%311 = load i64, i64* %298
%312 = getelementptr inbounds i32, i32* %50, i64 %311
%313 = load i32, i32* %312
%314 = icmp eq i32 %310, %313
br i1 %314, label %315, label %317
315: ; preds = %307
%316 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
br label %317
317: ; preds = %315, %307, %305
%318 = icmp ult i64 %291, 40
br i1 %318, label %319, label %321
319: ; preds = %317
%320 = getelementptr inbounds i64, i64* %90, i64 %291
br label %323
321: ; preds = %317
%322 = icmp eq i64 %291, 40
br i1 %322, label %323, label %330
323: ; preds = %321, %319
%324 = phi i64* [ %320, %319 ], [ %264, %321 ]
%325 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), %319 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), %321 ]
%326 = load i64, i64* %324
%327 = getelementptr inbounds i32, i32* %50, i64 %326
%328 = load i32, i32* %327
%329 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %325, i32 %328)
br label %330
330: ; preds = %323, %321
%331 = add nuw nsw i64 %291, 1
%332 = icmp eq i64 %331, %265
br i1 %332, label %288, label %290
}