#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 /*<<< orphan*/ crm_3motifs(int *, int *, int *, int, int, int, int, int,
                               int, int, int, int *, int **);
int /*<<< orphan*/ free_imatrix(int **, int, int, int, int);
int /*<<< orphan*/ free_ivector(int *, int, int);
int **imatrix(int, int, int, int);
int *ivector(int, int);
int /*<<< orphan*/ printf(char *, int);
void crm_3motifs_allt(int *m1_t, int *m2_t, int *m3_t, int *m1_p, int *m2_p,
                      int *m3_p, int n1, int n2, int n3, int max_n_transcripts,
                      int max_crm_positions, int N, int dw, int bin_size,
                      int n_transcripts, int report_all, int *n,
                      int **crm_positions) {
  int **crm_positions_transcript;
  int *m1p;
  int *m2p;
  int *m3p;
  int curr_n1, curr_n2, curr_n3;
  int curr_tr1, curr_tr2, curr_tr3;
  int ec = 0;
  int errorcode = 0;
  int i;
  int i1, i2, i3;
  int max_crm_positions_transcript = 1000;
  int max_transcript_occurrences = 1000;
  int n123;
  int n123_tr = 0;
  int n_crms;
  int n_crms_reported;
  int output[2];
  int running_entries = 0;
  int running_entries_reported;
  int transcript = 0;
  i1 = 1;
  curr_tr1 = m1_t[i1];
  i2 = 1;
  curr_tr2 = m2_t[i2];
  i3 = 1;
  curr_tr3 = m3_t[i3];
  m1p = ivector(1, max_transcript_occurrences);
  m2p = ivector(1, max_transcript_occurrences);
  m3p = ivector(1, max_transcript_occurrences);
  if (report_all == 1)
    crm_positions_transcript = imatrix(1, max_crm_positions_transcript, 1, 2);
  if (max_n_transcripts < 0)
    max_n_transcripts = n_transcripts + 1;
  while ((transcript < n_transcripts) & (n123_tr <= max_n_transcripts)) {
    transcript++;
    while ((curr_tr1 < transcript) & (curr_tr1 >= 0) & (i1 < n1)) {
      i1++;
      curr_tr1 = m1_t[i1];
    }
    curr_n1 = 0;
    if (curr_tr1 == transcript) {
      while ((curr_tr1 == transcript) & (i1 <= n1)) {
        curr_n1++;
        m1p[curr_n1] = m1_p[i1];
        i1++;
        if (i1 <= n1)
          curr_tr1 = m1_t[i1];
      }
      i1--;
      curr_tr1 = transcript;
    }
    while ((curr_tr2 < transcript) & (curr_tr2 >= 0) & (i2 < n2)) {
      i2++;
      curr_tr2 = m2_t[i2];
    }
    curr_n2 = 0;
    if (curr_tr2 == transcript) {
      while ((curr_tr2 == transcript) & (i2 <= n2)) {
        curr_n2++;
        m2p[curr_n2] = m2_p[i2];
        i2++;
        if (i2 <= n2)
          curr_tr2 = m2_t[i2];
      }
      i2--;
      curr_tr2 = transcript;
    }
    while ((curr_tr3 < transcript) & (curr_tr3 >= 0) & (i3 < n3)) {
      i3++;
      curr_tr3 = m3_t[i3];
    }
    curr_n3 = 0;
    if (curr_tr3 == transcript) {
      while ((curr_tr3 == transcript) & (i3 <= n3)) {
        curr_n3++;
        m3p[curr_n3] = m3_p[i3];
        i3++;
        if (i3 <= n3)
          curr_tr3 = m3_t[i3];
      }
      i3--;
      curr_tr3 = transcript;
    }
    if ((curr_n1 + curr_n2 + curr_n3) >= N) {
      crm_3motifs(m1p, m2p, m3p, curr_n1, curr_n2, curr_n3, N, dw,
                  max_crm_positions, bin_size, report_all, output,
                  crm_positions_transcript);
      n_crms = output[0];
      errorcode = output[1];
      n_crms_reported = n_crms - errorcode;
    } else {
      n_crms = 0;
      n_crms_reported = 0;
    }
    if (n_crms > 0)
      n123_tr++;
    if (report_all == 1) {
      if ((running_entries + n_crms) > max_crm_positions) {
        ec--;
        running_entries_reported = running_entries;
        printf("running_entries=%d\n", running_entries);
        printf("running_entries_reported=%d\n", running_entries_reported);
      } else {
        for (i = 1; i <= n_crms_reported; i++) {
          running_entries++;
          crm_positions[running_entries][1] = transcript;
          crm_positions[running_entries][2] = crm_positions_transcript[i][1];
          crm_positions[running_entries][3] = crm_positions_transcript[i][2];
        }
      }
    }
  }
  n[0] = running_entries;
  n[1] = n123_tr;
  n[2] = ec;
  if (errorcode < 0) {
    n[3] = running_entries_reported;
  } else {
    n[3] = running_entries;
  }
  free_ivector(m1p, 1, max_transcript_occurrences);
  free_ivector(m2p, 1, max_transcript_occurrences);
  free_ivector(m3p, 1, max_transcript_occurrences);
  if (report_all == 1)
    free_imatrix(crm_positions_transcript, 1, max_crm_positions_transcript, 1,
                 2);
}


