#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
char *cvector(int, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int, int, float,
                           char *, int);
int /*<<< orphan*/ free_cvector(char *, int, int);
int /*<<< orphan*/ num2seq(char *, int, char *, int);
int /*<<< orphan*/ revcomp(char *, char *, int);
int /*<<< orphan*/ sprintf(char *, char *);
int scan_motif6(float **weight_matrix, float *mean_weight_matrix,
                char *sequence, char *revcomp_seq, int motif_length,
                int seq_length, float threshold, int *pos, char *strand, int rc,
                int min_dist, float *cum_threshold, FILE *log_file,
                int seq_nr) {
  int i, j, k;
  int i_stop;
  char c;
  float p;
  int n;
  float current_score;
  int curr_strand;
  char *word;
  char *numword;
  int previous_position;
  i_stop = seq_length - motif_length;
  n = 0;
  if (seq_nr > 0) {
    numword = cvector(1, motif_length);
    word = cvector(0, motif_length - 1);
  }
  previous_position = -motif_length;
  curr_strand = 1;
  for (i = 1; i <= i_stop; i++) {
    if ((i - previous_position) > min_dist) {
      current_score = 0.0;
      j = 1;
      while ((j <= motif_length) & (current_score >= cum_threshold[j])) {
        c = sequence[i + j - 1];
        if ((c > 0) & (c < 5)) {
          p = weight_matrix[c][j];
          current_score += p;
        } else {
          current_score += mean_weight_matrix[j];
        }
        j++;
      }
      if (current_score >= threshold) {
        previous_position = i;
        n++;
        pos[n] = seq_length - i;
        strand[n] = curr_strand;
        if (seq_nr > 0) {
          for (j = 1; j <= motif_length; j++)
            numword[j] = sequence[i + j - 1];
          sprintf(word, "");
          num2seq(numword, motif_length, word, 1);
          fprintf(log_file, "%d\t%d\t%.4f\t%s\t%d\n", seq_nr, pos[n],
                  current_score, word, curr_strand);
        }
      }
    }
  }
  curr_strand = 0;
  previous_position = -motif_length;
  if (rc == 1) {
    revcomp(sequence, revcomp_seq, seq_length);
    for (i = 1; i <= i_stop; i++) {
      if ((i - previous_position) > min_dist) {
        current_score = 0.0;
        j = 1;
        while ((j <= motif_length) & (current_score >= cum_threshold[j])) {
          c = revcomp_seq[i + j - 1];
          if ((c > 0) & (c < 5)) {
            p = weight_matrix[c][j];
            current_score += p;
          } else {
            current_score += mean_weight_matrix[j];
          }
          j++;
        }
        if (current_score >= threshold) {
          previous_position = i;
          n++;
          pos[n] = i;
          strand[n] = 0;
          if (seq_nr > 0) {
            for (j = 1; j <= motif_length; j++)
              numword[j] = revcomp_seq[i + j - 1];
            sprintf(word, "");
            num2seq(numword, motif_length, word, 1);
            fprintf(log_file, "%d\t%d\t%.4f\t%s\t%d\n", seq_nr, pos[n],
                    current_score, word, curr_strand);
          }
        }
      }
    }
  }
  if (seq_nr > 0) {
    free_cvector(numword, 1, motif_length);
    free_cvector(word, 0, motif_length - 1);
  }
  return n;
}


