#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 imin(int, int);
int is_a(unsigned char *, int);
int is_g(unsigned char *, int);
int shine_dalgarno_mm(unsigned char *seq, int pos, int start, double *rwt) {
  int i, j, k, mism, rdis, limit, max_val, cur_val = 0;
  double match[6], cur_ctr, dis_flag;
  limit = imin(6, start - 4 - pos);
  for (i = limit; i < 6; i++)
    match[i] = -10.0;
  for (i = 0; i < limit; i++) {
    if (pos + i < 0)
      continue;
    if (i % 3 == 0) {
      if (is_a(seq, pos + i) == 1)
        match[i] = 2.0;
      else
        match[i] = -3.0;
    } else {
      if (is_g(seq, pos + i) == 1)
        match[i] = 3.0;
      else
        match[i] = -2.0;
    }
  }
  max_val = 0;
  for (i = limit; i >= 5; i--) {
    for (j = 0; j <= limit - i; j++) {
      cur_ctr = -2.0;
      mism = 0;
      for (k = j; k < j + i; k++) {
        cur_ctr += match[k];
        if (match[k] < 0.0)
          mism++;
        if (match[k] < 0.0 && (k <= j + 1 || k >= j + i - 2))
          cur_ctr -= 10.0;
      }
      if (mism != 1)
        continue;
      rdis = start - (pos + j + i);
      if (rdis < 5) {
        dis_flag = 1;
      } else if (rdis > 10 && rdis <= 12) {
        dis_flag = 2;
      } else if (rdis >= 13) {
        dis_flag = 3;
      } else
        dis_flag = 0;
      if (rdis > 15 || cur_ctr < 6.0)
        continue;
      if (cur_ctr < 6.0)
        cur_val = 0;
      else if (cur_ctr == 6.0 && dis_flag == 3)
        cur_val = 2;
      else if (cur_ctr == 7.0 && dis_flag == 3)
        cur_val = 2;
      else if (cur_ctr == 9.0 && dis_flag == 3)
        cur_val = 3;
      else if (cur_ctr == 6.0 && dis_flag == 2)
        cur_val = 4;
      else if (cur_ctr == 6.0 && dis_flag == 1)
        cur_val = 5;
      else if (cur_ctr == 6.0 && dis_flag == 0)
        cur_val = 9;
      else if (cur_ctr == 7.0 && dis_flag == 2)
        cur_val = 7;
      else if (cur_ctr == 7.0 && dis_flag == 1)
        cur_val = 8;
      else if (cur_ctr == 7.0 && dis_flag == 0)
        cur_val = 14;
      else if (cur_ctr == 9.0 && dis_flag == 2)
        cur_val = 17;
      else if (cur_ctr == 9.0 && dis_flag == 1)
        cur_val = 18;
      else if (cur_ctr == 9.0 && dis_flag == 0)
        cur_val = 19;
      if (rwt[cur_val] < rwt[max_val])
        continue;
      if (rwt[cur_val] == rwt[max_val] && cur_val < max_val)
        continue;
      max_val = cur_val;
    }
  }
  return max_val;
}


