void dist_4v_allt_from_m1234_v1(int *m1_t, int *m2_t, int *m3_t, int *m4_t,
                                int *m1_p, int *m2_p, int *m3_p, int *m4_p,
                                char *m1_s, char *m2_s, char *m3_s, char *m4_s,
                                int n1, int n2, int n3, int n4, int **ovdi,
                                int *n, int min_dist, int max_dist,
                                int n_transcripts, int *ml, int get_positions,
                                int order_constraint, int max_n_transcripts,
                                int max_n_ovdi, int pos_format, int verbose) {
  int **ovdi12;
  int **ovdi123;
  int max_n_ovdi12 = 500000;
  int max_n_ovdi123 = 100000;
  int nout12[4];
  int nout123[4];
  int nout1234[4];
  int n12;
  int n123;
  int get_positions12 = 1;
  int max_n_transcripts12 = -1;
  int max_n_transcripts123 = -1;
  int errorcode = 0;
  int i, j;
  ovdi12 = imatrix(1, max_n_ovdi12, 1, 7);
  ovdi123 = imatrix(1, max_n_ovdi123, 1, 10);
  if (verbose)
    printf("dist_4v_allt_from_m1234_v1\tmax_dist=%d\tmin_dist=%d\tmax_n_"
           "transcripts=%d\n",
           max_dist, min_dist, max_n_transcripts);
  if (verbose) {
    printf("motif 1 (%d): ", n1);
    for (i = 1; i <= n1; i++)
      printf("%d %d %d,", m1_t[i], m1_p[i], m1_s[i]);
    printf("\n");
    printf("motif 2 (%d): ", n2);
    for (i = 1; i <= n2; i++)
      printf("%d % d %d,", m2_t[i], m2_p[i], m2_s[i]);
    printf("\n");
  }
  dist_2v_allt_v2(m1_t, m2_t, m1_p, m2_p, m1_s, m2_s, n1, n2, ovdi12, nout12,
                  min_dist, max_dist, n_transcripts, ml, get_positions12,
                  order_constraint, max_n_transcripts12, max_n_ovdi12,
                  pos_format, 0);
  errorcode += nout12[2];
  if (nout12[2] < 0) {
    n12 = nout12[3];
  } else {
    n12 = nout12[0];
  }
  if (verbose) {
    printf("ovdi12 (%d)\n", n12);
    for (i = 1; i <= n12; i++)
      printf("%d %d %d %d %d\n", ovdi12[i][1], ovdi12[i][2], ovdi12[i][3],
             ovdi12[i][6], ovdi12[i][7]);
    printf("motif 3 (%d): ", n3);
    for (i = 1; i <= n3; i++)
      printf("%d % d %d,", m3_t[i], m3_p[i], m3_s[i]);
    printf("\n");
  }
  dist_3v_allt_v3(ovdi12, m3_t, m3_p, m3_s, n12, n3, ovdi123, nout123, min_dist,
                  max_dist, n_transcripts, ml, get_positions, order_constraint,
                  max_n_transcripts123, max_n_ovdi123, pos_format, verbose);
  errorcode += nout123[2];
  if (nout123[2] < 0) {
    n123 = nout123[3];
    if (verbose)
      printf("ERROR!\tcooc_single_lib.c\tdist_4v_allt_from_m1234_v1\tdist_3v_"
             "allt_v3\tnout123[2]=%d\tn123=%d\n",
             nout123[2], n123);
  } else {
    n123 = nout123[0];
  }
  if (verbose) {
    printf("ovdi123 (%d)\n", n123);
    for (i = 1; i <= n123; i++)
      printf("%d %d %d %d %d %d %d\n", ovdi123[i][1], ovdi123[i][2],
             ovdi123[i][3], ovdi123[i][4], ovdi123[i][8], ovdi123[i][9],
             ovdi123[i][10]);
    printf("motif 4 (%d): ", n4);
    for (i = 1; i <= n4; i++)
      printf("%d % d %d,", m4_t[i], m4_p[i], m4_s[i]);
    printf("\n");
  }
  dist_4v_allt_v3(ovdi123, m4_t, m4_p, m4_s, n123, n4, ovdi, nout1234, min_dist,
                  max_dist, n_transcripts, ml, get_positions, order_constraint,
                  max_n_transcripts, max_n_ovdi, pos_format);
  n[0] = nout1234[0];
  n[1] = nout1234[1];
  errorcode += nout1234[2];
  n[2] = errorcode;
  n[3] = nout1234[3];
  if (verbose) {
    printf("ovdi1234 (%d)\n", n[0]);
    for (i = 1; i <= n[0]; i++)
      printf("%d %d %d %d %d %d %d %d %d\n", ovdi[i][1], ovdi[i][2], ovdi[i][3],
             ovdi[i][4], ovdi[i][5], ovdi[i][10], ovdi[i][11], ovdi[i][12],
             ovdi[i][13], ovdi[i][14]);
  }
  free_imatrix(ovdi12, 1, max_n_ovdi12, 1, 7);
  free_imatrix(ovdi123, 1, max_n_ovdi123, 1, 10);
}


