#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_2motifs(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_2motifs_allt(int *m1_t, int *m2_t, int *m1_p, int *m2_p, int n1,
                      int n2, 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 curr_n1, curr_n2;
  int curr_tr1, curr_tr2;
  int ec = 0;
  int errorcode = 0;
  int i, j;
  int i1, i2;
  int max_crm_positions_transcript = 1000;
  int max_transcript_occurrences = 1000;
  int n12;
  int n12_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];
  m1p = ivector(1, max_transcript_occurrences);
  m2p = 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) & (n12_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;
    }
    if ((curr_n1 + curr_n2) >= N) {
      crm_2motifs(m1p, m2p, curr_n1, curr_n2, N, dw,
                  max_crm_positions_transcript, 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)
      n12_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] = n12_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);
  if (report_all == 1)
    free_imatrix(crm_positions_transcript, 1, max_crm_positions_transcript, 1,
                 2);
}


x86 assembly (clang, -O0):
<crm_2motifs_allt>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0xc0,%rsp
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
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,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8d,-0x34(%rbp)
mov    %r9d,-0x38(%rbp)
movl   $0x0,-0x64(%rbp)
movl   $0x0,-0x68(%rbp)
movl   $0x3e8,-0x7c(%rbp)
movl   $0x3e8,-0x80(%rbp)
movl   $0x0,-0x88(%rbp)
movl   $0x0,-0x9c(%rbp)
movl   $0x0,-0xa4(%rbp)
movl   $0x1,-0x74(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x5c(%rbp)
movl   $0x1,-0x78(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x60(%rbp)
mov    -0x80(%rbp),%esi
mov    $0x1,%edi
call   1080 <ivector@plt>
mov    %rax,-0x48(%rbp)
mov    -0x80(%rbp),%esi
mov    $0x1,%edi
call   1080 <ivector@plt>
mov    %rax,-0x50(%rbp)
cmpl   $0x1,0x40(%rbp)
jne    124b <crm_2motifs_allt+0xeb>
mov    -0x7c(%rbp),%esi
mov    $0x1,%edx
mov    $0x2,%ecx
mov    %edx,%edi
call   1030 <imatrix@plt>
mov    %rax,-0x40(%rbp)
cmpl   $0x0,0x10(%rbp)
jge    125e <crm_2motifs_allt+0xfe>
mov    0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,0x10(%rbp)
jmp    1263 <crm_2motifs_allt+0x103>
mov    -0xa4(%rbp),%eax
cmp    0x38(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x88(%rbp),%ecx
cmp    0x10(%rbp),%ecx
setle  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1638 <crm_2motifs_allt+0x4d8>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0xa4(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x0,-0x5c(%rbp)
setge  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
mov    -0x74(%rbp),%ecx
cmp    -0x34(%rbp),%ecx
setl   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     12f6 <crm_2motifs_allt+0x196>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x5c(%rbp)
jmp    12a0 <crm_2motifs_allt+0x140>
movl   $0x0,-0x54(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0xa4(%rbp),%eax
jne    1395 <crm_2motifs_allt+0x235>
jmp    1311 <crm_2motifs_allt+0x1b1>
mov    -0x5c(%rbp),%eax
cmp    -0xa4(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x74(%rbp),%ecx
cmp    -0x34(%rbp),%ecx
setle  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1383 <crm_2motifs_allt+0x223>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x48(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x74(%rbp),%eax
cmp    -0x34(%rbp),%eax
jg     137e <crm_2motifs_allt+0x21e>
mov    -0x18(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x5c(%rbp)
jmp    1311 <crm_2motifs_allt+0x1b1>
mov    -0x74(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x74(%rbp)
mov    -0xa4(%rbp),%eax
mov    %eax,-0x5c(%rbp)
jmp    139a <crm_2motifs_allt+0x23a>
mov    -0x60(%rbp),%eax
cmp    -0xa4(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x0,-0x60(%rbp)
setge  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
mov    -0x78(%rbp),%ecx
cmp    -0x38(%rbp),%ecx
setl   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     13f0 <crm_2motifs_allt+0x290>
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x60(%rbp)
jmp    139a <crm_2motifs_allt+0x23a>
movl   $0x0,-0x58(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0xa4(%rbp),%eax
jne    148f <crm_2motifs_allt+0x32f>
jmp    140b <crm_2motifs_allt+0x2ab>
mov    -0x60(%rbp),%eax
cmp    -0xa4(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x78(%rbp),%ecx
cmp    -0x38(%rbp),%ecx
setle  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     147d <crm_2motifs_allt+0x31d>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x50(%rbp),%rax
movslq -0x58(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x78(%rbp),%eax
cmp    -0x38(%rbp),%eax
jg     1478 <crm_2motifs_allt+0x318>
mov    -0x20(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x60(%rbp)
jmp    140b <crm_2motifs_allt+0x2ab>
mov    -0x78(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x78(%rbp)
mov    -0xa4(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x54(%rbp),%eax
add    -0x58(%rbp),%eax
cmp    0x20(%rbp),%eax
jl     150f <crm_2motifs_allt+0x3af>
mov    -0x48(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x54(%rbp),%edx
mov    -0x58(%rbp),%ecx
mov    0x20(%rbp),%r8d
mov    0x28(%rbp),%r9d
mov    -0x7c(%rbp),%r14d
mov    0x30(%rbp),%ebx
mov    0x40(%rbp),%r11d
lea    -0x98(%rbp),%r10
mov    -0x40(%rbp),%rax
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
call   1040 <crm_2motifs@plt>
mov    -0x98(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x94(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x8c(%rbp),%eax
sub    -0x68(%rbp),%eax
mov    %eax,-0x90(%rbp)
jmp    1523 <crm_2motifs_allt+0x3c3>
movl   $0x0,-0x8c(%rbp)
movl   $0x0,-0x90(%rbp)
cmpl   $0x0,-0x8c(%rbp)
jle    153f <crm_2motifs_allt+0x3df>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
cmpl   $0x1,0x40(%rbp)
jne    1633 <crm_2motifs_allt+0x4d3>
mov    -0x9c(%rbp),%eax
add    -0x8c(%rbp),%eax
cmp    0x18(%rbp),%eax
jle    159c <crm_2motifs_allt+0x43c>
mov    -0x64(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x64(%rbp)
mov    -0x9c(%rbp),%eax
mov    %eax,-0xa0(%rbp)
mov    -0x9c(%rbp),%esi
lea    0xa80(%rip),%rdi
call   1050 <printf@plt>
mov    -0xa0(%rbp),%esi
lea    0xa82(%rip),%rdi
call   1050 <printf@plt>
jmp    162e <crm_2motifs_allt+0x4ce>
movl   $0x1,-0x6c(%rbp)
mov    -0x6c(%rbp),%eax
cmp    -0x90(%rbp),%eax
jg     1629 <crm_2motifs_allt+0x4c9>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
mov    -0xa4(%rbp),%ecx
mov    0x50(%rbp),%rax
movslq -0x9c(%rbp),%rdx
mov    (%rax,%rdx,8),%rax
mov    %ecx,0x4(%rax)
mov    -0x40(%rbp),%rax
movslq -0x6c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x4(%rax),%ecx
mov    0x50(%rbp),%rax
movslq -0x9c(%rbp),%rdx
mov    (%rax,%rdx,8),%rax
mov    %ecx,0x8(%rax)
mov    -0x40(%rbp),%rax
movslq -0x6c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x8(%rax),%ecx
mov    0x50(%rbp),%rax
movslq -0x9c(%rbp),%rdx
mov    (%rax,%rdx,8),%rax
mov    %ecx,0xc(%rax)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    15a3 <crm_2motifs_allt+0x443>
jmp    162e <crm_2motifs_allt+0x4ce>
jmp    1633 <crm_2motifs_allt+0x4d3>
jmp    1263 <crm_2motifs_allt+0x103>
mov    -0x9c(%rbp),%ecx
mov    0x48(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x88(%rbp),%ecx
mov    0x48(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x64(%rbp),%ecx
mov    0x48(%rbp),%rax
mov    %ecx,0x8(%rax)
cmpl   $0x0,-0x68(%rbp)
jge    1677 <crm_2motifs_allt+0x517>
mov    -0xa0(%rbp),%ecx
mov    0x48(%rbp),%rax
mov    %ecx,0xc(%rax)
jmp    1684 <crm_2motifs_allt+0x524>
mov    -0x9c(%rbp),%ecx
mov    0x48(%rbp),%rax
mov    %ecx,0xc(%rax)
mov    -0x48(%rbp),%rdi
mov    -0x80(%rbp),%edx
mov    $0x1,%esi
call   1070 <free_ivector@plt>
mov    -0x50(%rbp),%rdi
mov    -0x80(%rbp),%edx
mov    $0x1,%esi
call   1070 <free_ivector@plt>
cmpl   $0x1,0x40(%rbp)
jne    16c9 <crm_2motifs_allt+0x569>
mov    -0x40(%rbp),%rdi
mov    -0x7c(%rbp),%edx
mov    $0x1,%ecx
mov    $0x2,%r8d
mov    %ecx,%esi
call   1060 <free_imatrix@plt>
add    $0xc0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<crm_2motifs_allt>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %r9d,0x2c(%rsp)
mov    %r8d,0x28(%rsp)
mov    %rcx,0x90(%rsp)
mov    %rdx,0x88(%rsp)
mov    0x100(%rsp),%ebp
mov    0xf8(%rsp),%r15d
mov    0xd0(%rsp),%ebx
mov    %rdi,0x48(%rsp)
mov    0x4(%rdi),%r14d
mov    %rsi,0x30(%rsp)
mov    0x4(%rsi),%r13d
mov    $0x1,%edi
mov    $0x3e8,%esi
call   1080 <ivector@plt>
mov    %rax,0x40(%rsp)
mov    $0x1,%edi
mov    $0x3e8,%esi
call   1080 <ivector@plt>
mov    %rbp,%r10
mov    %rax,0x58(%rsp)
cmp    $0x1,%r10d
jne    1208 <crm_2motifs_allt+0xa8>
mov    $0x1,%edi
mov    $0x3e8,%esi
mov    $0x1,%edx
mov    $0x2,%ecx
call   1030 <imatrix@plt>
mov    0x100(%rsp),%r11d
mov    %r11,%r10
mov    0x108(%rsp),%rcx
lea    0x1(%r15),%edx
test   %ebx,%ebx
cmovns %ebx,%edx
mov    %edx,0x6c(%rsp)
test   %edx,%edx
mov    0x40(%rsp),%rdi
mov    %rax,0x38(%rsp)
js     16d3 <crm_2motifs_allt+0x573>
test   %r15d,%r15d
jle    16d3 <crm_2motifs_allt+0x573>
mov    0x110(%rsp),%rcx
movslq 0x28(%rsp),%rbx
movslq 0x2c(%rsp),%rdx
mov    %rdx,0x60(%rsp)
mov    0x30(%rsp),%r9
lea    0x4(%r9),%rdx
mov    %rdx,0x80(%rsp)
add    $0x10,%rcx
mov    %rcx,0x78(%rsp)
mov    $0x1,%r12d
xor    %r8d,%r8d
xor    %ecx,%ecx
mov    %rcx,0x10(%rsp)
movl   $0x0,0x24(%rsp)
mov    $0x1,%ebp
movl   $0x0,0x54(%rsp)
movl   $0x0,0x50(%rsp)
mov    0x48(%rsp),%r15
mov    %rbx,0x18(%rsp)
lea    0x1(%r8),%ecx
mov    %ecx,0xc(%rsp)
xor    %ecx,%ecx
cmp    %r8d,%r14d
setle  %cl
mov    %r14d,%edx
not    %edx
shr    $0x1f,%edx
and    %ecx,%edx
xor    %ecx,%ecx
cmp    0x28(%rsp),%ebp
setl   %cl
test   %ecx,%edx
je     12f9 <crm_2motifs_allt+0x199>
movslq %ebp,%rcx
add    $0x1,%rcx
xchg   %ax,%ax
mov    (%r15,%rcx,4),%r14d
xor    %edx,%edx
cmp    %r8d,%r14d
setle  %dl
mov    %r14d,%esi
not    %esi
shr    $0x1f,%esi
and    %edx,%esi
xor    %edx,%edx
cmp    %rbx,%rcx
setl   %dl
add    $0x1,%ebp
add    $0x1,%rcx
test   %edx,%esi
jne    12d0 <crm_2motifs_allt+0x170>
xor    %edx,%edx
cmp    0xc(%rsp),%r14d
jne    1320 <crm_2motifs_allt+0x1c0>
xor    %edx,%edx
cmp    0x28(%rsp),%ebp
mov    0x60(%rsp),%r15
jle    1330 <crm_2motifs_allt+0x1d0>
mov    0xc(%rsp),%r14d
jmp    138c <crm_2motifs_allt+0x22c>
cs nopw 0x0(%rax,%rax,1)
mov    0x60(%rsp),%r15
jmp    138f <crm_2motifs_allt+0x22f>
nopw   0x0(%rax,%rax,1)
mov    %r10,%r11
movslq %ebp,%rcx
add    $0x1,%ebp
mov    $0x1,%esi
mov    %ebp,%ebx
mov    0x88(%rsp),%r10
mov    0xc(%rsp),%r14d
nopl   (%rax)
mov    %ebx,%ebp
mov    %rsi,%rdx
mov    (%r10,%rcx,4),%esi
mov    %esi,(%rdi,%rdx,4)
cmp    0x18(%rsp),%rcx
jge    1384 <crm_2motifs_allt+0x224>
mov    0x48(%rsp),%rsi
cmp    %r14d,0x4(%rsi,%rcx,4)
jne    1384 <crm_2motifs_allt+0x224>
lea    0x1(%rbp),%ebx
lea    0x1(%rdx),%rsi
lea    0x1(%rcx),%r9
cmp    0x18(%rsp),%rcx
mov    %r9,%rcx
jl     1350 <crm_2motifs_allt+0x1f0>
mov    0x30(%rsp),%r9
mov    %r11,%r10
add    $0xffffffff,%ebp
xor    %ecx,%ecx
cmp    %r8d,%r13d
setle  %cl
mov    %r13d,%esi
not    %esi
shr    $0x1f,%esi
and    %ecx,%esi
xor    %ecx,%ecx
cmp    0x2c(%rsp),%r12d
setl   %cl
test   %ecx,%esi
je     13ec <crm_2motifs_allt+0x28c>
movslq %r12d,%rcx
add    $0x1,%rcx
cs nopw 0x0(%rax,%rax,1)
mov    (%r9,%rcx,4),%r13d
xor    %esi,%esi
cmp    %r8d,%r13d
setle  %sil
mov    %r13d,%ebx
not    %ebx
shr    $0x1f,%ebx
and    %esi,%ebx
xor    %esi,%esi
cmp    %r15,%rcx
setl   %sil
add    $0x1,%r12d
add    $0x1,%rcx
test   %esi,%ebx
jne    13c0 <crm_2motifs_allt+0x260>
xor    %r11d,%r11d
cmp    0xc(%rsp),%r13d
jne    1420 <crm_2motifs_allt+0x2c0>
xor    %ecx,%ecx
cmp    0x2c(%rsp),%r12d
mov    0x48(%rsp),%r15
jle    1440 <crm_2motifs_allt+0x2e0>
mov    0xe0(%rsp),%r8d
jmp    14c2 <crm_2motifs_allt+0x362>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %ecx,%ecx
mov    0x48(%rsp),%r15
mov    0xe0(%rsp),%r8d
jmp    14cb <crm_2motifs_allt+0x36b>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movslq %r12d,%rcx
mov    0x90(%rsp),%rax
lea    (%rax,%rcx,4),%r10
mov    0x80(%rsp),%rax
lea    (%rax,%rcx,4),%r9
xor    %edi,%edi
mov    0x58(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rdi,%rsi
lea    (%rcx,%rdi,1),%rax
mov    (%r10,%rdi,4),%edi
mov    %edi,0x4(%r13,%rsi,4)
cmp    0x60(%rsp),%rax
jge    149c <crm_2motifs_allt+0x33c>
mov    0xc(%rsp),%edi
cmp    %edi,(%r9,%rsi,4)
jne    149c <crm_2motifs_allt+0x33c>
lea    0x1(%rsi),%rdi
cmp    0x60(%rsp),%rax
jl     1470 <crm_2motifs_allt+0x310>
mov    %esi,%ecx
add    $0x1,%ecx
add    %esi,%r12d
add    $0x1,%r12d
mov    0x40(%rsp),%rdi
mov    0x38(%rsp),%rax
mov    0xe0(%rsp),%r8d
mov    0x100(%rsp),%r10d
add    $0xffffffff,%r12d
mov    0xc(%rsp),%r13d
lea    (%rcx,%rdx,1),%esi
cmp    %r8d,%esi
jge    14e0 <crm_2motifs_allt+0x380>
xor    %ecx,%ecx
cmp    $0x1,%r10d
je     1545 <crm_2motifs_allt+0x3e5>
jmp    1670 <crm_2motifs_allt+0x510>
sub    $0x8,%rsp
mov    0x60(%rsp),%rsi
mov    0xf0(%rsp),%r9d
push   %rax
lea    0x80(%rsp),%rax
push   %rax
push   %r10
mov    0x110(%rsp),%eax
push   %rax
push   $0x3e8
call   1040 <crm_2motifs@plt>
mov    0x130(%rsp),%r11d
mov    %r11,%r10
add    $0x30,%rsp
mov    0x70(%rsp),%ecx
mov    0x74(%rsp),%eax
mov    %ecx,%r11d
mov    %eax,0x54(%rsp)
sub    %eax,%r11d
xor    %eax,%eax
test   %ecx,%ecx
setg   %al
add    %eax,0x24(%rsp)
cmp    $0x1,%r10d
jne    1670 <crm_2motifs_allt+0x510>
mov    0x10(%rsp),%rbx
add    %ebx,%ecx
cmp    0xd8(%rsp),%ecx
jle    1590 <crm_2motifs_allt+0x430>
addl   $0xffffffff,0x50(%rsp)
lea    0xa9f(%rip),%rdi
mov    %ebx,%esi
call   1050 <printf@plt>
lea    0xaa5(%rip),%rdi
mov    %ebx,%esi
call   1050 <printf@plt>
mov    0x100(%rsp),%r11d
mov    %r11,%r10
mov    %ebx,%eax
mov    %ebx,0x68(%rsp)
jmp    1670 <crm_2motifs_allt+0x510>
nopl   0x0(%rax)
test   %r11d,%r11d
jle    1670 <crm_2motifs_allt+0x510>
mov    0x10(%rsp),%rcx
movslq %ecx,%rcx
mov    %r11d,%r9d
mov    $0x1,%edx
cmp    $0x1,%r11d
mov    0x38(%rsp),%rax
mov    %rcx,0x10(%rsp)
je     1618 <crm_2motifs_allt+0x4b8>
mov    %r9d,%r8d
and    $0xfffffffe,%r8d
mov    0x78(%rsp),%rdx
lea    (%rdx,%rcx,8),%r11
xor    %edx,%edx
mov    0xc(%rsp),%esi
nop
mov    -0x8(%r11,%rdx,8),%rdi
mov    %esi,0x4(%rdi)
mov    0x8(%rax,%rdx,8),%rcx
mov    0x4(%rcx),%ebx
mov    %ebx,0x8(%rdi)
mov    0x8(%rcx),%ecx
mov    %ecx,0xc(%rdi)
mov    (%r11,%rdx,8),%rbx
mov    %esi,0x4(%rbx)
mov    0x10(%rax,%rdx,8),%rcx
mov    0x4(%rcx),%edi
mov    %edi,0x8(%rbx)
mov    0x8(%rcx),%ecx
mov    %ecx,0xc(%rbx)
add    $0x2,%rdx
cmp    %rdx,%r8
jne    15d0 <crm_2motifs_allt+0x470>
add    %rdx,0x10(%rsp)
add    $0x1,%rdx
mov    0x48(%rsp),%r15
mov    0x18(%rsp),%rbx
test   $0x1,%r9b
je     1655 <crm_2motifs_allt+0x4f5>
mov    0x110(%rsp),%rcx
mov    0x10(%rsp),%rdi
mov    0x8(%rcx,%rdi,8),%rsi
add    $0x1,%rdi
mov    %rdi,0x10(%rsp)
mov    0xc(%rsp),%ecx
mov    %ecx,0x4(%rsi)
mov    (%rax,%rdx,8),%rcx
mov    0x4(%rcx),%edx
mov    %edx,0x8(%rsi)
mov    0x8(%rcx),%ecx
mov    %ecx,0xc(%rsi)
mov    0x40(%rsp),%rdi
mov    0x30(%rsp),%r9
jmp    1684 <crm_2motifs_allt+0x524>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x40(%rsp),%rdi
mov    0x38(%rsp),%rax
mov    0x30(%rsp),%r9
mov    0x18(%rsp),%rbx
mov    0x24(%rsp),%ecx
cmp    0x6c(%rsp),%ecx
jg     16a4 <crm_2motifs_allt+0x544>
mov    0xc(%rsp),%edx
mov    %edx,%r8d
mov    0xf8(%rsp),%ecx
cmp    %ecx,%edx
jl     12a0 <crm_2motifs_allt+0x140>
mov    0x108(%rsp),%rcx
mov    0x10(%rsp),%rax
mov    %eax,(%rcx)
mov    0x24(%rsp),%edx
mov    %edx,0x4(%rcx)
mov    0x50(%rsp),%edx
mov    %edx,0x8(%rcx)
cmpl   $0x0,0x54(%rsp)
mov    0x58(%rsp),%rbx
mov    0x68(%rsp),%edx
jns    16e8 <crm_2motifs_allt+0x588>
jmp    16ea <crm_2motifs_allt+0x58a>
movq   $0x0,(%rcx)
movl   $0x0,0x8(%rcx)
xor    %eax,%eax
mov    0x58(%rsp),%rbx
mov    %eax,%edx
mov    %edx,0xc(%rcx)
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    0x100(%rsp),%eax
cmp    $0x1,%eax
jne    1739 <crm_2motifs_allt+0x5d9>
mov    0x38(%rsp),%rdi
mov    $0x1,%esi
mov    $0x3e8,%edx
mov    $0x1,%ecx
mov    $0x2,%r8d
call   1060 <free_imatrix@plt>
add    $0x98,%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_2motifs_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) {
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32*
%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 [2 x i32]
%51 = alloca i32
%52 = alloca i32
%53 = alloca i32
store i32* %0, i32** %16
store i32* %1, i32** %17
store i32* %2, i32** %18
store i32* %3, i32** %19
store i32 %4, i32* %20
store i32 %5, i32* %21
store i32 %6, i32* %22
store i32 %7, i32* %23
store i32 %8, i32* %24
store i32 %9, i32* %25
store i32 %10, i32* %26
store i32 %11, i32* %27
store i32 %12, i32* %28
store i32* %13, i32** %29
store i32** %14, i32*** %30
store i32 0, i32* %38
store i32 0, i32* %39
store i32 1000, i32* %44
store i32 1000, i32* %45
store i32 0, i32* %47
store i32 0, i32* %51
store i32 0, i32* %53
store i32 1, i32* %42
%54 = load i32*, i32** %16
%55 = load i32, i32* %42
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, i32* %54, i64 %56
%58 = load i32, i32* %57
store i32 %58, i32* %36
store i32 1, i32* %43
%59 = load i32*, i32** %17
%60 = load i32, i32* %43
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, i32* %59, i64 %61
%63 = load i32, i32* %62
store i32 %63, i32* %37
%64 = load i32, i32* %45
%65 = call i32* @ivector(i32 1, i32 %64)
store i32* %65, i32** %32
%66 = load i32, i32* %45
%67 = call i32* @ivector(i32 1, i32 %66)
store i32* %67, i32** %33
%68 = load i32, i32* %28
%69 = icmp eq i32 %68, 1
br i1 %69, label %70, label %73
70: ; preds = %15
%71 = load i32, i32* %44
%72 = call i32** @imatrix(i32 1, i32 %71, i32 1, i32 2)
store i32** %72, i32*** %31
br label %73
73: ; preds = %70, %15
%74 = load i32, i32* %22
%75 = icmp slt i32 %74, 0
br i1 %75, label %76, label %79
76: ; preds = %73
%77 = load i32, i32* %27
%78 = add nsw i32 %77, 1
store i32 %78, i32* %22
br label %79
79: ; preds = %76, %73
br label %80
80: ; preds = %325, %79
%81 = load i32, i32* %53
%82 = load i32, i32* %27
%83 = icmp slt i32 %81, %82
%84 = zext i1 %83 to i32
%85 = load i32, i32* %47
%86 = load i32, i32* %22
%87 = icmp sle i32 %85, %86
%88 = zext i1 %87 to i32
%89 = and i32 %84, %88
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %326
91: ; preds = %80
%92 = load i32, i32* %53
%93 = add nsw i32 %92, 1
store i32 %93, i32* %53
br label %94
94: ; preds = %109, %91
%95 = load i32, i32* %36
%96 = load i32, i32* %53
%97 = icmp slt i32 %95, %96
%98 = zext i1 %97 to i32
%99 = load i32, i32* %36
%100 = icmp sge i32 %99, 0
%101 = zext i1 %100 to i32
%102 = and i32 %98, %101
%103 = load i32, i32* %42
%104 = load i32, i32* %20
%105 = icmp slt i32 %103, %104
%106 = zext i1 %105 to i32
%107 = and i32 %102, %106
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %117
109: ; preds = %94
%110 = load i32, i32* %42
%111 = add nsw i32 %110, 1
store i32 %111, i32* %42
%112 = load i32*, i32** %16
%113 = load i32, i32* %42
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i32, i32* %112, i64 %114
%116 = load i32, i32* %115
store i32 %116, i32* %36
br label %94
117: ; preds = %94
store i32 0, i32* %34
%118 = load i32, i32* %36
%119 = load i32, i32* %53
%120 = icmp eq i32 %118, %119
br i1 %120, label %121, label %161
121: ; preds = %117
br label %122
122: ; preds = %156, %121
%123 = load i32, i32* %36
%124 = load i32, i32* %53
%125 = icmp eq i32 %123, %124
%126 = zext i1 %125 to i32
%127 = load i32, i32* %42
%128 = load i32, i32* %20
%129 = icmp sle i32 %127, %128
%130 = zext i1 %129 to i32
%131 = and i32 %126, %130
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %157
133: ; preds = %122
%134 = load i32, i32* %34
%135 = add nsw i32 %134, 1
store i32 %135, i32* %34
%136 = load i32*, i32** %18
%137 = load i32, i32* %42
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i32, i32* %136, i64 %138
%140 = load i32, i32* %139
%141 = load i32*, i32** %32
%142 = load i32, i32* %34
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i32, i32* %141, i64 %143
store i32 %140, i32* %144
%145 = load i32, i32* %42
%146 = add nsw i32 %145, 1
store i32 %146, i32* %42
%147 = load i32, i32* %42
%148 = load i32, i32* %20
%149 = icmp sle i32 %147, %148
br i1 %149, label %150, label %156
150: ; preds = %133
%151 = load i32*, i32** %16
%152 = load i32, i32* %42
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds i32, i32* %151, i64 %153
%155 = load i32, i32* %154
store i32 %155, i32* %36
br label %156
156: ; preds = %150, %133
br label %122
157: ; preds = %122
%158 = load i32, i32* %42
%159 = add nsw i32 %158, -1
store i32 %159, i32* %42
%160 = load i32, i32* %53
store i32 %160, i32* %36
br label %161
161: ; preds = %157, %117
br label %162
162: ; preds = %177, %161
%163 = load i32, i32* %37
%164 = load i32, i32* %53
%165 = icmp slt i32 %163, %164
%166 = zext i1 %165 to i32
%167 = load i32, i32* %37
%168 = icmp sge i32 %167, 0
%169 = zext i1 %168 to i32
%170 = and i32 %166, %169
%171 = load i32, i32* %43
%172 = load i32, i32* %21
%173 = icmp slt i32 %171, %172
%174 = zext i1 %173 to i32
%175 = and i32 %170, %174
%176 = icmp ne i32 %175, 0
br i1 %176, label %177, label %185
177: ; preds = %162
%178 = load i32, i32* %43
%179 = add nsw i32 %178, 1
store i32 %179, i32* %43
%180 = load i32*, i32** %17
%181 = load i32, i32* %43
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds i32, i32* %180, i64 %182
%184 = load i32, i32* %183
store i32 %184, i32* %37
br label %162
185: ; preds = %162
store i32 0, i32* %35
%186 = load i32, i32* %37
%187 = load i32, i32* %53
%188 = icmp eq i32 %186, %187
br i1 %188, label %189, label %229
189: ; preds = %185
br label %190
190: ; preds = %224, %189
%191 = load i32, i32* %37
%192 = load i32, i32* %53
%193 = icmp eq i32 %191, %192
%194 = zext i1 %193 to i32
%195 = load i32, i32* %43
%196 = load i32, i32* %21
%197 = icmp sle i32 %195, %196
%198 = zext i1 %197 to i32
%199 = and i32 %194, %198
%200 = icmp ne i32 %199, 0
br i1 %200, label %201, label %225
201: ; preds = %190
%202 = load i32, i32* %35
%203 = add nsw i32 %202, 1
store i32 %203, i32* %35
%204 = load i32*, i32** %19
%205 = load i32, i32* %43
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds i32, i32* %204, i64 %206
%208 = load i32, i32* %207
%209 = load i32*, i32** %33
%210 = load i32, i32* %35
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds i32, i32* %209, i64 %211
store i32 %208, i32* %212
%213 = load i32, i32* %43
%214 = add nsw i32 %213, 1
store i32 %214, i32* %43
%215 = load i32, i32* %43
%216 = load i32, i32* %21
%217 = icmp sle i32 %215, %216
br i1 %217, label %218, label %224
218: ; preds = %201
%219 = load i32*, i32** %17
%220 = load i32, i32* %43
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds i32, i32* %219, i64 %221
%223 = load i32, i32* %222
store i32 %223, i32* %37
br label %224
224: ; preds = %218, %201
br label %190
225: ; preds = %190
%226 = load i32, i32* %43
%227 = add nsw i32 %226, -1
store i32 %227, i32* %43
%228 = load i32, i32* %53
store i32 %228, i32* %37
br label %229
229: ; preds = %225, %185
%230 = load i32, i32* %34
%231 = load i32, i32* %35
%232 = add nsw i32 %230, %231
%233 = load i32, i32* %24
%234 = icmp sge i32 %232, %233
br i1 %234, label %235, label %255
235: ; preds = %229
%236 = load i32*, i32** %32
%237 = load i32*, i32** %33
%238 = load i32, i32* %34
%239 = load i32, i32* %35
%240 = load i32, i32* %24
%241 = load i32, i32* %25
%242 = load i32, i32* %44
%243 = load i32, i32* %26
%244 = load i32, i32* %28
%245 = getelementptr inbounds [2 x i32], [2 x i32]* %50, i64 0, i64 0
%246 = load i32**, i32*** %31
%247 = call i32 @crm_2motifs(i32* %236, i32* %237, i32 %238, i32 %239, i32 %240, i32 %241, i32 %242, i32 %243, i32 %244, i32* %245, i32** %246)
%248 = getelementptr inbounds [2 x i32], [2 x i32]* %50, i64 0, i64 0
%249 = load i32, i32* %248
store i32 %249, i32* %48
%250 = getelementptr inbounds [2 x i32], [2 x i32]* %50, i64 0, i64 1
%251 = load i32, i32* %250
store i32 %251, i32* %39
%252 = load i32, i32* %48
%253 = load i32, i32* %39
%254 = sub nsw i32 %252, %253
store i32 %254, i32* %49
br label %256
255: ; preds = %229
store i32 0, i32* %48
store i32 0, i32* %49
br label %256
256: ; preds = %255, %235
%257 = load i32, i32* %48
%258 = icmp sgt i32 %257, 0
br i1 %258, label %259, label %262
259: ; preds = %256
%260 = load i32, i32* %47
%261 = add nsw i32 %260, 1
store i32 %261, i32* %47
br label %262
262: ; preds = %259, %256
%263 = load i32, i32* %28
%264 = icmp eq i32 %263, 1
br i1 %264, label %265, label %325
265: ; preds = %262
%266 = load i32, i32* %51
%267 = load i32, i32* %48
%268 = add nsw i32 %266, %267
%269 = load i32, i32* %23
%270 = icmp sgt i32 %268, %269
br i1 %270, label %271, label %279
271: ; preds = %265
%272 = load i32, i32* %38
%273 = add nsw i32 %272, -1
store i32 %273, i32* %38
%274 = load i32, i32* %51
store i32 %274, i32* %52
%275 = load i32, i32* %51
%276 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %275)
%277 = load i32, i32* %52
%278 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %277)
br label %324
279: ; preds = %265
store i32 1, i32* %40
br label %280
280: ; preds = %320, %279
%281 = load i32, i32* %40
%282 = load i32, i32* %49
%283 = icmp sle i32 %281, %282
br i1 %283, label %284, label %323
284: ; preds = %280
%285 = load i32, i32* %51
%286 = add nsw i32 %285, 1
store i32 %286, i32* %51
%287 = load i32, i32* %53
%288 = load i32**, i32*** %30
%289 = load i32, i32* %51
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds i32*, i32** %288, i64 %290
%292 = load i32*, i32** %291
%293 = getelementptr inbounds i32, i32* %292, i64 1
store i32 %287, i32* %293
%294 = load i32**, i32*** %31
%295 = load i32, i32* %40
%296 = sext i32 %295 to i64
%297 = getelementptr inbounds i32*, i32** %294, i64 %296
%298 = load i32*, i32** %297
%299 = getelementptr inbounds i32, i32* %298, i64 1
%300 = load i32, i32* %299
%301 = load i32**, i32*** %30
%302 = load i32, i32* %51
%303 = sext i32 %302 to i64
%304 = getelementptr inbounds i32*, i32** %301, i64 %303
%305 = load i32*, i32** %304
%306 = getelementptr inbounds i32, i32* %305, i64 2
store i32 %300, i32* %306
%307 = load i32**, i32*** %31
%308 = load i32, i32* %40
%309 = sext i32 %308 to i64
%310 = getelementptr inbounds i32*, i32** %307, i64 %309
%311 = load i32*, i32** %310
%312 = getelementptr inbounds i32, i32* %311, i64 2
%313 = load i32, i32* %312
%314 = load i32**, i32*** %30
%315 = load i32, i32* %51
%316 = sext i32 %315 to i64
%317 = getelementptr inbounds i32*, i32** %314, i64 %316
%318 = load i32*, i32** %317
%319 = getelementptr inbounds i32, i32* %318, i64 3
store i32 %313, i32* %319
br label %320
320: ; preds = %284
%321 = load i32, i32* %40
%322 = add nsw i32 %321, 1
store i32 %322, i32* %40
br label %280
323: ; preds = %280
br label %324
324: ; preds = %323, %271
br label %325
325: ; preds = %324, %262
br label %80
326: ; preds = %80
%327 = load i32, i32* %51
%328 = load i32*, i32** %29
%329 = getelementptr inbounds i32, i32* %328, i64 0
store i32 %327, i32* %329
%330 = load i32, i32* %47
%331 = load i32*, i32** %29
%332 = getelementptr inbounds i32, i32* %331, i64 1
store i32 %330, i32* %332
%333 = load i32, i32* %38
%334 = load i32*, i32** %29
%335 = getelementptr inbounds i32, i32* %334, i64 2
store i32 %333, i32* %335
%336 = load i32, i32* %39
%337 = icmp slt i32 %336, 0
br i1 %337, label %338, label %342
338: ; preds = %326
%339 = load i32, i32* %52
%340 = load i32*, i32** %29
%341 = getelementptr inbounds i32, i32* %340, i64 3
store i32 %339, i32* %341
br label %346
342: ; preds = %326
%343 = load i32, i32* %51
%344 = load i32*, i32** %29
%345 = getelementptr inbounds i32, i32* %344, i64 3
store i32 %343, i32* %345
br label %346
346: ; preds = %342, %338
%347 = load i32*, i32** %32
%348 = load i32, i32* %45
%349 = call i32 @free_ivector(i32* %347, i32 1, i32 %348)
%350 = load i32*, i32** %33
%351 = load i32, i32* %45
%352 = call i32 @free_ivector(i32* %350, i32 1, i32 %351)
%353 = load i32, i32* %28
%354 = icmp eq i32 %353, 1
br i1 %354, label %355, label %359
355: ; preds = %346
%356 = load i32**, i32*** %31
%357 = load i32, i32* %44
%358 = call i32 @free_imatrix(i32** %356, i32 1, i32 %357, i32 1, i32 2)
br label %359
359: ; preds = %355, %346
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_2motifs_allt(i32* nocapture %0, i32* nocapture %1, i32* nocapture %2, i32* nocapture %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11, i32 %12, i32* nocapture writeonly %13, i32** nocapture %14) {
%16 = alloca [2 x i32]
%17 = bitcast [2 x i32]* %16 to i8*
%18 = getelementptr inbounds i32, i32* %0, i64 1
%19 = load i32, i32* %18
%20 = getelementptr inbounds i32, i32* %1, i64 1
%21 = load i32, i32* %20
%22 = tail call i32* @ivector(i32 1, i32 1000)
%23 = tail call i32* @ivector(i32 1, i32 1000)
%24 = icmp eq i32 %12, 1
br i1 %24, label %25, label %27
25: ; preds = %15
%26 = tail call i32** @imatrix(i32 1, i32 1000, i32 1, i32 2)
br label %27
27: ; preds = %25, %15
%28 = phi i32** [ %26, %25 ], [ undef, %15 ]
%29 = icmp slt i32 %6, 0
%30 = add nsw i32 %11, 1
%31 = select i1 %29, i32 %30, i32 %6
%32 = icmp sgt i32 %11, 0
%33 = icmp sgt i32 %31, -1
%34 = and i1 %33, %32
br i1 %34, label %38, label %35
35: ; preds = %27
store i32 0, i32* %13
%36 = getelementptr inbounds i32, i32* %13, i64 1
store i32 0, i32* %36
%37 = getelementptr inbounds i32, i32* %13, i64 2
store i32 0, i32* %37
br label %270
38: ; preds = %27
%39 = getelementptr inbounds [2 x i32], [2 x i32]* %16, i64 0, i64 0
%40 = getelementptr inbounds [2 x i32], [2 x i32]* %16, i64 0, i64 1
%41 = sext i32 %4 to i64
%42 = sext i32 %5 to i64
br label %43
43: ; preds = %38, %259
%44 = phi i32 [ 0, %38 ], [ %54, %259 ]
%45 = phi i32 [ undef, %38 ], [ %262, %259 ]
%46 = phi i32 [ 0, %38 ], [ %261, %259 ]
%47 = phi i32 [ 0, %38 ], [ %189, %259 ]
%48 = phi i32 [ 1, %38 ], [ %174, %259 ]
%49 = phi i32 [ 1, %38 ], [ %113, %259 ]
%50 = phi i32 [ 0, %38 ], [ %188, %259 ]
%51 = phi i32 [ 0, %38 ], [ %260, %259 ]
%52 = phi i32 [ %21, %38 ], [ %172, %259 ]
%53 = phi i32 [ %19, %38 ], [ %112, %259 ]
%54 = add nuw nsw i32 %44, 1
%55 = icmp sle i32 %53, %44
%56 = zext i1 %55 to i32
%57 = xor i32 %53, -1
%58 = lshr i32 %57, 31
%59 = and i32 %58, %56
%60 = icmp slt i32 %49, %4
%61 = zext i1 %60 to i32
%62 = and i32 %59, %61
%63 = icmp eq i32 %62, 0
br i1 %63, label %82, label %64
64: ; preds = %43
%65 = sext i32 %49 to i64
br label %66
66: ; preds = %64, %66
%67 = phi i64 [ %65, %64 ], [ %68, %66 ]
%68 = add i64 %67, 1
%69 = getelementptr inbounds i32, i32* %0, i64 %68
%70 = load i32, i32* %69
%71 = icmp sle i32 %70, %44
%72 = zext i1 %71 to i32
%73 = xor i32 %70, -1
%74 = lshr i32 %73, 31
%75 = and i32 %74, %72
%76 = icmp slt i64 %68, %41
%77 = zext i1 %76 to i32
%78 = and i32 %75, %77
%79 = icmp eq i32 %78, 0
br i1 %79, label %80, label %66
80: ; preds = %66
%81 = trunc i64 %68 to i32
br label %82
82: ; preds = %80, %43
%83 = phi i32 [ %53, %43 ], [ %70, %80 ]
%84 = phi i32 [ %49, %43 ], [ %81, %80 ]
%85 = icmp eq i32 %83, %54
br i1 %85, label %86, label %111
86: ; preds = %82
%87 = icmp sgt i32 %84, %4
br i1 %87, label %107, label %88
88: ; preds = %86
%89 = sext i32 %84 to i64
br label %90
90: ; preds = %88, %99
%91 = phi i64 [ %89, %88 ], [ %97, %99 ]
%92 = phi i64 [ 0, %88 ], [ %93, %99 ]
%93 = add nuw nsw i64 %92, 1
%94 = getelementptr inbounds i32, i32* %2, i64 %91
%95 = load i32, i32* %94
%96 = getelementptr inbounds i32, i32* %22, i64 %93
store i32 %95, i32* %96
%97 = add nsw i64 %91, 1
%98 = icmp slt i64 %91, %41
br i1 %98, label %99, label %104
99: ; preds = %90
%100 = getelementptr inbounds i32, i32* %0, i64 %97
%101 = load i32, i32* %100
%102 = icmp eq i32 %101, %54
%103 = and i1 %102, %98
br i1 %103, label %90, label %104
104: ; preds = %90, %99
%105 = trunc i64 %97 to i32
%106 = trunc i64 %93 to i32
br label %107
107: ; preds = %104, %86
%108 = phi i32 [ %84, %86 ], [ %105, %104 ]
%109 = phi i32 [ 0, %86 ], [ %106, %104 ]
%110 = add nsw i32 %108, -1
br label %111
111: ; preds = %107, %82
%112 = phi i32 [ %54, %107 ], [ %83, %82 ]
%113 = phi i32 [ %110, %107 ], [ %84, %82 ]
%114 = phi i32 [ %109, %107 ], [ 0, %82 ]
%115 = icmp sle i32 %52, %44
%116 = zext i1 %115 to i32
%117 = xor i32 %52, -1
%118 = lshr i32 %117, 31
%119 = and i32 %118, %116
%120 = icmp slt i32 %48, %5
%121 = zext i1 %120 to i32
%122 = and i32 %119, %121
%123 = icmp eq i32 %122, 0
br i1 %123, label %142, label %124
124: ; preds = %111
%125 = sext i32 %48 to i64
br label %126
126: ; preds = %124, %126
%127 = phi i64 [ %125, %124 ], [ %128, %126 ]
%128 = add i64 %127, 1
%129 = getelementptr inbounds i32, i32* %1, i64 %128
%130 = load i32, i32* %129
%131 = icmp sle i32 %130, %44
%132 = zext i1 %131 to i32
%133 = xor i32 %130, -1
%134 = lshr i32 %133, 31
%135 = and i32 %134, %132
%136 = icmp slt i64 %128, %42
%137 = zext i1 %136 to i32
%138 = and i32 %135, %137
%139 = icmp eq i32 %138, 0
br i1 %139, label %140, label %126
140: ; preds = %126
%141 = trunc i64 %128 to i32
br label %142
142: ; preds = %140, %111
%143 = phi i32 [ %52, %111 ], [ %130, %140 ]
%144 = phi i32 [ %48, %111 ], [ %141, %140 ]
%145 = icmp eq i32 %143, %54
br i1 %145, label %146, label %171
146: ; preds = %142
%147 = icmp sgt i32 %144, %5
br i1 %147, label %167, label %148
148: ; preds = %146
%149 = sext i32 %144 to i64
br label %150
150: ; preds = %148, %159
%151 = phi i64 [ 0, %148 ], [ %153, %159 ]
%152 = phi i64 [ %149, %148 ], [ %157, %159 ]
%153 = add nuw nsw i64 %151, 1
%154 = getelementptr inbounds i32, i32* %3, i64 %152
%155 = load i32, i32* %154
%156 = getelementptr inbounds i32, i32* %23, i64 %153
store i32 %155, i32* %156
%157 = add nsw i64 %152, 1
%158 = icmp slt i64 %152, %42
br i1 %158, label %159, label %164
159: ; preds = %150
%160 = getelementptr inbounds i32, i32* %1, i64 %157
%161 = load i32, i32* %160
%162 = icmp eq i32 %161, %54
%163 = and i1 %162, %158
br i1 %163, label %150, label %164
164: ; preds = %150, %159
%165 = trunc i64 %153 to i32
%166 = trunc i64 %157 to i32
br label %167
167: ; preds = %164, %146
%168 = phi i32 [ 0, %146 ], [ %165, %164 ]
%169 = phi i32 [ %144, %146 ], [ %166, %164 ]
%170 = add nsw i32 %169, -1
br label %171
171: ; preds = %167, %142
%172 = phi i32 [ %54, %167 ], [ %143, %142 ]
%173 = phi i32 [ %168, %167 ], [ 0, %142 ]
%174 = phi i32 [ %170, %167 ], [ %144, %142 ]
%175 = add nuw nsw i32 %173, %114
%176 = icmp slt i32 %175, %8
br i1 %176, label %185, label %177
177: ; preds = %171
%178 = call i32 @crm_2motifs(i32* %22, i32* %23, i32 %114, i32 %173, i32 %8, i32 %9, i32 1000, i32 %10, i32 %12, i32* %39, i32** %28)
%179 = load i32, i32* %39
%180 = load i32, i32* %40
%181 = sub nsw i32 %179, %180
%182 = icmp sgt i32 %179, 0
%183 = zext i1 %182 to i32
%184 = add nsw i32 %47, %183
br label %185
185: ; preds = %177, %171
%186 = phi i32 [ 0, %171 ], [ %181, %177 ]
%187 = phi i32 [ 0, %171 ], [ %179, %177 ]
%188 = phi i32 [ %50, %171 ], [ %180, %177 ]
%189 = phi i32 [ %47, %171 ], [ %184, %177 ]
br i1 %24, label %190, label %259
190: ; preds = %185
%191 = add nsw i32 %187, %46
%192 = icmp sgt i32 %191, %7
br i1 %192, label %202, label %193
193: ; preds = %190
%194 = icmp slt i32 %186, 1
br i1 %194, label %259, label %195
195: ; preds = %193
%196 = sext i32 %46 to i64
%197 = zext i32 %186 to i64
%198 = and i64 %197, 1
%199 = icmp eq i32 %186, 1
br i1 %199, label %238, label %200
200: ; preds = %195
%201 = and i64 %197, 4294967294
br label %206
202: ; preds = %190
%203 = add nsw i32 %51, -1
%204 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %46)
%205 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %46)
br label %259
206: ; preds = %206, %200
%207 = phi i64 [ 1, %200 ], [ %235, %206 ]
%208 = phi i64 [ %196, %200 ], [ %223, %206 ]
%209 = phi i64 [ 0, %200 ], [ %236, %206 ]
%210 = add nsw i64 %208, 1
%211 = getelementptr inbounds i32*, i32** %14, i64 %210
%212 = load i32*, i32** %211
%213 = getelementptr inbounds i32, i32* %212, i64 1
store i32 %54, i32* %213
%214 = getelementptr inbounds i32*, i32** %28, i64 %207
%215 = load i32*, i32** %214
%216 = getelementptr inbounds i32, i32* %215, i64 1
%217 = load i32, i32* %216
%218 = getelementptr inbounds i32, i32* %212, i64 2
store i32 %217, i32* %218
%219 = getelementptr inbounds i32, i32* %215, i64 2
%220 = load i32, i32* %219
%221 = getelementptr inbounds i32, i32* %212, i64 3
store i32 %220, i32* %221
%222 = add nuw nsw i64 %207, 1
%223 = add nsw i64 %208, 2
%224 = getelementptr inbounds i32*, i32** %14, i64 %223
%225 = load i32*, i32** %224
%226 = getelementptr inbounds i32, i32* %225, i64 1
store i32 %54, i32* %226
%227 = getelementptr inbounds i32*, i32** %28, i64 %222
%228 = load i32*, i32** %227
%229 = getelementptr inbounds i32, i32* %228, i64 1
%230 = load i32, i32* %229
%231 = getelementptr inbounds i32, i32* %225, i64 2
store i32 %230, i32* %231
%232 = getelementptr inbounds i32, i32* %228, i64 2
%233 = load i32, i32* %232
%234 = getelementptr inbounds i32, i32* %225, i64 3
store i32 %233, i32* %234
%235 = add nuw nsw i64 %207, 2
%236 = add i64 %209, 2
%237 = icmp eq i64 %236, %201
br i1 %237, label %238, label %206
238: ; preds = %206, %195
%239 = phi i64 [ undef, %195 ], [ %223, %206 ]
%240 = phi i64 [ 1, %195 ], [ %235, %206 ]
%241 = phi i64 [ %196, %195 ], [ %223, %206 ]
%242 = icmp eq i64 %198, 0
br i1 %242, label %256, label %243
243: ; preds = %238
%244 = add nsw i64 %241, 1
%245 = getelementptr inbounds i32*, i32** %14, i64 %244
%246 = load i32*, i32** %245
%247 = getelementptr inbounds i32, i32* %246, i64 1
store i32 %54, i32* %247
%248 = getelementptr inbounds i32*, i32** %28, i64 %240
%249 = load i32*, i32** %248
%250 = getelementptr inbounds i32, i32* %249, i64 1
%251 = load i32, i32* %250
%252 = getelementptr inbounds i32, i32* %246, i64 2
store i32 %251, i32* %252
%253 = getelementptr inbounds i32, i32* %249, i64 2
%254 = load i32, i32* %253
%255 = getelementptr inbounds i32, i32* %246, i64 3
store i32 %254, i32* %255
br label %256
256: ; preds = %238, %243
%257 = phi i64 [ %239, %238 ], [ %244, %243 ]
%258 = trunc i64 %257 to i32
br label %259
259: ; preds = %256, %193, %202, %185
%260 = phi i32 [ %203, %202 ], [ %51, %185 ], [ %51, %193 ], [ %51, %256 ]
%261 = phi i32 [ %46, %202 ], [ %46, %185 ], [ %46, %193 ], [ %258, %256 ]
%262 = phi i32 [ %46, %202 ], [ %45, %185 ], [ %45, %193 ], [ %45, %256 ]
%263 = icmp slt i32 %54, %11
%264 = icmp sle i32 %189, %31
%265 = and i1 %264, %263
br i1 %265, label %43, label %266
266: ; preds = %259
store i32 %261, i32* %13
%267 = getelementptr inbounds i32, i32* %13, i64 1
store i32 %189, i32* %267
%268 = getelementptr inbounds i32, i32* %13, i64 2
store i32 %260, i32* %268
%269 = icmp slt i32 %188, 0
br i1 %269, label %272, label %270
270: ; preds = %35, %266
%271 = phi i32 [ 0, %35 ], [ %261, %266 ]
br label %272
272: ; preds = %266, %270
%273 = phi i32 [ %271, %270 ], [ %262, %266 ]
%274 = getelementptr inbounds i32, i32* %13, i64 3
store i32 %273, i32* %274
%275 = call i32 @free_ivector(i32* %22, i32 1, i32 1000)
%276 = call i32 @free_ivector(i32* %23, i32 1, i32 1000)
br i1 %24, label %277, label %279
277: ; preds = %272
%278 = call i32 @free_imatrix(i32** %28, i32 1, i32 1000, i32 1, i32 2)
br label %279
279: ; preds = %277, %272
ret void
}