#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 */
char identify_uncommon(long, char **, long, long);
long residue_ident(char **, double **, long, long);
int /*<<< orphan*/ sprintf(char *, char *, char *, long, char, char, long);
int /*<<< orphan*/ strcmp(char *, char *);
void get_seq(long num_residue, long **seidx, char **AtomName, char **ResName,
             char *ChainID, long *ResSeq, char **Miscs, double **xyz,
             char *bseq, long *RY, long *num_modify, long *modify_idx) {
  char idmsg[512];
  long i, n = 0, ib, ie, ry;
  for (i = 1; i <= num_residue; i++) {
    ib = seidx[i][1];
    ie = seidx[i][2];
    RY[i] = residue_ident(AtomName, xyz, ib, ie);
    if (RY[i] >= 0) {
      sprintf(idmsg, "residue %3s %4ld%c on chain %c [#%ld]", ResName[ib],
              ResSeq[ib], Miscs[ib][2], ChainID[ib], i);
      if (!strcmp(ResName[ib], "  A") || !strcmp(ResName[ib], "ADE"))
        bseq[i] = 'A';
      else if (!strcmp(ResName[ib], "  G") || !strcmp(ResName[ib], "GUA"))
        bseq[i] = 'G';
      else if (!strcmp(ResName[ib], "  U") || !strcmp(ResName[ib], "URA"))
        bseq[i] = 'U';
      else if (!strcmp(ResName[ib], "  C") || !strcmp(ResName[ib], "CYT"))
        bseq[i] = 'C';
      else if (!strcmp(ResName[ib], "  T") || !strcmp(ResName[ib], "THY"))
        bseq[i] = 'T';
      else if (!strcmp(ResName[ib], "  I") || !strcmp(ResName[ib], "INO")) {
        bseq[i] = 'I';
        n++;
        modify_idx[n] = i;
      } else if (!strcmp(ResName[ib], "  P") || !strcmp(ResName[ib], "PSU")) {
        bseq[i] = 'P';
        n++;
        modify_idx[n] = i;
      } else {
        ry = RY[i];
        bseq[i] = identify_uncommon(ry, AtomName, ib, ie);
        n++;
        modify_idx[n] = i;
      }
    }
  }
  *num_modify = n;
}


