#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_exact(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 && is_a(seq, pos + i) == 1)
      match[i] = 2.0;
    else if (i % 3 != 0 && is_g(seq, pos + i) == 1)
      match[i] = 3.0;
    else
      match[i] = -10.0;
  }
  max_val = 0;
  for (i = limit; i >= 3; 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 (mism > 0)
        continue;
      rdis = start - (pos + j + i);
      if (rdis < 5 && i < 5)
        dis_flag = 2;
      else if (rdis < 5 && i >= 5)
        dis_flag = 1;
      else if (rdis > 10 && rdis <= 12 && i < 5)
        dis_flag = 1;
      else if (rdis > 10 && rdis <= 12 && i >= 5)
        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 == 2)
        cur_val = 1;
      else if (cur_ctr == 6.0 && dis_flag == 3)
        cur_val = 2;
      else if (cur_ctr == 8.0 && dis_flag == 3)
        cur_val = 3;
      else if (cur_ctr == 9.0 && dis_flag == 3)
        cur_val = 3;
      else if (cur_ctr == 6.0 && dis_flag == 1)
        cur_val = 6;
      else if (cur_ctr == 11.0 && dis_flag == 3)
        cur_val = 10;
      else if (cur_ctr == 12.0 && dis_flag == 3)
        cur_val = 10;
      else if (cur_ctr == 14.0 && dis_flag == 3)
        cur_val = 10;
      else if (cur_ctr == 8.0 && dis_flag == 2)
        cur_val = 11;
      else if (cur_ctr == 9.0 && dis_flag == 2)
        cur_val = 11;
      else if (cur_ctr == 8.0 && dis_flag == 1)
        cur_val = 12;
      else if (cur_ctr == 9.0 && dis_flag == 1)
        cur_val = 12;
      else if (cur_ctr == 6.0 && dis_flag == 0)
        cur_val = 13;
      else if (cur_ctr == 8.0 && dis_flag == 0)
        cur_val = 15;
      else if (cur_ctr == 9.0 && dis_flag == 0)
        cur_val = 16;
      else if (cur_ctr == 11.0 && dis_flag == 2)
        cur_val = 20;
      else if (cur_ctr == 11.0 && dis_flag == 1)
        cur_val = 21;
      else if (cur_ctr == 11.0 && dis_flag == 0)
        cur_val = 22;
      else if (cur_ctr == 12.0 && dis_flag == 2)
        cur_val = 20;
      else if (cur_ctr == 12.0 && dis_flag == 1)
        cur_val = 23;
      else if (cur_ctr == 12.0 && dis_flag == 0)
        cur_val = 24;
      else if (cur_ctr == 14.0 && dis_flag == 2)
        cur_val = 25;
      else if (cur_ctr == 14.0 && dis_flag == 1)
        cur_val = 26;
      else if (cur_ctr == 14.0 && dis_flag == 0)
        cur_val = 27;
      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_exact>:
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_exact+0x66>
movslq -0x1c(%rbp),%rax
movsd  0xece(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp,%rax,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    116c <shine_dalgarno_exact+0x3c>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    126d <shine_dalgarno_exact+0x13d>
mov    -0xc(%rbp),%eax
add    -0x1c(%rbp),%eax
cmp    $0x0,%eax
jge    11bd <shine_dalgarno_exact+0x8d>
jmp    125f <shine_dalgarno_exact+0x12f>
mov    -0x1c(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1200 <shine_dalgarno_exact+0xd0>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    -0x1c(%rbp),%esi
call   1040 <is_a@plt>
cmp    $0x1,%eax
jne    1200 <shine_dalgarno_exact+0xd0>
movslq -0x1c(%rbp),%rax
movsd  0xe1b(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp,%rax,8)
jmp    125a <shine_dalgarno_exact+0x12a>
mov    -0x1c(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1243 <shine_dalgarno_exact+0x113>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
add    -0x1c(%rbp),%esi
call   1050 <is_g@plt>
cmp    $0x1,%eax
jne    1243 <shine_dalgarno_exact+0x113>
movslq -0x1c(%rbp),%rax
movsd  0xdd0(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp,%rax,8)
jmp    1255 <shine_dalgarno_exact+0x125>
movslq -0x1c(%rbp),%rax
movsd  0xe01(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp,%rax,8)
jmp    125a <shine_dalgarno_exact+0x12a>
jmp    125f <shine_dalgarno_exact+0x12f>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    119d <shine_dalgarno_exact+0x6d>
movl   $0x0,-0x34(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x3,-0x1c(%rbp)
jl     1bbb <shine_dalgarno_exact+0xa8b>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    -0x30(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
cmp    %ecx,%eax
jg     1ba8 <shine_dalgarno_exact+0xa78>
movsd  0xd5c(%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    130a <shine_dalgarno_exact+0x1da>
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    12f7 <shine_dalgarno_exact+0x1c7>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12fc <shine_dalgarno_exact+0x1cc>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12b6 <shine_dalgarno_exact+0x186>
cmpl   $0x0,-0x28(%rbp)
jle    1319 <shine_dalgarno_exact+0x1e9>
jmp    1b9a <shine_dalgarno_exact+0xa6a>
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    1350 <shine_dalgarno_exact+0x220>
cmpl   $0x5,-0x1c(%rbp)
jge    1350 <shine_dalgarno_exact+0x220>
movsd  0xcca(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    140e <shine_dalgarno_exact+0x2de>
cmpl   $0x5,-0x2c(%rbp)
jge    1376 <shine_dalgarno_exact+0x246>
cmpl   $0x5,-0x1c(%rbp)
jl     1376 <shine_dalgarno_exact+0x246>
movsd  0xcac(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    1409 <shine_dalgarno_exact+0x2d9>
cmpl   $0xa,-0x2c(%rbp)
jle    13a6 <shine_dalgarno_exact+0x276>
cmpl   $0xc,-0x2c(%rbp)
jg     13a6 <shine_dalgarno_exact+0x276>
cmpl   $0x5,-0x1c(%rbp)
jge    13a6 <shine_dalgarno_exact+0x276>
movsd  0xc7c(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    1404 <shine_dalgarno_exact+0x2d4>
cmpl   $0xa,-0x2c(%rbp)
jle    13d6 <shine_dalgarno_exact+0x2a6>
cmpl   $0xc,-0x2c(%rbp)
jg     13d6 <shine_dalgarno_exact+0x2a6>
cmpl   $0x5,-0x1c(%rbp)
jl     13d6 <shine_dalgarno_exact+0x2a6>
movsd  0xc44(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    13ff <shine_dalgarno_exact+0x2cf>
cmpl   $0xd,-0x2c(%rbp)
jl     13f2 <shine_dalgarno_exact+0x2c2>
movsd  0xc20(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    13fa <shine_dalgarno_exact+0x2ca>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    13ff <shine_dalgarno_exact+0x2cf>
jmp    1404 <shine_dalgarno_exact+0x2d4>
jmp    1409 <shine_dalgarno_exact+0x2d9>
jmp    140e <shine_dalgarno_exact+0x2de>
cmpl   $0xf,-0x2c(%rbp)
jg     142b <shine_dalgarno_exact+0x2fb>
movsd  0xc00(%rip),%xmm0
ucomisd -0x78(%rbp),%xmm0
jbe    1430 <shine_dalgarno_exact+0x300>
jmp    1b9a <shine_dalgarno_exact+0xa6a>
movsd  0xbe8(%rip),%xmm0
ucomisd -0x78(%rbp),%xmm0
jbe    144f <shine_dalgarno_exact+0x31f>
movl   $0x0,-0x38(%rbp)
jmp    1b34 <shine_dalgarno_exact+0xa04>
movsd  -0x78(%rbp),%xmm0
movsd  0xbc4(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1495 <shine_dalgarno_exact+0x365>
jp     1495 <shine_dalgarno_exact+0x365>
movsd  -0x80(%rbp),%xmm0
movsd  0xb97(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1495 <shine_dalgarno_exact+0x365>
jp     1495 <shine_dalgarno_exact+0x365>
movl   $0x1,-0x38(%rbp)
jmp    1b2f <shine_dalgarno_exact+0x9ff>
movsd  -0x78(%rbp),%xmm0
movsd  0xb7e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    14db <shine_dalgarno_exact+0x3ab>
jp     14db <shine_dalgarno_exact+0x3ab>
movsd  -0x80(%rbp),%xmm0
movsd  0xb49(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    14db <shine_dalgarno_exact+0x3ab>
jp     14db <shine_dalgarno_exact+0x3ab>
movl   $0x2,-0x38(%rbp)
jmp    1b2a <shine_dalgarno_exact+0x9fa>
movsd  -0x78(%rbp),%xmm0
movsd  0xb40(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1521 <shine_dalgarno_exact+0x3f1>
jp     1521 <shine_dalgarno_exact+0x3f1>
movsd  -0x80(%rbp),%xmm0
movsd  0xb03(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1521 <shine_dalgarno_exact+0x3f1>
jp     1521 <shine_dalgarno_exact+0x3f1>
movl   $0x3,-0x38(%rbp)
jmp    1b25 <shine_dalgarno_exact+0x9f5>
movsd  -0x78(%rbp),%xmm0
movsd  0xb02(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1567 <shine_dalgarno_exact+0x437>
jp     1567 <shine_dalgarno_exact+0x437>
movsd  -0x80(%rbp),%xmm0
movsd  0xabd(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1567 <shine_dalgarno_exact+0x437>
jp     1567 <shine_dalgarno_exact+0x437>
movl   $0x3,-0x38(%rbp)
jmp    1b20 <shine_dalgarno_exact+0x9f0>
movsd  -0x78(%rbp),%xmm0
movsd  0xaac(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    15ad <shine_dalgarno_exact+0x47d>
jp     15ad <shine_dalgarno_exact+0x47d>
movsd  -0x80(%rbp),%xmm0
movsd  0xa87(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    15ad <shine_dalgarno_exact+0x47d>
jp     15ad <shine_dalgarno_exact+0x47d>
movl   $0x6,-0x38(%rbp)
jmp    1b1b <shine_dalgarno_exact+0x9eb>
movsd  -0x78(%rbp),%xmm0
movsd  0xa7e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    15f3 <shine_dalgarno_exact+0x4c3>
jp     15f3 <shine_dalgarno_exact+0x4c3>
movsd  -0x80(%rbp),%xmm0
movsd  0xa31(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    15f3 <shine_dalgarno_exact+0x4c3>
jp     15f3 <shine_dalgarno_exact+0x4c3>
movl   $0xa,-0x38(%rbp)
jmp    1b16 <shine_dalgarno_exact+0x9e6>
movsd  -0x78(%rbp),%xmm0
movsd  0xa40(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1639 <shine_dalgarno_exact+0x509>
jp     1639 <shine_dalgarno_exact+0x509>
movsd  -0x80(%rbp),%xmm0
movsd  0x9eb(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1639 <shine_dalgarno_exact+0x509>
jp     1639 <shine_dalgarno_exact+0x509>
movl   $0xa,-0x38(%rbp)
jmp    1b11 <shine_dalgarno_exact+0x9e1>
movsd  -0x78(%rbp),%xmm0
movsd  0xa02(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    167f <shine_dalgarno_exact+0x54f>
jp     167f <shine_dalgarno_exact+0x54f>
movsd  -0x80(%rbp),%xmm0
movsd  0x9a5(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    167f <shine_dalgarno_exact+0x54f>
jp     167f <shine_dalgarno_exact+0x54f>
movl   $0xa,-0x38(%rbp)
jmp    1b0c <shine_dalgarno_exact+0x9dc>
movsd  -0x78(%rbp),%xmm0
movsd  0x99c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    16c5 <shine_dalgarno_exact+0x595>
jp     16c5 <shine_dalgarno_exact+0x595>
movsd  -0x80(%rbp),%xmm0
movsd  0x967(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    16c5 <shine_dalgarno_exact+0x595>
jp     16c5 <shine_dalgarno_exact+0x595>
movl   $0xb,-0x38(%rbp)
jmp    1b07 <shine_dalgarno_exact+0x9d7>
movsd  -0x78(%rbp),%xmm0
movsd  0x95e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    170b <shine_dalgarno_exact+0x5db>
jp     170b <shine_dalgarno_exact+0x5db>
movsd  -0x80(%rbp),%xmm0
movsd  0x921(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    170b <shine_dalgarno_exact+0x5db>
jp     170b <shine_dalgarno_exact+0x5db>
movl   $0xb,-0x38(%rbp)
jmp    1b02 <shine_dalgarno_exact+0x9d2>
movsd  -0x78(%rbp),%xmm0
movsd  0x910(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1751 <shine_dalgarno_exact+0x621>
jp     1751 <shine_dalgarno_exact+0x621>
movsd  -0x80(%rbp),%xmm0
movsd  0x8e3(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1751 <shine_dalgarno_exact+0x621>
jp     1751 <shine_dalgarno_exact+0x621>
movl   $0xc,-0x38(%rbp)
jmp    1afd <shine_dalgarno_exact+0x9cd>
movsd  -0x78(%rbp),%xmm0
movsd  0x8d2(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1797 <shine_dalgarno_exact+0x667>
jp     1797 <shine_dalgarno_exact+0x667>
movsd  -0x80(%rbp),%xmm0
movsd  0x89d(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1797 <shine_dalgarno_exact+0x667>
jp     1797 <shine_dalgarno_exact+0x667>
movl   $0xc,-0x38(%rbp)
jmp    1af8 <shine_dalgarno_exact+0x9c8>
movsd  -0x78(%rbp),%xmm0
movsd  0x87c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    17d8 <shine_dalgarno_exact+0x6a8>
jp     17d8 <shine_dalgarno_exact+0x6a8>
movsd  -0x80(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    17d8 <shine_dalgarno_exact+0x6a8>
jp     17d8 <shine_dalgarno_exact+0x6a8>
movl   $0xd,-0x38(%rbp)
jmp    1af3 <shine_dalgarno_exact+0x9c3>
movsd  -0x78(%rbp),%xmm0
movsd  0x843(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1819 <shine_dalgarno_exact+0x6e9>
jp     1819 <shine_dalgarno_exact+0x6e9>
movsd  -0x80(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1819 <shine_dalgarno_exact+0x6e9>
jp     1819 <shine_dalgarno_exact+0x6e9>
movl   $0xf,-0x38(%rbp)
jmp    1aee <shine_dalgarno_exact+0x9be>
movsd  -0x78(%rbp),%xmm0
movsd  0x80a(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    185a <shine_dalgarno_exact+0x72a>
jp     185a <shine_dalgarno_exact+0x72a>
movsd  -0x80(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    185a <shine_dalgarno_exact+0x72a>
jp     185a <shine_dalgarno_exact+0x72a>
movl   $0x10,-0x38(%rbp)
jmp    1ae9 <shine_dalgarno_exact+0x9b9>
movsd  -0x78(%rbp),%xmm0
movsd  0x7d1(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    18a0 <shine_dalgarno_exact+0x770>
jp     18a0 <shine_dalgarno_exact+0x770>
movsd  -0x80(%rbp),%xmm0
movsd  0x78c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    18a0 <shine_dalgarno_exact+0x770>
jp     18a0 <shine_dalgarno_exact+0x770>
movl   $0x14,-0x38(%rbp)
jmp    1ae4 <shine_dalgarno_exact+0x9b4>
movsd  -0x78(%rbp),%xmm0
movsd  0x78b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    18e6 <shine_dalgarno_exact+0x7b6>
jp     18e6 <shine_dalgarno_exact+0x7b6>
movsd  -0x80(%rbp),%xmm0
movsd  0x74e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    18e6 <shine_dalgarno_exact+0x7b6>
jp     18e6 <shine_dalgarno_exact+0x7b6>
movl   $0x15,-0x38(%rbp)
jmp    1adf <shine_dalgarno_exact+0x9af>
movsd  -0x78(%rbp),%xmm0
movsd  0x745(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1927 <shine_dalgarno_exact+0x7f7>
jp     1927 <shine_dalgarno_exact+0x7f7>
movsd  -0x80(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1927 <shine_dalgarno_exact+0x7f7>
jp     1927 <shine_dalgarno_exact+0x7f7>
movl   $0x16,-0x38(%rbp)
jmp    1ada <shine_dalgarno_exact+0x9aa>
movsd  -0x78(%rbp),%xmm0
movsd  0x70c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    196d <shine_dalgarno_exact+0x83d>
jp     196d <shine_dalgarno_exact+0x83d>
movsd  -0x80(%rbp),%xmm0
movsd  0x6bf(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    196d <shine_dalgarno_exact+0x83d>
jp     196d <shine_dalgarno_exact+0x83d>
movl   $0x14,-0x38(%rbp)
jmp    1ad5 <shine_dalgarno_exact+0x9a5>
movsd  -0x78(%rbp),%xmm0
movsd  0x6c6(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    19b3 <shine_dalgarno_exact+0x883>
jp     19b3 <shine_dalgarno_exact+0x883>
movsd  -0x80(%rbp),%xmm0
movsd  0x681(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    19b3 <shine_dalgarno_exact+0x883>
jp     19b3 <shine_dalgarno_exact+0x883>
movl   $0x17,-0x38(%rbp)
jmp    1ad0 <shine_dalgarno_exact+0x9a0>
movsd  -0x78(%rbp),%xmm0
movsd  0x680(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    19f4 <shine_dalgarno_exact+0x8c4>
jp     19f4 <shine_dalgarno_exact+0x8c4>
movsd  -0x80(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    19f4 <shine_dalgarno_exact+0x8c4>
jp     19f4 <shine_dalgarno_exact+0x8c4>
movl   $0x18,-0x38(%rbp)
jmp    1acb <shine_dalgarno_exact+0x99b>
movsd  -0x78(%rbp),%xmm0
movsd  0x647(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1a3a <shine_dalgarno_exact+0x90a>
jp     1a3a <shine_dalgarno_exact+0x90a>
movsd  -0x80(%rbp),%xmm0
movsd  0x5f2(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1a3a <shine_dalgarno_exact+0x90a>
jp     1a3a <shine_dalgarno_exact+0x90a>
movl   $0x19,-0x38(%rbp)
jmp    1ac6 <shine_dalgarno_exact+0x996>
movsd  -0x78(%rbp),%xmm0
movsd  0x601(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1a80 <shine_dalgarno_exact+0x950>
jp     1a80 <shine_dalgarno_exact+0x950>
movsd  -0x80(%rbp),%xmm0
movsd  0x5b4(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1a80 <shine_dalgarno_exact+0x950>
jp     1a80 <shine_dalgarno_exact+0x950>
movl   $0x1a,-0x38(%rbp)
jmp    1ac1 <shine_dalgarno_exact+0x991>
movsd  -0x78(%rbp),%xmm0
movsd  0x5bb(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1abc <shine_dalgarno_exact+0x98c>
jp     1abc <shine_dalgarno_exact+0x98c>
movsd  -0x80(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1abc <shine_dalgarno_exact+0x98c>
jp     1abc <shine_dalgarno_exact+0x98c>
movl   $0x1b,-0x38(%rbp)
jmp    1ac1 <shine_dalgarno_exact+0x991>
jmp    1ac6 <shine_dalgarno_exact+0x996>
jmp    1acb <shine_dalgarno_exact+0x99b>
jmp    1ad0 <shine_dalgarno_exact+0x9a0>
jmp    1ad5 <shine_dalgarno_exact+0x9a5>
jmp    1ada <shine_dalgarno_exact+0x9aa>
jmp    1adf <shine_dalgarno_exact+0x9af>
jmp    1ae4 <shine_dalgarno_exact+0x9b4>
jmp    1ae9 <shine_dalgarno_exact+0x9b9>
jmp    1aee <shine_dalgarno_exact+0x9be>
jmp    1af3 <shine_dalgarno_exact+0x9c3>
jmp    1af8 <shine_dalgarno_exact+0x9c8>
jmp    1afd <shine_dalgarno_exact+0x9cd>
jmp    1b02 <shine_dalgarno_exact+0x9d2>
jmp    1b07 <shine_dalgarno_exact+0x9d7>
jmp    1b0c <shine_dalgarno_exact+0x9dc>
jmp    1b11 <shine_dalgarno_exact+0x9e1>
jmp    1b16 <shine_dalgarno_exact+0x9e6>
jmp    1b1b <shine_dalgarno_exact+0x9eb>
jmp    1b20 <shine_dalgarno_exact+0x9f0>
jmp    1b25 <shine_dalgarno_exact+0x9f5>
jmp    1b2a <shine_dalgarno_exact+0x9fa>
jmp    1b2f <shine_dalgarno_exact+0x9ff>
jmp    1b34 <shine_dalgarno_exact+0xa04>
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    1b5d <shine_dalgarno_exact+0xa2d>
jmp    1b9a <shine_dalgarno_exact+0xa6a>
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    1b94 <shine_dalgarno_exact+0xa64>
jp     1b94 <shine_dalgarno_exact+0xa64>
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    1b94 <shine_dalgarno_exact+0xa64>
jmp    1b9a <shine_dalgarno_exact+0xa6a>
mov    -0x38(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    128b <shine_dalgarno_exact+0x15b>
jmp    1bad <shine_dalgarno_exact+0xa7d>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
jmp    127a <shine_dalgarno_exact+0x14a>
mov    -0x34(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<shine_dalgarno_exact>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rcx,%r12
mov    %edx,%r13d
mov    %esi,%r14d
mov    %rdi,(%rsp)
mov    %edx,%esi
sub    %r14d,%esi
add    $0xfffffffc,%esi
mov    $0x6,%edi
call   1030 <imin@plt>
mov    %eax,%ebx
cmp    $0x5,%eax
jg     1266 <shine_dalgarno_exact+0x136>
movslq %ebx,%rax
mov    $0x5,%ecx
sub    %eax,%ecx
cmp    $0x3,%ecx
jb     123c <shine_dalgarno_exact+0x10c>
add    $0x1,%rcx
mov    %rcx,%r8
and    $0xfffffffffffffffc,%r8
lea    -0x4(%r8),%rdx
mov    %rdx,%rdi
shr    $0x2,%rdi
add    $0x1,%rdi
mov    %edi,%esi
and    $0x3,%esi
cmp    $0xc,%rdx
jae    11a4 <shine_dalgarno_exact+0x74>
xor    %ebp,%ebp
jmp    11f9 <shine_dalgarno_exact+0xc9>
and    $0xfffffffffffffffc,%rdi
lea    (%rsp,%rax,8),%rdx
add    $0x80,%rdx
xor    %ebp,%ebp
movapd 0xe43(%rip),%xmm0
nopl   (%rax)
movupd %xmm0,-0x70(%rdx,%rbp,8)
movupd %xmm0,-0x60(%rdx,%rbp,8)
movupd %xmm0,-0x50(%rdx,%rbp,8)
movupd %xmm0,-0x40(%rdx,%rbp,8)
movupd %xmm0,-0x30(%rdx,%rbp,8)
movupd %xmm0,-0x20(%rdx,%rbp,8)
movupd %xmm0,-0x10(%rdx,%rbp,8)
movupd %xmm0,(%rdx,%rbp,8)
add    $0x10,%rbp
add    $0xfffffffffffffffc,%rdi
jne    11c0 <shine_dalgarno_exact+0x90>
test   %rsi,%rsi
je     1234 <shine_dalgarno_exact+0x104>
add    %rax,%rbp
lea    (%rsp,%rbp,8),%rdx
add    $0x20,%rdx
shl    $0x5,%rsi
xor    %edi,%edi
movapd 0xde9(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
movupd %xmm0,-0x10(%rdx,%rdi,1)
movupd %xmm0,(%rdx,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rsi
jne    1220 <shine_dalgarno_exact+0xf0>
cmp    %r8,%rcx
je     125e <shine_dalgarno_exact+0x12e>
add    %r8,%rax
movabs $0xc024000000000000,%rcx
cs nopw 0x0(%rax,%rax,1)
mov    %rcx,0x10(%rsp,%rax,8)
add    $0x1,%rax
cmp    $0x6,%eax
jne    1250 <shine_dalgarno_exact+0x120>
test   %ebx,%ebx
jle    16a5 <shine_dalgarno_exact+0x575>
mov    %r14,0x8(%rsp)
mov    %r14d,%ebp
xor    %r14d,%r14d
mov    $0xaaaaaaab,%r15d
jmp    1290 <shine_dalgarno_exact+0x160>
nopl   0x0(%rax)
movsd  %xmm0,0x10(%rsp,%r14,8)
add    $0x1,%r14
cmp    %r14,%rbx
je     12f0 <shine_dalgarno_exact+0x1c0>
lea    (%r14,%rbp,1),%rsi
test   %esi,%esi
js     1287 <shine_dalgarno_exact+0x157>
mov    %r14d,%eax
imul   %r15,%rax
shr    $0x21,%rax
lea    (%rax,%rax,2),%eax
neg    %eax
add    %r14d,%eax
je     12d0 <shine_dalgarno_exact+0x1a0>
mov    (%rsp),%rdi
call   1050 <is_g@plt>
movsd  0xd52(%rip),%xmm0
cmp    $0x1,%eax
je     1280 <shine_dalgarno_exact+0x150>
jmp    12e6 <shine_dalgarno_exact+0x1b6>
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%rsp),%rdi
call   1040 <is_a@plt>
movsd  0xd37(%rip),%xmm0
cmp    $0x1,%eax
je     1280 <shine_dalgarno_exact+0x150>
movsd  0xd32(%rip),%xmm0
jmp    1280 <shine_dalgarno_exact+0x150>
xor    %eax,%eax
cmp    $0x3,%ebx
mov    0x8(%rsp),%r14
jl     16a7 <shine_dalgarno_exact+0x577>
lea    -0x1(%rbx),%r8d
xor    %r9d,%r9d
mov    $0x1,%r11d
movsd  0xd13(%rip),%xmm6
xorpd  %xmm1,%xmm1
movsd  0xcf7(%rip),%xmm5
movsd  0xd0f(%rip),%xmm3
movsd  0xcdf(%rip),%xmm4
movsd  0xd06(%rip),%xmm12
movsd  0xd05(%rip),%xmm11
movsd  0xce5(%rip),%xmm7
movsd  0xcfc(%rip),%xmm8
movsd  0xcfb(%rip),%xmm9
movsd  0xcfa(%rip),%xmm10
xor    %eax,%eax
jmp    1381 <shine_dalgarno_exact+0x251>
nopw   0x0(%rax,%rax,1)
add    $0xffffffffffffffff,%rbx
add    $0x1,%r11
cmp    %r8,%r11
je     16a7 <shine_dalgarno_exact+0x577>
lea    (%rbx,%r14,1),%r10d
xor    %edi,%edi
jmp    1399 <shine_dalgarno_exact+0x269>
mov    %esi,%r9d
nopl   0x0(%rax)
add    $0x1,%rdi
cmp    %r11,%rdi
je     1370 <shine_dalgarno_exact+0x240>
lea    (%rdi,%rbx,1),%rbp
xor    %esi,%esi
mov    %rdi,%rcx
movapd %xmm6,%xmm0
cs nopw 0x0(%rax,%rax,1)
movsd  0x10(%rsp,%rcx,8),%xmm2
xor    %edx,%edx
ucomisd %xmm2,%xmm1
seta   %dl
addsd  %xmm2,%xmm0
add    %edx,%esi
add    $0x1,%rcx
cmp    %rbp,%rcx
jl     13b0 <shine_dalgarno_exact+0x280>
test   %esi,%esi
jne    1390 <shine_dalgarno_exact+0x260>
mov    %r13d,%esi
sub    %r10d,%esi
sub    %edi,%esi
cmp    $0x4,%esi
jg     13e9 <shine_dalgarno_exact+0x2b9>
movapd %xmm5,%xmm2
cmp    $0x5,%rbx
jl     1430 <shine_dalgarno_exact+0x300>
cmp    $0x4,%esi
jg     13f8 <shine_dalgarno_exact+0x2c8>
movapd %xmm7,%xmm2
cmp    $0x4,%rbx
jg     1430 <shine_dalgarno_exact+0x300>
lea    -0xb(%rsi),%ecx
cmp    $0x1,%ecx
ja     140a <shine_dalgarno_exact+0x2da>
movapd %xmm7,%xmm2
cmp    $0x5,%rbx
jl     1430 <shine_dalgarno_exact+0x300>
cmp    $0x1,%ecx
ja     1419 <shine_dalgarno_exact+0x2e9>
movapd %xmm5,%xmm2
cmp    $0x4,%rbx
jg     1430 <shine_dalgarno_exact+0x300>
movapd %xmm4,%xmm2
cmp    $0xd,%esi
jge    1430 <shine_dalgarno_exact+0x300>
xorpd  %xmm2,%xmm2
cs nopw 0x0(%rax,%rax,1)
cmp    $0xf,%esi
jg     1390 <shine_dalgarno_exact+0x260>
ucomisd %xmm0,%xmm3
ja     1390 <shine_dalgarno_exact+0x260>
ucomisd %xmm3,%xmm0
jne    145c <shine_dalgarno_exact+0x32c>
jp     145c <shine_dalgarno_exact+0x32c>
mov    $0x1,%esi
ucomisd %xmm5,%xmm2
jne    145c <shine_dalgarno_exact+0x32c>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm3,%xmm0
jne    1475 <shine_dalgarno_exact+0x345>
jp     1475 <shine_dalgarno_exact+0x345>
mov    $0x2,%esi
ucomisd %xmm4,%xmm2
jne    1475 <shine_dalgarno_exact+0x345>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm12,%xmm0
mov    $0x3,%esi
jne    148f <shine_dalgarno_exact+0x35f>
jp     148f <shine_dalgarno_exact+0x35f>
ucomisd %xmm4,%xmm2
jne    148f <shine_dalgarno_exact+0x35f>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm11,%xmm0
jne    14a4 <shine_dalgarno_exact+0x374>
jp     14a4 <shine_dalgarno_exact+0x374>
ucomisd %xmm4,%xmm2
jne    14a4 <shine_dalgarno_exact+0x374>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm3,%xmm0
jne    14bd <shine_dalgarno_exact+0x38d>
jp     14bd <shine_dalgarno_exact+0x38d>
mov    $0x6,%esi
ucomisd %xmm7,%xmm2
jne    14bd <shine_dalgarno_exact+0x38d>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm8,%xmm0
mov    $0xa,%esi
jne    14d7 <shine_dalgarno_exact+0x3a7>
jp     14d7 <shine_dalgarno_exact+0x3a7>
ucomisd %xmm4,%xmm2
jne    14d7 <shine_dalgarno_exact+0x3a7>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm9,%xmm0
jne    14ec <shine_dalgarno_exact+0x3bc>
jp     14ec <shine_dalgarno_exact+0x3bc>
ucomisd %xmm4,%xmm2
jne    14ec <shine_dalgarno_exact+0x3bc>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm10,%xmm0
jne    1501 <shine_dalgarno_exact+0x3d1>
jp     1501 <shine_dalgarno_exact+0x3d1>
ucomisd %xmm4,%xmm2
jne    1501 <shine_dalgarno_exact+0x3d1>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm11,%xmm0
setnp  %cl
sete   %dl
and    %cl,%dl
ucomisd %xmm12,%xmm0
setnp  %sil
sete   %cl
and    %sil,%cl
or     %dl,%cl
cmp    $0x1,%cl
jne    1535 <shine_dalgarno_exact+0x405>
mov    $0xb,%esi
ucomisd %xmm5,%xmm2
jne    1535 <shine_dalgarno_exact+0x405>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm7,%xmm2
setnp  %sil
sete   %dl
and    %sil,%dl
mov    $0xc,%esi
test   %dl,%cl
jne    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm3,%xmm0
jne    1569 <shine_dalgarno_exact+0x439>
jp     1569 <shine_dalgarno_exact+0x439>
mov    $0xd,%esi
ucomisd %xmm1,%xmm2
jne    1569 <shine_dalgarno_exact+0x439>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm12,%xmm0
jne    1583 <shine_dalgarno_exact+0x453>
jp     1583 <shine_dalgarno_exact+0x453>
mov    $0xf,%esi
ucomisd %xmm1,%xmm2
jne    1583 <shine_dalgarno_exact+0x453>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm11,%xmm0
jne    159d <shine_dalgarno_exact+0x46d>
jp     159d <shine_dalgarno_exact+0x46d>
mov    $0x10,%esi
ucomisd %xmm1,%xmm2
jne    159d <shine_dalgarno_exact+0x46d>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm8,%xmm0
mov    $0x14,%esi
jne    15b7 <shine_dalgarno_exact+0x487>
jp     15b7 <shine_dalgarno_exact+0x487>
ucomisd %xmm5,%xmm2
jne    15b7 <shine_dalgarno_exact+0x487>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm8,%xmm0
jne    15d1 <shine_dalgarno_exact+0x4a1>
jp     15d1 <shine_dalgarno_exact+0x4a1>
mov    $0x15,%esi
ucomisd %xmm7,%xmm2
jne    15d1 <shine_dalgarno_exact+0x4a1>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm8,%xmm0
jne    15eb <shine_dalgarno_exact+0x4bb>
jp     15eb <shine_dalgarno_exact+0x4bb>
mov    $0x16,%esi
ucomisd %xmm1,%xmm2
jne    15eb <shine_dalgarno_exact+0x4bb>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm9,%xmm0
jne    1601 <shine_dalgarno_exact+0x4d1>
jp     1601 <shine_dalgarno_exact+0x4d1>
ucomisd %xmm5,%xmm2
mov    $0x14,%esi
jne    1601 <shine_dalgarno_exact+0x4d1>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm9,%xmm0
jne    1617 <shine_dalgarno_exact+0x4e7>
jp     1617 <shine_dalgarno_exact+0x4e7>
mov    $0x17,%esi
ucomisd %xmm7,%xmm2
jne    1617 <shine_dalgarno_exact+0x4e7>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm9,%xmm0
jne    162d <shine_dalgarno_exact+0x4fd>
jp     162d <shine_dalgarno_exact+0x4fd>
mov    $0x18,%esi
ucomisd %xmm1,%xmm2
jne    162d <shine_dalgarno_exact+0x4fd>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm10,%xmm0
jne    1643 <shine_dalgarno_exact+0x513>
jp     1643 <shine_dalgarno_exact+0x513>
mov    $0x19,%esi
ucomisd %xmm5,%xmm2
jne    1643 <shine_dalgarno_exact+0x513>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm10,%xmm0
jne    1659 <shine_dalgarno_exact+0x529>
jp     1659 <shine_dalgarno_exact+0x529>
mov    $0x1a,%esi
ucomisd %xmm7,%xmm2
jne    1659 <shine_dalgarno_exact+0x529>
jnp    1677 <shine_dalgarno_exact+0x547>
ucomisd %xmm1,%xmm2
mov    $0x1b,%esi
cmovne %r9d,%esi
cmovp  %r9d,%esi
ucomisd %xmm10,%xmm0
cmovne %r9d,%esi
cmovp  %r9d,%esi
mov    %esi,%ecx
movsd  (%r12,%rcx,8),%xmm0
mov    %eax,%ecx
movsd  (%r12,%rcx,8),%xmm2
ucomisd %xmm0,%xmm2
ja     1389 <shine_dalgarno_exact+0x259>
cmp    %eax,%esi
cmovge %esi,%eax
ucomisd %xmm2,%xmm0
cmovne %esi,%eax
cmovp  %esi,%eax
jmp    1389 <shine_dalgarno_exact+0x259>
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_exact(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 = %83, %36
%38 = load i32, i32* %9
%39 = load i32, i32* %14
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %86
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 %83
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 %62
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 %82
62: ; preds = %51, %47
%63 = load i32, i32* %9
%64 = srem i32 %63, 3
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %77
66: ; preds = %62
%67 = load i8*, i8** %5
%68 = load i32, i32* %6
%69 = load i32, i32* %9
%70 = add nsw i32 %68, %69
%71 = call i32 @is_g(i8* %67, i32 %70)
%72 = icmp eq i32 %71, 1
br i1 %72, label %73, label %77
73: ; preds = %66
%74 = load i32, i32* %9
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [6 x double], [6 x double]* %17, i64 0, i64 %75
store double 3.000000e+00, double* %76
br label %81
77: ; preds = %66, %62
%78 = load i32, i32* %9
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [6 x double], [6 x double]* %17, i64 0, i64 %79
store double -1.000000e+01, double* %80
br label %81
81: ; preds = %77, %73
br label %82
82: ; preds = %81, %58
br label %83
83: ; preds = %82, %46
%84 = load i32, i32* %9
%85 = add nsw i32 %84, 1
store i32 %85, i32* %9
br label %37
86: ; preds = %37
store i32 0, i32* %15
%87 = load i32, i32* %14
store i32 %87, i32* %9
br label %88
88: ; preds = %418, %86
%89 = load i32, i32* %9
%90 = icmp sge i32 %89, 3
br i1 %90, label %91, label %421
91: ; preds = %88
store i32 0, i32* %10
br label %92
92: ; preds = %414, %91
%93 = load i32, i32* %10
%94 = load i32, i32* %14
%95 = load i32, i32* %9
%96 = sub nsw i32 %94, %95
%97 = icmp sle i32 %93, %96
br i1 %97, label %98, label %417
98: ; preds = %92
store double -2.000000e+00, double* %18
store i32 0, i32* %12
%99 = load i32, i32* %10
store i32 %99, i32* %11
br label %100
100: ; preds = %122, %98
%101 = load i32, i32* %11
%102 = load i32, i32* %10
%103 = load i32, i32* %9
%104 = add nsw i32 %102, %103
%105 = icmp slt i32 %101, %104
br i1 %105, label %106, label %125
106: ; preds = %100
%107 = load i32, i32* %11
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [6 x double], [6 x double]* %17, i64 0, i64 %108
%110 = load double, double* %109
%111 = load double, double* %18
%112 = fadd double %111, %110
store double %112, double* %18
%113 = load i32, i32* %11
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [6 x double], [6 x double]* %17, i64 0, i64 %114
%116 = load double, double* %115
%117 = fcmp olt double %116, 0.000000e+00
br i1 %117, label %118, label %121
118: ; preds = %106
%119 = load i32, i32* %12
%120 = add nsw i32 %119, 1
store i32 %120, i32* %12
br label %121
121: ; preds = %118, %106
br label %122
122: ; preds = %121
%123 = load i32, i32* %11
%124 = add nsw i32 %123, 1
store i32 %124, i32* %11
br label %100
125: ; preds = %100
%126 = load i32, i32* %12
%127 = icmp sgt i32 %126, 0
br i1 %127, label %128, label %129
128: ; preds = %125
br label %414
129: ; preds = %125
%130 = load i32, i32* %7
%131 = load i32, i32* %6
%132 = load i32, i32* %10
%133 = add nsw i32 %131, %132
%134 = load i32, i32* %9
%135 = add nsw i32 %133, %134
%136 = sub nsw i32 %130, %135
store i32 %136, i32* %13
%137 = load i32, i32* %13
%138 = icmp slt i32 %137, 5
br i1 %138, label %139, label %143
139: ; preds = %129
%140 = load i32, i32* %9
%141 = icmp slt i32 %140, 5
br i1 %141, label %142, label %143
142: ; preds = %139
store double 2.000000e+00, double* %19
br label %179
143: ; preds = %139, %129
%144 = load i32, i32* %13
%145 = icmp slt i32 %144, 5
br i1 %145, label %146, label %150
146: ; preds = %143
%147 = load i32, i32* %9
%148 = icmp sge i32 %147, 5
br i1 %148, label %149, label %150
149: ; preds = %146
store double 1.000000e+00, double* %19
br label %178
150: ; preds = %146, %143
%151 = load i32, i32* %13
%152 = icmp sgt i32 %151, 10
br i1 %152, label %153, label %160
153: ; preds = %150
%154 = load i32, i32* %13
%155 = icmp sle i32 %154, 12
br i1 %155, label %156, label %160
156: ; preds = %153
%157 = load i32, i32* %9
%158 = icmp slt i32 %157, 5
br i1 %158, label %159, label %160
159: ; preds = %156
store double 1.000000e+00, double* %19
br label %177
160: ; preds = %156, %153, %150
%161 = load i32, i32* %13
%162 = icmp sgt i32 %161, 10
br i1 %162, label %163, label %170
163: ; preds = %160
%164 = load i32, i32* %13
%165 = icmp sle i32 %164, 12
br i1 %165, label %166, label %170
166: ; preds = %163
%167 = load i32, i32* %9
%168 = icmp sge i32 %167, 5
br i1 %168, label %169, label %170
169: ; preds = %166
store double 2.000000e+00, double* %19
br label %176
170: ; preds = %166, %163, %160
%171 = load i32, i32* %13
%172 = icmp sge i32 %171, 13
br i1 %172, label %173, label %174
173: ; preds = %170
store double 3.000000e+00, double* %19
br label %175
174: ; preds = %170
store double 0.000000e+00, double* %19
br label %175
175: ; preds = %174, %173
br label %176
176: ; preds = %175, %169
br label %177
177: ; preds = %176, %159
br label %178
178: ; preds = %177, %149
br label %179
179: ; preds = %178, %142
%180 = load i32, i32* %13
%181 = icmp sgt i32 %180, 15
br i1 %181, label %185, label %182
182: ; preds = %179
%183 = load double, double* %18
%184 = fcmp olt double %183, 6.000000e+00
br i1 %184, label %185, label %186
185: ; preds = %182, %179
br label %414
186: ; preds = %182
%187 = load double, double* %18
%188 = fcmp olt double %187, 6.000000e+00
br i1 %188, label %189, label %190
189: ; preds = %186
store i32 0, i32* %16
br label %382
190: ; preds = %186
%191 = load double, double* %18
%192 = fcmp oeq double %191, 6.000000e+00
br i1 %192, label %193, label %197
193: ; preds = %190
%194 = load double, double* %19
%195 = fcmp oeq double %194, 2.000000e+00
br i1 %195, label %196, label %197
196: ; preds = %193
store i32 1, i32* %16
br label %381
197: ; preds = %193, %190
%198 = load double, double* %18
%199 = fcmp oeq double %198, 6.000000e+00
br i1 %199, label %200, label %204
200: ; preds = %197
%201 = load double, double* %19
%202 = fcmp oeq double %201, 3.000000e+00
br i1 %202, label %203, label %204
203: ; preds = %200
store i32 2, i32* %16
br label %380
204: ; preds = %200, %197
%205 = load double, double* %18
%206 = fcmp oeq double %205, 8.000000e+00
br i1 %206, label %207, label %211
207: ; preds = %204
%208 = load double, double* %19
%209 = fcmp oeq double %208, 3.000000e+00
br i1 %209, label %210, label %211
210: ; preds = %207
store i32 3, i32* %16
br label %379
211: ; preds = %207, %204
%212 = load double, double* %18
%213 = fcmp oeq double %212, 9.000000e+00
br i1 %213, label %214, label %218
214: ; preds = %211
%215 = load double, double* %19
%216 = fcmp oeq double %215, 3.000000e+00
br i1 %216, label %217, label %218
217: ; preds = %214
store i32 3, i32* %16
br label %378
218: ; preds = %214, %211
%219 = load double, double* %18
%220 = fcmp oeq double %219, 6.000000e+00
br i1 %220, label %221, label %225
221: ; preds = %218
%222 = load double, double* %19
%223 = fcmp oeq double %222, 1.000000e+00
br i1 %223, label %224, label %225
224: ; preds = %221
store i32 6, i32* %16
br label %377
225: ; preds = %221, %218
%226 = load double, double* %18
%227 = fcmp oeq double %226, 1.100000e+01
br i1 %227, label %228, label %232
228: ; preds = %225
%229 = load double, double* %19
%230 = fcmp oeq double %229, 3.000000e+00
br i1 %230, label %231, label %232
231: ; preds = %228
store i32 10, i32* %16
br label %376
232: ; preds = %228, %225
%233 = load double, double* %18
%234 = fcmp oeq double %233, 1.200000e+01
br i1 %234, label %235, label %239
235: ; preds = %232
%236 = load double, double* %19
%237 = fcmp oeq double %236, 3.000000e+00
br i1 %237, label %238, label %239
238: ; preds = %235
store i32 10, i32* %16
br label %375
239: ; preds = %235, %232
%240 = load double, double* %18
%241 = fcmp oeq double %240, 1.400000e+01
br i1 %241, label %242, label %246
242: ; preds = %239
%243 = load double, double* %19
%244 = fcmp oeq double %243, 3.000000e+00
br i1 %244, label %245, label %246
245: ; preds = %242
store i32 10, i32* %16
br label %374
246: ; preds = %242, %239
%247 = load double, double* %18
%248 = fcmp oeq double %247, 8.000000e+00
br i1 %248, label %249, label %253
249: ; preds = %246
%250 = load double, double* %19
%251 = fcmp oeq double %250, 2.000000e+00
br i1 %251, label %252, label %253
252: ; preds = %249
store i32 11, i32* %16
br label %373
253: ; preds = %249, %246
%254 = load double, double* %18
%255 = fcmp oeq double %254, 9.000000e+00
br i1 %255, label %256, label %260
256: ; preds = %253
%257 = load double, double* %19
%258 = fcmp oeq double %257, 2.000000e+00
br i1 %258, label %259, label %260
259: ; preds = %256
store i32 11, i32* %16
br label %372
260: ; preds = %256, %253
%261 = load double, double* %18
%262 = fcmp oeq double %261, 8.000000e+00
br i1 %262, label %263, label %267
263: ; preds = %260
%264 = load double, double* %19
%265 = fcmp oeq double %264, 1.000000e+00
br i1 %265, label %266, label %267
266: ; preds = %263
store i32 12, i32* %16
br label %371
267: ; preds = %263, %260
%268 = load double, double* %18
%269 = fcmp oeq double %268, 9.000000e+00
br i1 %269, label %270, label %274
270: ; preds = %267
%271 = load double, double* %19
%272 = fcmp oeq double %271, 1.000000e+00
br i1 %272, label %273, label %274
273: ; preds = %270
store i32 12, i32* %16
br label %370
274: ; preds = %270, %267
%275 = load double, double* %18
%276 = fcmp oeq double %275, 6.000000e+00
br i1 %276, label %277, label %281
277: ; preds = %274
%278 = load double, double* %19
%279 = fcmp oeq double %278, 0.000000e+00
br i1 %279, label %280, label %281
280: ; preds = %277
store i32 13, i32* %16
br label %369
281: ; preds = %277, %274
%282 = load double, double* %18
%283 = fcmp oeq double %282, 8.000000e+00
br i1 %283, label %284, label %288
284: ; preds = %281
%285 = load double, double* %19
%286 = fcmp oeq double %285, 0.000000e+00
br i1 %286, label %287, label %288
287: ; preds = %284
store i32 15, i32* %16
br label %368
288: ; preds = %284, %281
%289 = load double, double* %18
%290 = fcmp oeq double %289, 9.000000e+00
br i1 %290, label %291, label %295
291: ; preds = %288
%292 = load double, double* %19
%293 = fcmp oeq double %292, 0.000000e+00
br i1 %293, label %294, label %295
294: ; preds = %291
store i32 16, i32* %16
br label %367
295: ; preds = %291, %288
%296 = load double, double* %18
%297 = fcmp oeq double %296, 1.100000e+01
br i1 %297, label %298, label %302
298: ; preds = %295
%299 = load double, double* %19
%300 = fcmp oeq double %299, 2.000000e+00
br i1 %300, label %301, label %302
301: ; preds = %298
store i32 20, i32* %16
br label %366
302: ; preds = %298, %295
%303 = load double, double* %18
%304 = fcmp oeq double %303, 1.100000e+01
br i1 %304, label %305, label %309
305: ; preds = %302
%306 = load double, double* %19
%307 = fcmp oeq double %306, 1.000000e+00
br i1 %307, label %308, label %309
308: ; preds = %305
store i32 21, i32* %16
br label %365
309: ; preds = %305, %302
%310 = load double, double* %18
%311 = fcmp oeq double %310, 1.100000e+01
br i1 %311, label %312, label %316
312: ; preds = %309
%313 = load double, double* %19
%314 = fcmp oeq double %313, 0.000000e+00
br i1 %314, label %315, label %316
315: ; preds = %312
store i32 22, i32* %16
br label %364
316: ; preds = %312, %309
%317 = load double, double* %18
%318 = fcmp oeq double %317, 1.200000e+01
br i1 %318, label %319, label %323
319: ; preds = %316
%320 = load double, double* %19
%321 = fcmp oeq double %320, 2.000000e+00
br i1 %321, label %322, label %323
322: ; preds = %319
store i32 20, i32* %16
br label %363
323: ; preds = %319, %316
%324 = load double, double* %18
%325 = fcmp oeq double %324, 1.200000e+01
br i1 %325, label %326, label %330
326: ; preds = %323
%327 = load double, double* %19
%328 = fcmp oeq double %327, 1.000000e+00
br i1 %328, label %329, label %330
329: ; preds = %326
store i32 23, i32* %16
br label %362
330: ; preds = %326, %323
%331 = load double, double* %18
%332 = fcmp oeq double %331, 1.200000e+01
br i1 %332, label %333, label %337
333: ; preds = %330
%334 = load double, double* %19
%335 = fcmp oeq double %334, 0.000000e+00
br i1 %335, label %336, label %337
336: ; preds = %333
store i32 24, i32* %16
br label %361
337: ; preds = %333, %330
%338 = load double, double* %18
%339 = fcmp oeq double %338, 1.400000e+01
br i1 %339, label %340, label %344
340: ; preds = %337
%341 = load double, double* %19
%342 = fcmp oeq double %341, 2.000000e+00
br i1 %342, label %343, label %344
343: ; preds = %340
store i32 25, i32* %16
br label %360
344: ; preds = %340, %337
%345 = load double, double* %18
%346 = fcmp oeq double %345, 1.400000e+01
br i1 %346, label %347, label %351
347: ; preds = %344
%348 = load double, double* %19
%349 = fcmp oeq double %348, 1.000000e+00
br i1 %349, label %350, label %351
350: ; preds = %347
store i32 26, i32* %16
br label %359
351: ; preds = %347, %344
%352 = load double, double* %18
%353 = fcmp oeq double %352, 1.400000e+01
br i1 %353, label %354, label %358
354: ; preds = %351
%355 = load double, double* %19
%356 = fcmp oeq double %355, 0.000000e+00
br i1 %356, label %357, label %358
357: ; preds = %354
store i32 27, i32* %16
br label %358
358: ; preds = %357, %354, %351
br label %359
359: ; preds = %358, %350
br label %360
360: ; preds = %359, %343
br label %361
361: ; preds = %360, %336
br label %362
362: ; preds = %361, %329
br label %363
363: ; preds = %362, %322
br label %364
364: ; preds = %363, %315
br label %365
365: ; preds = %364, %308
br label %366
366: ; preds = %365, %301
br label %367
367: ; preds = %366, %294
br label %368
368: ; preds = %367, %287
br label %369
369: ; preds = %368, %280
br label %370
370: ; preds = %369, %273
br label %371
371: ; preds = %370, %266
br label %372
372: ; preds = %371, %259
br label %373
373: ; preds = %372, %252
br label %374
374: ; preds = %373, %245
br label %375
375: ; preds = %374, %238
br label %376
376: ; preds = %375, %231
br label %377
377: ; preds = %376, %224
br label %378
378: ; preds = %377, %217
br label %379
379: ; preds = %378, %210
br label %380
380: ; preds = %379, %203
br label %381
381: ; preds = %380, %196
br label %382
382: ; preds = %381, %189
%383 = load double*, double** %8
%384 = load i32, i32* %16
%385 = sext i32 %384 to i64
%386 = getelementptr inbounds double, double* %383, i64 %385
%387 = load double, double* %386
%388 = load double*, double** %8
%389 = load i32, i32* %15
%390 = sext i32 %389 to i64
%391 = getelementptr inbounds double, double* %388, i64 %390
%392 = load double, double* %391
%393 = fcmp olt double %387, %392
br i1 %393, label %394, label %395
394: ; preds = %382
br label %414
395: ; preds = %382
%396 = load double*, double** %8
%397 = load i32, i32* %16
%398 = sext i32 %397 to i64
%399 = getelementptr inbounds double, double* %396, i64 %398
%400 = load double, double* %399
%401 = load double*, double** %8
%402 = load i32, i32* %15
%403 = sext i32 %402 to i64
%404 = getelementptr inbounds double, double* %401, i64 %403
%405 = load double, double* %404
%406 = fcmp oeq double %400, %405
br i1 %406, label %407, label %412
407: ; preds = %395
%408 = load i32, i32* %16
%409 = load i32, i32* %15
%410 = icmp slt i32 %408, %409
br i1 %410, label %411, label %412
411: ; preds = %407
br label %414
412: ; preds = %407, %395
%413 = load i32, i32* %16
store i32 %413, i32* %15
br label %414
414: ; preds = %412, %411, %394, %185, %128
%415 = load i32, i32* %10
%416 = add nsw i32 %415, 1
store i32 %416, i32* %10
br label %92
417: ; preds = %92
br label %418
418: ; preds = %417
%419 = load i32, i32* %9
%420 = add nsw i32 %419, -1
store i32 %420, i32* %9
br label %88
421: ; preds = %88
%422 = load i32, i32* %15
ret i32 %422
}

LLVM IR (-O2):
define i32 @shine_dalgarno_exact(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 %240
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 = %108
%85 = icmp sgt i32 %9, 2
br i1 %85, label %86, label %240
86: ; preds = %84
%87 = zext i32 %9 to i64
%88 = add nsw i32 %9, -1
%89 = zext i32 %88 to i64
br label %111
90: ; preds = %76, %108
%91 = phi i64 [ 0, %76 ], [ %109, %108 ]
%92 = trunc i64 %91 to i32
%93 = add nsw i32 %92, %1
%94 = icmp slt i32 %93, 0
br i1 %94, label %108, label %95
95: ; preds = %90
%96 = urem i32 %92, 3
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %95
%99 = tail call i32 @is_a(i8* %0, i32 %93)
%100 = icmp eq i32 %99, 1
br i1 %100, label %105, label %104
101: ; preds = %95
%102 = tail call i32 @is_g(i8* %0, i32 %93)
%103 = icmp eq i32 %102, 1
br i1 %103, label %105, label %104
104: ; preds = %98, %101
br label %105
105: ; preds = %101, %98, %104
%106 = phi double [ -1.000000e+01, %104 ], [ 2.000000e+00, %98 ], [ 3.000000e+00, %101 ]
%107 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 %91
store double %106, double* %107
br label %108
108: ; preds = %105, %90
%109 = add nuw nsw i64 %91, 1
%110 = icmp eq i64 %109, %77
br i1 %110, label %84, label %90
111: ; preds = %236, %86
%112 = phi i64 [ %87, %86 ], [ %237, %236 ]
%113 = phi i64 [ 1, %86 ], [ %238, %236 ]
%114 = phi i32 [ 0, %86 ], [ %233, %236 ]
%115 = phi i32 [ 0, %86 ], [ %232, %236 ]
%116 = trunc i64 %112 to i32
%117 = add i32 %116, %1
%118 = icmp slt i64 %112, 5
%119 = icmp sgt i64 %112, 4
br label %120
120: ; preds = %231, %111
%121 = phi i64 [ 0, %111 ], [ %234, %231 ]
%122 = phi i32 [ %114, %111 ], [ %233, %231 ]
%123 = phi i32 [ %115, %111 ], [ %232, %231 ]
%124 = add nsw i64 %121, %112
br label %125
125: ; preds = %120, %125
%126 = phi i64 [ %121, %120 ], [ %135, %125 ]
%127 = phi double [ -2.000000e+00, %120 ], [ %131, %125 ]
%128 = phi i32 [ 0, %120 ], [ %134, %125 ]
%129 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 %126
%130 = load double, double* %129
%131 = fadd double %127, %130
%132 = fcmp olt double %130, 0.000000e+00
%133 = zext i1 %132 to i32
%134 = add nuw nsw i32 %128, %133
%135 = add nuw nsw i64 %126, 1
%136 = icmp slt i64 %135, %124
br i1 %136, label %125, label %137
137: ; preds = %125
%138 = icmp eq i32 %134, 0
br i1 %138, label %139, label %231
139: ; preds = %137
%140 = trunc i64 %121 to i32
%141 = add i32 %117, %140
%142 = sub i32 %2, %141
%143 = icmp slt i32 %142, 5
%144 = select i1 %143, i1 %118, i1 false
br i1 %144, label %156, label %145
145: ; preds = %139
%146 = select i1 %143, i1 %119, i1 false
br i1 %146, label %156, label %147
147: ; preds = %145
%148 = add i32 %142, -11
%149 = icmp ult i32 %148, 2
%150 = select i1 %149, i1 %118, i1 false
br i1 %150, label %156, label %151
151: ; preds = %147
%152 = select i1 %149, i1 %119, i1 false
br i1 %152, label %156, label %153
153: ; preds = %151
%154 = icmp sgt i32 %142, 12
%155 = select i1 %154, double 3.000000e+00, double 0.000000e+00
br label %156
156: ; preds = %153, %151, %147, %145, %139
%157 = phi double [ 2.000000e+00, %139 ], [ 1.000000e+00, %145 ], [ 1.000000e+00, %147 ], [ 2.000000e+00, %151 ], [ %155, %153 ]
%158 = icmp sgt i32 %142, 15
%159 = fcmp olt double %131, 6.000000e+00
%160 = select i1 %158, i1 true, i1 %159
br i1 %160, label %231, label %161
161: ; preds = %156
%162 = fcmp oeq double %131, 6.000000e+00
%163 = fcmp oeq double %157, 2.000000e+00
%164 = and i1 %162, %163
br i1 %164, label %217, label %165
165: ; preds = %161
%166 = fcmp oeq double %157, 3.000000e+00
%167 = and i1 %162, %166
br i1 %167, label %217, label %168
168: ; preds = %165
%169 = fcmp oeq double %131, 8.000000e+00
%170 = and i1 %169, %166
br i1 %170, label %217, label %171
171: ; preds = %168
%172 = fcmp oeq double %131, 9.000000e+00
%173 = and i1 %172, %166
br i1 %173, label %217, label %174
174: ; preds = %171
%175 = fcmp oeq double %157, 1.000000e+00
%176 = and i1 %162, %175
br i1 %176, label %217, label %177
177: ; preds = %174
%178 = fcmp oeq double %131, 1.100000e+01
%179 = and i1 %178, %166
br i1 %179, label %217, label %180
180: ; preds = %177
%181 = fcmp oeq double %131, 1.200000e+01
%182 = and i1 %181, %166
br i1 %182, label %217, label %183
183: ; preds = %180
%184 = fcmp oeq double %131, 1.400000e+01
%185 = and i1 %184, %166
br i1 %185, label %217, label %186
186: ; preds = %183
%187 = or i1 %169, %172
%188 = and i1 %187, %163
br i1 %188, label %217, label %189
189: ; preds = %186
%190 = and i1 %187, %175
br i1 %190, label %217, label %191
191: ; preds = %189
%192 = fcmp oeq double %157, 0.000000e+00
%193 = and i1 %162, %192
br i1 %193, label %217, label %194
194: ; preds = %191
%195 = and i1 %169, %192
br i1 %195, label %217, label %196
196: ; preds = %194
%197 = and i1 %172, %192
br i1 %197, label %217, label %198
198: ; preds = %196
%199 = and i1 %178, %163
br i1 %199, label %217, label %200
200: ; preds = %198
%201 = and i1 %178, %175
br i1 %201, label %217, label %202
202: ; preds = %200
%203 = and i1 %178, %192
br i1 %203, label %217, label %204
204: ; preds = %202
%205 = and i1 %181, %163
br i1 %205, label %217, label %206
206: ; preds = %204
%207 = and i1 %181, %175
br i1 %207, label %217, label %208
208: ; preds = %206
%209 = and i1 %181, %192
br i1 %209, label %217, label %210
210: ; preds = %208
%211 = and i1 %184, %163
br i1 %211, label %217, label %212
212: ; preds = %210
%213 = and i1 %184, %175
br i1 %213, label %217, label %214
214: ; preds = %212
%215 = and i1 %184, %192
%216 = select i1 %215, i32 27, i32 %122
br label %217
217: ; preds = %214, %212, %210, %208, %206, %204, %202, %200, %198, %196, %194, %191, %189, %186, %183, %180, %177, %174, %171, %168, %165, %161
%218 = phi i32 [ 1, %161 ], [ 2, %165 ], [ 3, %168 ], [ 3, %171 ], [ 6, %174 ], [ 10, %177 ], [ 10, %180 ], [ 10, %183 ], [ 11, %186 ], [ 12, %189 ], [ 13, %191 ], [ 15, %194 ], [ 16, %196 ], [ 20, %198 ], [ 21, %200 ], [ 22, %202 ], [ 20, %204 ], [ 23, %206 ], [ 24, %208 ], [ 25, %210 ], [ 26, %212 ], [ %216, %214 ]
%219 = zext i32 %218 to i64
%220 = getelementptr inbounds double, double* %3, i64 %219
%221 = load double, double* %220
%222 = zext i32 %123 to i64
%223 = getelementptr inbounds double, double* %3, i64 %222
%224 = load double, double* %223
%225 = fcmp olt double %221, %224
br i1 %225, label %231, label %226
226: ; preds = %217
%227 = fcmp oeq double %221, %224
%228 = icmp slt i32 %218, %123
%229 = select i1 %227, i1 %228, i1 false
%230 = select i1 %229, i32 %123, i32 %218
br label %231
231: ; preds = %226, %217, %156, %137
%232 = phi i32 [ %123, %137 ], [ %123, %156 ], [ %123, %217 ], [ %230, %226 ]
%233 = phi i32 [ %122, %137 ], [ %122, %156 ], [ %218, %217 ], [ %218, %226 ]
%234 = add nuw nsw i64 %121, 1
%235 = icmp eq i64 %234, %113
br i1 %235, label %236, label %120
236: ; preds = %231
%237 = add nsw i64 %112, -1
%238 = add nuw nsw i64 %113, 1
%239 = icmp eq i64 %238, %89
br i1 %239, label %240, label %111
240: ; preds = %236, %74, %84
%241 = phi i32 [ 0, %84 ], [ 0, %74 ], [ %232, %236 ]
ret i32 %241
}