x86 assembly (clang, -O0):
<dist_4v_allt_from_m1234_v1>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x168,%rsp
mov    0xb8(%rbp),%eax
mov    0xb0(%rbp),%eax
mov    0xa8(%rbp),%eax
mov    0xa0(%rbp),%eax
mov    0x98(%rbp),%eax
mov    0x90(%rbp),%eax
mov    0x88(%rbp),%rax
mov    0x80(%rbp),%eax
mov    0x78(%rbp),%eax
mov    0x70(%rbp),%eax
mov    0x68(%rbp),%rax
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%eax
mov    0x50(%rbp),%eax
mov    0x48(%rbp),%eax
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %rcx,-0x48(%rbp)
mov    %r8,-0x50(%rbp)
mov    %r9,-0x58(%rbp)
movl   $0x7a120,-0x6c(%rbp)
movl   $0x186a0,-0x70(%rbp)
movl   $0x1,-0xac(%rbp)
movl   $0xffffffff,-0xb0(%rbp)
ff ff ff
movl   $0xffffffff,-0xb4(%rbp)
ff ff ff
movl   $0x0,-0xb8(%rbp)
mov    -0x6c(%rbp),%esi
mov    $0x1,%edx
mov    $0x7,%ecx
mov    %edx,%edi
mov    $0x0,%al
call   1040 <imatrix@plt>
cltq
mov    %rax,-0x60(%rbp)
mov    -0x70(%rbp),%esi
mov    $0x1,%edx
mov    $0xa,%ecx
mov    %edx,%edi
mov    $0x0,%al
call   1040 <imatrix@plt>
cltq
mov    %rax,-0x68(%rbp)
cmpl   $0x0,0xb8(%rbp)
je     1284 <dist_4v_allt_from_m1234_v1+0x124>
mov    0x78(%rbp),%esi
mov    0x70(%rbp),%edx
mov    0xa0(%rbp),%ecx
lea    0xd83(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x0,0xb8(%rbp)
je     139b <dist_4v_allt_from_m1234_v1+0x23b>
mov    0x40(%rbp),%esi
lea    0xdae(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0xbc(%rbp)
mov    -0xbc(%rbp),%eax
cmp    0x40(%rbp),%eax
jg     1308 <dist_4v_allt_from_m1234_v1+0x1a8>
mov    -0x30(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    -0x50(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    0x20(%rbp),%rax
movslq -0xbc(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
lea    0xd6b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
jmp    12ac <dist_4v_allt_from_m1234_v1+0x14c>
lea    0xd78(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x48(%rbp),%esi
lea    0xd42(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0xbc(%rbp)
mov    -0xbc(%rbp),%eax
cmp    0x48(%rbp),%eax
jg     138d <dist_4v_allt_from_m1234_v1+0x22d>
mov    -0x38(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    -0x58(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    0x28(%rbp),%rax
movslq -0xbc(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
lea    0xcff(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
jmp    1331 <dist_4v_allt_from_m1234_v1+0x1d1>
lea    0xcf3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x58(%rbp),%rcx
mov    0x20(%rbp),%r8
mov    0x28(%rbp),%r9
mov    0x40(%rbp),%eax
mov    %eax,-0xe0(%rbp)
mov    0x48(%rbp),%eax
mov    %eax,-0xdc(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0xd8(%rbp)
lea    -0x80(%rbp),%rax
mov    %rax,-0xd0(%rbp)
mov    0x70(%rbp),%eax
mov    %eax,-0xc8(%rbp)
mov    0x78(%rbp),%r13d
mov    0x80(%rbp),%r12d
mov    0x88(%rbp),%r15
mov    -0xac(%rbp),%r14d
mov    0x98(%rbp),%ebx
mov    -0xb0(%rbp),%r11d
mov    -0x6c(%rbp),%r10d
mov    0xb0(%rbp),%eax
mov    %eax,-0xc4(%rbp)
xor    %eax,%eax
mov    -0xe0(%rbp),%eax
mov    %eax,(%rsp)
mov    -0xdc(%rbp),%eax
mov    %eax,0x8(%rsp)
mov    -0xd8(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0xd0(%rbp),%rax
mov    %rax,0x18(%rsp)
mov    -0xc8(%rbp),%eax
mov    %eax,0x20(%rsp)
mov    -0xc4(%rbp),%eax
mov    %r13d,0x28(%rsp)
mov    %r12d,0x30(%rsp)
mov    %r15,0x38(%rsp)
mov    %r14d,0x40(%rsp)
mov    %ebx,0x48(%rsp)
mov    %r11d,0x50(%rsp)
mov    %r10d,0x58(%rsp)
mov    %eax,0x60(%rsp)
movl   $0x0,0x68(%rsp)
mov    $0x0,%al
call   1030 <dist_2v_allt_v2@plt>
mov    -0x78(%rbp),%eax
add    -0xb8(%rbp),%eax
mov    %eax,-0xb8(%rbp)
cmpl   $0x0,-0x78(%rbp)
jge    14b3 <dist_4v_allt_from_m1234_v1+0x353>
mov    -0x74(%rbp),%eax
mov    %eax,-0xa4(%rbp)
jmp    14bc <dist_4v_allt_from_m1234_v1+0x35c>
mov    -0x80(%rbp),%eax
mov    %eax,-0xa4(%rbp)
cmpl   $0x0,0xb8(%rbp)
je     15fc <dist_4v_allt_from_m1234_v1+0x49c>
mov    -0xa4(%rbp),%esi
lea    0xba6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0xbc(%rbp)
mov    -0xbc(%rbp),%eax
cmp    -0xa4(%rbp),%eax
jg     1577 <dist_4v_allt_from_m1234_v1+0x417>
mov    -0x60(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x4(%rax),%esi
mov    -0x60(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x8(%rax),%edx
mov    -0x60(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0xc(%rax),%ecx
mov    -0x60(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,8),%rax
mov    0x18(%rax),%r8d
mov    -0x60(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,8),%rax
mov    0x1c(%rax),%r9d
lea    0xbcf(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
jmp    14e7 <dist_4v_allt_from_m1234_v1+0x387>
mov    0x50(%rbp),%esi
lea    0xb08(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0xbc(%rbp)
mov    -0xbc(%rbp),%eax
cmp    0x50(%rbp),%eax
jg     15ee <dist_4v_allt_from_m1234_v1+0x48e>
mov    -0x40(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    0x10(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    0x30(%rbp),%rax
movslq -0xbc(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
lea    0xa9e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
jmp    1592 <dist_4v_allt_from_m1234_v1+0x432>
lea    0xa92(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x60(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    0x10(%rbp),%rdx
mov    0x30(%rbp),%rcx
mov    -0xa4(%rbp),%r8d
mov    0x50(%rbp),%r9d
mov    -0x68(%rbp),%rax
mov    %rax,-0x100(%rbp)
lea    -0x90(%rbp),%rax
mov    %rax,-0xf8(%rbp)
mov    0x70(%rbp),%eax
mov    %eax,-0xec(%rbp)
mov    0x78(%rbp),%eax
mov    %eax,-0xe8(%rbp)
mov    0x80(%rbp),%r13d
mov    0x88(%rbp),%r12
mov    0x90(%rbp),%r15d
mov    0x98(%rbp),%r14d
mov    -0xb4(%rbp),%ebx
mov    -0x70(%rbp),%r11d
mov    0xb0(%rbp),%r10d
mov    0xb8(%rbp),%eax
mov    %eax,-0xe4(%rbp)
mov    -0x100(%rbp),%rax
mov    %rax,(%rsp)
mov    -0xf8(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0xec(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    -0xe8(%rbp),%eax
mov    %eax,0x18(%rsp)
mov    -0xe4(%rbp),%eax
mov    %r13d,0x20(%rsp)
mov    %r12,0x28(%rsp)
mov    %r15d,0x30(%rsp)
mov    %r14d,0x38(%rsp)
mov    %ebx,0x40(%rsp)
mov    %r11d,0x48(%rsp)
mov    %r10d,0x50(%rsp)
mov    %eax,0x58(%rsp)
mov    $0x0,%al
call   1080 <dist_3v_allt_v3@plt>
mov    -0x88(%rbp),%eax
add    -0xb8(%rbp),%eax
mov    %eax,-0xb8(%rbp)
cmpl   $0x0,-0x88(%rbp)
jge    1730 <dist_4v_allt_from_m1234_v1+0x5d0>
mov    -0x84(%rbp),%eax
mov    %eax,-0xa8(%rbp)
cmpl   $0x0,0xb8(%rbp)
je     172b <dist_4v_allt_from_m1234_v1+0x5cb>
mov    -0x88(%rbp),%esi
mov    -0xa8(%rbp),%edx
lea    0x974(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    173c <dist_4v_allt_from_m1234_v1+0x5dc>
mov    -0x90(%rbp),%eax
mov    %eax,-0xa8(%rbp)
cmpl   $0x0,0xb8(%rbp)
je     18a9 <dist_4v_allt_from_m1234_v1+0x749>
mov    -0xa8(%rbp),%esi
lea    0x99d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0xbc(%rbp)
mov    -0xbc(%rbp),%eax
cmp    -0xa8(%rbp),%eax
jg     1824 <dist_4v_allt_from_m1234_v1+0x6c4>
mov    -0x68(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x4(%rax),%esi
mov    -0x68(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x8(%rax),%edx
mov    -0x68(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0xc(%rax),%ecx
mov    -0x68(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,8),%rax
mov    0x10(%rax),%r8d
mov    -0x68(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,8),%rax
mov    0x20(%rax),%r9d
mov    -0x68(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,8),%rax
mov    0x24(%rax),%r10d
mov    -0x68(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,8),%rax
mov    0x28(%rax),%eax
lea    0x924(%rip),%rdi
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
jmp    1767 <dist_4v_allt_from_m1234_v1+0x607>
mov    0x58(%rbp),%esi
lea    0x8d3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0xbc(%rbp)
mov    -0xbc(%rbp),%eax
cmp    0x58(%rbp),%eax
jg     189b <dist_4v_allt_from_m1234_v1+0x73b>
mov    -0x48(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    0x18(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    0x38(%rbp),%rax
movslq -0xbc(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
lea    0x7f1(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
jmp    183f <dist_4v_allt_from_m1234_v1+0x6df>
lea    0x7e5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x68(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    0x18(%rbp),%rdx
mov    0x38(%rbp),%rcx
mov    -0xa8(%rbp),%r8d
mov    0x58(%rbp),%r9d
mov    0x60(%rbp),%rax
mov    %rax,-0x118(%rbp)
lea    -0xa0(%rbp),%rax
mov    %rax,-0x110(%rbp)
mov    0x70(%rbp),%eax
mov    %eax,-0x108(%rbp)
mov    0x78(%rbp),%r13d
mov    0x80(%rbp),%r12d
mov    0x88(%rbp),%r15
mov    0x90(%rbp),%r14d
mov    0x98(%rbp),%ebx
mov    0xa0(%rbp),%r11d
mov    0xa8(%rbp),%r10d
mov    0xb0(%rbp),%eax
mov    %eax,-0x104(%rbp)
mov    -0x118(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x110(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x108(%rbp),%eax
mov    %eax,0x10(%rsp)
mov    -0x104(%rbp),%eax
mov    %r13d,0x18(%rsp)
mov    %r12d,0x20(%rsp)
mov    %r15,0x28(%rsp)
mov    %r14d,0x30(%rsp)
mov    %ebx,0x38(%rsp)
mov    %r11d,0x40(%rsp)
mov    %r10d,0x48(%rsp)
mov    %eax,0x50(%rsp)
mov    $0x0,%al
call   1050 <dist_4v_allt_v3@plt>
mov    -0xa0(%rbp),%ecx
mov    0x68(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x9c(%rbp),%ecx
mov    0x68(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x98(%rbp),%eax
add    -0xb8(%rbp),%eax
mov    %eax,-0xb8(%rbp)
mov    -0xb8(%rbp),%ecx
mov    0x68(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x94(%rbp),%ecx
mov    0x68(%rbp),%rax
mov    %ecx,0xc(%rax)
cmpl   $0x0,0xb8(%rbp)
je     1aeb <dist_4v_allt_from_m1234_v1+0x98b>
mov    0x68(%rbp),%rax
mov    (%rax),%esi
lea    0x73e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x1,-0xbc(%rbp)
mov    -0xbc(%rbp),%eax
mov    0x68(%rbp),%rcx
cmp    (%rcx),%eax
jg     1ae6 <dist_4v_allt_from_m1234_v1+0x986>
mov    0x60(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x4(%rax),%esi
mov    0x60(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x8(%rax),%edx
mov    0x60(%rbp),%rax
movslq -0xbc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0xc(%rax),%ecx
mov    0x60(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,8),%rax
mov    0x10(%rax),%r8d
mov    0x60(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,8),%rax
mov    0x14(%rax),%r9d
mov    0x60(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,8),%rax
mov    0x28(%rax),%r14d
mov    0x60(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,8),%rax
mov    0x2c(%rax),%ebx
mov    0x60(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,8),%rax
mov    0x30(%rax),%r11d
mov    0x60(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,8),%rax
mov    0x34(%rax),%r10d
mov    0x60(%rbp),%rax
movslq -0xbc(%rbp),%rdi
mov    (%rax,%rdi,8),%rax
mov    0x38(%rax),%eax
lea    0x66a(%rip),%rdi
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
jmp    19e3 <dist_4v_allt_from_m1234_v1+0x883>
jmp    1aeb <dist_4v_allt_from_m1234_v1+0x98b>
mov    -0x60(%rbp),%rdi
mov    -0x6c(%rbp),%edx
mov    $0x1,%ecx
mov    $0x7,%r8d
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <free_imatrix@plt>
mov    -0x68(%rbp),%rdi
mov    -0x70(%rbp),%edx
mov    $0x1,%ecx
mov    $0xa,%r8d
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <free_imatrix@plt>
add    $0x168,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<dist_4v_allt_from_m1234_v1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,0x38(%rsp)
mov    %rdx,0x10(%rsp)
mov    %rsi,%rbp
mov    %rdi,%r13
mov    0x128(%rsp),%ebx
mov    $0x1,%edi
mov    $0x7a120,%esi
mov    $0x1,%edx
mov    $0x7,%ecx
xor    %eax,%eax
call   1050 <imatrix@plt>
movslq %eax,%r12
mov    $0x1,%edi
mov    $0x186a0,%esi
mov    $0x1,%edx
mov    $0xa,%ecx
xor    %eax,%eax
call   1050 <imatrix@plt>
mov    0x120(%rsp),%r10d
mov    0x168(%rsp),%ecx
test   %ecx,%ecx
mov    %r12,0x28(%rsp)
je     1333 <dist_4v_allt_from_m1234_v1+0x1c3>
mov    %eax,0x34(%rsp)
mov    %rbp,0x20(%rsp)
mov    %r14,0x18(%rsp)
lea    0xdf8(%rip),%rdi
mov    %ebx,%esi
mov    %r10d,%edx
mov    0x150(%rsp),%ecx
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xe27(%rip),%rdi
mov    0xf0(%rsp),%ebx
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
test   %ebx,%ebx
mov    0xd0(%rsp),%r14
jle    1281 <dist_4v_allt_from_m1234_v1+0x111>
mov    0xf0(%rsp),%eax
lea    0x1(%rax),%r12d
mov    $0x1,%ebp
lea    0xe03(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x0(%r13,%rbp,4),%esi
mov    (%r15,%rbp,4),%edx
movsbl (%r14,%rbp,1),%ecx
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r12
jne    1260 <dist_4v_allt_from_m1234_v1+0xf0>
mov    %r13,0x68(%rsp)
mov    %r15,0x8(%rsp)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdc6(%rip),%rdi
mov    0xf8(%rsp),%ebx
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
test   %ebx,%ebx
mov    0x18(%rsp),%r15
mov    0xd8(%rsp),%r14
mov    0x20(%rsp),%r13
jle    1301 <dist_4v_allt_from_m1234_v1+0x191>
mov    0xf8(%rsp),%eax
lea    0x1(%rax),%ebp
mov    $0x1,%ebx
lea    0xd99(%rip),%r12
nopl   0x0(%rax,%rax,1)
mov    0x0(%r13,%rbx,4),%esi
mov    (%r15,%rbx,4),%edx
movsbl (%r14,%rbx,1),%ecx
mov    %r12,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    12e0 <dist_4v_allt_from_m1234_v1+0x170>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x28(%rsp),%r12
mov    0x120(%rsp),%r10d
mov    0x128(%rsp),%ebx
mov    %r15,%r14
mov    0x8(%rsp),%r15
mov    %r13,%rbp
mov    0x68(%rsp),%r13
mov    0x34(%rsp),%eax
cltq
mov    %rax,0x18(%rsp)
lea    0x70(%rsp),%r11
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
mov    0xd0(%rsp),%r8
mov    0xd8(%rsp),%r9
xor    %eax,%eax
push   $0x0
mov    0x168(%rsp),%ebp
push   %rbp
push   $0x7a120
push   $0xffffffffffffffff
mov    0x168(%rsp),%ebp
push   %rbp
push   $0x1
push   0x168(%rsp)
mov    0x168(%rsp),%ebp
push   %rbp
push   %rbx
push   %r10
mov    %r11,%rbx
push   %r11
push   %r12
mov    0x158(%rsp),%ebp
push   %rbp
mov    0x158(%rsp),%ebp
push   %rbp
call   1040 <dist_2v_allt_v2@plt>
add    $0x70,%rsp
mov    0x78(%rsp),%r14d
test   %r14d,%r14d
lea    0x7c(%rsp),%rax
cmovns %rbx,%rax
mov    (%rax),%ebx
mov    0x168(%rsp),%r15d
test   %r15d,%r15d
je     14b2 <dist_4v_allt_from_m1234_v1+0x342>
mov    %r14d,0x8(%rsp)
lea    0xca2(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,0x20(%rsp)
test   %ebx,%ebx
jle    1428 <dist_4v_allt_from_m1234_v1+0x2b8>
mov    0x20(%rsp),%rax
lea    0x1(%rax),%ebx
mov    $0x1,%ebp
lea    0xd2b(%rip),%r14
mov    (%r12,%rbp,8),%rax
mov    0x4(%rax),%esi
mov    0x8(%rax),%edx
mov    0xc(%rax),%ecx
mov    0x18(%rax),%r8d
mov    0x1c(%rax),%r9d
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1400 <dist_4v_allt_from_m1234_v1+0x290>
lea    0xc5a(%rip),%rdi
mov    0x100(%rsp),%ebx
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
test   %ebx,%ebx
mov    0x10(%rsp),%r13
mov    0xe0(%rsp),%r15
mov    0xc0(%rsp),%r12
jle    1491 <dist_4v_allt_from_m1234_v1+0x321>
mov    0x100(%rsp),%eax
lea    0x1(%rax),%ebx
mov    $0x1,%ebp
lea    0xc03(%rip),%r14
xchg   %ax,%ax
mov    0x0(%r13,%rbp,4),%esi
mov    (%r12,%rbp,4),%edx
movsbl (%r15,%rbp,1),%ecx
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1470 <dist_4v_allt_from_m1234_v1+0x300>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x8(%rsp),%r14d
mov    0x168(%rsp),%r15d
mov    0x28(%rsp),%r12
mov    0x20(%rsp),%rbx
mov    0x118(%rsp),%r13
lea    0x50(%rsp),%rbp
mov    %r12,%rdi
mov    0x10(%rsp),%rsi
mov    0xc0(%rsp),%rdx
mov    0xe0(%rsp),%rcx
mov    %ebx,%r8d
mov    0x100(%rsp),%r9d
xor    %eax,%eax
push   %r15
mov    0x168(%rsp),%ebx
push   %rbx
push   $0x186a0
push   $0xffffffffffffffff
mov    0x168(%rsp),%ebx
push   %rbx
mov    0x168(%rsp),%ebx
push   %rbx
push   0x168(%rsp)
mov    0x168(%rsp),%ebx
push   %rbx
mov    0x168(%rsp),%ebx
push   %rbx
mov    0x168(%rsp),%r12d
push   %r12
push   %rbp
mov    0x70(%rsp),%rbp
push   %rbp
call   1090 <dist_3v_allt_v3@plt>
add    $0x60,%rsp
mov    0x58(%rsp),%esi
add    %esi,%r14d
test   %esi,%esi
js     1550 <dist_4v_allt_from_m1234_v1+0x3e0>
mov    0x50(%rsp),%r8d
test   %r15d,%r15d
jne    1575 <dist_4v_allt_from_m1234_v1+0x405>
jmp    168c <dist_4v_allt_from_m1234_v1+0x51c>
mov    0x5c(%rsp),%r8d
test   %r15d,%r15d
je     168c <dist_4v_allt_from_m1234_v1+0x51c>
lea    0xb33(%rip),%rdi
mov    %r8d,%edx
xor    %eax,%eax
mov    %r8,%rbx
call   1070 <printf@plt>
mov    %rbx,%r8
mov    %r14d,0x8(%rsp)
lea    0xb72(%rip),%rdi
mov    %r8d,%esi
xor    %eax,%eax
mov    %r8,%rbx
call   1070 <printf@plt>
mov    %rbx,0x10(%rsp)
test   %ebx,%ebx
jle    15e4 <dist_4v_allt_from_m1234_v1+0x474>
mov    %rbp,%r14
mov    0x10(%rsp),%rax
lea    0x1(%rax),%r15d
mov    $0x1,%r12d
lea    0xb75(%rip),%r13
mov    (%r14,%r12,8),%rax
mov    0x4(%rax),%esi
mov    0x8(%rax),%edx
mov    0xc(%rax),%ecx
mov    0x10(%rax),%r8d
mov    0x20(%rax),%r9d
mov    0x24(%rax),%ebp
mov    0x28(%rax),%ebx
mov    %r13,%rdi
xor    %eax,%eax
push   %rbx
push   %rbp
call   1070 <printf@plt>
add    $0x10,%rsp
add    $0x1,%r12
cmp    %r12,%r15
jne    15b0 <dist_4v_allt_from_m1234_v1+0x440>
lea    0xb16(%rip),%rdi
mov    0x108(%rsp),%ebx
mov    %ebx,%esi
xor    %eax,%eax
call   1070 <printf@plt>
test   %ebx,%ebx
mov    0x38(%rsp),%r15
mov    0xe8(%rsp),%r14
mov    0xc8(%rsp),%r13
jle    1651 <dist_4v_allt_from_m1234_v1+0x4e1>
mov    0x108(%rsp),%eax
lea    0x1(%rax),%ebx
mov    $0x1,%ebp
lea    0xa47(%rip),%r12
nopw   0x0(%rax,%rax,1)
mov    (%r15,%rbp,4),%esi
mov    0x0(%r13,%rbp,4),%edx
movsbl (%r14,%rbp,1),%ecx
mov    %r12,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1630 <dist_4v_allt_from_m1234_v1+0x4c0>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x168(%rsp),%r15d
mov    0x120(%rsp),%r13d
mov    %r13,%r12
mov    0x128(%rsp),%ebx
mov    0x18(%rsp),%rbp
mov    0x8(%rsp),%r14d
mov    0x118(%rsp),%r13
mov    0x10(%rsp),%r8
sub    $0x8,%rsp
lea    0x48(%rsp),%r10
mov    %rbp,%rdi
mov    0x40(%rsp),%rsi
mov    0xd0(%rsp),%rdx
mov    0xf0(%rsp),%rcx
mov    0x110(%rsp),%r9d
xor    %eax,%eax
mov    0x168(%rsp),%ebp
push   %rbp
mov    0x168(%rsp),%ebp
push   %rbp
mov    0x168(%rsp),%ebp
push   %rbp
mov    0x168(%rsp),%ebp
push   %rbp
mov    0x168(%rsp),%ebp
push   %rbp
push   0x168(%rsp)
mov    0x168(%rsp),%ebp
push   %rbp
push   %rbx
push   %r12
push   %r10
mov    0x168(%rsp),%rbx
push   %rbx
call   1060 <dist_4v_allt_v3@plt>
add    $0x60,%rsp
mov    0x40(%rsp),%esi
mov    %esi,0x0(%r13)
mov    0x44(%rsp),%eax
mov    %eax,0x4(%r13)
add    0x48(%rsp),%r14d
mov    %r14d,0x8(%r13)
mov    0x4c(%rsp),%eax
mov    %eax,0xc(%r13)
test   %r15d,%r15d
je     17a9 <dist_4v_allt_from_m1234_v1+0x639>
lea    0x9de(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
cmpl   $0x0,0x0(%r13)
jle    17a9 <dist_4v_allt_from_m1234_v1+0x639>
lea    0x9d8(%rip),%r14
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    0x8(%rbx,%rbp,8),%rax
mov    0x4(%rax),%esi
mov    0x8(%rax),%edx
mov    0xc(%rax),%ecx
mov    0x10(%rax),%r8d
mov    0x14(%rax),%r9d
mov    0x28(%rax),%r10d
mov    0x2c(%rax),%r11d
mov    0x30(%rax),%r15d
mov    0x34(%rax),%r12d
mov    0x38(%rax),%ebx
sub    $0x8,%rsp
mov    %r14,%rdi
xor    %eax,%eax
push   %rbx
mov    0x120(%rsp),%rbx
push   %r12
push   %r15
push   %r11
push   %r10
call   1070 <printf@plt>
add    $0x30,%rsp
movslq 0x0(%r13),%rax
add    $0x1,%rbp
cmp    %rax,%rbp
jl     1750 <dist_4v_allt_from_m1234_v1+0x5e0>
mov    0x28(%rsp),%rdi
mov    $0x1,%esi
mov    $0x7a120,%edx
mov    $0x1,%ecx
mov    $0x7,%r8d
xor    %eax,%eax
call   1080 <free_imatrix@plt>
mov    0x18(%rsp),%rdi
mov    $0x1,%esi
mov    $0x186a0,%edx
mov    $0x1,%ecx
mov    $0xa,%r8d
xor    %eax,%eax
call   1080 <free_imatrix@plt>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [73 x i8] c"dist_4v_allt_from_m1234_v1\09max_dist=%d\09min_dist=%d\09max_n_transcripts=%d\0A\00"
@.str.1 = [15 x i8] c"motif 1 (%d): \00"
@.str.2 = [10 x i8] c"%d %d %d,\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [15 x i8] c"motif 2 (%d): \00"
@.str.5 = [11 x i8] c"%d % d %d,\00"
@.str.6 = [13 x i8] c"ovdi12 (%d)\0A\00"
@.str.7 = [16 x i8] c"%d %d %d %d %d\0A\00"
@.str.8 = [15 x i8] c"motif 3 (%d): \00"
@.str.9 = [91 x i8] c"ERROR!\09cooc_single_lib.c\09dist_4v_allt_from_m1234_v1\09dist_3v_allt_v3\09nout123[2]=%d\09n123=%d\0A\00"
@.str.10 = [14 x i8] c"ovdi123 (%d)\0A\00"
@.str.11 = [22 x i8] c"%d %d %d %d %d %d %d\0A\00"
@.str.12 = [15 x i8] c"motif 4 (%d): \00"
@.str.13 = [15 x i8] c"ovdi1234 (%d)\0A\00"
@.str.14 = [28 x i8] c"%d %d %d %d %d %d %d %d %d\0A\00"
define void @dist_4v_allt_from_m1234_v1(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i8* %8, i8* %9, i8* %10, i8* %11, i32 %12, i32 %13, i32 %14, i32 %15, i32** %16, i32* %17, i32 %18, i32 %19, i32 %20, i32* %21, i32 %22, i32 %23, i32 %24, i32 %25, i32 %26, i32 %27) {
%29 = alloca i32*
%30 = alloca i32*
%31 = alloca i32*
%32 = alloca i32*
%33 = alloca i32*
%34 = alloca i32*
%35 = alloca i32*
%36 = alloca i32*
%37 = alloca i8*
%38 = alloca i8*
%39 = alloca i8*
%40 = alloca i8*
%41 = alloca i32
%42 = alloca i32
%43 = alloca i32
%44 = alloca i32
%45 = alloca i32**
%46 = alloca i32*
%47 = alloca i32
%48 = alloca i32
%49 = alloca i32
%50 = alloca i32*
%51 = alloca i32
%52 = alloca i32
%53 = alloca i32
%54 = alloca i32
%55 = alloca i32
%56 = alloca i32
%57 = alloca i32**
%58 = alloca i32**
%59 = alloca i32
%60 = alloca i32
%61 = alloca [4 x i32]
%62 = alloca [4 x i32]
%63 = alloca [4 x i32]
%64 = alloca i32
%65 = alloca i32
%66 = alloca i32
%67 = alloca i32
%68 = alloca i32
%69 = alloca i32
%70 = alloca i32
%71 = alloca i32
store i32* %0, i32** %29
store i32* %1, i32** %30
store i32* %2, i32** %31
store i32* %3, i32** %32
store i32* %4, i32** %33
store i32* %5, i32** %34
store i32* %6, i32** %35
store i32* %7, i32** %36
store i8* %8, i8** %37
store i8* %9, i8** %38
store i8* %10, i8** %39
store i8* %11, i8** %40
store i32 %12, i32* %41
store i32 %13, i32* %42
store i32 %14, i32* %43
store i32 %15, i32* %44
store i32** %16, i32*** %45
store i32* %17, i32** %46
store i32 %18, i32* %47
store i32 %19, i32* %48
store i32 %20, i32* %49
store i32* %21, i32** %50
store i32 %22, i32* %51
store i32 %23, i32* %52
store i32 %24, i32* %53
store i32 %25, i32* %54
store i32 %26, i32* %55
store i32 %27, i32* %56
store i32 500000, i32* %59
store i32 100000, i32* %60
store i32 1, i32* %66
store i32 -1, i32* %67
store i32 -1, i32* %68
store i32 0, i32* %69
%72 = load i32, i32* %59
%73 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @imatrix to i32 (i32, i32, i32, i32, ...)*)(i32 1, i32 %72, i32 1, i32 7)
%74 = sext i32 %73 to i64
%75 = inttoptr i64 %74 to i32**
store i32** %75, i32*** %57
%76 = load i32, i32* %60
%77 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @imatrix to i32 (i32, i32, i32, i32, ...)*)(i32 1, i32 %76, i32 1, i32 10)
%78 = sext i32 %77 to i64
%79 = inttoptr i64 %78 to i32**
store i32** %79, i32*** %58
%80 = load i32, i32* %56
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %87
82: ; preds = %28
%83 = load i32, i32* %48
%84 = load i32, i32* %47
%85 = load i32, i32* %53
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i32 %83, i32 %84, i32 %85)
br label %87
87: ; preds = %82, %28
%88 = load i32, i32* %56
%89 = icmp ne i32 %88, 0
br i1 %89, label %90, label %149
90: ; preds = %87
%91 = load i32, i32* %41
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %91)
store i32 1, i32* %70
br label %93
93: ; preds = %115, %90
%94 = load i32, i32* %70
%95 = load i32, i32* %41
%96 = icmp sle i32 %94, %95
br i1 %96, label %97, label %118
97: ; preds = %93
%98 = load i32*, i32** %29
%99 = load i32, i32* %70
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, i32* %98, i64 %100
%102 = load i32, i32* %101
%103 = load i32*, i32** %33
%104 = load i32, i32* %70
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i32, i32* %103, i64 %105
%107 = load i32, i32* %106
%108 = load i8*, i8** %37
%109 = load i32, i32* %70
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* %108, i64 %110
%112 = load i8, i8* %111
%113 = sext i8 %112 to i32
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %102, i32 %107, i32 %113)
br label %115
115: ; preds = %97
%116 = load i32, i32* %70
%117 = add nsw i32 %116, 1
store i32 %117, i32* %70
br label %93
118: ; preds = %93
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%120 = load i32, i32* %42
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %120)
store i32 1, i32* %70
br label %122
122: ; preds = %144, %118
%123 = load i32, i32* %70
%124 = load i32, i32* %42
%125 = icmp sle i32 %123, %124
br i1 %125, label %126, label %147
126: ; preds = %122
%127 = load i32*, i32** %30
%128 = load i32, i32* %70
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i32, i32* %127, i64 %129
%131 = load i32, i32* %130
%132 = load i32*, i32** %34
%133 = load i32, i32* %70
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i32, i32* %132, i64 %134
%136 = load i32, i32* %135
%137 = load i8*, i8** %38
%138 = load i32, i32* %70
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds i8, i8* %137, i64 %139
%141 = load i8, i8* %140
%142 = sext i8 %141 to i32
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 %131, i32 %136, i32 %142)
br label %144
144: ; preds = %126
%145 = load i32, i32* %70
%146 = add nsw i32 %145, 1
store i32 %146, i32* %70
br label %122
147: ; preds = %122
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %149
149: ; preds = %147, %87
%150 = load i32*, i32** %29
%151 = load i32*, i32** %30
%152 = load i32*, i32** %33
%153 = load i32*, i32** %34
%154 = load i8*, i8** %37
%155 = load i8*, i8** %38
%156 = load i32, i32* %41
%157 = load i32, i32* %42
%158 = load i32**, i32*** %57
%159 = getelementptr inbounds [4 x i32], [4 x i32]* %61, i64 0, i64 0
%160 = load i32, i32* %47
%161 = load i32, i32* %48
%162 = load i32, i32* %49
%163 = load i32*, i32** %50
%164 = load i32, i32* %66
%165 = load i32, i32* %52
%166 = load i32, i32* %67
%167 = load i32, i32* %59
%168 = load i32, i32* %55
%169 = call i32 (i32*, i32*, i32*, i32*, i8*, i8*, i32, i32, i32**, i32*, i32, i32, i32, i32*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @dist_2v_allt_v2 to i32 (i32*, i32*, i32*, i32*, i8*, i8*, i32, i32, i32**, i32*, i32, i32, i32, i32*, i32, i32, i32, i32, i32, i32, ...)*)(i32* %150, i32* %151, i32* %152, i32* %153, i8* %154, i8* %155, i32 %156, i32 %157, i32** %158, i32* %159, i32 %160, i32 %161, i32 %162, i32* %163, i32 %164, i32 %165, i32 %166, i32 %167, i32 %168, i32 0)
%170 = getelementptr inbounds [4 x i32], [4 x i32]* %61, i64 0, i64 2
%171 = load i32, i32* %170
%172 = load i32, i32* %69
%173 = add nsw i32 %172, %171
store i32 %173, i32* %69
%174 = getelementptr inbounds [4 x i32], [4 x i32]* %61, i64 0, i64 2
%175 = load i32, i32* %174
%176 = icmp slt i32 %175, 0
br i1 %176, label %177, label %180
177: ; preds = %149
%178 = getelementptr inbounds [4 x i32], [4 x i32]* %61, i64 0, i64 3
%179 = load i32, i32* %178
store i32 %179, i32* %64
br label %183
180: ; preds = %149
%181 = getelementptr inbounds [4 x i32], [4 x i32]* %61, i64 0, i64 0
%182 = load i32, i32* %181
store i32 %182, i32* %64
br label %183
183: ; preds = %180, %177
%184 = load i32, i32* %56
%185 = icmp ne i32 %184, 0
br i1 %185, label %186, label %263
186: ; preds = %183
%187 = load i32, i32* %64
%188 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %187)
store i32 1, i32* %70
br label %189
189: ; preds = %230, %186
%190 = load i32, i32* %70
%191 = load i32, i32* %64
%192 = icmp sle i32 %190, %191
br i1 %192, label %193, label %233
193: ; preds = %189
%194 = load i32**, i32*** %57
%195 = load i32, i32* %70
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds i32*, i32** %194, i64 %196
%198 = load i32*, i32** %197
%199 = getelementptr inbounds i32, i32* %198, i64 1
%200 = load i32, i32* %199
%201 = load i32**, i32*** %57
%202 = load i32, i32* %70
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds i32*, i32** %201, i64 %203
%205 = load i32*, i32** %204
%206 = getelementptr inbounds i32, i32* %205, i64 2
%207 = load i32, i32* %206
%208 = load i32**, i32*** %57
%209 = load i32, i32* %70
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds i32*, i32** %208, i64 %210
%212 = load i32*, i32** %211
%213 = getelementptr inbounds i32, i32* %212, i64 3
%214 = load i32, i32* %213
%215 = load i32**, i32*** %57
%216 = load i32, i32* %70
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds i32*, i32** %215, i64 %217
%219 = load i32*, i32** %218
%220 = getelementptr inbounds i32, i32* %219, i64 6
%221 = load i32, i32* %220
%222 = load i32**, i32*** %57
%223 = load i32, i32* %70
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds i32*, i32** %222, i64 %224
%226 = load i32*, i32** %225
%227 = getelementptr inbounds i32, i32* %226, i64 7
%228 = load i32, i32* %227
%229 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 %200, i32 %207, i32 %214, i32 %221, i32 %228)
br label %230
230: ; preds = %193
%231 = load i32, i32* %70
%232 = add nsw i32 %231, 1
store i32 %232, i32* %70
br label %189
233: ; preds = %189
%234 = load i32, i32* %43
%235 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %234)
store i32 1, i32* %70
br label %236
236: ; preds = %258, %233
%237 = load i32, i32* %70
%238 = load i32, i32* %43
%239 = icmp sle i32 %237, %238
br i1 %239, label %240, label %261
240: ; preds = %236
%241 = load i32*, i32** %31
%242 = load i32, i32* %70
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds i32, i32* %241, i64 %243
%245 = load i32, i32* %244
%246 = load i32*, i32** %35
%247 = load i32, i32* %70
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds i32, i32* %246, i64 %248
%250 = load i32, i32* %249
%251 = load i8*, i8** %39
%252 = load i32, i32* %70
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds i8, i8* %251, i64 %253
%255 = load i8, i8* %254
%256 = sext i8 %255 to i32
%257 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 %245, i32 %250, i32 %256)
br label %258
258: ; preds = %240
%259 = load i32, i32* %70
%260 = add nsw i32 %259, 1
store i32 %260, i32* %70
br label %236
261: ; preds = %236
%262 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %263
263: ; preds = %261, %183
%264 = load i32**, i32*** %57
%265 = load i32*, i32** %31
%266 = load i32*, i32** %35
%267 = load i8*, i8** %39
%268 = load i32, i32* %64
%269 = load i32, i32* %43
%270 = load i32**, i32*** %58
%271 = getelementptr inbounds [4 x i32], [4 x i32]* %62, i64 0, i64 0
%272 = load i32, i32* %47
%273 = load i32, i32* %48
%274 = load i32, i32* %49
%275 = load i32*, i32** %50
%276 = load i32, i32* %51
%277 = load i32, i32* %52
%278 = load i32, i32* %68
%279 = load i32, i32* %60
%280 = load i32, i32* %55
%281 = load i32, i32* %56
%282 = call i32 (i32**, i32*, i32*, i8*, i32, i32, i32**, i32*, i32, i32, i32, i32*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @dist_3v_allt_v3 to i32 (i32**, i32*, i32*, i8*, i32, i32, i32**, i32*, i32, i32, i32, i32*, i32, i32, i32, i32, i32, i32, ...)*)(i32** %264, i32* %265, i32* %266, i8* %267, i32 %268, i32 %269, i32** %270, i32* %271, i32 %272, i32 %273, i32 %274, i32* %275, i32 %276, i32 %277, i32 %278, i32 %279, i32 %280, i32 %281)
%283 = getelementptr inbounds [4 x i32], [4 x i32]* %62, i64 0, i64 2
%284 = load i32, i32* %283
%285 = load i32, i32* %69
%286 = add nsw i32 %285, %284
store i32 %286, i32* %69
%287 = getelementptr inbounds [4 x i32], [4 x i32]* %62, i64 0, i64 2
%288 = load i32, i32* %287
%289 = icmp slt i32 %288, 0
br i1 %289, label %290, label %301
290: ; preds = %263
%291 = getelementptr inbounds [4 x i32], [4 x i32]* %62, i64 0, i64 3
%292 = load i32, i32* %291
store i32 %292, i32* %65
%293 = load i32, i32* %56
%294 = icmp ne i32 %293, 0
br i1 %294, label %295, label %300
295: ; preds = %290
%296 = getelementptr inbounds [4 x i32], [4 x i32]* %62, i64 0, i64 2
%297 = load i32, i32* %296
%298 = load i32, i32* %65
%299 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.9, i64 0, i64 0), i32 %297, i32 %298)
br label %300
300: ; preds = %295, %290
br label %304
301: ; preds = %263
%302 = getelementptr inbounds [4 x i32], [4 x i32]* %62, i64 0, i64 0
%303 = load i32, i32* %302
store i32 %303, i32* %65
br label %304
304: ; preds = %301, %300
%305 = load i32, i32* %56
%306 = icmp ne i32 %305, 0
br i1 %306, label %307, label %398
307: ; preds = %304
%308 = load i32, i32* %65
%309 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i32 %308)
store i32 1, i32* %70
br label %310
310: ; preds = %365, %307
%311 = load i32, i32* %70
%312 = load i32, i32* %65
%313 = icmp sle i32 %311, %312
br i1 %313, label %314, label %368
314: ; preds = %310
%315 = load i32**, i32*** %58
%316 = load i32, i32* %70
%317 = sext i32 %316 to i64
%318 = getelementptr inbounds i32*, i32** %315, i64 %317
%319 = load i32*, i32** %318
%320 = getelementptr inbounds i32, i32* %319, i64 1
%321 = load i32, i32* %320
%322 = load i32**, i32*** %58
%323 = load i32, i32* %70
%324 = sext i32 %323 to i64
%325 = getelementptr inbounds i32*, i32** %322, i64 %324
%326 = load i32*, i32** %325
%327 = getelementptr inbounds i32, i32* %326, i64 2
%328 = load i32, i32* %327
%329 = load i32**, i32*** %58
%330 = load i32, i32* %70
%331 = sext i32 %330 to i64
%332 = getelementptr inbounds i32*, i32** %329, i64 %331
%333 = load i32*, i32** %332
%334 = getelementptr inbounds i32, i32* %333, i64 3
%335 = load i32, i32* %334
%336 = load i32**, i32*** %58
%337 = load i32, i32* %70
%338 = sext i32 %337 to i64
%339 = getelementptr inbounds i32*, i32** %336, i64 %338
%340 = load i32*, i32** %339
%341 = getelementptr inbounds i32, i32* %340, i64 4
%342 = load i32, i32* %341
%343 = load i32**, i32*** %58
%344 = load i32, i32* %70
%345 = sext i32 %344 to i64
%346 = getelementptr inbounds i32*, i32** %343, i64 %345
%347 = load i32*, i32** %346
%348 = getelementptr inbounds i32, i32* %347, i64 8
%349 = load i32, i32* %348
%350 = load i32**, i32*** %58
%351 = load i32, i32* %70
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds i32*, i32** %350, i64 %352
%354 = load i32*, i32** %353
%355 = getelementptr inbounds i32, i32* %354, i64 9
%356 = load i32, i32* %355
%357 = load i32**, i32*** %58
%358 = load i32, i32* %70
%359 = sext i32 %358 to i64
%360 = getelementptr inbounds i32*, i32** %357, i64 %359
%361 = load i32*, i32** %360
%362 = getelementptr inbounds i32, i32* %361, i64 10
%363 = load i32, i32* %362
%364 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %321, i32 %328, i32 %335, i32 %342, i32 %349, i32 %356, i32 %363)
br label %365
365: ; preds = %314
%366 = load i32, i32* %70
%367 = add nsw i32 %366, 1
store i32 %367, i32* %70
br label %310
368: ; preds = %310
%369 = load i32, i32* %44
%370 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32 %369)
store i32 1, i32* %70
br label %371
371: ; preds = %393, %368
%372 = load i32, i32* %70
%373 = load i32, i32* %44
%374 = icmp sle i32 %372, %373
br i1 %374, label %375, label %396
375: ; preds = %371
%376 = load i32*, i32** %32
%377 = load i32, i32* %70
%378 = sext i32 %377 to i64
%379 = getelementptr inbounds i32, i32* %376, i64 %378
%380 = load i32, i32* %379
%381 = load i32*, i32** %36
%382 = load i32, i32* %70
%383 = sext i32 %382 to i64
%384 = getelementptr inbounds i32, i32* %381, i64 %383
%385 = load i32, i32* %384
%386 = load i8*, i8** %40
%387 = load i32, i32* %70
%388 = sext i32 %387 to i64
%389 = getelementptr inbounds i8, i8* %386, i64 %388
%390 = load i8, i8* %389
%391 = sext i8 %390 to i32
%392 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 %380, i32 %385, i32 %391)
br label %393
393: ; preds = %375
%394 = load i32, i32* %70
%395 = add nsw i32 %394, 1
store i32 %395, i32* %70
br label %371
396: ; preds = %371
%397 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %398
398: ; preds = %396, %304
%399 = load i32**, i32*** %58
%400 = load i32*, i32** %32
%401 = load i32*, i32** %36
%402 = load i8*, i8** %40
%403 = load i32, i32* %65
%404 = load i32, i32* %44
%405 = load i32**, i32*** %45
%406 = getelementptr inbounds [4 x i32], [4 x i32]* %63, i64 0, i64 0
%407 = load i32, i32* %47
%408 = load i32, i32* %48
%409 = load i32, i32* %49
%410 = load i32*, i32** %50
%411 = load i32, i32* %51
%412 = load i32, i32* %52
%413 = load i32, i32* %53
%414 = load i32, i32* %54
%415 = load i32, i32* %55
%416 = call i32 (i32**, i32*, i32*, i8*, i32, i32, i32**, i32*, i32, i32, i32, i32*, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @dist_4v_allt_v3 to i32 (i32**, i32*, i32*, i8*, i32, i32, i32**, i32*, i32, i32, i32, i32*, i32, i32, i32, i32, i32, ...)*)(i32** %399, i32* %400, i32* %401, i8* %402, i32 %403, i32 %404, i32** %405, i32* %406, i32 %407, i32 %408, i32 %409, i32* %410, i32 %411, i32 %412, i32 %413, i32 %414, i32 %415)
%417 = getelementptr inbounds [4 x i32], [4 x i32]* %63, i64 0, i64 0
%418 = load i32, i32* %417
%419 = load i32*, i32** %46
%420 = getelementptr inbounds i32, i32* %419, i64 0
store i32 %418, i32* %420
%421 = getelementptr inbounds [4 x i32], [4 x i32]* %63, i64 0, i64 1
%422 = load i32, i32* %421
%423 = load i32*, i32** %46
%424 = getelementptr inbounds i32, i32* %423, i64 1
store i32 %422, i32* %424
%425 = getelementptr inbounds [4 x i32], [4 x i32]* %63, i64 0, i64 2
%426 = load i32, i32* %425
%427 = load i32, i32* %69
%428 = add nsw i32 %427, %426
store i32 %428, i32* %69
%429 = load i32, i32* %69
%430 = load i32*, i32** %46
%431 = getelementptr inbounds i32, i32* %430, i64 2
store i32 %429, i32* %431
%432 = getelementptr inbounds [4 x i32], [4 x i32]* %63, i64 0, i64 3
%433 = load i32, i32* %432
%434 = load i32*, i32** %46
%435 = getelementptr inbounds i32, i32* %434, i64 3
store i32 %433, i32* %435
%436 = load i32, i32* %56
%437 = icmp ne i32 %436, 0
br i1 %437, label %438, label %525
438: ; preds = %398
%439 = load i32*, i32** %46
%440 = getelementptr inbounds i32, i32* %439, i64 0
%441 = load i32, i32* %440
%442 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i32 %441)
store i32 1, i32* %70
br label %443
443: ; preds = %521, %438
%444 = load i32, i32* %70
%445 = load i32*, i32** %46
%446 = getelementptr inbounds i32, i32* %445, i64 0
%447 = load i32, i32* %446
%448 = icmp sle i32 %444, %447
br i1 %448, label %449, label %524
449: ; preds = %443
%450 = load i32**, i32*** %45
%451 = load i32, i32* %70
%452 = sext i32 %451 to i64
%453 = getelementptr inbounds i32*, i32** %450, i64 %452
%454 = load i32*, i32** %453
%455 = getelementptr inbounds i32, i32* %454, i64 1
%456 = load i32, i32* %455
%457 = load i32**, i32*** %45
%458 = load i32, i32* %70
%459 = sext i32 %458 to i64
%460 = getelementptr inbounds i32*, i32** %457, i64 %459
%461 = load i32*, i32** %460
%462 = getelementptr inbounds i32, i32* %461, i64 2
%463 = load i32, i32* %462
%464 = load i32**, i32*** %45
%465 = load i32, i32* %70
%466 = sext i32 %465 to i64
%467 = getelementptr inbounds i32*, i32** %464, i64 %466
%468 = load i32*, i32** %467
%469 = getelementptr inbounds i32, i32* %468, i64 3
%470 = load i32, i32* %469
%471 = load i32**, i32*** %45
%472 = load i32, i32* %70
%473 = sext i32 %472 to i64
%474 = getelementptr inbounds i32*, i32** %471, i64 %473
%475 = load i32*, i32** %474
%476 = getelementptr inbounds i32, i32* %475, i64 4
%477 = load i32, i32* %476
%478 = load i32**, i32*** %45
%479 = load i32, i32* %70
%480 = sext i32 %479 to i64
%481 = getelementptr inbounds i32*, i32** %478, i64 %480
%482 = load i32*, i32** %481
%483 = getelementptr inbounds i32, i32* %482, i64 5
%484 = load i32, i32* %483
%485 = load i32**, i32*** %45
%486 = load i32, i32* %70
%487 = sext i32 %486 to i64
%488 = getelementptr inbounds i32*, i32** %485, i64 %487
%489 = load i32*, i32** %488
%490 = getelementptr inbounds i32, i32* %489, i64 10
%491 = load i32, i32* %490
%492 = load i32**, i32*** %45
%493 = load i32, i32* %70
%494 = sext i32 %493 to i64
%495 = getelementptr inbounds i32*, i32** %492, i64 %494
%496 = load i32*, i32** %495
%497 = getelementptr inbounds i32, i32* %496, i64 11
%498 = load i32, i32* %497
%499 = load i32**, i32*** %45
%500 = load i32, i32* %70
%501 = sext i32 %500 to i64
%502 = getelementptr inbounds i32*, i32** %499, i64 %501
%503 = load i32*, i32** %502
%504 = getelementptr inbounds i32, i32* %503, i64 12
%505 = load i32, i32* %504
%506 = load i32**, i32*** %45
%507 = load i32, i32* %70
%508 = sext i32 %507 to i64
%509 = getelementptr inbounds i32*, i32** %506, i64 %508
%510 = load i32*, i32** %509
%511 = getelementptr inbounds i32, i32* %510, i64 13
%512 = load i32, i32* %511
%513 = load i32**, i32*** %45
%514 = load i32, i32* %70
%515 = sext i32 %514 to i64
%516 = getelementptr inbounds i32*, i32** %513, i64 %515
%517 = load i32*, i32** %516
%518 = getelementptr inbounds i32, i32* %517, i64 14
%519 = load i32, i32* %518
%520 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i32 %456, i32 %463, i32 %470, i32 %477, i32 %484, i32 %491, i32 %498, i32 %505, i32 %512, i32 %519)
br label %521
521: ; preds = %449
%522 = load i32, i32* %70
%523 = add nsw i32 %522, 1
store i32 %523, i32* %70
br label %443
524: ; preds = %443
br label %525
525: ; preds = %524, %398
%526 = load i32**, i32*** %57
%527 = load i32, i32* %59
%528 = call i32 (i32**, i32, i32, i32, i32, ...) bitcast (i32 (...)* @free_imatrix to i32 (i32**, i32, i32, i32, i32, ...)*)(i32** %526, i32 1, i32 %527, i32 1, i32 7)
%529 = load i32**, i32*** %58
%530 = load i32, i32* %60
%531 = call i32 (i32**, i32, i32, i32, i32, ...) bitcast (i32 (...)* @free_imatrix to i32 (i32**, i32, i32, i32, i32, ...)*)(i32** %529, i32 1, i32 %530, i32 1, i32 10)
ret void
}

LLVM IR (-O2):
@.str = [73 x i8] c"dist_4v_allt_from_m1234_v1\09max_dist=%d\09min_dist=%d\09max_n_transcripts=%d\0A\00"
@.str.1 = [15 x i8] c"motif 1 (%d): \00"
@.str.2 = [10 x i8] c"%d %d %d,\00"
@.str.4 = [15 x i8] c"motif 2 (%d): \00"
@.str.5 = [11 x i8] c"%d % d %d,\00"
@.str.6 = [13 x i8] c"ovdi12 (%d)\0A\00"
@.str.7 = [16 x i8] c"%d %d %d %d %d\0A\00"
@.str.8 = [15 x i8] c"motif 3 (%d): \00"
@.str.9 = [91 x i8] c"ERROR!\09cooc_single_lib.c\09dist_4v_allt_from_m1234_v1\09dist_3v_allt_v3\09nout123[2]=%d\09n123=%d\0A\00"
@.str.10 = [14 x i8] c"ovdi123 (%d)\0A\00"
@.str.11 = [22 x i8] c"%d %d %d %d %d %d %d\0A\00"
@.str.12 = [15 x i8] c"motif 4 (%d): \00"
@.str.13 = [15 x i8] c"ovdi1234 (%d)\0A\00"
@.str.14 = [28 x i8] c"%d %d %d %d %d %d %d %d %d\0A\00"
define void @dist_4v_allt_from_m1234_v1(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i8* %8, i8* %9, i8* %10, i8* %11, i32 %12, i32 %13, i32 %14, i32 %15, i32** %16, i32* nocapture %17, i32 %18, i32 %19, i32 %20, i32* %21, i32 %22, i32 %23, i32 %24, i32 %25, i32 %26, i32 %27) {
%29 = alloca [4 x i32]
%30 = alloca [4 x i32]
%31 = alloca [4 x i32]
%32 = bitcast [4 x i32]* %29 to i8*
%33 = bitcast [4 x i32]* %30 to i8*
%34 = bitcast [4 x i32]* %31 to i8*
%35 = tail call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @imatrix to i32 (i32, i32, i32, i32, ...)*)(i32 1, i32 500000, i32 1, i32 7)
%36 = sext i32 %35 to i64
%37 = inttoptr i64 %36 to i32**
%38 = tail call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @imatrix to i32 (i32, i32, i32, i32, ...)*)(i32 1, i32 100000, i32 1, i32 10)
%39 = sext i32 %38 to i64
%40 = inttoptr i64 %39 to i32**
%41 = icmp eq i32 %27, 0
br i1 %41, label %82, label %42
42: ; preds = %28
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i32 %19, i32 %18, i32 %24)
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%45 = icmp slt i32 %12, 1
br i1 %45, label %61, label %46
46: ; preds = %42
%47 = add nuw i32 %12, 1
%48 = zext i32 %47 to i64
br label %49
49: ; preds = %46, %49
%50 = phi i64 [ 1, %46 ], [ %59, %49 ]
%51 = getelementptr inbounds i32, i32* %0, i64 %50
%52 = load i32, i32* %51
%53 = getelementptr inbounds i32, i32* %4, i64 %50
%54 = load i32, i32* %53
%55 = getelementptr inbounds i8, i8* %8, i64 %50
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %52, i32 %54, i32 %57)
%59 = add nuw nsw i64 %50, 1
%60 = icmp eq i64 %59, %48
br i1 %60, label %61, label %49
61: ; preds = %49, %42
%62 = tail call i32 @putchar(i32 10)
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %13)
%64 = icmp slt i32 %13, 1
br i1 %64, label %80, label %65
65: ; preds = %61
%66 = add nuw i32 %13, 1
%67 = zext i32 %66 to i64
br label %68
68: ; preds = %65, %68
%69 = phi i64 [ 1, %65 ], [ %78, %68 ]
%70 = getelementptr inbounds i32, i32* %1, i64 %69
%71 = load i32, i32* %70
%72 = getelementptr inbounds i32, i32* %5, i64 %69
%73 = load i32, i32* %72
%74 = getelementptr inbounds i8, i8* %9, i64 %69
%75 = load i8, i8* %74
%76 = sext i8 %75 to i32
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 %71, i32 %73, i32 %76)
%78 = add nuw nsw i64 %69, 1
%79 = icmp eq i64 %78, %67
br i1 %79, label %80, label %68
80: ; preds = %68, %61
%81 = tail call i32 @putchar(i32 10)
br label %82
82: ; preds = %28, %80
%83 = getelementptr inbounds [4 x i32], [4 x i32]* %29, i64 0, i64 0
%84 = call i32 (i32*, i32*, i32*, i32*, i8*, i8*, i32, i32, i32**, i32*, i32, i32, i32, i32*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @dist_2v_allt_v2 to i32 (i32*, i32*, i32*, i32*, i8*, i8*, i32, i32, i32**, i32*, i32, i32, i32, i32*, i32, i32, i32, i32, i32, i32, ...)*)(i32* %0, i32* %1, i32* %4, i32* %5, i8* %8, i8* %9, i32 %12, i32 %13, i32** %37, i32* %83, i32 %18, i32 %19, i32 %20, i32* %21, i32 1, i32 %23, i32 -1, i32 500000, i32 %26, i32 0)
%85 = getelementptr inbounds [4 x i32], [4 x i32]* %29, i64 0, i64 2
%86 = load i32, i32* %85
%87 = icmp slt i32 %86, 0
%88 = getelementptr inbounds [4 x i32], [4 x i32]* %29, i64 0, i64 3
%89 = load i32, i32* %88
%90 = load i32, i32* %83
%91 = select i1 %87, i32 %89, i32 %90
br i1 %41, label %135, label %92
92: ; preds = %82
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %91)
%94 = icmp slt i32 %91, 1
br i1 %94, label %115, label %95
95: ; preds = %92
%96 = add nuw i32 %91, 1
%97 = zext i32 %96 to i64
br label %98
98: ; preds = %95, %98
%99 = phi i64 [ 1, %95 ], [ %113, %98 ]
%100 = getelementptr inbounds i32*, i32** %37, i64 %99
%101 = load i32*, i32** %100
%102 = getelementptr inbounds i32, i32* %101, i64 1
%103 = load i32, i32* %102
%104 = getelementptr inbounds i32, i32* %101, i64 2
%105 = load i32, i32* %104
%106 = getelementptr inbounds i32, i32* %101, i64 3
%107 = load i32, i32* %106
%108 = getelementptr inbounds i32, i32* %101, i64 6
%109 = load i32, i32* %108
%110 = getelementptr inbounds i32, i32* %101, i64 7
%111 = load i32, i32* %110
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 %103, i32 %105, i32 %107, i32 %109, i32 %111)
%113 = add nuw nsw i64 %99, 1
%114 = icmp eq i64 %113, %97
br i1 %114, label %115, label %98
115: ; preds = %98, %92
%116 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i32 %14)
%117 = icmp slt i32 %14, 1
br i1 %117, label %133, label %118
118: ; preds = %115
%119 = add nuw i32 %14, 1
%120 = zext i32 %119 to i64
br label %121
121: ; preds = %118, %121
%122 = phi i64 [ 1, %118 ], [ %131, %121 ]
%123 = getelementptr inbounds i32, i32* %2, i64 %122
%124 = load i32, i32* %123
%125 = getelementptr inbounds i32, i32* %6, i64 %122
%126 = load i32, i32* %125
%127 = getelementptr inbounds i8, i8* %10, i64 %122
%128 = load i8, i8* %127
%129 = sext i8 %128 to i32
%130 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 %124, i32 %126, i32 %129)
%131 = add nuw nsw i64 %122, 1
%132 = icmp eq i64 %131, %120
br i1 %132, label %133, label %121
133: ; preds = %121, %115
%134 = call i32 @putchar(i32 10)
br label %135
135: ; preds = %133, %82
%136 = getelementptr inbounds [4 x i32], [4 x i32]* %30, i64 0, i64 0
%137 = call i32 (i32**, i32*, i32*, i8*, i32, i32, i32**, i32*, i32, i32, i32, i32*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @dist_3v_allt_v3 to i32 (i32**, i32*, i32*, i8*, i32, i32, i32**, i32*, i32, i32, i32, i32*, i32, i32, i32, i32, i32, i32, ...)*)(i32** %37, i32* %2, i32* %6, i8* %10, i32 %91, i32 %14, i32** %40, i32* %136, i32 %18, i32 %19, i32 %20, i32* %21, i32 %22, i32 %23, i32 -1, i32 100000, i32 %26, i32 %27)
%138 = getelementptr inbounds [4 x i32], [4 x i32]* %30, i64 0, i64 2
%139 = load i32, i32* %138
%140 = add nsw i32 %139, %86
%141 = icmp slt i32 %139, 0
br i1 %141, label %142, label %147
142: ; preds = %135
%143 = getelementptr inbounds [4 x i32], [4 x i32]* %30, i64 0, i64 3
%144 = load i32, i32* %143
br i1 %41, label %197, label %145
145: ; preds = %142
%146 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @.str.9, i64 0, i64 0), i32 %139, i32 %144)
br label %149
147: ; preds = %135
%148 = load i32, i32* %136
br i1 %41, label %197, label %149
149: ; preds = %145, %147
%150 = phi i32 [ %144, %145 ], [ %148, %147 ]
%151 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i32 %150)
%152 = icmp slt i32 %150, 1
br i1 %152, label %177, label %153
153: ; preds = %149
%154 = add nuw i32 %150, 1
%155 = zext i32 %154 to i64
br label %156
156: ; preds = %153, %156
%157 = phi i64 [ 1, %153 ], [ %175, %156 ]
%158 = getelementptr inbounds i32*, i32** %40, i64 %157
%159 = load i32*, i32** %158
%160 = getelementptr inbounds i32, i32* %159, i64 1
%161 = load i32, i32* %160
%162 = getelementptr inbounds i32, i32* %159, i64 2
%163 = load i32, i32* %162
%164 = getelementptr inbounds i32, i32* %159, i64 3
%165 = load i32, i32* %164
%166 = getelementptr inbounds i32, i32* %159, i64 4
%167 = load i32, i32* %166
%168 = getelementptr inbounds i32, i32* %159, i64 8
%169 = load i32, i32* %168
%170 = getelementptr inbounds i32, i32* %159, i64 9
%171 = load i32, i32* %170
%172 = getelementptr inbounds i32, i32* %159, i64 10
%173 = load i32, i32* %172
%174 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %161, i32 %163, i32 %165, i32 %167, i32 %169, i32 %171, i32 %173)
%175 = add nuw nsw i64 %157, 1
%176 = icmp eq i64 %175, %155
br i1 %176, label %177, label %156
177: ; preds = %156, %149
%178 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i32 %15)
%179 = icmp slt i32 %15, 1
br i1 %179, label %195, label %180
180: ; preds = %177
%181 = add nuw i32 %15, 1
%182 = zext i32 %181 to i64
br label %183
183: ; preds = %180, %183
%184 = phi i64 [ 1, %180 ], [ %193, %183 ]
%185 = getelementptr inbounds i32, i32* %3, i64 %184
%186 = load i32, i32* %185
%187 = getelementptr inbounds i32, i32* %7, i64 %184
%188 = load i32, i32* %187
%189 = getelementptr inbounds i8, i8* %11, i64 %184
%190 = load i8, i8* %189
%191 = sext i8 %190 to i32
%192 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 %186, i32 %188, i32 %191)
%193 = add nuw nsw i64 %184, 1
%194 = icmp eq i64 %193, %182
br i1 %194, label %195, label %183
195: ; preds = %183, %177
%196 = call i32 @putchar(i32 10)
br label %197
197: ; preds = %142, %195, %147
%198 = phi i32 [ %150, %195 ], [ %148, %147 ], [ %144, %142 ]
%199 = getelementptr inbounds [4 x i32], [4 x i32]* %31, i64 0, i64 0
%200 = call i32 (i32**, i32*, i32*, i8*, i32, i32, i32**, i32*, i32, i32, i32, i32*, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @dist_4v_allt_v3 to i32 (i32**, i32*, i32*, i8*, i32, i32, i32**, i32*, i32, i32, i32, i32*, i32, i32, i32, i32, i32, ...)*)(i32** %40, i32* %3, i32* %7, i8* %11, i32 %198, i32 %15, i32** %16, i32* %199, i32 %18, i32 %19, i32 %20, i32* %21, i32 %22, i32 %23, i32 %24, i32 %25, i32 %26)
%201 = load i32, i32* %199
store i32 %201, i32* %17
%202 = getelementptr inbounds [4 x i32], [4 x i32]* %31, i64 0, i64 1
%203 = load i32, i32* %202
%204 = getelementptr inbounds i32, i32* %17, i64 1
store i32 %203, i32* %204
%205 = getelementptr inbounds [4 x i32], [4 x i32]* %31, i64 0, i64 2
%206 = load i32, i32* %205
%207 = add nsw i32 %140, %206
%208 = getelementptr inbounds i32, i32* %17, i64 2
store i32 %207, i32* %208
%209 = getelementptr inbounds [4 x i32], [4 x i32]* %31, i64 0, i64 3
%210 = load i32, i32* %209
%211 = getelementptr inbounds i32, i32* %17, i64 3
store i32 %210, i32* %211
br i1 %41, label %245, label %212
212: ; preds = %197
%213 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i32 %201)
%214 = load i32, i32* %17
%215 = icmp slt i32 %214, 1
br i1 %215, label %245, label %216
216: ; preds = %212, %216
%217 = phi i64 [ %241, %216 ], [ 1, %212 ]
%218 = getelementptr inbounds i32*, i32** %16, i64 %217
%219 = load i32*, i32** %218
%220 = getelementptr inbounds i32, i32* %219, i64 1
%221 = load i32, i32* %220
%222 = getelementptr inbounds i32, i32* %219, i64 2
%223 = load i32, i32* %222
%224 = getelementptr inbounds i32, i32* %219, i64 3
%225 = load i32, i32* %224
%226 = getelementptr inbounds i32, i32* %219, i64 4
%227 = load i32, i32* %226
%228 = getelementptr inbounds i32, i32* %219, i64 5
%229 = load i32, i32* %228
%230 = getelementptr inbounds i32, i32* %219, i64 10
%231 = load i32, i32* %230
%232 = getelementptr inbounds i32, i32* %219, i64 11
%233 = load i32, i32* %232
%234 = getelementptr inbounds i32, i32* %219, i64 12
%235 = load i32, i32* %234
%236 = getelementptr inbounds i32, i32* %219, i64 13
%237 = load i32, i32* %236
%238 = getelementptr inbounds i32, i32* %219, i64 14
%239 = load i32, i32* %238
%240 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i32 %221, i32 %223, i32 %225, i32 %227, i32 %229, i32 %231, i32 %233, i32 %235, i32 %237, i32 %239)
%241 = add nuw nsw i64 %217, 1
%242 = load i32, i32* %17
%243 = sext i32 %242 to i64
%244 = icmp slt i64 %217, %243
br i1 %244, label %216, label %245
245: ; preds = %216, %212, %197
%246 = call i32 (i32**, i32, i32, i32, i32, ...) bitcast (i32 (...)* @free_imatrix to i32 (i32**, i32, i32, i32, i32, ...)*)(i32** %37, i32 1, i32 500000, i32 1, i32 7)
%247 = call i32 (i32**, i32, i32, i32, i32, ...) bitcast (i32 (...)* @free_imatrix to i32 (i32**, i32, i32, i32, i32, ...)*)(i32** %40, i32 1, i32 100000, i32 1, i32 10)
ret void
}