x86 assembly (clang, -O0):
<get_seq>:
push   %rbp
mov    %rsp,%rbp
sub    $0x260,%rsp
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movq   $0x0,-0x240(%rbp)
movq   $0x1,-0x238(%rbp)
mov    -0x238(%rbp),%rax
cmp    -0x8(%rbp),%rax
jg     15fe <get_seq+0x4be>
mov    -0x10(%rbp),%rax
mov    -0x238(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x248(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x238(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x250(%rbp)
mov    -0x18(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    -0x248(%rbp),%rdx
mov    -0x250(%rbp),%rcx
call   1050 <residue_ident@plt>
mov    %rax,%rdx
mov    0x28(%rbp),%rax
mov    -0x238(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    0x28(%rbp),%rax
mov    -0x238(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
jl     15e2 <get_seq+0x4a2>
lea    -0x230(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x30(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
mov    0x10(%rbp),%rax
mov    -0x248(%rbp),%rsi
mov    (%rax,%rsi,8),%rax
mov    0x2(%rax),%r8b
mov    -0x28(%rbp),%rax
mov    -0x248(%rbp),%rsi
mov    (%rax,%rsi,1),%r9b
mov    -0x238(%rbp),%rax
lea    0xd92(%rip),%rsi
movsbl %r8b,%r8d
movsbl %r9b,%r9d
mov    %rax,(%rsp)
call   1060 <sprintf@plt>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd91(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     12c7 <get_seq+0x187>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd71(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    12db <get_seq+0x19b>
mov    0x20(%rbp),%rax
mov    -0x238(%rbp),%rcx
movb   $0x41,(%rax,%rcx,1)
jmp    15dd <get_seq+0x49d>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd3d(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     1323 <get_seq+0x1e3>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd1d(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1337 <get_seq+0x1f7>
mov    0x20(%rbp),%rax
mov    -0x238(%rbp),%rcx
movb   $0x47,(%rax,%rcx,1)
jmp    15d8 <get_seq+0x498>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xce9(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     137f <get_seq+0x23f>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcc9(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1393 <get_seq+0x253>
mov    0x20(%rbp),%rax
mov    -0x238(%rbp),%rcx
movb   $0x55,(%rax,%rcx,1)
jmp    15d3 <get_seq+0x493>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc95(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     13db <get_seq+0x29b>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc75(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    13ef <get_seq+0x2af>
mov    0x20(%rbp),%rax
mov    -0x238(%rbp),%rcx
movb   $0x43,(%rax,%rcx,1)
jmp    15ce <get_seq+0x48e>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc41(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     1437 <get_seq+0x2f7>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc21(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    144b <get_seq+0x30b>
mov    0x20(%rbp),%rax
mov    -0x238(%rbp),%rcx
movb   $0x54,(%rax,%rcx,1)
jmp    15c9 <get_seq+0x489>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xbed(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     1493 <get_seq+0x353>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xbcd(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    14cf <get_seq+0x38f>
mov    0x20(%rbp),%rax
mov    -0x238(%rbp),%rcx
movb   $0x49,(%rax,%rcx,1)
mov    -0x240(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x240(%rbp)
mov    -0x238(%rbp),%rdx
mov    0x38(%rbp),%rax
mov    -0x240(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
jmp    15c4 <get_seq+0x484>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xb71(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
je     1517 <get_seq+0x3d7>
mov    -0x20(%rbp),%rax
mov    -0x248(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xb51(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1553 <get_seq+0x413>
mov    0x20(%rbp),%rax
mov    -0x238(%rbp),%rcx
movb   $0x50,(%rax,%rcx,1)
mov    -0x240(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x240(%rbp)
mov    -0x238(%rbp),%rdx
mov    0x38(%rbp),%rax
mov    -0x240(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
jmp    15bf <get_seq+0x47f>
mov    0x28(%rbp),%rax
mov    -0x238(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x258(%rbp)
mov    -0x258(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x248(%rbp),%rdx
mov    -0x250(%rbp),%rcx
call   1030 <identify_uncommon@plt>
mov    %al,%dl
mov    0x20(%rbp),%rax
mov    -0x238(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x240(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x240(%rbp)
mov    -0x238(%rbp),%rdx
mov    0x38(%rbp),%rax
mov    -0x240(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
jmp    15c4 <get_seq+0x484>
jmp    15c9 <get_seq+0x489>
jmp    15ce <get_seq+0x48e>
jmp    15d3 <get_seq+0x493>
jmp    15d8 <get_seq+0x498>
jmp    15dd <get_seq+0x49d>
jmp    15e2 <get_seq+0x4a2>
jmp    15e7 <get_seq+0x4a7>
mov    -0x238(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x238(%rbp)
jmp    1191 <get_seq+0x51>
mov    -0x240(%rbp),%rcx
mov    0x30(%rbp),%rax
mov    %rcx,(%rax)
add    $0x260,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_seq>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x238,%rsp
mov    %r9,0x20(%rsp)
mov    %r8,0x18(%rsp)
mov    %rdx,0x10(%rsp)
mov    %rsi,0x28(%rsp)
test   %rdi,%rdi
jle    1421 <get_seq+0x2e1>
mov    %rcx,%rbx
mov    %rdi,%rbp
neg    %rbp
mov    $0x1,%r13d
xor    %eax,%eax
mov    %rax,0x8(%rsp)
jmp    11b6 <get_seq+0x76>
cs nopw 0x0(%rax,%rax,1)
mov    0x280(%rsp),%rax
movb   $0x41,(%rax,%r13,1)
lea    0x1(,%r13,1),%rax
add    %rbp,%rax
add    $0x1,%r13
cmp    $0x1,%rax
je     1428 <get_seq+0x2e8>
mov    0x28(%rsp),%rax
mov    (%rax,%r13,8),%rax
mov    0x8(%rax),%r14
mov    0x10(%rax),%r15
mov    0x10(%rsp),%rdi
mov    0x278(%rsp),%rsi
mov    %r14,%rdx
mov    %r15,%rcx
call   1050 <residue_ident@plt>
mov    0x288(%rsp),%rcx
mov    %rax,(%rcx,%r13,8)
test   %rax,%rax
js     119d <get_seq+0x5d>
mov    (%rbx,%r14,8),%rdx
mov    0x20(%rsp),%rax
mov    (%rax,%r14,8),%rcx
mov    0x270(%rsp),%rax
mov    (%rax,%r14,8),%rax
movsbl 0x2(%rax),%r8d
mov    0x18(%rsp),%rax
movsbl (%rax,%r14,1),%r9d
mov    %r13,(%rsp)
lea    0x30(%rsp),%rdi
lea    0xdd8(%rip),%rsi
call   1060 <sprintf@plt>
mov    (%rbx,%r14,8),%r12
mov    %r12,%rdi
lea    0xdeb(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1190 <get_seq+0x50>
mov    %r12,%rdi
lea    0xdd8(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1190 <get_seq+0x50>
mov    %r12,%rdi
lea    0xdc5(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     139d <get_seq+0x25d>
mov    %r12,%rdi
lea    0xdb2(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     139d <get_seq+0x25d>
mov    %r12,%rdi
lea    0xd9f(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13af <get_seq+0x26f>
mov    %r12,%rdi
lea    0xd8c(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13af <get_seq+0x26f>
mov    %r12,%rdi
lea    0xd79(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13c1 <get_seq+0x281>
mov    %r12,%rdi
lea    0xd66(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13c1 <get_seq+0x281>
mov    %r12,%rdi
lea    0xd53(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13d3 <get_seq+0x293>
mov    %r12,%rdi
lea    0xd40(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13d3 <get_seq+0x293>
mov    %r12,%rdi
lea    0xd2d(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13e5 <get_seq+0x2a5>
mov    %r12,%rdi
lea    0xd1a(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13e5 <get_seq+0x2a5>
mov    %r12,%rdi
lea    0xd07(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13f4 <get_seq+0x2b4>
mov    %r12,%rdi
lea    0xcf4(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13f4 <get_seq+0x2b4>
mov    0x288(%rsp),%rax
mov    (%rax,%r13,8),%rdi
mov    0x10(%rsp),%rsi
mov    %r14,%rdx
mov    %r15,%rcx
call   1030 <identify_uncommon@plt>
mov    0x280(%rsp),%rcx
mov    %al,(%rcx,%r13,1)
jmp    1401 <get_seq+0x2c1>
mov    0x280(%rsp),%rax
movb   $0x47,(%rax,%r13,1)
jmp    119d <get_seq+0x5d>
mov    0x280(%rsp),%rax
movb   $0x55,(%rax,%r13,1)
jmp    119d <get_seq+0x5d>
mov    0x280(%rsp),%rax
movb   $0x43,(%rax,%r13,1)
jmp    119d <get_seq+0x5d>
mov    0x280(%rsp),%rax
movb   $0x54,(%rax,%r13,1)
jmp    119d <get_seq+0x5d>
mov    0x280(%rsp),%rax
movb   $0x49,(%rax,%r13,1)
jmp    1401 <get_seq+0x2c1>
mov    0x280(%rsp),%rax
movb   $0x50,(%rax,%r13,1)
mov    0x298(%rsp),%rax
mov    0x8(%rsp),%rcx
mov    %r13,0x8(%rax,%rcx,8)
add    $0x1,%rcx
mov    %rcx,0x8(%rsp)
jmp    119d <get_seq+0x5d>
xor    %eax,%eax
mov    %rax,0x8(%rsp)
mov    0x290(%rsp),%rax
mov    0x8(%rsp),%rcx
mov    %rcx,(%rax)
add    $0x238,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [38 x i8] c"residue %3s %4ld%c on chain %c [#%ld]\00"
@.str.1 = [4 x i8] c" A\00"
@.str.2 = [4 x i8] c"ADE\00"
@.str.3 = [4 x i8] c" G\00"
@.str.4 = [4 x i8] c"GUA\00"
@.str.5 = [4 x i8] c" U\00"
@.str.6 = [4 x i8] c"URA\00"
@.str.7 = [4 x i8] c" C\00"
@.str.8 = [4 x i8] c"CYT\00"
@.str.9 = [4 x i8] c" T\00"
@.str.10 = [4 x i8] c"THY\00"
@.str.11 = [4 x i8] c" I\00"
@.str.12 = [4 x i8] c"INO\00"
@.str.13 = [4 x i8] c" P\00"
@.str.14 = [4 x i8] c"PSU\00"
define void @get_seq(i64 %0, i64** %1, i8** %2, i8** %3, i8* %4, i64* %5, i8** %6, double** %7, i8* %8, i64* %9, i64* %10, i64* %11) {
%13 = alloca i64
%14 = alloca i64**
%15 = alloca i8**
%16 = alloca i8**
%17 = alloca i8*
%18 = alloca i64*
%19 = alloca i8**
%20 = alloca double**
%21 = alloca i8*
%22 = alloca i64*
%23 = alloca i64*
%24 = alloca i64*
%25 = alloca [512 x i8]
%26 = alloca i64
%27 = alloca i64
%28 = alloca i64
%29 = alloca i64
%30 = alloca i64
store i64 %0, i64* %13
store i64** %1, i64*** %14
store i8** %2, i8*** %15
store i8** %3, i8*** %16
store i8* %4, i8** %17
store i64* %5, i64** %18
store i8** %6, i8*** %19
store double** %7, double*** %20
store i8* %8, i8** %21
store i64* %9, i64** %22
store i64* %10, i64** %23
store i64* %11, i64** %24
store i64 0, i64* %27
store i64 1, i64* %26
br label %31
31: ; preds = %247, %12
%32 = load i64, i64* %26
%33 = load i64, i64* %13
%34 = icmp sle i64 %32, %33
br i1 %34, label %35, label %250
35: ; preds = %31
%36 = load i64**, i64*** %14
%37 = load i64, i64* %26
%38 = getelementptr inbounds i64*, i64** %36, i64 %37
%39 = load i64*, i64** %38
%40 = getelementptr inbounds i64, i64* %39, i64 1
%41 = load i64, i64* %40
store i64 %41, i64* %28
%42 = load i64**, i64*** %14
%43 = load i64, i64* %26
%44 = getelementptr inbounds i64*, i64** %42, i64 %43
%45 = load i64*, i64** %44
%46 = getelementptr inbounds i64, i64* %45, i64 2
%47 = load i64, i64* %46
store i64 %47, i64* %29
%48 = load i8**, i8*** %15
%49 = load double**, double*** %20
%50 = load i64, i64* %28
%51 = load i64, i64* %29
%52 = call i64 @residue_ident(i8** %48, double** %49, i64 %50, i64 %51)
%53 = load i64*, i64** %22
%54 = load i64, i64* %26
%55 = getelementptr inbounds i64, i64* %53, i64 %54
store i64 %52, i64* %55
%56 = load i64*, i64** %22
%57 = load i64, i64* %26
%58 = getelementptr inbounds i64, i64* %56, i64 %57
%59 = load i64, i64* %58
%60 = icmp sge i64 %59, 0
br i1 %60, label %61, label %246
61: ; preds = %35
%62 = getelementptr inbounds [512 x i8], [512 x i8]* %25, i64 0, i64 0
%63 = load i8**, i8*** %16
%64 = load i64, i64* %28
%65 = getelementptr inbounds i8*, i8** %63, i64 %64
%66 = load i8*, i8** %65
%67 = load i64*, i64** %18
%68 = load i64, i64* %28
%69 = getelementptr inbounds i64, i64* %67, i64 %68
%70 = load i64, i64* %69
%71 = load i8**, i8*** %19
%72 = load i64, i64* %28
%73 = getelementptr inbounds i8*, i8** %71, i64 %72
%74 = load i8*, i8** %73
%75 = getelementptr inbounds i8, i8* %74, i64 2
%76 = load i8, i8* %75
%77 = load i8*, i8** %17
%78 = load i64, i64* %28
%79 = getelementptr inbounds i8, i8* %77, i64 %78
%80 = load i8, i8* %79
%81 = load i64, i64* %26
%82 = call i32 @sprintf(i8* %62, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %66, i64 %70, i8 signext %76, i8 signext %80, i64 %81)
%83 = load i8**, i8*** %16
%84 = load i64, i64* %28
%85 = getelementptr inbounds i8*, i8** %83, i64 %84
%86 = load i8*, i8** %85
%87 = call i32 @strcmp(i8* %86, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %96
89: ; preds = %61
%90 = load i8**, i8*** %16
%91 = load i64, i64* %28
%92 = getelementptr inbounds i8*, i8** %90, i64 %91
%93 = load i8*, i8** %92
%94 = call i32 @strcmp(i8* %93, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%95 = icmp ne i32 %94, 0
br i1 %95, label %100, label %96
96: ; preds = %89, %61
%97 = load i8*, i8** %21
%98 = load i64, i64* %26
%99 = getelementptr inbounds i8, i8* %97, i64 %98
store i8 65, i8* %99
br label %245
100: ; preds = %89
%101 = load i8**, i8*** %16
%102 = load i64, i64* %28
%103 = getelementptr inbounds i8*, i8** %101, i64 %102
%104 = load i8*, i8** %103
%105 = call i32 @strcmp(i8* %104, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %114
107: ; preds = %100
%108 = load i8**, i8*** %16
%109 = load i64, i64* %28
%110 = getelementptr inbounds i8*, i8** %108, i64 %109
%111 = load i8*, i8** %110
%112 = call i32 @strcmp(i8* %111, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%113 = icmp ne i32 %112, 0
br i1 %113, label %118, label %114
114: ; preds = %107, %100
%115 = load i8*, i8** %21
%116 = load i64, i64* %26
%117 = getelementptr inbounds i8, i8* %115, i64 %116
store i8 71, i8* %117
br label %244
118: ; preds = %107
%119 = load i8**, i8*** %16
%120 = load i64, i64* %28
%121 = getelementptr inbounds i8*, i8** %119, i64 %120
%122 = load i8*, i8** %121
%123 = call i32 @strcmp(i8* %122, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%124 = icmp ne i32 %123, 0
br i1 %124, label %125, label %132
125: ; preds = %118
%126 = load i8**, i8*** %16
%127 = load i64, i64* %28
%128 = getelementptr inbounds i8*, i8** %126, i64 %127
%129 = load i8*, i8** %128
%130 = call i32 @strcmp(i8* %129, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%131 = icmp ne i32 %130, 0
br i1 %131, label %136, label %132
132: ; preds = %125, %118
%133 = load i8*, i8** %21
%134 = load i64, i64* %26
%135 = getelementptr inbounds i8, i8* %133, i64 %134
store i8 85, i8* %135
br label %243
136: ; preds = %125
%137 = load i8**, i8*** %16
%138 = load i64, i64* %28
%139 = getelementptr inbounds i8*, i8** %137, i64 %138
%140 = load i8*, i8** %139
%141 = call i32 @strcmp(i8* %140, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%142 = icmp ne i32 %141, 0
br i1 %142, label %143, label %150
143: ; preds = %136
%144 = load i8**, i8*** %16
%145 = load i64, i64* %28
%146 = getelementptr inbounds i8*, i8** %144, i64 %145
%147 = load i8*, i8** %146
%148 = call i32 @strcmp(i8* %147, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%149 = icmp ne i32 %148, 0
br i1 %149, label %154, label %150
150: ; preds = %143, %136
%151 = load i8*, i8** %21
%152 = load i64, i64* %26
%153 = getelementptr inbounds i8, i8* %151, i64 %152
store i8 67, i8* %153
br label %242
154: ; preds = %143
%155 = load i8**, i8*** %16
%156 = load i64, i64* %28
%157 = getelementptr inbounds i8*, i8** %155, i64 %156
%158 = load i8*, i8** %157
%159 = call i32 @strcmp(i8* %158, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%160 = icmp ne i32 %159, 0
br i1 %160, label %161, label %168
161: ; preds = %154
%162 = load i8**, i8*** %16
%163 = load i64, i64* %28
%164 = getelementptr inbounds i8*, i8** %162, i64 %163
%165 = load i8*, i8** %164
%166 = call i32 @strcmp(i8* %165, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%167 = icmp ne i32 %166, 0
br i1 %167, label %172, label %168
168: ; preds = %161, %154
%169 = load i8*, i8** %21
%170 = load i64, i64* %26
%171 = getelementptr inbounds i8, i8* %169, i64 %170
store i8 84, i8* %171
br label %241
172: ; preds = %161
%173 = load i8**, i8*** %16
%174 = load i64, i64* %28
%175 = getelementptr inbounds i8*, i8** %173, i64 %174
%176 = load i8*, i8** %175
%177 = call i32 @strcmp(i8* %176, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%178 = icmp ne i32 %177, 0
br i1 %178, label %179, label %186
179: ; preds = %172
%180 = load i8**, i8*** %16
%181 = load i64, i64* %28
%182 = getelementptr inbounds i8*, i8** %180, i64 %181
%183 = load i8*, i8** %182
%184 = call i32 @strcmp(i8* %183, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%185 = icmp ne i32 %184, 0
br i1 %185, label %196, label %186
186: ; preds = %179, %172
%187 = load i8*, i8** %21
%188 = load i64, i64* %26
%189 = getelementptr inbounds i8, i8* %187, i64 %188
store i8 73, i8* %189
%190 = load i64, i64* %27
%191 = add nsw i64 %190, 1
store i64 %191, i64* %27
%192 = load i64, i64* %26
%193 = load i64*, i64** %24
%194 = load i64, i64* %27
%195 = getelementptr inbounds i64, i64* %193, i64 %194
store i64 %192, i64* %195
br label %240
196: ; preds = %179
%197 = load i8**, i8*** %16
%198 = load i64, i64* %28
%199 = getelementptr inbounds i8*, i8** %197, i64 %198
%200 = load i8*, i8** %199
%201 = call i32 @strcmp(i8* %200, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%202 = icmp ne i32 %201, 0
br i1 %202, label %203, label %210
203: ; preds = %196
%204 = load i8**, i8*** %16
%205 = load i64, i64* %28
%206 = getelementptr inbounds i8*, i8** %204, i64 %205
%207 = load i8*, i8** %206
%208 = call i32 @strcmp(i8* %207, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%209 = icmp ne i32 %208, 0
br i1 %209, label %220, label %210
210: ; preds = %203, %196
%211 = load i8*, i8** %21
%212 = load i64, i64* %26
%213 = getelementptr inbounds i8, i8* %211, i64 %212
store i8 80, i8* %213
%214 = load i64, i64* %27
%215 = add nsw i64 %214, 1
store i64 %215, i64* %27
%216 = load i64, i64* %26
%217 = load i64*, i64** %24
%218 = load i64, i64* %27
%219 = getelementptr inbounds i64, i64* %217, i64 %218
store i64 %216, i64* %219
br label %239
220: ; preds = %203
%221 = load i64*, i64** %22
%222 = load i64, i64* %26
%223 = getelementptr inbounds i64, i64* %221, i64 %222
%224 = load i64, i64* %223
store i64 %224, i64* %30
%225 = load i64, i64* %30
%226 = load i8**, i8*** %15
%227 = load i64, i64* %28
%228 = load i64, i64* %29
%229 = call signext i8 @identify_uncommon(i64 %225, i8** %226, i64 %227, i64 %228)
%230 = load i8*, i8** %21
%231 = load i64, i64* %26
%232 = getelementptr inbounds i8, i8* %230, i64 %231
store i8 %229, i8* %232
%233 = load i64, i64* %27
%234 = add nsw i64 %233, 1
store i64 %234, i64* %27
%235 = load i64, i64* %26
%236 = load i64*, i64** %24
%237 = load i64, i64* %27
%238 = getelementptr inbounds i64, i64* %236, i64 %237
store i64 %235, i64* %238
br label %239
239: ; preds = %220, %210
br label %240
240: ; preds = %239, %186
br label %241
241: ; preds = %240, %168
br label %242
242: ; preds = %241, %150
br label %243
243: ; preds = %242, %132
br label %244
244: ; preds = %243, %114
br label %245
245: ; preds = %244, %96
br label %246
246: ; preds = %245, %35
br label %247
247: ; preds = %246
%248 = load i64, i64* %26
%249 = add nsw i64 %248, 1
store i64 %249, i64* %26
br label %31
250: ; preds = %31
%251 = load i64, i64* %27
%252 = load i64*, i64** %23
store i64 %251, i64* %252
ret void
}

LLVM IR (-O2):
@.str = [38 x i8] c"residue %3s %4ld%c on chain %c [#%ld]\00"
@.str.1 = [4 x i8] c" A\00"
@.str.2 = [4 x i8] c"ADE\00"
@.str.3 = [4 x i8] c" G\00"
@.str.4 = [4 x i8] c"GUA\00"
@.str.5 = [4 x i8] c" U\00"
@.str.6 = [4 x i8] c"URA\00"
@.str.7 = [4 x i8] c" C\00"
@.str.8 = [4 x i8] c"CYT\00"
@.str.9 = [4 x i8] c" T\00"
@.str.10 = [4 x i8] c"THY\00"
@.str.11 = [4 x i8] c" I\00"
@.str.12 = [4 x i8] c"INO\00"
@.str.13 = [4 x i8] c" P\00"
@.str.14 = [4 x i8] c"PSU\00"
define void @get_seq(i64 %0, i64** nocapture %1, i8** %2, i8** nocapture %3, i8* nocapture %4, i64* nocapture %5, i8** nocapture %6, double** %7, i8* nocapture writeonly %8, i64* nocapture %9, i64* nocapture writeonly %10, i64* nocapture writeonly %11) {
%13 = alloca [512 x i8]
%14 = getelementptr inbounds [512 x i8], [512 x i8]* %13, i64 0, i64 0
%15 = icmp slt i64 %0, 1
br i1 %15, label %110, label %16
16: ; preds = %12, %106
%17 = phi i64 [ %108, %106 ], [ 1, %12 ]
%18 = phi i64 [ %107, %106 ], [ 0, %12 ]
%19 = getelementptr inbounds i64*, i64** %1, i64 %17
%20 = load i64*, i64** %19
%21 = getelementptr inbounds i64, i64* %20, i64 1
%22 = load i64, i64* %21
%23 = getelementptr inbounds i64, i64* %20, i64 2
%24 = load i64, i64* %23
%25 = tail call i64 @residue_ident(i8** %2, double** %7, i64 %22, i64 %24)
%26 = getelementptr inbounds i64, i64* %9, i64 %17
store i64 %25, i64* %26
%27 = icmp sgt i64 %25, -1
br i1 %27, label %28, label %106
28: ; preds = %16
%29 = getelementptr inbounds i8*, i8** %3, i64 %22
%30 = load i8*, i8** %29
%31 = getelementptr inbounds i64, i64* %5, i64 %22
%32 = load i64, i64* %31
%33 = getelementptr inbounds i8*, i8** %6, i64 %22
%34 = load i8*, i8** %33
%35 = getelementptr inbounds i8, i8* %34, i64 2
%36 = load i8, i8* %35
%37 = getelementptr inbounds i8, i8* %4, i64 %22
%38 = load i8, i8* %37
%39 = call i32 @sprintf(i8* %14, i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %30, i64 %32, i8 signext %36, i8 signext %38, i64 %17)
%40 = load i8*, i8** %29
%41 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%42 = icmp eq i32 %41, 0
br i1 %42, label %46, label %43
43: ; preds = %28
%44 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43, %28
%47 = getelementptr inbounds i8, i8* %8, i64 %17
store i8 65, i8* %47
br label %106
48: ; preds = %43
%49 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%50 = icmp eq i32 %49, 0
br i1 %50, label %54, label %51
51: ; preds = %48
%52 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %51, %48
%55 = getelementptr inbounds i8, i8* %8, i64 %17
store i8 71, i8* %55
br label %106
56: ; preds = %51
%57 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%58 = icmp eq i32 %57, 0
br i1 %58, label %62, label %59
59: ; preds = %56
%60 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %59, %56
%63 = getelementptr inbounds i8, i8* %8, i64 %17
store i8 85, i8* %63
br label %106
64: ; preds = %59
%65 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%66 = icmp eq i32 %65, 0
br i1 %66, label %70, label %67
67: ; preds = %64
%68 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %67, %64
%71 = getelementptr inbounds i8, i8* %8, i64 %17
store i8 67, i8* %71
br label %106
72: ; preds = %67
%73 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%74 = icmp eq i32 %73, 0
br i1 %74, label %78, label %75
75: ; preds = %72
%76 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %75, %72
%79 = getelementptr inbounds i8, i8* %8, i64 %17
store i8 84, i8* %79
br label %106
80: ; preds = %75
%81 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%82 = icmp eq i32 %81, 0
br i1 %82, label %86, label %83
83: ; preds = %80
%84 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %90
86: ; preds = %83, %80
%87 = getelementptr inbounds i8, i8* %8, i64 %17
store i8 73, i8* %87
%88 = add nsw i64 %18, 1
%89 = getelementptr inbounds i64, i64* %11, i64 %88
store i64 %17, i64* %89
br label %106
90: ; preds = %83
%91 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%92 = icmp eq i32 %91, 0
br i1 %92, label %96, label %93
93: ; preds = %90
%94 = tail call i32 @strcmp(i8* dereferenceable(1) %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%95 = icmp eq i32 %94, 0
br i1 %95, label %96, label %100
96: ; preds = %93, %90
%97 = getelementptr inbounds i8, i8* %8, i64 %17
store i8 80, i8* %97
%98 = add nsw i64 %18, 1
%99 = getelementptr inbounds i64, i64* %11, i64 %98
store i64 %17, i64* %99
br label %106
100: ; preds = %93
%101 = load i64, i64* %26
%102 = tail call signext i8 @identify_uncommon(i64 %101, i8** %2, i64 %22, i64 %24)
%103 = getelementptr inbounds i8, i8* %8, i64 %17
store i8 %102, i8* %103
%104 = add nsw i64 %18, 1
%105 = getelementptr inbounds i64, i64* %11, i64 %104
store i64 %17, i64* %105
br label %106
106: ; preds = %16, %54, %70, %86, %100, %96, %78, %62, %46
%107 = phi i64 [ %104, %100 ], [ %98, %96 ], [ %88, %86 ], [ %18, %78 ], [ %18, %70 ], [ %18, %62 ], [ %18, %54 ], [ %18, %46 ], [ %18, %16 ]
%108 = add nuw i64 %17, 1
%109 = icmp eq i64 %17, %0
br i1 %109, label %110, label %16
110: ; preds = %106, %12
%111 = phi i64 [ 0, %12 ], [ %107, %106 ]
store i64 %111, i64* %10
ret void
}