x86 assembly (clang, -O0):
<shine_dalgarno_mm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x10(%rbp),%esi
sub    $0x4,%esi
sub    -0xc(%rbp),%esi
mov    $0x6,%edi
call   1030 <imin@plt>
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x6,-0x1c(%rbp)
jge    1196 <shine_dalgarno_mm+0x66>
movslq -0x1c(%rbp),%rax
movsd  0xec6(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp,%rax,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    116c <shine_dalgarno_mm+0x3c>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    1270 <shine_dalgarno_mm+0x140>
mov    -0xc(%rbp),%eax
add    -0x1c(%rbp),%eax
cmp    $0x0,%eax
jge    11bd <shine_dalgarno_mm+0x8d>
jmp    1262 <shine_dalgarno_mm+0x132>
mov    -0x1c(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1217 <shine_dalgarno_mm+0xe7>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    -0x1c(%rbp),%esi
call   1040 <is_a@plt>
cmp    $0x1,%eax
jne    1200 <shine_dalgarno_mm+0xd0>
movslq -0x1c(%rbp),%rax
movsd  0xe1b(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp,%rax,8)
jmp    1212 <shine_dalgarno_mm+0xe2>
movslq -0x1c(%rbp),%rax
movsd  0xe34(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp,%rax,8)
jmp    125d <shine_dalgarno_mm+0x12d>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    -0x1c(%rbp),%esi
call   1050 <is_g@plt>
cmp    $0x1,%eax
jne    1246 <shine_dalgarno_mm+0x116>
movslq -0x1c(%rbp),%rax
movsd  0xdcd(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp,%rax,8)
jmp    1258 <shine_dalgarno_mm+0x128>
movslq -0x1c(%rbp),%rax
movsd  0xdae(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp,%rax,8)
jmp    125d <shine_dalgarno_mm+0x12d>
jmp    1262 <shine_dalgarno_mm+0x132>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    119d <shine_dalgarno_mm+0x6d>
movl   $0x0,-0x34(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x5,-0x1c(%rbp)
jl     1823 <shine_dalgarno_mm+0x6f3>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    -0x30(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
cmp    %ecx,%eax
jg     1810 <shine_dalgarno_mm+0x6e0>
movsd  0xd59(%rip),%xmm0
movsd  %xmm0,-0x78(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x20(%rbp),%ecx
add    -0x1c(%rbp),%ecx
cmp    %ecx,%eax
jge    135b <shine_dalgarno_mm+0x22b>
movslq -0x24(%rbp),%rax
movsd  -0x70(%rbp,%rax,8),%xmm0
addsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movslq -0x24(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd -0x70(%rbp,%rax,8),%xmm0
jbe    12fa <shine_dalgarno_mm+0x1ca>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
movslq -0x24(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd -0x70(%rbp,%rax,8),%xmm0
jbe    1348 <shine_dalgarno_mm+0x218>
mov    -0x24(%rbp),%eax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jle    1332 <shine_dalgarno_mm+0x202>
mov    -0x24(%rbp),%eax
mov    -0x20(%rbp),%ecx
add    -0x1c(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jl     1348 <shine_dalgarno_mm+0x218>
movsd  -0x78(%rbp),%xmm0
movsd  0xcf9(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
jmp    134d <shine_dalgarno_mm+0x21d>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12b9 <shine_dalgarno_mm+0x189>
cmpl   $0x1,-0x28(%rbp)
je     136a <shine_dalgarno_mm+0x23a>
jmp    1802 <shine_dalgarno_mm+0x6d2>
mov    -0x10(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    -0x20(%rbp),%ecx
add    -0x1c(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x5,-0x2c(%rbp)
jge    1397 <shine_dalgarno_mm+0x267>
movsd  0xc8b(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    13eb <shine_dalgarno_mm+0x2bb>
cmpl   $0xa,-0x2c(%rbp)
jle    13bd <shine_dalgarno_mm+0x28d>
cmpl   $0xc,-0x2c(%rbp)
jg     13bd <shine_dalgarno_mm+0x28d>
movsd  0xc5d(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    13e6 <shine_dalgarno_mm+0x2b6>
cmpl   $0xd,-0x2c(%rbp)
jl     13d9 <shine_dalgarno_mm+0x2a9>
movsd  0xc39(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    13e1 <shine_dalgarno_mm+0x2b1>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    13e6 <shine_dalgarno_mm+0x2b6>
jmp    13eb <shine_dalgarno_mm+0x2bb>
cmpl   $0xf,-0x2c(%rbp)
jg     1408 <shine_dalgarno_mm+0x2d8>
movsd  0xc23(%rip),%xmm0
ucomisd -0x78(%rbp),%xmm0
jbe    140d <shine_dalgarno_mm+0x2dd>
jmp    1802 <shine_dalgarno_mm+0x6d2>
movsd  0xc0b(%rip),%xmm0
ucomisd -0x78(%rbp),%xmm0
jbe    142c <shine_dalgarno_mm+0x2fc>
movl   $0x0,-0x38(%rbp)
jmp    179c <shine_dalgarno_mm+0x66c>
movsd  -0x78(%rbp),%xmm0
movsd  0xbe7(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1472 <shine_dalgarno_mm+0x342>
jp     1472 <shine_dalgarno_mm+0x342>
movsd  -0x80(%rbp),%xmm0
movsd  0xbb2(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1472 <shine_dalgarno_mm+0x342>
jp     1472 <shine_dalgarno_mm+0x342>
movl   $0x2,-0x38(%rbp)
jmp    1797 <shine_dalgarno_mm+0x667>
movsd  -0x78(%rbp),%xmm0
movsd  0xba9(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    14b8 <shine_dalgarno_mm+0x388>
jp     14b8 <shine_dalgarno_mm+0x388>
movsd  -0x80(%rbp),%xmm0
movsd  0xb6c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    14b8 <shine_dalgarno_mm+0x388>
jp     14b8 <shine_dalgarno_mm+0x388>
movl   $0x2,-0x38(%rbp)
jmp    1792 <shine_dalgarno_mm+0x662>
movsd  -0x78(%rbp),%xmm0
movsd  0xb6b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    14fe <shine_dalgarno_mm+0x3ce>
jp     14fe <shine_dalgarno_mm+0x3ce>
movsd  -0x80(%rbp),%xmm0
movsd  0xb26(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    14fe <shine_dalgarno_mm+0x3ce>
jp     14fe <shine_dalgarno_mm+0x3ce>
movl   $0x3,-0x38(%rbp)
jmp    178d <shine_dalgarno_mm+0x65d>
movsd  -0x78(%rbp),%xmm0
movsd  0xb15(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1544 <shine_dalgarno_mm+0x414>
jp     1544 <shine_dalgarno_mm+0x414>
movsd  -0x80(%rbp),%xmm0
movsd  0xae8(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1544 <shine_dalgarno_mm+0x414>
jp     1544 <shine_dalgarno_mm+0x414>
movl   $0x4,-0x38(%rbp)
jmp    1788 <shine_dalgarno_mm+0x658>
movsd  -0x78(%rbp),%xmm0
movsd  0xacf(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    158a <shine_dalgarno_mm+0x45a>
jp     158a <shine_dalgarno_mm+0x45a>
movsd  -0x80(%rbp),%xmm0
movsd  0xaaa(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    158a <shine_dalgarno_mm+0x45a>
jp     158a <shine_dalgarno_mm+0x45a>
movl   $0x5,-0x38(%rbp)
jmp    1783 <shine_dalgarno_mm+0x653>
movsd  -0x78(%rbp),%xmm0
movsd  0xa89(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    15cb <shine_dalgarno_mm+0x49b>
jp     15cb <shine_dalgarno_mm+0x49b>
movsd  -0x80(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    15cb <shine_dalgarno_mm+0x49b>
jp     15cb <shine_dalgarno_mm+0x49b>
movl   $0x9,-0x38(%rbp)
jmp    177e <shine_dalgarno_mm+0x64e>
movsd  -0x78(%rbp),%xmm0
movsd  0xa50(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1611 <shine_dalgarno_mm+0x4e1>
jp     1611 <shine_dalgarno_mm+0x4e1>
movsd  -0x80(%rbp),%xmm0
movsd  0xa1b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1611 <shine_dalgarno_mm+0x4e1>
jp     1611 <shine_dalgarno_mm+0x4e1>
movl   $0x7,-0x38(%rbp)
jmp    1779 <shine_dalgarno_mm+0x649>
movsd  -0x78(%rbp),%xmm0
movsd  0xa0a(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1657 <shine_dalgarno_mm+0x527>
jp     1657 <shine_dalgarno_mm+0x527>
movsd  -0x80(%rbp),%xmm0
movsd  0x9dd(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1657 <shine_dalgarno_mm+0x527>
jp     1657 <shine_dalgarno_mm+0x527>
movl   $0x8,-0x38(%rbp)
jmp    1774 <shine_dalgarno_mm+0x644>
movsd  -0x78(%rbp),%xmm0
movsd  0x9c4(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1698 <shine_dalgarno_mm+0x568>
jp     1698 <shine_dalgarno_mm+0x568>
movsd  -0x80(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1698 <shine_dalgarno_mm+0x568>
jp     1698 <shine_dalgarno_mm+0x568>
movl   $0xe,-0x38(%rbp)
jmp    176f <shine_dalgarno_mm+0x63f>
movsd  -0x78(%rbp),%xmm0
movsd  0x98b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    16de <shine_dalgarno_mm+0x5ae>
jp     16de <shine_dalgarno_mm+0x5ae>
movsd  -0x80(%rbp),%xmm0
movsd  0x94e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    16de <shine_dalgarno_mm+0x5ae>
jp     16de <shine_dalgarno_mm+0x5ae>
movl   $0x11,-0x38(%rbp)
jmp    176a <shine_dalgarno_mm+0x63a>
movsd  -0x78(%rbp),%xmm0
movsd  0x945(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1724 <shine_dalgarno_mm+0x5f4>
jp     1724 <shine_dalgarno_mm+0x5f4>
movsd  -0x80(%rbp),%xmm0
movsd  0x910(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1724 <shine_dalgarno_mm+0x5f4>
jp     1724 <shine_dalgarno_mm+0x5f4>
movl   $0x12,-0x38(%rbp)
jmp    1765 <shine_dalgarno_mm+0x635>
movsd  -0x78(%rbp),%xmm0
movsd  0x8ff(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1760 <shine_dalgarno_mm+0x630>
jp     1760 <shine_dalgarno_mm+0x630>
movsd  -0x80(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1760 <shine_dalgarno_mm+0x630>
jp     1760 <shine_dalgarno_mm+0x630>
movl   $0x13,-0x38(%rbp)
jmp    1765 <shine_dalgarno_mm+0x635>
jmp    176a <shine_dalgarno_mm+0x63a>
jmp    176f <shine_dalgarno_mm+0x63f>
jmp    1774 <shine_dalgarno_mm+0x644>
jmp    1779 <shine_dalgarno_mm+0x649>
jmp    177e <shine_dalgarno_mm+0x64e>
jmp    1783 <shine_dalgarno_mm+0x653>
jmp    1788 <shine_dalgarno_mm+0x658>
jmp    178d <shine_dalgarno_mm+0x65d>
jmp    1792 <shine_dalgarno_mm+0x662>
jmp    1797 <shine_dalgarno_mm+0x667>
jmp    179c <shine_dalgarno_mm+0x66c>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    17c5 <shine_dalgarno_mm+0x695>
jmp    1802 <shine_dalgarno_mm+0x6d2>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jne    17fc <shine_dalgarno_mm+0x6cc>
jp     17fc <shine_dalgarno_mm+0x6cc>
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    17fc <shine_dalgarno_mm+0x6cc>
jmp    1802 <shine_dalgarno_mm+0x6d2>
mov    -0x38(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    128e <shine_dalgarno_mm+0x15e>
jmp    1815 <shine_dalgarno_mm+0x6e5>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
jmp    127d <shine_dalgarno_mm+0x14d>
mov    -0x34(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<shine_dalgarno_mm>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rcx,0x8(%rsp)
mov    %edx,%r13d
mov    %esi,%eax
mov    %rdi,%rbx
mov    %edx,%esi
mov    %rax,(%rsp)
sub    %eax,%esi
add    $0xfffffffc,%esi
mov    $0x6,%edi
call   1030 <imin@plt>
mov    %eax,%r12d
cmp    $0x5,%eax
jg     1277 <shine_dalgarno_mm+0x147>
movslq %r12d,%rax
mov    $0x5,%ecx
sub    %eax,%ecx
cmp    $0x3,%ecx
jb     124c <shine_dalgarno_mm+0x11c>
add    $0x1,%rcx
mov    %rcx,%rdx
and    $0xfffffffffffffffc,%rdx
lea    -0x4(%rdx),%rbp
mov    %rbp,%rdi
shr    $0x2,%rdi
add    $0x1,%rdi
mov    %edi,%esi
and    $0x3,%esi
mov    %rbx,%r8
cmp    $0xc,%rbp
jae    11ab <shine_dalgarno_mm+0x7b>
xor    %ebp,%ebp
jmp    1209 <shine_dalgarno_mm+0xd9>
and    $0xfffffffffffffffc,%rdi
lea    (%rsp,%rax,8),%rbx
add    $0x80,%rbx
xor    %ebp,%ebp
movapd 0xe3c(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd %xmm0,-0x70(%rbx,%rbp,8)
movupd %xmm0,-0x60(%rbx,%rbp,8)
movupd %xmm0,-0x50(%rbx,%rbp,8)
movupd %xmm0,-0x40(%rbx,%rbp,8)
movupd %xmm0,-0x30(%rbx,%rbp,8)
movupd %xmm0,-0x20(%rbx,%rbp,8)
movupd %xmm0,-0x10(%rbx,%rbp,8)
movupd %xmm0,(%rbx,%rbp,8)
add    $0x10,%rbp
add    $0xfffffffffffffffc,%rdi
jne    11d0 <shine_dalgarno_mm+0xa0>
test   %rsi,%rsi
mov    %r8,%rbx
je     1244 <shine_dalgarno_mm+0x114>
add    %rax,%rbp
lea    (%rsp,%rbp,8),%rdi
add    $0x20,%rdi
shl    $0x5,%rsi
xor    %ebp,%ebp
movapd 0xdd6(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
movupd %xmm0,-0x10(%rdi,%rbp,1)
movupd %xmm0,(%rdi,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rsi
jne    1230 <shine_dalgarno_mm+0x100>
cmp    %rdx,%rcx
je     126e <shine_dalgarno_mm+0x13e>
add    %rdx,%rax
movabs $0xc024000000000000,%rcx
cs nopw 0x0(%rax,%rax,1)
mov    %rcx,0x10(%rsp,%rax,8)
add    $0x1,%rax
cmp    $0x6,%eax
jne    1260 <shine_dalgarno_mm+0x130>
test   %r12d,%r12d
jle    15c1 <shine_dalgarno_mm+0x491>
mov    (%rsp),%ebp
xor    %r14d,%r14d
xor    %r15d,%r15d
jmp    129e <shine_dalgarno_mm+0x16e>
movabs $0xc000000000000000,%rax
mov    %rax,0x10(%rsp,%r15,8)
add    $0x1,%r15
add    $0xffffffff,%r14d
cmp    %r15,%r12
je     1302 <shine_dalgarno_mm+0x1d2>
lea    (%r15,%rbp,1),%rsi
test   %esi,%esi
js     1291 <shine_dalgarno_mm+0x161>
mov    %r15d,%eax
mov    $0xaaaaaaab,%ecx
imul   %rcx,%rax
shr    $0x21,%rax
lea    (%rax,%rax,2),%eax
mov    %rbx,%rdi
add    %r14d,%eax
je     12e0 <shine_dalgarno_mm+0x1b0>
call   1050 <is_g@plt>
cmp    $0x1,%eax
jne    1282 <shine_dalgarno_mm+0x152>
movabs $0x4008000000000000,%rax
jmp    128c <shine_dalgarno_mm+0x15c>
nopw   0x0(%rax,%rax,1)
call   1040 <is_a@plt>
cmp    $0x1,%eax
jne    12f6 <shine_dalgarno_mm+0x1c6>
movabs $0x4000000000000000,%rax
jmp    128c <shine_dalgarno_mm+0x15c>
movabs $0xc008000000000000,%rax
jmp    128c <shine_dalgarno_mm+0x15c>
xor    %eax,%eax
cmp    $0x5,%r12d
jl     15c3 <shine_dalgarno_mm+0x493>
lea    -0x3(%r12),%r8d
xor    %r9d,%r9d
mov    $0x1,%r11d
movsd  0xcec(%rip),%xmm6
xorpd  %xmm1,%xmm1
movsd  0xce8(%rip),%xmm2
movsd  0xce8(%rip),%xmm7
movsd  0xcf8(%rip),%xmm4
movsd  0xce8(%rip),%xmm5
movsd  0xcef(%rip),%xmm9
movsd  0xcee(%rip),%xmm8
movsd  0xcc5(%rip),%xmm10
xor    %eax,%eax
jmp    1381 <shine_dalgarno_mm+0x251>
nopw   0x0(%rax,%rax,1)
add    $0xffffffffffffffff,%r12
add    $0x1,%r11
cmp    %r8,%r11
je     15c3 <shine_dalgarno_mm+0x493>
mov    (%rsp),%rcx
lea    (%r12,%rcx,1),%r10d
xor    %r14d,%r14d
jmp    1398 <shine_dalgarno_mm+0x268>
xchg   %ax,%ax
mov    %esi,%r9d
cmp    %r11,%r14
je     1370 <shine_dalgarno_mm+0x240>
mov    %r14,%r15
lea    (%r14,%r12,1),%rbp
add    $0x1,%r14
lea    (%r15,%r12,1),%rdx
add    $0xfffffffffffffffe,%rdx
xor    %edi,%edi
mov    %r15,%rsi
movapd %xmm6,%xmm0
jmp    13cd <shine_dalgarno_mm+0x29d>
cs nopw 0x0(%rax,%rax,1)
mov    %cl,%bl
add    %ebx,%edi
add    $0x1,%rsi
cmp    %rbp,%rsi
jge    1410 <shine_dalgarno_mm+0x2e0>
movsd  0x10(%rsp,%rsi,8),%xmm3
xor    %ebx,%ebx
ucomisd %xmm3,%xmm1
seta   %cl
ucomisd %xmm3,%xmm1
addsd  %xmm3,%xmm0
jbe    13c0 <shine_dalgarno_mm+0x290>
movapd %xmm0,%xmm3
addsd  %xmm2,%xmm3
cmp    %rdx,%rsi
jl     13f7 <shine_dalgarno_mm+0x2c7>
movapd %xmm3,%xmm0
cmp    %r14,%rsi
ja     13c0 <shine_dalgarno_mm+0x290>
movapd %xmm3,%xmm0
jmp    13c0 <shine_dalgarno_mm+0x290>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    $0x1,%edi
jne    1393 <shine_dalgarno_mm+0x263>
add    %r10d,%r15d
mov    %r13d,%ecx
sub    %r15d,%ecx
movapd %xmm7,%xmm3
cmp    $0x5,%ecx
jl     1450 <shine_dalgarno_mm+0x320>
lea    -0xb(%rcx),%edx
movapd %xmm10,%xmm3
cmp    $0x2,%edx
jb     1450 <shine_dalgarno_mm+0x320>
movapd %xmm5,%xmm3
cmp    $0xd,%ecx
jae    1450 <shine_dalgarno_mm+0x320>
xorpd  %xmm3,%xmm3
cs nopw 0x0(%rax,%rax,1)
nop
cmp    $0xf,%ecx
jg     1393 <shine_dalgarno_mm+0x263>
ucomisd %xmm0,%xmm4
ja     1393 <shine_dalgarno_mm+0x263>
ucomisd %xmm4,%xmm0
mov    $0x2,%esi
jne    147c <shine_dalgarno_mm+0x34c>
jp     147c <shine_dalgarno_mm+0x34c>
ucomisd %xmm5,%xmm3
jne    147c <shine_dalgarno_mm+0x34c>
jnp    1590 <shine_dalgarno_mm+0x460>
ucomisd %xmm9,%xmm0
jne    1491 <shine_dalgarno_mm+0x361>
jp     1491 <shine_dalgarno_mm+0x361>
ucomisd %xmm5,%xmm3
jne    1491 <shine_dalgarno_mm+0x361>
jnp    1590 <shine_dalgarno_mm+0x460>
ucomisd %xmm8,%xmm0
jne    14ab <shine_dalgarno_mm+0x37b>
jp     14ab <shine_dalgarno_mm+0x37b>
mov    $0x3,%esi
ucomisd %xmm5,%xmm3
jne    14ab <shine_dalgarno_mm+0x37b>
jnp    1590 <shine_dalgarno_mm+0x460>
ucomisd %xmm4,%xmm0
jne    14c5 <shine_dalgarno_mm+0x395>
jp     14c5 <shine_dalgarno_mm+0x395>
mov    $0x4,%esi
ucomisd %xmm10,%xmm3
jne    14c5 <shine_dalgarno_mm+0x395>
jnp    1590 <shine_dalgarno_mm+0x460>
ucomisd %xmm4,%xmm0
jne    14de <shine_dalgarno_mm+0x3ae>
jp     14de <shine_dalgarno_mm+0x3ae>
mov    $0x5,%esi
ucomisd %xmm7,%xmm3
jne    14de <shine_dalgarno_mm+0x3ae>
jnp    1590 <shine_dalgarno_mm+0x460>
ucomisd %xmm4,%xmm0
jne    14f7 <shine_dalgarno_mm+0x3c7>
jp     14f7 <shine_dalgarno_mm+0x3c7>
mov    $0x9,%esi
ucomisd %xmm1,%xmm3
jne    14f7 <shine_dalgarno_mm+0x3c7>
jnp    1590 <shine_dalgarno_mm+0x460>
ucomisd %xmm9,%xmm0
jne    1512 <shine_dalgarno_mm+0x3e2>
jp     1512 <shine_dalgarno_mm+0x3e2>
mov    $0x7,%esi
ucomisd %xmm10,%xmm3
jne    1512 <shine_dalgarno_mm+0x3e2>
jnp    1590 <shine_dalgarno_mm+0x460>
ucomisd %xmm9,%xmm0
jne    1528 <shine_dalgarno_mm+0x3f8>
jp     1528 <shine_dalgarno_mm+0x3f8>
mov    $0x8,%esi
ucomisd %xmm7,%xmm3
jne    1528 <shine_dalgarno_mm+0x3f8>
jnp    1590 <shine_dalgarno_mm+0x460>
ucomisd %xmm9,%xmm0
jne    153e <shine_dalgarno_mm+0x40e>
jp     153e <shine_dalgarno_mm+0x40e>
mov    $0xe,%esi
ucomisd %xmm1,%xmm3
jne    153e <shine_dalgarno_mm+0x40e>
jnp    1590 <shine_dalgarno_mm+0x460>
ucomisd %xmm8,%xmm0
jne    1555 <shine_dalgarno_mm+0x425>
jp     1555 <shine_dalgarno_mm+0x425>
mov    $0x11,%esi
ucomisd %xmm10,%xmm3
jne    1555 <shine_dalgarno_mm+0x425>
jnp    1590 <shine_dalgarno_mm+0x460>
ucomisd %xmm8,%xmm0
jne    156b <shine_dalgarno_mm+0x43b>
jp     156b <shine_dalgarno_mm+0x43b>
mov    $0x12,%esi
ucomisd %xmm7,%xmm3
jne    156b <shine_dalgarno_mm+0x43b>
jnp    1590 <shine_dalgarno_mm+0x460>
ucomisd %xmm1,%xmm3
mov    $0x13,%esi
cmovne %r9d,%esi
cmovp  %r9d,%esi
ucomisd %xmm8,%xmm0
cmovne %r9d,%esi
cmovp  %r9d,%esi
nopl   0x0(%rax)
mov    %esi,%ecx
mov    0x8(%rsp),%rdx
movsd  (%rdx,%rcx,8),%xmm0
mov    %eax,%ecx
movsd  (%rdx,%rcx,8),%xmm3
ucomisd %xmm0,%xmm3
ja     1390 <shine_dalgarno_mm+0x260>
cmp    %eax,%esi
cmovge %esi,%eax
ucomisd %xmm3,%xmm0
cmovne %esi,%eax
cmovp  %esi,%eax
jmp    1390 <shine_dalgarno_mm+0x260>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @shine_dalgarno_mm(i8* %0, i32 %1, i32 %2, double* nocapture %3) {
%5 = alloca [6 x double]
%6 = bitcast [6 x double]* %5 to i8*
%7 = sub i32 -4, %1
%8 = add i32 %7, %2
%9 = tail call i32 @imin(i32 6, i32 %8)
%10 = icmp slt i32 %9, 6
br i1 %10, label %11, label %76
11: ; preds = %4
%12 = sext i32 %9 to i64
%13 = sub i32 5, %9
%14 = zext i32 %13 to i64
%15 = add nuw nsw i64 %14, 1
%16 = icmp ult i32 %13, 3
br i1 %16, label %72, label %17
17: ; preds = %11
%18 = and i64 %15, 8589934588
%19 = add nsw i64 %18, %12
%20 = add nsw i64 %18, -4
%21 = lshr exact i64 %20, 2
%22 = add nuw nsw i64 %21, 1
%23 = and i64 %22, 3
%24 = icmp ult i64 %20, 12
br i1 %24, label %56, label %25
25: ; preds = %17
%26 = and i64 %22, 9223372036854775804
br label %27
27: ; preds = %27, %25
%28 = phi i64 [ 0, %25 ], [ %53, %27 ]
%29 = phi i64 [ 0, %25 ], [ %54, %27 ]
%30 = add i64 %28, %12
%31 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 %30
%32 = bitcast double* %31 to <2 x double>*
store <2 x double> <double -1.000000e+01, double -1.000000e+01>, <2 x double>* %32
%33 = getelementptr inbounds double, double* %31, i64 2
%34 = bitcast double* %33 to <2 x double>*
store <2 x double> <double -1.000000e+01, double -1.000000e+01>, <2 x double>* %34
%35 = or i64 %28, 4
%36 = add i64 %35, %12
%37 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 %36
%38 = bitcast double* %37 to <2 x double>*
store <2 x double> <double -1.000000e+01, double -1.000000e+01>, <2 x double>* %38
%39 = getelementptr inbounds double, double* %37, i64 2
%40 = bitcast double* %39 to <2 x double>*
store <2 x double> <double -1.000000e+01, double -1.000000e+01>, <2 x double>* %40
%41 = or i64 %28, 8
%42 = add i64 %41, %12
%43 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 %42
%44 = bitcast double* %43 to <2 x double>*
store <2 x double> <double -1.000000e+01, double -1.000000e+01>, <2 x double>* %44
%45 = getelementptr inbounds double, double* %43, i64 2
%46 = bitcast double* %45 to <2 x double>*
store <2 x double> <double -1.000000e+01, double -1.000000e+01>, <2 x double>* %46
%47 = or i64 %28, 12
%48 = add i64 %47, %12
%49 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 %48
%50 = bitcast double* %49 to <2 x double>*
store <2 x double> <double -1.000000e+01, double -1.000000e+01>, <2 x double>* %50
%51 = getelementptr inbounds double, double* %49, i64 2
%52 = bitcast double* %51 to <2 x double>*
store <2 x double> <double -1.000000e+01, double -1.000000e+01>, <2 x double>* %52
%53 = add nuw i64 %28, 16
%54 = add nuw i64 %29, 4
%55 = icmp eq i64 %54, %26
br i1 %55, label %56, label %27
56: ; preds = %27, %17
%57 = phi i64 [ 0, %17 ], [ %53, %27 ]
%58 = icmp eq i64 %23, 0
br i1 %58, label %70, label %59
59: ; preds = %56, %59
%60 = phi i64 [ %67, %59 ], [ %57, %56 ]
%61 = phi i64 [ %68, %59 ], [ 0, %56 ]
%62 = add i64 %60, %12
%63 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 %62
%64 = bitcast double* %63 to <2 x double>*
store <2 x double> <double -1.000000e+01, double -1.000000e+01>, <2 x double>* %64
%65 = getelementptr inbounds double, double* %63, i64 2
%66 = bitcast double* %65 to <2 x double>*
store <2 x double> <double -1.000000e+01, double -1.000000e+01>, <2 x double>* %66
%67 = add nuw i64 %60, 4
%68 = add i64 %61, 1
%69 = icmp eq i64 %68, %23
br i1 %69, label %70, label %59
70: ; preds = %59, %56
%71 = icmp eq i64 %15, %18
br i1 %71, label %74, label %72
72: ; preds = %11, %70
%73 = phi i64 [ %12, %11 ], [ %19, %70 ]
br label %78
74: ; preds = %78, %70
%75 = icmp sgt i32 %9, 0
br i1 %75, label %76, label %220
76: ; preds = %4, %74
%77 = zext i32 %9 to i64
br label %90
78: ; preds = %72, %78
%79 = phi i64 [ %81, %78 ], [ %73, %72 ]
%80 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 %79
store double -1.000000e+01, double* %80
%81 = add nsw i64 %79, 1
%82 = trunc i64 %81 to i32
%83 = icmp eq i32 %82, 6
br i1 %83, label %74, label %78
84: ; preds = %110
%85 = icmp sgt i32 %9, 4
br i1 %85, label %86, label %220
86: ; preds = %84
%87 = zext i32 %9 to i64
%88 = add nsw i32 %9, -3
%89 = zext i32 %88 to i64
br label %113
90: ; preds = %76, %110
%91 = phi i64 [ 0, %76 ], [ %111, %110 ]
%92 = trunc i64 %91 to i32
%93 = add nsw i32 %92, %1
%94 = icmp slt i32 %93, 0
br i1 %94, label %110, label %95
95: ; preds = %90
%96 = urem i32 %92, 3
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %104
98: ; preds = %95
%99 = tail call i32 @is_a(i8* %0, i32 %93)
%100 = icmp eq i32 %99, 1
%101 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 %91
br i1 %100, label %102, label %103
102: ; preds = %98
store double 2.000000e+00, double* %101
br label %110
103: ; preds = %98
store double -3.000000e+00, double* %101
br label %110
104: ; preds = %95
%105 = tail call i32 @is_g(i8* %0, i32 %93)
%106 = icmp eq i32 %105, 1
%107 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 %91
br i1 %106, label %108, label %109
108: ; preds = %104
store double 3.000000e+00, double* %107
br label %110
109: ; preds = %104
store double -2.000000e+00, double* %107
br label %110
110: ; preds = %103, %102, %109, %108, %90
%111 = add nuw nsw i64 %91, 1
%112 = icmp eq i64 %111, %77
br i1 %112, label %84, label %90
113: ; preds = %216, %86
%114 = phi i64 [ %87, %86 ], [ %217, %216 ]
%115 = phi i64 [ 1, %86 ], [ %218, %216 ]
%116 = phi i32 [ 0, %86 ], [ %213, %216 ]
%117 = phi i32 [ 0, %86 ], [ %212, %216 ]
%118 = trunc i64 %114 to i32
%119 = add i32 %118, %1
br label %120
120: ; preds = %211, %113
%121 = phi i64 [ 0, %113 ], [ %214, %211 ]
%122 = phi i32 [ %116, %113 ], [ %213, %211 ]
%123 = phi i32 [ %117, %113 ], [ %212, %211 ]
%124 = add nsw i64 %121, %114
%125 = add nuw nsw i64 %121, 1
%126 = add nsw i64 %124, -2
br label %127
127: ; preds = %120, %143
%128 = phi i64 [ %121, %120 ], [ %145, %143 ]
%129 = phi double [ -2.000000e+00, %120 ], [ %144, %143 ]
%130 = phi i32 [ 0, %120 ], [ %136, %143 ]
%131 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 %128
%132 = load double, double* %131
%133 = fadd double %129, %132
%134 = fcmp olt double %132, 0.000000e+00
%135 = zext i1 %134 to i32
%136 = add nuw nsw i32 %130, %135
br i1 %134, label %137, label %143
137: ; preds = %127
%138 = icmp ugt i64 %128, %125
%139 = icmp slt i64 %128, %126
%140 = select i1 %138, i1 %139, i1 false
%141 = fadd double %133, -1.000000e+01
%142 = select i1 %140, double %133, double %141
br label %143
143: ; preds = %137, %127
%144 = phi double [ %133, %127 ], [ %142, %137 ]
%145 = add nuw nsw i64 %128, 1
%146 = icmp slt i64 %145, %124
br i1 %146, label %127, label %147
147: ; preds = %143
%148 = icmp eq i32 %136, 1
br i1 %148, label %149, label %211
149: ; preds = %147
%150 = trunc i64 %121 to i32
%151 = add i32 %119, %150
%152 = sub i32 %2, %151
%153 = icmp slt i32 %152, 5
br i1 %153, label %160, label %154
154: ; preds = %149
%155 = add nsw i32 %152, -11
%156 = icmp ult i32 %155, 2
br i1 %156, label %160, label %157
157: ; preds = %154
%158 = icmp ugt i32 %152, 12
%159 = select i1 %158, double 3.000000e+00, double 0.000000e+00
br label %160
160: ; preds = %157, %154, %149
%161 = phi double [ 1.000000e+00, %149 ], [ 2.000000e+00, %154 ], [ %159, %157 ]
%162 = icmp sgt i32 %152, 15
%163 = fcmp olt double %144, 6.000000e+00
%164 = select i1 %162, i1 true, i1 %163
br i1 %164, label %211, label %165
165: ; preds = %160
%166 = fcmp oeq double %144, 6.000000e+00
%167 = fcmp oeq double %161, 3.000000e+00
%168 = and i1 %166, %167
br i1 %168, label %197, label %169
169: ; preds = %165
%170 = fcmp oeq double %144, 7.000000e+00
%171 = and i1 %170, %167
br i1 %171, label %197, label %172
172: ; preds = %169
%173 = fcmp oeq double %144, 9.000000e+00
%174 = and i1 %173, %167
br i1 %174, label %197, label %175
175: ; preds = %172
%176 = fcmp oeq double %161, 2.000000e+00
%177 = and i1 %166, %176
br i1 %177, label %197, label %178
178: ; preds = %175
%179 = fcmp oeq double %161, 1.000000e+00
%180 = and i1 %166, %179
br i1 %180, label %197, label %181
181: ; preds = %178
%182 = fcmp oeq double %161, 0.000000e+00
%183 = and i1 %166, %182
br i1 %183, label %197, label %184
184: ; preds = %181
%185 = and i1 %170, %176
br i1 %185, label %197, label %186
186: ; preds = %184
%187 = and i1 %170, %179
br i1 %187, label %197, label %188
188: ; preds = %186
%189 = and i1 %170, %182
br i1 %189, label %197, label %190
190: ; preds = %188
%191 = and i1 %173, %176
br i1 %191, label %197, label %192
192: ; preds = %190
%193 = and i1 %173, %179
br i1 %193, label %197, label %194
194: ; preds = %192
%195 = and i1 %173, %182
%196 = select i1 %195, i32 19, i32 %122
br label %197
197: ; preds = %194, %192, %190, %188, %186, %184, %181, %178, %175, %172, %169, %165
%198 = phi i32 [ 2, %165 ], [ 2, %169 ], [ 3, %172 ], [ 4, %175 ], [ 5, %178 ], [ 9, %181 ], [ 7, %184 ], [ 8, %186 ], [ 14, %188 ], [ 17, %190 ], [ 18, %192 ], [ %196, %194 ]
%199 = zext i32 %198 to i64
%200 = getelementptr inbounds double, double* %3, i64 %199
%201 = load double, double* %200
%202 = zext i32 %123 to i64
%203 = getelementptr inbounds double, double* %3, i64 %202
%204 = load double, double* %203
%205 = fcmp olt double %201, %204
br i1 %205, label %211, label %206
206: ; preds = %197
%207 = fcmp oeq double %201, %204
%208 = icmp slt i32 %198, %123
%209 = select i1 %207, i1 %208, i1 false
%210 = select i1 %209, i32 %123, i32 %198
br label %211
211: ; preds = %206, %197, %160, %147
%212 = phi i32 [ %123, %147 ], [ %123, %160 ], [ %123, %197 ], [ %210, %206 ]
%213 = phi i32 [ %122, %147 ], [ %122, %160 ], [ %198, %197 ], [ %198, %206 ]
%214 = add nuw nsw i64 %121, 1
%215 = icmp eq i64 %214, %115
br i1 %215, label %216, label %120
216: ; preds = %211
%217 = add nsw i64 %114, -1
%218 = add nuw nsw i64 %115, 1
%219 = icmp eq i64 %218, %89
br i1 %219, label %220, label %113
220: ; preds = %216, %74, %84
%221 = phi i32 [ 0, %84 ], [ 0, %74 ], [ %212, %216 ]
ret i32 %221
}