x86 assembly (clang, -O0):
<scan_motif6>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
movss  %xmm0,-0x2c(%rbp)
mov    -0x28(%rbp),%eax
sub    -0x24(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x48(%rbp)
cmpl   $0x0,0x40(%rbp)
jle    11da <scan_motif6+0x7a>
mov    -0x24(%rbp),%esi
mov    $0x1,%edi
call   1030 <cvector@plt>
mov    %rax,-0x60(%rbp)
mov    -0x24(%rbp),%esi
sub    $0x1,%esi
xor    %edi,%edi
call   1030 <cvector@plt>
mov    %rax,-0x58(%rbp)
xor    %eax,%eax
sub    -0x24(%rbp),%eax
mov    %eax,-0x64(%rbp)
movl   $0x1,-0x50(%rbp)
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jg     13d6 <scan_motif6+0x276>
mov    -0x30(%rbp),%eax
sub    -0x64(%rbp),%eax
cmp    0x28(%rbp),%eax
jle    13c3 <scan_motif6+0x263>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4c(%rbp)
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x24(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%eax
movss  -0x4c(%rbp),%xmm0
mov    0x30(%rbp),%rcx
movslq -0x34(%rbp),%rdx
ucomiss (%rcx,%rdx,4),%xmm0
setae  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     12e1 <scan_motif6+0x181>
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x3d(%rbp)
movsbl -0x3d(%rbp),%eax
cmp    $0x0,%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
movsbl -0x3d(%rbp),%ecx
cmp    $0x5,%ecx
setl   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     12bc <scan_motif6+0x15c>
mov    -0x8(%rbp),%rax
movsbq -0x3d(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x44(%rbp),%xmm0
addss  -0x4c(%rbp),%xmm0
movss  %xmm0,-0x4c(%rbp)
jmp    12d3 <scan_motif6+0x173>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
addss  -0x4c(%rbp),%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    121a <scan_motif6+0xba>
movss  -0x4c(%rbp),%xmm0
ucomiss -0x2c(%rbp),%xmm0
jb     13be <scan_motif6+0x25e>
mov    -0x30(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
mov    -0x28(%rbp),%edx
sub    -0x30(%rbp),%edx
mov    0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x50(%rbp),%eax
mov    %al,%dl
mov    0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
cmpl   $0x0,0x40(%rbp)
jle    13b9 <scan_motif6+0x259>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     1369 <scan_motif6+0x209>
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x60(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1331 <scan_motif6+0x1d1>
mov    -0x58(%rbp),%rdi
lea    0xc9d(%rip),%rsi
call   1070 <sprintf@plt>
mov    -0x60(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x58(%rbp),%rdx
mov    $0x1,%ecx
call   1050 <num2seq@plt>
mov    0x38(%rbp),%rdi
mov    0x40(%rbp),%edx
mov    0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
movss  -0x4c(%rbp),%xmm0
mov    -0x58(%rbp),%r8
mov    -0x50(%rbp),%r9d
lea    0xc4c(%rip),%rsi
call   1040 <fprintf@plt>
jmp    13be <scan_motif6+0x25e>
jmp    13c3 <scan_motif6+0x263>
jmp    13c8 <scan_motif6+0x268>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11f0 <scan_motif6+0x90>
movl   $0x0,-0x50(%rbp)
xor    %eax,%eax
sub    -0x24(%rbp),%eax
mov    %eax,-0x64(%rbp)
cmpl   $0x1,0x20(%rbp)
jne    15ea <scan_motif6+0x48a>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%edx
call   1080 <revcomp@plt>
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jg     15e5 <scan_motif6+0x485>
mov    -0x30(%rbp),%eax
sub    -0x64(%rbp),%eax
cmp    0x28(%rbp),%eax
jle    15d2 <scan_motif6+0x472>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4c(%rbp)
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x24(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%eax
movss  -0x4c(%rbp),%xmm0
mov    0x30(%rbp),%rcx
movslq -0x34(%rbp),%rdx
ucomiss (%rcx,%rdx,4),%xmm0
setae  %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     14f7 <scan_motif6+0x397>
mov    -0x20(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x3d(%rbp)
movsbl -0x3d(%rbp),%eax
cmp    $0x0,%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
movsbl -0x3d(%rbp),%ecx
cmp    $0x5,%ecx
setl   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     14d2 <scan_motif6+0x372>
mov    -0x8(%rbp),%rax
movsbq -0x3d(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x44(%rbp),%xmm0
addss  -0x4c(%rbp),%xmm0
movss  %xmm0,-0x4c(%rbp)
jmp    14e9 <scan_motif6+0x389>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
addss  -0x4c(%rbp),%xmm0
movss  %xmm0,-0x4c(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1430 <scan_motif6+0x2d0>
movss  -0x4c(%rbp),%xmm0
ucomiss -0x2c(%rbp),%xmm0
jb     15cd <scan_motif6+0x46d>
mov    -0x30(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
mov    -0x30(%rbp),%edx
mov    0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
cmpl   $0x0,0x40(%rbp)
jle    15c8 <scan_motif6+0x468>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     1578 <scan_motif6+0x418>
mov    -0x20(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x60(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1540 <scan_motif6+0x3e0>
mov    -0x58(%rbp),%rdi
lea    0xa8e(%rip),%rsi
call   1070 <sprintf@plt>
mov    -0x60(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x58(%rbp),%rdx
mov    $0x1,%ecx
call   1050 <num2seq@plt>
mov    0x38(%rbp),%rdi
mov    0x40(%rbp),%edx
mov    0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
movss  -0x4c(%rbp),%xmm0
mov    -0x58(%rbp),%r8
mov    -0x50(%rbp),%r9d
lea    0xa3d(%rip),%rsi
call   1040 <fprintf@plt>
jmp    15cd <scan_motif6+0x46d>
jmp    15d2 <scan_motif6+0x472>
jmp    15d7 <scan_motif6+0x477>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1406 <scan_motif6+0x2a6>
jmp    15ea <scan_motif6+0x48a>
cmpl   $0x0,0x40(%rbp)
jle    1616 <scan_motif6+0x4b6>
mov    -0x60(%rbp),%rdi
mov    -0x24(%rbp),%edx
mov    $0x1,%esi
call   1060 <free_cvector@plt>
mov    -0x58(%rbp),%rdi
mov    -0x24(%rbp),%edx
sub    $0x1,%edx
xor    %esi,%esi
call   1060 <free_cvector@plt>
mov    -0x48(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<scan_motif6>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
movss  %xmm0,0x1c(%rsp)
mov    %r8,(%rsp)
mov    %rcx,0x70(%rsp)
mov    %rdx,%r12
mov    %rsi,0x48(%rsp)
mov    %rdi,0x40(%rsp)
cmpl   $0x0,0x170(%rsp)
mov    %r9,0x38(%rsp)
jle    11bc <scan_motif6+0x6c>
mov    $0x1,%edi
mov    (%rsp),%rsi
call   1030 <cvector@plt>
mov    %rax,0x20(%rsp)
mov    (%rsp),%rax
lea    -0x1(%rax),%esi
xor    %edi,%edi
call   1030 <cvector@plt>
mov    0x38(%rsp),%r9
mov    %rax,0x90(%rsp)
jmp    11bc <scan_motif6+0x6c>
mov    %r9d,%r10d
sub    (%rsp),%r10d
jle    16dd <scan_motif6+0x58d>
mov    (%rsp),%rdi
mov    %edi,%ebp
neg    %ebp
mov    %ebp,0xa4(%rsp)
movabs $0xffffffffffffffe,%rax
ff ff 0f
mov    %rax,0xb0(%rsp)
lea    0x1(%rdi),%eax
add    $0x1,%r10d
lea    -0x1(%rax),%rdx
lea    -0x21(%rax),%rcx
mov    %rcx,0xa8(%rsp)
mov    %rcx,%rsi
shr    $0x5,%rsi
add    $0x1,%rsi
mov    %rdx,%rbx
and    $0xffffffffffffffe0,%rbx
mov    %rsi,%rcx
mov    %rsi,0x60(%rsp)
and    $0xfffffffffffffffe,%rsi
mov    %rsi,0xf8(%rsp)
mov    %rdx,%rcx
mov    %rdx,0x8(%rsp)
and    $0xfffffffffffffff8,%rdx
mov    %rax,%rcx
neg    %rcx
mov    %rcx,0xd8(%rsp)
xorps  %xmm1,%xmm1
movabs $0x2100000000,%rcx
movabs $0x100000000,%r14
movslq %edi,%rsi
mov    %rsi,0xe8(%rsp)
lea    -0x2(%rax),%rsi
mov    %rsi,0xd0(%rsp)
mov    0x20(%rsp),%rdi
lea    0x1(%rdi),%rsi
mov    %rsi,0xc8(%rsp)
lea    (%rdi,%rax,1),%rsi
mov    %rsi,0xc0(%rsp)
mov    %rax,0x88(%rsp)
lea    -0x1(%r12,%rax,1),%rax
mov    %rax,0x68(%rsp)
mov    %rbx,0xb8(%rsp)
lea    0x1(%rbx),%rax
mov    %rax,0xf0(%rsp)
mov    %rdx,0x80(%rsp)
lea    0x1(%rdx),%rax
mov    %rax,0x100(%rsp)
lea    0x1(%r14),%rdx
xor    %eax,%eax
mov    %rax,0x28(%rsp)
mov    $0x1,%r13d
mov    %r14,%r15
mov    %rcx,0xe0(%rsp)
mov    %rcx,%rsi
mov    %ebp,%eax
movss  0x1c(%rsp),%xmm0
mov    0x48(%rsp),%r8
mov    0x40(%rsp),%r11
mov    %r10,0x78(%rsp)
jmp    1329 <scan_motif6+0x1d9>
xchg   %ax,%ax
mov    %eax,%ecx
add    $0x1,%r13
add    $0x1,%r15
movabs $0x100000000,%rax
add    %rax,%r14
add    %rax,%rsi
add    $0x1,%rdx
mov    %ecx,%eax
cmp    %r10,%r13
je     1707 <scan_motif6+0x5b7>
mov    %r13d,%ecx
sub    %eax,%ecx
cmp    0x158(%rsp),%ecx
jle    1300 <scan_motif6+0x1b0>
mov    %r13d,%ebx
mov    %r13d,0x58(%rsp)
mov    %rsi,0x30(%rsp)
mov    %rdx,0x10(%rsp)
xorps  %xmm2,%xmm2
cmpl   $0x0,(%rsp)
jle    13bb <scan_motif6+0x26b>
mov    0x160(%rsp),%rcx
ucomiss 0x4(%rcx),%xmm1
jb     13bb <scan_motif6+0x26b>
xorps  %xmm2,%xmm2
mov    $0x1,%edx
mov    %r14,%rcx
nopl   0x0(%rax,%rax,1)
mov    %rcx,%rsi
sar    $0x20,%rsi
movzbl (%r12,%rsi,1),%esi
lea    -0x1(%rsi),%ebx
mov    %r8,%rbp
cmp    $0x3,%bl
ja     138b <scan_motif6+0x23b>
mov    (%r11,%rsi,8),%rbp
addss  0x0(%rbp,%rdx,4),%xmm2
cmp    0xe8(%rsp),%rdx
jge    13bb <scan_motif6+0x26b>
movabs $0x100000000,%rsi
add    %rsi,%rcx
mov    0x160(%rsp),%rsi
ucomiss 0x4(%rsi,%rdx,4),%xmm2
lea    0x1(%rdx),%rdx
jae    1370 <scan_motif6+0x220>
ucomiss %xmm0,%xmm2
jae    13e0 <scan_motif6+0x290>
mov    %eax,%ecx
mov    0x10(%rsp),%rdx
mov    0x30(%rsp),%rsi
jmp    1302 <scan_motif6+0x1b2>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movslq 0x28(%rsp),%rdx
lea    0x1(%rdx),%rax
mov    %rax,0x28(%rsp)
mov    %r9d,%eax
sub    %r13d,%eax
mov    0x140(%rsp),%rcx
mov    %eax,0x4(%rcx,%rdx,4)
mov    0x148(%rsp),%rax
movb   $0x1,0x1(%rax,%rdx,1)
cmpl   $0x0,0x170(%rsp)
jle    16ca <scan_motif6+0x57a>
mov    %rdx,0x50(%rsp)
movss  %xmm2,0x98(%rsp)
cmpl   $0x0,(%rsp)
mov    0x88(%rsp),%rbp
mov    0x80(%rsp),%r9
movabs $0x200000000,%r11
jle    164e <scan_motif6+0x4fe>
movabs $0x100000000,%rax
lea    (%rax,%r13,1),%r10
add    $0xffffffffffffffff,%r10
mov    $0x1,%ecx
cmpq   $0x8,0x8(%rsp)
jb     15db <scan_motif6+0x48b>
lea    0x1(%r15),%edx
mov    0xd0(%rsp),%rax
lea    (%rdx,%rax,1),%esi
cmp    %edx,%esi
jl     15db <scan_motif6+0x48b>
mov    %rax,%rsi
shr    $0x20,%rsi
jne    15db <scan_motif6+0x48b>
movslq %edx,%rdx
mov    0x68(%rsp),%rax
lea    (%rax,%rdx,1),%rsi
cmp    %rsi,0xc8(%rsp)
jae    14bb <scan_motif6+0x36b>
add    %r12,%rdx
cmp    0xc0(%rsp),%rdx
jb     15db <scan_motif6+0x48b>
cmpq   $0x20,0x8(%rsp)
jae    14ca <scan_motif6+0x37a>
xor    %edx,%edx
jmp    1598 <scan_motif6+0x448>
cmpq   $0x20,0xa8(%rsp)
jae    14d9 <scan_motif6+0x389>
xor    %ecx,%ecx
jmp    1548 <scan_motif6+0x3f8>
mov    0xf8(%rsp),%rdx
mov    %r14,%rbx
mov    0x30(%rsp),%rax
xor    %ecx,%ecx
movabs $0x4000000000,%r8
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rsi
sar    $0x20,%rsi
movups (%r12,%rsi,1),%xmm0
movups 0x10(%r12,%rsi,1),%xmm1
movups %xmm0,0x1(%rdi,%rcx,1)
movups %xmm1,0x11(%rdi,%rcx,1)
mov    %rax,%rsi
sar    $0x20,%rsi
movups (%r12,%rsi,1),%xmm0
movups 0x10(%r12,%rsi,1),%xmm1
movups %xmm0,0x21(%rdi,%rcx,1)
movups %xmm1,0x31(%rdi,%rcx,1)
add    $0x40,%rcx
add    %r8,%rax
add    %r8,%rbx
add    $0xfffffffffffffffe,%rdx
jne    1500 <scan_motif6+0x3b0>
testb  $0x1,0x60(%rsp)
je     156e <scan_motif6+0x41e>
or     $0x1,%rcx
lea    (%rcx,%r10,1),%edx
movslq %edx,%rdx
movups (%r12,%rdx,1),%xmm0
movups 0x10(%r12,%rdx,1),%xmm1
movups %xmm0,(%rdi,%rcx,1)
movups %xmm1,0x10(%rdi,%rcx,1)
mov    0xb8(%rsp),%rax
cmp    %rax,0x8(%rsp)
je     164e <scan_motif6+0x4fe>
mov    0xb8(%rsp),%rdx
mov    0xf0(%rsp),%rcx
testb  $0x18,0x8(%rsp)
je     15db <scan_motif6+0x48b>
mov    0x10(%rsp),%rax
lea    (%rdx,%rax,1),%ecx
shl    $0x20,%rcx
movabs $0x800000000,%rax
xchg   %ax,%ax
mov    %rcx,%rsi
sar    $0x20,%rsi
mov    (%r12,%rsi,1),%rsi
mov    %rsi,0x1(%rdi,%rdx,1)
add    $0x8,%rdx
add    %rax,%rcx
cmp    %rdx,%r9
jne    15b0 <scan_motif6+0x460>
mov    0x100(%rsp),%rcx
cmp    %r9,0x8(%rsp)
je     164e <scan_motif6+0x4fe>
mov    %rcx,%rdx
test   $0x1,%bpl
jne    15f5 <scan_motif6+0x4a5>
add    %ecx,%r10d
movslq %r10d,%rax
mov    (%r12,%rax,1),%al
mov    %al,(%rdi,%rcx,1)
lea    0x1(%rcx),%rdx
not    %rcx
cmp    0xd8(%rsp),%rcx
je     164e <scan_motif6+0x4fe>
lea    (%rdx,%r15,1),%eax
shl    $0x20,%rax
mov    0x10(%rsp),%rcx
add    %edx,%ecx
shl    $0x20,%rcx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rax,%rsi
sar    $0x20,%rsi
movzbl (%r12,%rsi,1),%ebx
mov    %bl,(%rdi,%rdx,1)
mov    %rcx,%rsi
sar    $0x20,%rsi
movzbl (%r12,%rsi,1),%ebx
mov    %bl,0x1(%rdi,%rdx,1)
add    $0x2,%rdx
add    %r11,%rax
add    %r11,%rcx
cmp    %rdx,%rbp
jne    1620 <scan_motif6+0x4d0>
mov    0x90(%rsp),%rbx
movb   $0x0,(%rbx)
mov    (%rsp),%rsi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1050 <num2seq@plt>
mov    0x140(%rsp),%rax
mov    0x50(%rsp),%rcx
mov    0x4(%rax,%rcx,4),%ecx
mov    0x168(%rsp),%rdi
lea    0x976(%rip),%rsi
mov    0x170(%rsp),%edx
movss  0x98(%rsp),%xmm0
mov    %rbx,%r8
mov    $0x1,%r9d
call   1040 <fprintf@plt>
mov    0x38(%rsp),%r9
mov    0x20(%rsp),%rdi
movss  0x1c(%rsp),%xmm0
mov    0x48(%rsp),%r8
mov    0x40(%rsp),%r11
mov    0x78(%rsp),%r10
xorps  %xmm1,%xmm1
mov    0x10(%rsp),%rdx
mov    0x30(%rsp),%rsi
mov    0x58(%rsp),%ecx
jmp    1302 <scan_motif6+0x1b2>
xor    %eax,%eax
cmpl   $0x1,0x150(%rsp)
01
jne    1b9f <scan_motif6+0xa4f>
mov    %rax,0x28(%rsp)
mov    %r12,%rdi
mov    0x70(%rsp),%rsi
mov    %r9d,%edx
call   1070 <revcomp@plt>
jmp    1b8e <scan_motif6+0xa3e>
cmpl   $0x1,0x150(%rsp)
01
jne    1ba9 <scan_motif6+0xa59>
mov    %r12,%rdi
mov    0x70(%rsp),%rbx
mov    %rbx,%rsi
mov    %r9d,%edx
call   1070 <revcomp@plt>
mov    0x38(%rsp),%r8
sub    (%rsp),%r8d
jle    1b8e <scan_motif6+0xa3e>
add    $0x1,%r8d
mov    0x88(%rsp),%rax
add    %rbx,%rax
add    $0xffffffffffffffff,%rax
mov    %rax,0x98(%rsp)
mov    0x8(%rsp),%rcx
and    $0xffffffffffffffe0,%rcx
mov    0x60(%rsp),%rax
and    %rax,0xb0(%rsp)
mov    %rcx,0x50(%rsp)
lea    0x1(%rcx),%rax
mov    %rax,0x68(%rsp)
mov    0x80(%rsp),%rax
add    $0x1,%rax
mov    %rax,0x78(%rsp)
movabs $0x100000000,%r14
lea    0x1(%r14),%rdx
mov    $0x1,%r12d
xorps  %xmm1,%xmm1
mov    %r14,%r15
mov    0x20(%rsp),%rdi
mov    %rbx,%r9
movss  0x1c(%rsp),%xmm0
mov    0x48(%rsp),%rbp
mov    0x40(%rsp),%r11
mov    0xa4(%rsp),%r10d
mov    %r8,0x38(%rsp)
jmp    1800 <scan_motif6+0x6b0>
nopl   0x0(%rax,%rax,1)
mov    %r10d,%r13d
add    $0x1,%r12
add    $0x1,%r15
movabs $0x100000000,%rax
add    %rax,%r14
add    %rax,0xe0(%rsp)
add    $0x1,%rdx
mov    %r13d,%r10d
cmp    %r8,%r12
je     1ba9 <scan_motif6+0xa59>
mov    %r12d,%eax
sub    %r10d,%eax
cmp    0x158(%rsp),%eax
jle    17d0 <scan_motif6+0x680>
mov    %r12d,%r13d
mov    %rdx,0x10(%rsp)
xorps  %xmm2,%xmm2
cmpl   $0x0,(%rsp)
jle    188a <scan_motif6+0x73a>
mov    0x160(%rsp),%rax
ucomiss 0x4(%rax),%xmm1
jb     188a <scan_motif6+0x73a>
xorps  %xmm2,%xmm2
mov    $0x1,%ecx
mov    %r14,%rax
nopl   0x0(%rax)
mov    %rax,%rdx
sar    $0x20,%rdx
movzbl (%r9,%rdx,1),%edx
lea    -0x1(%rdx),%ebx
mov    %rbp,%rsi
cmp    $0x3,%bl
ja     185b <scan_motif6+0x70b>
mov    (%r11,%rdx,8),%rsi
addss  (%rsi,%rcx,4),%xmm2
cmp    0xe8(%rsp),%rcx
jge    188a <scan_motif6+0x73a>
movabs $0x100000000,%rdx
add    %rdx,%rax
mov    0x160(%rsp),%rdx
ucomiss 0x4(%rdx,%rcx,4),%xmm2
lea    0x1(%rcx),%rcx
jae    1840 <scan_motif6+0x6f0>
ucomiss %xmm0,%xmm2
jae    18a0 <scan_motif6+0x750>
mov    %r10d,%r13d
mov    0x10(%rsp),%rdx
jmp    17d3 <scan_motif6+0x683>
nopl   0x0(%rax)
movslq 0x28(%rsp),%rcx
lea    0x1(%rcx),%rax
mov    %rax,0x28(%rsp)
mov    0x140(%rsp),%rax
mov    %r13d,0x4(%rax,%rcx,4)
mov    0x148(%rsp),%rax
movb   $0x0,0x1(%rax,%rcx,1)
cmpl   $0x0,0x170(%rsp)
jle    197b <scan_motif6+0x82b>
mov    %rcx,0x58(%rsp)
movss  %xmm2,0x30(%rsp)
cmpl   $0x0,(%rsp)
mov    0x88(%rsp),%r8
mov    0x80(%rsp),%r11
jle    1b0e <scan_motif6+0x9be>
movabs $0x100000000,%rax
lea    (%rax,%r12,1),%r10
add    $0xffffffffffffffff,%r10
mov    $0x1,%ecx
cmpq   $0x8,0x8(%rsp)
jb     1a98 <scan_motif6+0x948>
lea    0x1(%r15),%edx
mov    0xd0(%rsp),%rax
lea    (%rdx,%rax,1),%esi
cmp    %edx,%esi
jl     1a98 <scan_motif6+0x948>
mov    %rax,%rsi
shr    $0x20,%rsi
jne    1a98 <scan_motif6+0x948>
movslq %edx,%rdx
mov    0x98(%rsp),%rax
lea    (%rax,%rdx,1),%rsi
cmp    %rsi,0xc8(%rsp)
jae    196c <scan_motif6+0x81c>
add    %r9,%rdx
cmp    0xc0(%rsp),%rdx
jb     1a98 <scan_motif6+0x948>
cmpq   $0x20,0x8(%rsp)
jae    1985 <scan_motif6+0x835>
xor    %edx,%edx
jmp    1a4e <scan_motif6+0x8fe>
mov    0x10(%rsp),%rdx
jmp    17d3 <scan_motif6+0x683>
cmpq   $0x20,0xa8(%rsp)
jae    1994 <scan_motif6+0x844>
xor    %ecx,%ecx
jmp    1a08 <scan_motif6+0x8b8>
mov    0xb0(%rsp),%rdx
mov    %r14,%rax
mov    0xe0(%rsp),%rbx
xor    %ecx,%ecx
movabs $0x4000000000,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rax,%rsi
sar    $0x20,%rsi
movups (%r9,%rsi,1),%xmm0
movups 0x10(%r9,%rsi,1),%xmm1
movups %xmm0,0x1(%rdi,%rcx,1)
movups %xmm1,0x11(%rdi,%rcx,1)
mov    %rbx,%rsi
sar    $0x20,%rsi
movups (%r9,%rsi,1),%xmm0
movups 0x10(%r9,%rsi,1),%xmm1
movups %xmm0,0x21(%rdi,%rcx,1)
movups %xmm1,0x31(%rdi,%rcx,1)
add    $0x40,%rcx
add    %rbp,%rbx
add    %rbp,%rax
add    $0xfffffffffffffffe,%rdx
jne    19c0 <scan_motif6+0x870>
testb  $0x1,0x60(%rsp)
je     1a2d <scan_motif6+0x8dd>
or     $0x1,%rcx
lea    (%rcx,%r10,1),%eax
cltq
movups (%r9,%rax,1),%xmm0
movups 0x10(%r9,%rax,1),%xmm1
movups %xmm0,(%rdi,%rcx,1)
movups %xmm1,0x10(%rdi,%rcx,1)
mov    0x50(%rsp),%rax
cmp    %rax,0x8(%rsp)
je     1b0e <scan_motif6+0x9be>
mov    0x50(%rsp),%rdx
mov    0x68(%rsp),%rcx
testb  $0x18,0x8(%rsp)
je     1a98 <scan_motif6+0x948>
mov    0x10(%rsp),%rax
lea    (%rdx,%rax,1),%ecx
shl    $0x20,%rcx
movabs $0x800000000,%rsi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rcx,%rax
sar    $0x20,%rax
mov    (%r9,%rax,1),%rax
mov    %rax,0x1(%rdi,%rdx,1)
add    $0x8,%rdx
add    %rsi,%rcx
cmp    %rdx,%r11
jne    1a70 <scan_motif6+0x920>
mov    0x78(%rsp),%rcx
cmp    %r11,0x8(%rsp)
je     1b0e <scan_motif6+0x9be>
mov    %rcx,%rdx
test   $0x1,%r8b
jne    1ab2 <scan_motif6+0x962>
add    %ecx,%r10d
movslq %r10d,%rax
mov    (%r9,%rax,1),%al
mov    %al,(%rdi,%rcx,1)
lea    0x1(%rcx),%rdx
not    %rcx
cmp    0xd8(%rsp),%rcx
movabs $0x200000000,%rbp
je     1b0e <scan_motif6+0x9be>
lea    (%rdx,%r15,1),%eax
shl    $0x20,%rax
mov    0x10(%rsp),%rcx
add    %edx,%ecx
shl    $0x20,%rcx
nopl   0x0(%rax)
mov    %rax,%rsi
sar    $0x20,%rsi
movzbl (%r9,%rsi,1),%ebx
mov    %bl,(%rdi,%rdx,1)
mov    %rcx,%rsi
sar    $0x20,%rsi
movzbl (%r9,%rsi,1),%ebx
mov    %bl,0x1(%rdi,%rdx,1)
add    $0x2,%rdx
add    %rbp,%rax
add    %rbp,%rcx
cmp    %rdx,%r8
jne    1ae0 <scan_motif6+0x990>
mov    0x90(%rsp),%rbx
movb   $0x0,(%rbx)
mov    (%rsp),%rsi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1050 <num2seq@plt>
mov    0x140(%rsp),%rax
mov    0x58(%rsp),%rcx
mov    0x4(%rax,%rcx,4),%ecx
mov    0x168(%rsp),%rdi
lea    0x4b6(%rip),%rsi
mov    0x170(%rsp),%edx
movss  0x30(%rsp),%xmm0
mov    %rbx,%r8
xor    %r9d,%r9d
call   1040 <fprintf@plt>
mov    0x70(%rsp),%r9
mov    0x20(%rsp),%rdi
mov    0x38(%rsp),%r8
movss  0x1c(%rsp),%xmm0
mov    0x48(%rsp),%rbp
mov    0x40(%rsp),%r11
mov    0x10(%rsp),%rdx
xorps  %xmm1,%xmm1
jmp    17d3 <scan_motif6+0x683>
mov    0x20(%rsp),%rdi
cmpl   $0x0,0x170(%rsp)
jg     1bb3 <scan_motif6+0xa63>
jmp    1bd7 <scan_motif6+0xa87>
mov    %rax,0x28(%rsp)
mov    0x20(%rsp),%rdi
cmpl   $0x0,0x170(%rsp)
jle    1bd7 <scan_motif6+0xa87>
mov    $0x1,%esi
mov    (%rsp),%rbx
mov    %ebx,%edx
call   1060 <free_cvector@plt>
add    $0xffffffff,%ebx
mov    0x90(%rsp),%rdi
xor    %esi,%esi
mov    %ebx,%edx
call   1060 <free_cvector@plt>
mov    0x28(%rsp),%rax
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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