#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
void printout(int nres, char *seq, char *predi, char *title, float **proba,
              FILE *fp2) {
  int ires;
  int nlines, nl;
  printf("\n\n>%s\n", title + 1);
  nlines = nres / 50 + 1;
  for (nl = 1; nl < nlines; nl++) {
    for (ires = (nl - 1) * 50 + 1; ires <= nl * 50; ires++) {
      printf("%c", seq[ires]);
      if (ires % 10 == 0)
        printf("%c", ' ');
    }
    printf("    %s\n", "Sequence");
    for (ires = (nl - 1) * 50 + 1; ires <= nl * 50; ires++) {
      printf("%c", predi[ires]);
      if (ires % 10 == 0)
        printf("%c", ' ');
    }
    printf("    %s\n", "Predicted Sec. Struct.");
    printf("\n");
  }
  for (ires = (nlines - 1) * 50 + 1; ires <= nlines * 50; ires++) {
    if (ires <= nres) {
      printf("%c", seq[ires]);
    } else {
      printf("%c", ' ');
    }
    if (ires % 10 == 0)
      printf("%c", ' ');
  }
  printf("    %s\n", "Sequence");
  for (ires = (nlines - 1) * 50 + 1; ires <= nlines * 50; ires++) {
    if (ires <= nres) {
      printf("%c", predi[ires]);
    } else {
      printf("%c", ' ');
    }
    if (ires % 10 == 0)
      printf("%c", ' ');
  }
  printf("    %s\n", "Predicted Sec. Struct.");
  printf("\n\n");
  if (fp2 != NULL) {
    fprintf(fp2, "\n\n%s\n%d\n", title + 1, nres);
    fprintf(fp2, "SEQ PRD   H     E     C\n");
    for (ires = 1; ires <= nres; ires++)
      fprintf(fp2, " %c   %c  %5.3f %5.3f %5.3f\n", seq[ires], predi[ires],
              proba[ires][1], proba[ires][2], proba[ires][3]);
  }
}