x86 assembly (clang, -O0):
<crm_3motifs_allt>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xf0,%rsp
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),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8,-0x48(%rbp)
mov    %r9,-0x50(%rbp)
movl   $0x0,-0x8c(%rbp)
movl   $0x0,-0x90(%rbp)
movl   $0x3e8,-0xa4(%rbp)
movl   $0x3e8,-0xa8(%rbp)
movl   $0x0,-0xb0(%rbp)
movl   $0x0,-0xc4(%rbp)
movl   $0x0,-0xcc(%rbp)
movl   $0x1,-0x98(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x98(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x80(%rbp)
movl   $0x1,-0x9c(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x84(%rbp)
movl   $0x1,-0xa0(%rbp)
mov    -0x38(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x88(%rbp)
mov    -0xa8(%rbp),%esi
mov    $0x1,%edi
call   1080 <ivector@plt>
mov    %rax,-0x60(%rbp)
mov    -0xa8(%rbp),%esi
mov    $0x1,%edi
call   1080 <ivector@plt>
mov    %rax,-0x68(%rbp)
mov    -0xa8(%rbp),%esi
mov    $0x1,%edi
call   1080 <ivector@plt>
mov    %rax,-0x70(%rbp)
cmpl   $0x1,0x58(%rbp)
jne    12ae <crm_3motifs_allt+0x14e>
mov    -0xa4(%rbp),%esi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    %edx,%edi
call   1040 <imatrix@plt>
mov    %rax,-0x58(%rbp)
cmpl   $0x0,0x28(%rbp)
jge    12c1 <crm_3motifs_allt+0x161>
mov    0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,0x28(%rbp)
jmp    12c6 <crm_3motifs_allt+0x166>
mov    -0xcc(%rbp),%eax
cmp    0x50(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0xb0(%rbp),%ecx
cmp    0x28(%rbp),%ecx
setle  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     185f <crm_3motifs_allt+0x6ff>
mov    -0xcc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xcc(%rbp)
mov    -0x80(%rbp),%eax
cmp    -0xcc(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x0,-0x80(%rbp)
setge  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
mov    -0x98(%rbp),%ecx
cmp    0x10(%rbp),%ecx
setl   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1365 <crm_3motifs_allt+0x205>
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x98(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x80(%rbp)
jmp    1303 <crm_3motifs_allt+0x1a3>
movl   $0x0,-0x74(%rbp)
mov    -0x80(%rbp),%eax
cmp    -0xcc(%rbp),%eax
jne    141c <crm_3motifs_allt+0x2bc>
jmp    1380 <crm_3motifs_allt+0x220>
mov    -0x80(%rbp),%eax
cmp    -0xcc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x98(%rbp),%ecx
cmp    0x10(%rbp),%ecx
setle  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1404 <crm_3motifs_allt+0x2a4>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x98(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x60(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
mov    -0x98(%rbp),%eax
cmp    0x10(%rbp),%eax
jg     13ff <crm_3motifs_allt+0x29f>
mov    -0x28(%rbp),%rax
movslq -0x98(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x80(%rbp)
jmp    1380 <crm_3motifs_allt+0x220>
mov    -0x98(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x98(%rbp)
mov    -0xcc(%rbp),%eax
mov    %eax,-0x80(%rbp)
jmp    1421 <crm_3motifs_allt+0x2c1>
mov    -0x84(%rbp),%eax
cmp    -0xcc(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x0,-0x84(%rbp)
setge  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
mov    -0x9c(%rbp),%ecx
cmp    0x18(%rbp),%ecx
setl   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     148c <crm_3motifs_allt+0x32c>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x84(%rbp)
jmp    1421 <crm_3motifs_allt+0x2c1>
movl   $0x0,-0x78(%rbp)
mov    -0x84(%rbp),%eax
cmp    -0xcc(%rbp),%eax
jne    154f <crm_3motifs_allt+0x3ef>
jmp    14aa <crm_3motifs_allt+0x34a>
mov    -0x84(%rbp),%eax
cmp    -0xcc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x9c(%rbp),%ecx
cmp    0x18(%rbp),%ecx
setle  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1534 <crm_3motifs_allt+0x3d4>
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x48(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x68(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
cmp    0x18(%rbp),%eax
jg     152f <crm_3motifs_allt+0x3cf>
mov    -0x30(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x84(%rbp)
jmp    14aa <crm_3motifs_allt+0x34a>
mov    -0x9c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x9c(%rbp)
mov    -0xcc(%rbp),%eax
mov    %eax,-0x84(%rbp)
jmp    1554 <crm_3motifs_allt+0x3f4>
mov    -0x88(%rbp),%eax
cmp    -0xcc(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x0,-0x88(%rbp)
setge  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
mov    -0xa0(%rbp),%ecx
cmp    0x20(%rbp),%ecx
setl   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     15bf <crm_3motifs_allt+0x45f>
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
mov    -0x38(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x88(%rbp)
jmp    1554 <crm_3motifs_allt+0x3f4>
movl   $0x0,-0x7c(%rbp)
mov    -0x88(%rbp),%eax
cmp    -0xcc(%rbp),%eax
jne    1682 <crm_3motifs_allt+0x522>
jmp    15dd <crm_3motifs_allt+0x47d>
mov    -0x88(%rbp),%eax
cmp    -0xcc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0xa0(%rbp),%ecx
cmp    0x20(%rbp),%ecx
setle  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1667 <crm_3motifs_allt+0x507>
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
mov    -0x50(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x70(%rbp),%rax
movslq -0x7c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
mov    -0xa0(%rbp),%eax
cmp    0x20(%rbp),%eax
jg     1662 <crm_3motifs_allt+0x502>
mov    -0x38(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x88(%rbp)
jmp    15dd <crm_3motifs_allt+0x47d>
mov    -0xa0(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xa0(%rbp)
mov    -0xcc(%rbp),%eax
mov    %eax,-0x88(%rbp)
mov    -0x74(%rbp),%eax
add    -0x78(%rbp),%eax
add    -0x7c(%rbp),%eax
cmp    0x38(%rbp),%eax
jl     171e <crm_3motifs_allt+0x5be>
mov    -0x60(%rbp),%rdi
mov    -0x68(%rbp),%rsi
mov    -0x70(%rbp),%rdx
mov    -0x74(%rbp),%ecx
mov    -0x78(%rbp),%r8d
mov    -0x7c(%rbp),%r9d
mov    0x38(%rbp),%r12d
mov    0x40(%rbp),%r15d
mov    0x30(%rbp),%r14d
mov    0x48(%rbp),%ebx
mov    0x58(%rbp),%r11d
lea    -0xc0(%rbp),%r10
mov    -0x58(%rbp),%rax
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1030 <crm_3motifs@plt>
mov    -0xc0(%rbp),%eax
mov    %eax,-0xb4(%rbp)
mov    -0xbc(%rbp),%eax
mov    %eax,-0x90(%rbp)
mov    -0xb4(%rbp),%eax
sub    -0x90(%rbp),%eax
mov    %eax,-0xb8(%rbp)
jmp    1732 <crm_3motifs_allt+0x5d2>
movl   $0x0,-0xb4(%rbp)
movl   $0x0,-0xb8(%rbp)
cmpl   $0x0,-0xb4(%rbp)
jle    174e <crm_3motifs_allt+0x5ee>
mov    -0xb0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb0(%rbp)
cmpl   $0x1,0x58(%rbp)
jne    185a <crm_3motifs_allt+0x6fa>
mov    -0xc4(%rbp),%eax
add    -0xb4(%rbp),%eax
cmp    0x30(%rbp),%eax
jle    17b1 <crm_3motifs_allt+0x651>
mov    -0x8c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8c(%rbp)
mov    -0xc4(%rbp),%eax
mov    %eax,-0xc8(%rbp)
mov    -0xc4(%rbp),%esi
lea    0x86b(%rip),%rdi
call   1050 <printf@plt>
mov    -0xc8(%rbp),%esi
lea    0x86d(%rip),%rdi
call   1050 <printf@plt>
jmp    1855 <crm_3motifs_allt+0x6f5>
movl   $0x1,-0x94(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0xb8(%rbp),%eax
jg     1850 <crm_3motifs_allt+0x6f0>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
mov    -0xcc(%rbp),%ecx
mov    0x68(%rbp),%rax
movslq -0xc4(%rbp),%rdx
mov    (%rax,%rdx,8),%rax
mov    %ecx,0x4(%rax)
mov    -0x58(%rbp),%rax
movslq -0x94(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x4(%rax),%ecx
mov    0x68(%rbp),%rax
movslq -0xc4(%rbp),%rdx
mov    (%rax,%rdx,8),%rax
mov    %ecx,0x8(%rax)
mov    -0x58(%rbp),%rax
movslq -0x94(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x8(%rax),%ecx
mov    0x68(%rbp),%rax
movslq -0xc4(%rbp),%rdx
mov    (%rax,%rdx,8),%rax
mov    %ecx,0xc(%rax)
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    17bb <crm_3motifs_allt+0x65b>
jmp    1855 <crm_3motifs_allt+0x6f5>
jmp    185a <crm_3motifs_allt+0x6fa>
jmp    12c6 <crm_3motifs_allt+0x166>
mov    -0xc4(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,(%rax)
mov    -0xb0(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x8c(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x8(%rax)
cmpl   $0x0,-0x90(%rbp)
jge    18a4 <crm_3motifs_allt+0x744>
mov    -0xc8(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0xc(%rax)
jmp    18b1 <crm_3motifs_allt+0x751>
mov    -0xc4(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0xc(%rax)
mov    -0x60(%rbp),%rdi
mov    -0xa8(%rbp),%edx
mov    $0x1,%esi
call   1070 <free_ivector@plt>
mov    -0x68(%rbp),%rdi
mov    -0xa8(%rbp),%edx
mov    $0x1,%esi
call   1070 <free_ivector@plt>
mov    -0x70(%rbp),%rdi
mov    -0xa8(%rbp),%edx
mov    $0x1,%esi
call   1070 <free_ivector@plt>
cmpl   $0x1,0x58(%rbp)
jne    1913 <crm_3motifs_allt+0x7b3>
mov    -0x58(%rbp),%rdi
mov    -0xa4(%rbp),%edx
mov    $0x1,%ecx
mov    $0x2,%r8d
mov    %ecx,%esi
call   1060 <free_imatrix@plt>
add    $0xf0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<crm_3motifs_allt>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %r9,0xb0(%rsp)
mov    %r8,0xa8(%rsp)
mov    %rcx,0x38(%rsp)
mov    0x138(%rsp),%ebx
mov    0x130(%rsp),%r13d
mov    0x108(%rsp),%r14d
mov    %rdi,0x80(%rsp)
mov    0x4(%rdi),%eax
mov    %eax,0x8(%rsp)
mov    %rsi,0x68(%rsp)
mov    0x4(%rsi),%eax
mov    %eax,0x24(%rsp)
mov    %rdx,0x18(%rsp)
mov    0x4(%rdx),%r12d
mov    $0x1,%edi
mov    $0x3e8,%esi
call   1080 <ivector@plt>
mov    %rax,0x30(%rsp)
mov    $0x1,%edi
mov    $0x3e8,%esi
call   1080 <ivector@plt>
mov    %rax,0x58(%rsp)
mov    $0x1,%edi
mov    $0x3e8,%esi
call   1080 <ivector@plt>
mov    %rax,0x50(%rsp)
cmp    $0x1,%ebx
jne    121b <crm_3motifs_allt+0xbb>
mov    $0x1,%edi
mov    $0x3e8,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
call   1040 <imatrix@plt>
mov    %rax,0x28(%rsp)
mov    0x140(%rsp),%rax
lea    0x1(%r13),%ecx
test   %r14d,%r14d
cmovns %r14d,%ecx
mov    %ecx,0x7c(%rsp)
test   %ecx,%ecx
mov    0x30(%rsp),%rdi
js     1874 <crm_3motifs_allt+0x714>
test   %r13d,%r13d
jle    1874 <crm_3motifs_allt+0x714>
mov    0x148(%rsp),%rcx
movslq 0xf0(%rsp),%rax
mov    %rax,0x70(%rsp)
movslq 0xf8(%rsp),%rax
mov    %rax,0x60(%rsp)
movslq 0x100(%rsp),%rax
mov    %rax,0x40(%rsp)
mov    0x68(%rsp),%rax
add    $0x4,%rax
mov    %rax,0xa0(%rsp)
mov    0x18(%rsp),%r9
lea    0x4(%r9),%rax
mov    %rax,0x98(%rsp)
lea    0x10(%rcx),%rax
mov    %rax,0x90(%rsp)
mov    $0x1,%r15d
xor    %r11d,%r11d
xor    %eax,%eax
mov    %rax,0x10(%rsp)
xor    %ebp,%ebp
mov    $0x1,%r13d
mov    $0x1,%r14d
movl   $0x0,0x4c(%rsp)
movl   $0x0,0x48(%rsp)
mov    0x38(%rsp),%r8
mov    0x80(%rsp),%r10
mov    0x8(%rsp),%ebx
nopl   0x0(%rax)
lea    0x1(%r11),%eax
mov    %eax,0x8(%rsp)
xor    %ecx,%ecx
cmp    %r11d,%ebx
setle  %cl
mov    %ebx,%edx
not    %edx
shr    $0x1f,%edx
and    %ecx,%edx
xor    %ecx,%ecx
cmp    0xf0(%rsp),%r14d
setl   %cl
test   %ecx,%edx
je     1359 <crm_3motifs_allt+0x1f9>
movslq %r14d,%rcx
add    $0x1,%rcx
mov    0x70(%rsp),%rax
cs nopw 0x0(%rax,%rax,1)
mov    (%r10,%rcx,4),%ebx
xor    %edx,%edx
cmp    %r11d,%ebx
setle  %dl
mov    %ebx,%esi
not    %esi
shr    $0x1f,%esi
and    %edx,%esi
xor    %edx,%edx
cmp    %rax,%rcx
setl   %dl
add    $0x1,%r14d
add    $0x1,%rcx
test   %edx,%esi
jne    1330 <crm_3motifs_allt+0x1d0>
xor    %ecx,%ecx
cmp    0x8(%rsp),%ebx
mov    %ebp,0xc(%rsp)
jne    1380 <crm_3motifs_allt+0x220>
xor    %ecx,%ecx
cmp    0xf0(%rsp),%r14d
jle    1430 <crm_3motifs_allt+0x2d0>
add    $0xffffffff,%r14d
mov    0x8(%rsp),%r10d
jmp    1383 <crm_3motifs_allt+0x223>
mov    %ebx,%r10d
mov    0x68(%rsp),%rax
mov    0x60(%rsp),%rbx
mov    0x24(%rsp),%ebp
xor    %edx,%edx
cmp    %r11d,%ebp
setle  %dl
mov    %ebp,%esi
not    %esi
shr    $0x1f,%esi
and    %edx,%esi
xor    %edx,%edx
cmp    0xf8(%rsp),%r13d
setl   %dl
test   %edx,%esi
je     13ea <crm_3motifs_allt+0x28a>
movslq %r13d,%rdx
add    $0x1,%rdx
nopw   0x0(%rax,%rax,1)
mov    (%rax,%rdx,4),%ebp
xor    %esi,%esi
cmp    %r11d,%ebp
setle  %sil
mov    %ebp,%edi
not    %edi
shr    $0x1f,%edi
and    %esi,%edi
xor    %esi,%esi
cmp    %rbx,%rdx
setl   %sil
add    $0x1,%r13d
add    $0x1,%rdx
test   %esi,%edi
jne    13c0 <crm_3motifs_allt+0x260>
xor    %r8d,%r8d
cmp    0x8(%rsp),%ebp
jne    1420 <crm_3motifs_allt+0x2c0>
xor    %r8d,%r8d
cmp    0xf8(%rsp),%r13d
mov    %r10d,%ebx
jle    1490 <crm_3motifs_allt+0x330>
mov    0x40(%rsp),%rax
mov    0x8(%rsp),%ebp
jmp    14ff <crm_3motifs_allt+0x39f>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r10d,%ebx
mov    0x40(%rsp),%rax
jmp    1503 <crm_3motifs_allt+0x3a3>
nopl   (%rax)
movslq %r14d,%rdx
add    $0x1,%r14d
mov    $0x1,%esi
mov    %r14d,%eax
nop
mov    %eax,%r14d
mov    %rsi,%rcx
mov    (%r8,%rdx,4),%esi
mov    %esi,(%rdi,%rcx,4)
cmp    0x70(%rsp),%rdx
jge    1375 <crm_3motifs_allt+0x215>
mov    0x8(%rsp),%eax
cmp    %eax,0x4(%r10,%rdx,4)
jne    1375 <crm_3motifs_allt+0x215>
lea    0x1(%r14),%eax
lea    0x1(%rcx),%rsi
lea    0x1(%rdx),%rbx
cmp    0x70(%rsp),%rdx
mov    %rbx,%rdx
jl     1440 <crm_3motifs_allt+0x2e0>
jmp    1375 <crm_3motifs_allt+0x215>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq %r13d,%r10
mov    0xa8(%rsp),%rax
lea    (%rax,%r10,4),%r9
mov    0xa0(%rsp),%rax
lea    (%rax,%r10,4),%r8
xor    %esi,%esi
mov    0x58(%rsp),%rax
mov    0x8(%rsp),%ebp
cs nopw 0x0(%rax,%rax,1)
mov    %rsi,%rdx
lea    (%r10,%rsi,1),%rdi
mov    (%r9,%rsi,4),%esi
mov    %esi,0x4(%rax,%rdx,4)
cmp    0x60(%rsp),%rdi
jge    14e7 <crm_3motifs_allt+0x387>
cmp    %ebp,(%r8,%rdx,4)
jne    14e7 <crm_3motifs_allt+0x387>
lea    0x1(%rdx),%rsi
cmp    0x60(%rsp),%rdi
jl     14c0 <crm_3motifs_allt+0x360>
mov    %edx,%r8d
add    $0x1,%r8d
add    %edx,%r13d
add    $0x1,%r13d
mov    0x18(%rsp),%r9
mov    0x40(%rsp),%rax
add    $0xffffffff,%r13d
xor    %edx,%edx
cmp    %r11d,%r12d
setle  %dl
mov    %r12d,%esi
not    %esi
shr    $0x1f,%esi
and    %edx,%esi
xor    %edx,%edx
cmp    0x100(%rsp),%r15d
setl   %dl
test   %edx,%esi
mov    %ebp,0x24(%rsp)
je     156c <crm_3motifs_allt+0x40c>
movslq %r15d,%rdx
add    $0x1,%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r9,%rdx,4),%r12d
xor    %esi,%esi
cmp    %r11d,%r12d
setle  %sil
mov    %r12d,%edi
not    %edi
shr    $0x1f,%edi
and    %esi,%edi
xor    %esi,%esi
cmp    %rax,%rdx
setl   %sil
add    $0x1,%r15d
add    $0x1,%rdx
test   %esi,%edi
jne    1540 <crm_3motifs_allt+0x3e0>
xor    %r10d,%r10d
mov    0x8(%rsp),%ebp
xor    %r9d,%r9d
cmp    %ebp,%r12d
jne    1600 <crm_3motifs_allt+0x4a0>
cmp    0x100(%rsp),%r15d
jg     15e6 <crm_3motifs_allt+0x486>
movslq %r15d,%rsi
mov    0xb0(%rsp),%rax
lea    (%rax,%rsi,4),%r11
mov    0x98(%rsp),%rax
lea    (%rax,%rsi,4),%r9
xor    %edi,%edi
mov    0x50(%rsp),%r12
nopl   0x0(%rax,%rax,1)
mov    %rdi,%rdx
lea    (%rsi,%rdi,1),%rax
mov    (%r11,%rdi,4),%edi
mov    %edi,0x4(%r12,%rdx,4)
cmp    0x40(%rsp),%rax
jge    15d8 <crm_3motifs_allt+0x478>
cmp    %ebp,(%r9,%rdx,4)
jne    15d8 <crm_3motifs_allt+0x478>
lea    0x1(%rdx),%rdi
cmp    0x40(%rsp),%rax
jl     15b0 <crm_3motifs_allt+0x450>
mov    %edx,%r9d
add    $0x1,%r9d
add    %edx,%r15d
add    $0x1,%r15d
mov    0x28(%rsp),%r11
add    $0xffffffff,%r15d
mov    %ebp,%r12d
jmp    1605 <crm_3motifs_allt+0x4a5>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x28(%rsp),%r11
lea    (%r8,%rcx,1),%eax
add    %r9d,%eax
mov    0x118(%rsp),%ebp
cmp    %ebp,%eax
jge    1650 <crm_3motifs_allt+0x4f0>
xor    %ecx,%ecx
mov    0xc(%rsp),%ebp
mov    0x138(%rsp),%r11d
cmp    $0x1,%r11d
je     16cf <crm_3motifs_allt+0x56f>
mov    0x30(%rsp),%rdi
mov    0x38(%rsp),%r8
mov    0x18(%rsp),%r9
jmp    1820 <crm_3motifs_allt+0x6c0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
sub    $0x8,%rsp
mov    0x38(%rsp),%rdi
mov    0x60(%rsp),%rsi
mov    0x58(%rsp),%rdx
push   %r11
lea    0x98(%rsp),%rax
push   %rax
mov    0x150(%rsp),%eax
push   %rax
mov    0x148(%rsp),%eax
push   %rax
mov    0x138(%rsp),%eax
push   %rax
mov    0x150(%rsp),%eax
push   %rax
push   %rbp
call   1030 <crm_3motifs@plt>
mov    0x178(%rsp),%r11d
add    $0x40,%rsp
mov    0x88(%rsp),%ecx
mov    0x8c(%rsp),%eax
mov    %ecx,%r10d
mov    %eax,0x4c(%rsp)
sub    %eax,%r10d
xor    %eax,%eax
test   %ecx,%ecx
setg   %al
mov    0xc(%rsp),%ebp
add    %eax,%ebp
cmp    $0x1,%r11d
jne    162f <crm_3motifs_allt+0x4cf>
mov    %ebp,0xc(%rsp)
mov    0x10(%rsp),%rbp
add    %ebp,%ecx
mov    0x110(%rsp),%eax
cmp    %eax,%ecx
jle    1710 <crm_3motifs_allt+0x5b0>
addl   $0xffffffff,0x48(%rsp)
lea    0x90f(%rip),%rdi
mov    %ebp,%esi
call   1050 <printf@plt>
lea    0x915(%rip),%rdi
mov    %ebp,%esi
call   1050 <printf@plt>
mov    %ebp,%eax
mov    %ebp,0x78(%rsp)
jmp    1750 <crm_3motifs_allt+0x5f0>
xchg   %ax,%ax
test   %r10d,%r10d
jle    1750 <crm_3motifs_allt+0x5f0>
mov    0x10(%rsp),%rax
cltq
mov    %r10d,%r8d
mov    $0x1,%edx
cmp    $0x1,%r10d
mov    0xc(%rsp),%ebp
mov    %rax,0x10(%rsp)
jne    1768 <crm_3motifs_allt+0x608>
mov    0x28(%rsp),%r10
mov    0x18(%rsp),%r9
test   $0x1,%r8b
jne    17e1 <crm_3motifs_allt+0x681>
jmp    1813 <crm_3motifs_allt+0x6b3>
nopl   0x0(%rax)
mov    0x30(%rsp),%rdi
mov    0x38(%rsp),%r8
mov    0x18(%rsp),%r9
mov    0xc(%rsp),%ebp
jmp    1820 <crm_3motifs_allt+0x6c0>
mov    %ebp,%r11d
mov    %r8d,%r9d
and    $0xfffffffe,%r9d
mov    0x90(%rsp),%rcx
lea    (%rcx,%rax,8),%rsi
xor    %edx,%edx
mov    0x28(%rsp),%r10
mov    0x8(%rsp),%ebp
nopl   0x0(%rax)
mov    -0x8(%rsi,%rdx,8),%rdi
mov    %ebp,0x4(%rdi)
mov    0x8(%r10,%rdx,8),%rcx
mov    0x4(%rcx),%eax
mov    %eax,0x8(%rdi)
mov    0x8(%rcx),%eax
mov    %eax,0xc(%rdi)
mov    (%rsi,%rdx,8),%rax
mov    %ebp,0x4(%rax)
mov    0x10(%r10,%rdx,8),%rcx
mov    0x4(%rcx),%edi
mov    %edi,0x8(%rax)
mov    0x8(%rcx),%ecx
mov    %ecx,0xc(%rax)
add    $0x2,%rdx
cmp    %rdx,%r9
jne    1790 <crm_3motifs_allt+0x630>
add    %rdx,0x10(%rsp)
add    $0x1,%rdx
mov    0x18(%rsp),%r9
mov    %r11d,%ebp
test   $0x1,%r8b
je     1813 <crm_3motifs_allt+0x6b3>
mov    0x148(%rsp),%rax
mov    0x10(%rsp),%rcx
mov    0x8(%rax,%rcx,8),%rax
add    $0x1,%rcx
mov    %rcx,0x10(%rsp)
mov    0x8(%rsp),%ecx
mov    %ecx,0x4(%rax)
mov    (%r10,%rdx,8),%rcx
mov    0x4(%rcx),%edx
mov    %edx,0x8(%rax)
mov    0x8(%rcx),%ecx
mov    %ecx,0xc(%rax)
mov    0x30(%rsp),%rdi
mov    0x38(%rsp),%r8
nopl   (%rax)
cmp    0x7c(%rsp),%ebp
mov    0x80(%rsp),%r10
jg     1844 <crm_3motifs_allt+0x6e4>
mov    0x8(%rsp),%ecx
mov    %ecx,%r11d
mov    0x130(%rsp),%eax
cmp    %eax,%ecx
jl     12f0 <crm_3motifs_allt+0x190>
mov    0x140(%rsp),%rax
mov    0x10(%rsp),%rcx
mov    %ecx,(%rax)
mov    %ebp,0x4(%rax)
mov    0x48(%rsp),%edx
mov    %edx,0x8(%rax)
cmpl   $0x0,0x4c(%rsp)
mov    0x58(%rsp),%rbx
mov    0x50(%rsp),%rbp
mov    0x78(%rsp),%edx
jns    188e <crm_3motifs_allt+0x72e>
jmp    1890 <crm_3motifs_allt+0x730>
movq   $0x0,(%rax)
movl   $0x0,0x8(%rax)
xor    %ecx,%ecx
mov    0x58(%rsp),%rbx
mov    0x50(%rsp),%rbp
mov    %ecx,%edx
mov    %edx,0xc(%rax)
mov    $0x1,%esi
mov    $0x3e8,%edx
call   1070 <free_ivector@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x3e8,%edx
call   1070 <free_ivector@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x3e8,%edx
call   1070 <free_ivector@plt>
mov    0x138(%rsp),%eax
cmp    $0x1,%eax
jne    18f1 <crm_3motifs_allt+0x791>
mov    0x28(%rsp),%rdi
mov    $0x1,%esi
mov    $0x3e8,%edx
mov    $0x1,%ecx
mov    $0x2,%r8d
call   1060 <free_imatrix@plt>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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