x86 assembly (clang, -O0):
<printout>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x20(%rbp),%rsi
add    $0x1,%rsi
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
mov    $0x32,%ecx
cltd
idiv   %ecx
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    12a3 <printout+0x183>
mov    -0x3c(%rbp),%eax
sub    $0x1,%eax
imul   $0x32,%eax,%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
imul   $0x32,-0x3c(%rbp),%ecx
cmp    %ecx,%eax
jg     11eb <printout+0xcb>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11d8 <printout+0xb8>
lea    0xe3b(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11dd <printout+0xbd>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1188 <printout+0x68>
lea    0xe18(%rip),%rdi
lea    0xe19(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%eax
sub    $0x1,%eax
imul   $0x32,%eax,%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
imul   $0x32,-0x3c(%rbp),%ecx
cmp    %ecx,%eax
jg     1272 <printout+0x152>
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    125f <printout+0x13f>
lea    0xdb4(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1264 <printout+0x144>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    120f <printout+0xef>
lea    0xd91(%rip),%rdi
lea    0xd9b(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xda5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    116d <printout+0x4d>
mov    -0x38(%rbp),%eax
sub    $0x1,%eax
imul   $0x32,%eax,%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
imul   $0x32,-0x38(%rbp),%ecx
cmp    %ecx,%eax
jg     1339 <printout+0x219>
mov    -0x34(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     12ec <printout+0x1cc>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xd27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12ff <printout+0x1df>
lea    0xd14(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1326 <printout+0x206>
lea    0xced(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    132b <printout+0x20b>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12b2 <printout+0x192>
lea    0xcca(%rip),%rdi
lea    0xccb(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
sub    $0x1,%eax
imul   $0x32,%eax,%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
imul   $0x32,-0x38(%rbp),%ecx
cmp    %ecx,%eax
jg     13e4 <printout+0x2c4>
mov    -0x34(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     1397 <printout+0x277>
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xc7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13aa <printout+0x28a>
lea    0xc69(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    13d1 <printout+0x2b1>
lea    0xc42(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13d6 <printout+0x2b6>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    135d <printout+0x23d>
lea    0xc1f(%rip),%rdi
lea    0xc29(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpq   $0x0,-0x30(%rbp)
je     14d0 <printout+0x3b0>
mov    -0x30(%rbp),%rdi
mov    -0x20(%rbp),%rdx
add    $0x1,%rdx
mov    -0x4(%rbp),%ecx
lea    0xc0d(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x30(%rbp),%rdi
lea    0xc04(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     14cb <printout+0x3ab>
mov    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rsi
mov    (%rax,%rsi,8),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rsi
mov    (%rax,%rsi,8),%rax
movss  0x8(%rax),%xmm1
cvtss2sd %xmm1,%xmm1
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rsi
mov    (%rax,%rsi,8),%rax
movss  0xc(%rax),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xba1(%rip),%rsi
mov    $0x3,%al
call   1040 <fprintf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1448 <printout+0x328>
jmp    14d0 <printout+0x3b0>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printout>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9,0x18(%rsp)
mov    %r8,0x48(%rsp)
mov    %rdx,0x8(%rsp)
mov    %rsi,%r12
mov    %edi,%ebx
add    $0x1,%rcx
lea    0xe83(%rip),%rdi
mov    %rcx,0x40(%rsp)
mov    %rcx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,0x28(%rsp)
movslq %ebx,%rcx
imul   $0x51eb851f,%rcx,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x24,%rdx
add    %eax,%edx
mov    %rdx,0x20(%rsp)
mov    %rcx,0x30(%rsp)
cmp    $0x32,%ecx
jge    11ed <printout+0x9d>
imul   $0x32,0x20(%rsp),%r14d
lea    0x1(%r14),%ebx
lea    0x32(%r14),%r15d
cmp    %r15d,%ebx
jle    133b <printout+0x1eb>
lea    0xe32(%rip),%rdi
lea    0xe33(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%r15
jmp    13bf <printout+0x26f>
mov    0x20(%rsp),%rax
add    $0x1,%eax
mov    %rax,0x50(%rsp)
mov    $0x1,%r15d
mov    $0x1,%ebx
lea    0xdfb(%rip),%rbp
xor    %eax,%eax
jmp    1261 <printout+0x111>
mov    %rbp,%rdi
lea    0xdf5(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xddf(%rip),%rbp
mov    %rbp,%rdi
lea    0xde6(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r15
mov    0x38(%rsp),%rax
add    $0x32,%eax
mov    0x4(%rsp),%ebx
add    $0x32,%ebx
cmp    0x50(%rsp),%r15
je     11b7 <printout+0x67>
movslq %eax,%r14
imul   $0x32,%r15d,%eax
cmp    $0x80000030,%eax
mov    %ebx,0x4(%rsp)
mov    %r14,0x38(%rsp)
jle    1210 <printout+0xc0>
mov    %eax,0x14(%rsp)
movslq %eax,%r13
jmp    129c <printout+0x14c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14
add    $0x1,%ebx
cmp    %r13,%r14
jge    12d0 <printout+0x180>
movsbl 0x1(%r12,%r14,1),%edi
call   1030 <putchar@plt>
imul   $0xcccccccd,%ebx,%eax
add    $0x19999998,%eax
ror    %eax
cmp    $0x19999998,%eax
ja     1290 <printout+0x140>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    1290 <printout+0x140>
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
lea    0xd35(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x80000031,0x14(%rsp)
80
mov    0x8(%rsp),%r14
jl     1221 <printout+0xd1>
mov    0x4(%rsp),%ebx
mov    0x38(%rsp),%rbp
jmp    1310 <printout+0x1c0>
nop
add    $0x1,%rbp
add    $0x1,%ebx
cmp    %r13,%rbp
jge    1221 <printout+0xd1>
movsbl 0x1(%r14,%rbp,1),%edi
call   1030 <putchar@plt>
imul   $0xcccccccd,%ebx,%eax
add    $0x19999998,%eax
ror    %eax
cmp    $0x19999998,%eax
ja     1300 <printout+0x1b0>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    1300 <printout+0x1b0>
mov    %r14d,%eax
or     $0x1,%eax
mov    %eax,0x4(%rsp)
movslq %eax,%r13
mov    $0x1,%ebp
jmp    1379 <printout+0x229>
nop
call   1030 <putchar@plt>
lea    (%r14,%rbp,1),%eax
imul   $0xcccccccd,%eax,%eax
add    $0x19999998,%eax
ror    %eax
cmp    $0x19999998,%eax
jbe    1390 <printout+0x240>
add    $0x1,%r13
add    $0x1,%ebp
cmp    $0x33,%ebp
je     139c <printout+0x24c>
mov    $0x20,%edi
cmp    0x30(%rsp),%r13
jg     1350 <printout+0x200>
movsbl (%r12,%r13,1),%edi
jmp    1350 <printout+0x200>
nopl   0x0(%rax)
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    136d <printout+0x21d>
lea    0xc64(%rip),%rdi
lea    0xc65(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %r15d,%ebx
mov    0x18(%rsp),%r15
jle    1493 <printout+0x343>
lea    0xc41(%rip),%rdi
lea    0xc4b(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc74(%rip),%rdi
call   1040 <puts@plt>
test   %r15,%r15
mov    0x48(%rsp),%r13
mov    0x8(%rsp),%rbp
mov    0x28(%rsp),%rcx
je     1484 <printout+0x334>
mov    %r15,%r14
lea    0xc2d(%rip),%rsi
mov    %r15,%rdi
mov    0x40(%rsp),%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xc20(%rip),%rdi
mov    $0x1,%ebx
mov    $0x18,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1070 <fwrite@plt>
mov    0x28(%rsp),%r15
test   %r15d,%r15d
jle    1484 <printout+0x334>
add    $0x1,%r15d
nopl   (%rax)
movsbl (%r12,%rbx,1),%edx
movsbl 0x0(%rbp,%rbx,1),%ecx
mov    0x0(%r13,%rbx,8),%rax
movss  0x4(%rax),%xmm0
movss  0x8(%rax),%xmm1
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
movss  0xc(%rax),%xmm2
cvtss2sd %xmm2,%xmm2
mov    %r14,%rdi
lea    0xbdd(%rip),%rsi
mov    $0x3,%al
call   1060 <fprintf@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1440 <printout+0x2f0>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movslq 0x4(%rsp),%rbp
mov    $0x1,%ebx
jmp    14cd <printout+0x37d>
nop
call   1030 <putchar@plt>
lea    (%r14,%rbx,1),%eax
imul   $0xcccccccd,%eax,%eax
add    $0x19999998,%eax
ror    %eax
cmp    $0x19999998,%eax
jbe    14f0 <printout+0x3a0>
add    $0x1,%rbp
add    $0x1,%ebx
cmp    $0x33,%ebx
je     13bf <printout+0x26f>
mov    $0x20,%edi
cmp    0x30(%rsp),%rbp
jg     14a0 <printout+0x350>
mov    0x8(%rsp),%rax
movsbl (%rax,%rbp,1),%edi
jmp    14a0 <printout+0x350>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    14bd <printout+0x36d>

LLVM IR (-O0):
@.str = [7 x i8] c"\0A\0A>%s\0A\00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [8 x i8] c" %s\0A\00"
@.str.3 = [9 x i8] c"Sequence\00"
@.str.4 = [23 x i8] c"Predicted Sec. Struct.\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [3 x i8] c"\0A\0A\00"
@.str.7 = [9 x i8] c"\0A\0A%s\0A%d\0A\00"
@.str.8 = [25 x i8] c"SEQ PRD H E C\0A\00"
@.str.9 = [29 x i8] c" %c %c %5.3f %5.3f %5.3f\0A\00"
define void @printout(i32 %0, i8* %1, i8* %2, i8* %3, float** %4, i32* %5) {
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca float**
%12 = alloca i32*
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i32 %0, i32* %7
store i8* %1, i8** %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store float** %4, float*** %11
store i32* %5, i32** %12
%16 = load i8*, i8** %10
%17 = getelementptr inbounds i8, i8* %16, i64 1
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = load i32, i32* %7
%20 = sdiv i32 %19, 50
%21 = add nsw i32 %20, 1
store i32 %21, i32* %14
store i32 1, i32* %15
br label %22
22: ; preds = %84, %6
%23 = load i32, i32* %15
%24 = load i32, i32* %14
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %87
26: ; preds = %22
%27 = load i32, i32* %15
%28 = sub nsw i32 %27, 1
%29 = mul nsw i32 %28, 50
%30 = add nsw i32 %29, 1
store i32 %30, i32* %13
br label %31
31: ; preds = %50, %26
%32 = load i32, i32* %13
%33 = load i32, i32* %15
%34 = mul nsw i32 %33, 50
%35 = icmp sle i32 %32, %34
br i1 %35, label %36, label %53
36: ; preds = %31
%37 = load i8*, i8** %8
%38 = load i32, i32* %13
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, i8* %37, i64 %39
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %42)
%44 = load i32, i32* %13
%45 = srem i32 %44, 10
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %36
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 32)
br label %49
49: ; preds = %47, %36
br label %50
50: ; preds = %49
%51 = load i32, i32* %13
%52 = add nsw i32 %51, 1
store i32 %52, i32* %13
br label %31
53: ; preds = %31
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%55 = load i32, i32* %15
%56 = sub nsw i32 %55, 1
%57 = mul nsw i32 %56, 50
%58 = add nsw i32 %57, 1
store i32 %58, i32* %13
br label %59
59: ; preds = %78, %53
%60 = load i32, i32* %13
%61 = load i32, i32* %15
%62 = mul nsw i32 %61, 50
%63 = icmp sle i32 %60, %62
br i1 %63, label %64, label %81
64: ; preds = %59
%65 = load i8*, i8** %9
%66 = load i32, i32* %13
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, i8* %65, i64 %67
%69 = load i8, i8* %68
%70 = sext i8 %69 to i32
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %70)
%72 = load i32, i32* %13
%73 = srem i32 %72, 10
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %77
75: ; preds = %64
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 32)
br label %77
77: ; preds = %75, %64
br label %78
78: ; preds = %77
%79 = load i32, i32* %13
%80 = add nsw i32 %79, 1
store i32 %80, i32* %13
br label %59
81: ; preds = %59
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %84
84: ; preds = %81
%85 = load i32, i32* %15
%86 = add nsw i32 %85, 1
store i32 %86, i32* %15
br label %22
87: ; preds = %22
%88 = load i32, i32* %14
%89 = sub nsw i32 %88, 1
%90 = mul nsw i32 %89, 50
%91 = add nsw i32 %90, 1
store i32 %91, i32* %13
br label %92
92: ; preds = %118, %87
%93 = load i32, i32* %13
%94 = load i32, i32* %14
%95 = mul nsw i32 %94, 50
%96 = icmp sle i32 %93, %95
br i1 %96, label %97, label %121
97: ; preds = %92
%98 = load i32, i32* %13
%99 = load i32, i32* %7
%100 = icmp sle i32 %98, %99
br i1 %100, label %101, label %109
101: ; preds = %97
%102 = load i8*, i8** %8
%103 = load i32, i32* %13
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8, i8* %102, i64 %104
%106 = load i8, i8* %105
%107 = sext i8 %106 to i32
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %107)
br label %111
109: ; preds = %97
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 32)
br label %111
111: ; preds = %109, %101
%112 = load i32, i32* %13
%113 = srem i32 %112, 10
%114 = icmp eq i32 %113, 0
br i1 %114, label %115, label %117
115: ; preds = %111
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 32)
br label %117
117: ; preds = %115, %111
br label %118
118: ; preds = %117
%119 = load i32, i32* %13
%120 = add nsw i32 %119, 1
store i32 %120, i32* %13
br label %92
121: ; preds = %92
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%123 = load i32, i32* %14
%124 = sub nsw i32 %123, 1
%125 = mul nsw i32 %124, 50
%126 = add nsw i32 %125, 1
store i32 %126, i32* %13
br label %127
127: ; preds = %153, %121
%128 = load i32, i32* %13
%129 = load i32, i32* %14
%130 = mul nsw i32 %129, 50
%131 = icmp sle i32 %128, %130
br i1 %131, label %132, label %156
132: ; preds = %127
%133 = load i32, i32* %13
%134 = load i32, i32* %7
%135 = icmp sle i32 %133, %134
br i1 %135, label %136, label %144
136: ; preds = %132
%137 = load i8*, i8** %9
%138 = load i32, i32* %13
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds i8, i8* %137, i64 %139
%141 = load i8, i8* %140
%142 = sext i8 %141 to i32
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %142)
br label %146
144: ; preds = %132
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 32)
br label %146
146: ; preds = %144, %136
%147 = load i32, i32* %13
%148 = srem i32 %147, 10
%149 = icmp eq i32 %148, 0
br i1 %149, label %150, label %152
150: ; preds = %146
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 32)
br label %152
152: ; preds = %150, %146
br label %153
153: ; preds = %152
%154 = load i32, i32* %13
%155 = add nsw i32 %154, 1
store i32 %155, i32* %13
br label %127
156: ; preds = %127
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%159 = load i32*, i32** %12
%160 = icmp ne i32* %159, null
br i1 %160, label %161, label %216
161: ; preds = %156
%162 = load i32*, i32** %12
%163 = load i8*, i8** %10
%164 = getelementptr inbounds i8, i8* %163, i64 1
%165 = load i32, i32* %7
%166 = call i32 (i32*, i8*, ...) @fprintf(i32* %162, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %164, i32 %165)
%167 = load i32*, i32** %12
%168 = call i32 (i32*, i8*, ...) @fprintf(i32* %167, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0))
store i32 1, i32* %13
br label %169
169: ; preds = %212, %161
%170 = load i32, i32* %13
%171 = load i32, i32* %7
%172 = icmp sle i32 %170, %171
br i1 %172, label %173, label %215
173: ; preds = %169
%174 = load i32*, i32** %12
%175 = load i8*, i8** %8
%176 = load i32, i32* %13
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds i8, i8* %175, i64 %177
%179 = load i8, i8* %178
%180 = sext i8 %179 to i32
%181 = load i8*, i8** %9
%182 = load i32, i32* %13
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds i8, i8* %181, i64 %183
%185 = load i8, i8* %184
%186 = sext i8 %185 to i32
%187 = load float**, float*** %11
%188 = load i32, i32* %13
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds float*, float** %187, i64 %189
%191 = load float*, float** %190
%192 = getelementptr inbounds float, float* %191, i64 1
%193 = load float, float* %192
%194 = fpext float %193 to double
%195 = load float**, float*** %11
%196 = load i32, i32* %13
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds float*, float** %195, i64 %197
%199 = load float*, float** %198
%200 = getelementptr inbounds float, float* %199, i64 2
%201 = load float, float* %200
%202 = fpext float %201 to double
%203 = load float**, float*** %11
%204 = load i32, i32* %13
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds float*, float** %203, i64 %205
%207 = load float*, float** %206
%208 = getelementptr inbounds float, float* %207, i64 3
%209 = load float, float* %208
%210 = fpext float %209 to double
%211 = call i32 (i32*, i8*, ...) @fprintf(i32* %174, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i32 %180, i32 %186, double %194, double %202, double %210)
br label %212
212: ; preds = %173
%213 = load i32, i32* %13
%214 = add nsw i32 %213, 1
store i32 %214, i32* %13
br label %169
215: ; preds = %169
br label %216
216: ; preds = %215, %156
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"\0A\0A>%s\0A\00"
@.str.2 = [8 x i8] c" %s\0A\00"
@.str.3 = [9 x i8] c"Sequence\00"
@.str.4 = [23 x i8] c"Predicted Sec. Struct.\00"
@.str.7 = [9 x i8] c"\0A\0A%s\0A%d\0A\00"
@.str.8 = [25 x i8] c"SEQ PRD H E C\0A\00"
@.str.9 = [29 x i8] c" %c %c %5.3f %5.3f %5.3f\0A\00"
@str = [2 x i8] c"\0A\00"
define void @printout(i32 %0, i8* nocapture %1, i8* nocapture %2, i8* %3, float** nocapture %4, i32* %5) {
%7 = getelementptr inbounds i8, i8* %3, i64 1
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = sdiv i32 %0, 50
%10 = icmp slt i32 %0, 50
br i1 %10, label %64, label %11
11: ; preds = %6
%12 = add nsw i32 %9, 1
%13 = zext i32 %12 to i64
br label %14
14: ; preds = %11, %58
%15 = phi i64 [ 1, %11 ], [ %61, %58 ]
%16 = phi i32 [ 0, %11 ], [ %62, %58 ]
%17 = or i32 %16, 1
%18 = sext i32 %17 to i64
%19 = trunc i64 %15 to i32
%20 = mul i32 %19, 50
%21 = icmp slt i32 %20, -2147483599
br i1 %21, label %22, label %24
22: ; preds = %14
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %58
24: ; preds = %14
%25 = sext i32 %20 to i64
br label %26
26: ; preds = %24, %37
%27 = phi i64 [ %18, %24 ], [ %38, %37 ]
%28 = getelementptr inbounds i8, i8* %1, i64 %27
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = tail call i32 @putchar(i32 %30)
%32 = trunc i64 %27 to i32
%33 = srem i32 %32, 10
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %26
%36 = tail call i32 @putchar(i32 32)
br label %37
37: ; preds = %26, %35
%38 = add nsw i64 %27, 1
%39 = icmp slt i64 %27, %25
br i1 %39, label %26, label %40
40: ; preds = %37
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br i1 %21, label %58, label %42
42: ; preds = %40
%43 = sext i32 %20 to i64
br label %44
44: ; preds = %42, %55
%45 = phi i64 [ %18, %42 ], [ %56, %55 ]
%46 = getelementptr inbounds i8, i8* %2, i64 %45
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = tail call i32 @putchar(i32 %48)
%50 = trunc i64 %45 to i32
%51 = srem i32 %50, 10
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %44
%54 = tail call i32 @putchar(i32 32)
br label %55
55: ; preds = %44, %53
%56 = add nsw i64 %45, 1
%57 = icmp slt i64 %45, %43
br i1 %57, label %44, label %58
58: ; preds = %55, %22, %40
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%60 = tail call i32 @putchar(i32 10)
%61 = add nuw nsw i64 %15, 1
%62 = add nuw i32 %16, 50
%63 = icmp eq i64 %61, %13
br i1 %63, label %64, label %14
64: ; preds = %58, %6
%65 = mul i32 %9, 50
%66 = or i32 %65, 1
%67 = add i32 %65, 50
%68 = icmp sgt i32 %66, %67
br i1 %68, label %69, label %71
69: ; preds = %64
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %121
71: ; preds = %64
%72 = or i32 %65, 1
%73 = sext i32 %72 to i64
%74 = sext i32 %0 to i64
%75 = add i32 %65, 51
br label %76
76: ; preds = %71, %91
%77 = phi i64 [ %73, %71 ], [ %92, %91 ]
%78 = icmp sgt i64 %77, %74
br i1 %78, label %83, label %79
79: ; preds = %76
%80 = getelementptr inbounds i8, i8* %1, i64 %77
%81 = load i8, i8* %80
%82 = sext i8 %81 to i32
br label %83
83: ; preds = %76, %79
%84 = phi i32 [ %82, %79 ], [ 32, %76 ]
%85 = tail call i32 @putchar(i32 %84)
%86 = trunc i64 %77 to i32
%87 = srem i32 %86, 10
%88 = icmp eq i32 %87, 0
br i1 %88, label %89, label %91
89: ; preds = %83
%90 = tail call i32 @putchar(i32 32)
br label %91
91: ; preds = %83, %89
%92 = add nsw i64 %77, 1
%93 = trunc i64 %92 to i32
%94 = icmp eq i32 %75, %93
br i1 %94, label %95, label %76
95: ; preds = %91
%96 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br i1 %68, label %121, label %97
97: ; preds = %95
%98 = or i32 %65, 1
%99 = sext i32 %98 to i64
%100 = sext i32 %0 to i64
%101 = add i32 %65, 51
br label %102
102: ; preds = %97, %117
%103 = phi i64 [ %99, %97 ], [ %118, %117 ]
%104 = icmp sgt i64 %103, %100
br i1 %104, label %109, label %105
105: ; preds = %102
%106 = getelementptr inbounds i8, i8* %2, i64 %103
%107 = load i8, i8* %106
%108 = sext i8 %107 to i32
br label %109
109: ; preds = %102, %105
%110 = phi i32 [ %108, %105 ], [ 32, %102 ]
%111 = tail call i32 @putchar(i32 %110)
%112 = trunc i64 %103 to i32
%113 = srem i32 %112, 10
%114 = icmp eq i32 %113, 0
br i1 %114, label %115, label %117
115: ; preds = %109
%116 = tail call i32 @putchar(i32 32)
br label %117
117: ; preds = %109, %115
%118 = add nsw i64 %103, 1
%119 = trunc i64 %118 to i32
%120 = icmp eq i32 %101, %119
br i1 %120, label %121, label %102
121: ; preds = %117, %69, %95
%122 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%123 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%124 = icmp eq i32* %5, null
br i1 %124, label %154, label %125
125: ; preds = %121
%126 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %7, i32 %0)
%127 = tail call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i64 24, i64 1, i32* %5)
%128 = icmp slt i32 %0, 1
br i1 %128, label %154, label %129
129: ; preds = %125
%130 = add nuw i32 %0, 1
%131 = zext i32 %130 to i64
br label %132
132: ; preds = %129, %132
%133 = phi i64 [ 1, %129 ], [ %152, %132 ]
%134 = getelementptr inbounds i8, i8* %1, i64 %133
%135 = load i8, i8* %134
%136 = sext i8 %135 to i32
%137 = getelementptr inbounds i8, i8* %2, i64 %133
%138 = load i8, i8* %137
%139 = sext i8 %138 to i32
%140 = getelementptr inbounds float*, float** %4, i64 %133
%141 = load float*, float** %140
%142 = getelementptr inbounds float, float* %141, i64 1
%143 = load float, float* %142
%144 = fpext float %143 to double
%145 = getelementptr inbounds float, float* %141, i64 2
%146 = load float, float* %145
%147 = fpext float %146 to double
%148 = getelementptr inbounds float, float* %141, i64 3
%149 = load float, float* %148
%150 = fpext float %149 to double
%151 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i32 %136, i32 %139, double %144, double %147, double %150)
%152 = add nuw nsw i64 %133, 1
%153 = icmp eq i64 %152, %131
br i1 %153, label %154, label %132
154: ; preds = %132, %125, %121
ret void
}