#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 /*<<< orphan*/ close_sequential_reads();
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ initialize_sequential_reads(char *);
int /*<<< orphan*/ printf(char *, ...);
int process_biofile(char *, char *);
scalar_t__ read_data_sequential(char **, char **, char **, char **);
int read_seq(char *, char *, char **, char **, char **);
int strlen(char *);
int main(int argc, char *argv[]) {
  char *fasta = NULL;
  char *qual = NULL;
  char *extras = NULL;
  int size = 5000;
  if (argc != 4) {
    printf("Usage %s fasta_file qual_file output_file\n\n", argv[0]);
    exit(-1);
  }
  printf("Comienzo\n");
  int res = process_biofile(argv[1], argv[3]);
  res = read_seq(argv[3], "F143CJN01DZW7L", &fasta, &qual, &extras);
  printf("-------------------------------------------------------------\n");
  printf("RES of read_seq2 call is :%d\n", res);
  if (res == 0)
    printf("fasta:%s\n fasta size:%d\n", fasta, strlen(fasta));
  if (res == 0)
    printf("qual:%s\n", qual);
  if ((res == 0) && (extras != NULL))
    printf("extras:%s\n", extras);
  if (fasta != NULL) {
    free(fasta);
    fasta = NULL;
  }
  if (qual != NULL) {
    free(qual);
    qual = NULL;
  }
  if (extras != NULL) {
    free(extras);
    extras = NULL;
  }
  printf("***************************\n");
  printf("Sequential reads\n");
  initialize_sequential_reads(argv[3]);
  char *sname = NULL;
  while (read_data_sequential(&sname, &fasta, &qual, &extras) == 0) {
    printf("***************************\n");
    printf("RES of read_seq2 call is :%d, sname:%s\n", res, sname);
    if (res == 0)
      printf("fasta:%s fasta size:%d\n", fasta, strlen(fasta));
    if (res == 0)
      printf("qual:%s", qual);
    if ((res == 0) && (extras != NULL))
      printf("extras:%s\n", extras);
    if (fasta != NULL) {
      free(fasta);
      fasta = NULL;
    }
    if (qual != NULL) {
      free(qual);
      qual = NULL;
    }
    if (extras != NULL) {
      free(extras);
      extras = NULL;
    }
  }
  close_sequential_reads();
  return res;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movl   $0x1388,-0x2c(%rbp)
cmpl   $0x4,-0x8(%rbp)
je     11ee <main+0x5e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0xffffffff,%edi
call   10b0 <exit@plt>
lea    0xe37(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rsi
call   1040 <process_biofile@plt>
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xe13(%rip),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
lea    -0x28(%rbp),%r8
call   1080 <read_seq@plt>
mov    %eax,-0x30(%rbp)
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x30(%rbp),%esi
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x0,-0x30(%rbp)
jne    1285 <main+0xf5>
mov    -0x18(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x40(%rbp),%rsi
mov    %eax,%edx
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x0,-0x30(%rbp)
jne    12a1 <main+0x111>
mov    -0x20(%rbp),%rsi
lea    0xe21(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x0,-0x30(%rbp)
jne    12c8 <main+0x138>
cmpq   $0x0,-0x28(%rbp)
je     12c8 <main+0x138>
mov    -0x28(%rbp),%rsi
lea    0xe03(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpq   $0x0,-0x18(%rbp)
je     12e4 <main+0x154>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x18(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1300 <main+0x170>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x20(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     131c <main+0x18c>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x28(%rbp)
lea    0xdac(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xdbb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10a0 <initialize_sequential_reads@plt>
movq   $0x0,-0x38(%rbp)
lea    -0x38(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
lea    -0x28(%rbp),%rcx
call   1070 <read_data_sequential@plt>
cmp    $0x0,%rax
jne    145a <main+0x2ca>
lea    0xd5c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x30(%rbp),%esi
mov    -0x38(%rbp),%rdx
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x0,-0x30(%rbp)
jne    13be <main+0x22e>
mov    -0x18(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x48(%rbp),%rsi
mov    %eax,%edx
lea    0xd6f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x0,-0x30(%rbp)
jne    13da <main+0x24a>
mov    -0x20(%rbp),%rsi
lea    0xd6b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x0,-0x30(%rbp)
jne    1401 <main+0x271>
cmpq   $0x0,-0x28(%rbp)
je     1401 <main+0x271>
mov    -0x28(%rbp),%rsi
lea    0xcca(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpq   $0x0,-0x18(%rbp)
je     141d <main+0x28d>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x18(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1439 <main+0x2a9>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x20(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     1455 <main+0x2c5>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x28(%rbp)
jmp    134d <main+0x1bd>
mov    $0x0,%al
call   1090 <close_sequential_reads@plt>
mov    -0x30(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%r14
movq   $0x0,0x10(%rsp)
movq   $0x0,0x8(%rsp)
movq   $0x0,(%rsp)
cmp    $0x4,%edi
jne    1435 <main+0x295>
lea    0xef3(%rip),%rdi
call   1040 <puts@plt>
mov    0x8(%r14),%rdi
mov    0x18(%r14),%rsi
call   1050 <process_biofile@plt>
mov    0x18(%r14),%rdi
lea    0xe34(%rip),%rsi
lea    0x10(%rsp),%rdx
lea    0x8(%rsp),%rcx
mov    %rsp,%r8
call   1090 <read_seq@plt>
mov    %eax,%r12d
lea    0xec3(%rip),%rdi
call   1040 <puts@plt>
lea    0xe1b(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
test   %r12d,%r12d
jne    1279 <main+0xd9>
mov    0x10(%rsp),%rbp
mov    %rbp,%rdi
call   1060 <strlen@plt>
lea    0xe16(%rip),%rdi
mov    %rbp,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x8(%rsp),%rsi
lea    0xe17(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    (%rsp),%rsi
test   %rsi,%rsi
je     1279 <main+0xd9>
lea    0xe09(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x10(%rsp),%rdi
test   %rdi,%rdi
je     1291 <main+0xf1>
call   1030 <free@plt>
movq   $0x0,0x10(%rsp)
mov    0x8(%rsp),%rdi
test   %rdi,%rdi
je     12a9 <main+0x109>
call   1030 <free@plt>
movq   $0x0,0x8(%rsp)
mov    (%rsp),%rdi
test   %rdi,%rdi
je     12bf <main+0x11f>
call   1030 <free@plt>
movq   $0x0,(%rsp)
lea    0xe60(%rip),%rdi
call   1040 <puts@plt>
lea    0xe43(%rip),%rdi
call   1040 <puts@plt>
mov    0x18(%r14),%rdi
call   10b0 <initialize_sequential_reads@plt>
movq   $0x0,0x18(%rsp)
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %rsp,%rcx
call   1080 <read_data_sequential@plt>
test   %rax,%rax
je     131e <main+0x17e>
xor    %eax,%eax
call   10a0 <close_sequential_reads@plt>
mov    %r12d,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe01(%rip),%rbp
lea    0xd5a(%rip),%rbx
lea    0x18(%rsp),%r15
lea    0x10(%rsp),%r13
lea    0x8(%rsp),%r14
mov    %r12d,0x24(%rsp)
jmp    1366 <main+0x1c6>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
mov    %rsp,%rcx
call   1080 <read_data_sequential@plt>
test   %rax,%rax
jne    1305 <main+0x165>
mov    %rbp,%rdi
call   1040 <puts@plt>
mov    0x18(%rsp),%rdx
mov    %rbx,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
test   %r12d,%r12d
jne    13e6 <main+0x246>
mov    %r14,%r12
mov    %r13,%r14
mov    %r15,%r13
mov    0x10(%rsp),%r15
mov    %r15,%rdi
call   1060 <strlen@plt>
lea    0xd0c(%rip),%rdi
mov    %r15,%rsi
mov    %r13,%r15
mov    %r14,%r13
mov    %r12,%r14
mov    0x24(%rsp),%r12d
mov    %eax,%edx
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x8(%rsp),%rsi
lea    0xcfe(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    (%rsp),%rsi
test   %rsi,%rsi
je     13e6 <main+0x246>
lea    0xc9c(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x10(%rsp),%rdi
test   %rdi,%rdi
je     13fe <main+0x25e>
call   1030 <free@plt>
movq   $0x0,0x10(%rsp)
mov    0x8(%rsp),%rdi
test   %rdi,%rdi
je     1416 <main+0x276>
call   1030 <free@plt>
movq   $0x0,0x8(%rsp)
mov    (%rsp),%rdi
test   %rdi,%rdi
je     1350 <main+0x1b0>
call   1030 <free@plt>
movq   $0x0,(%rsp)
jmp    1350 <main+0x1b0>
mov    (%r14),%rsi
lea    0xbc1(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@.str = [44 x i8] c"Usage %s fasta_file qual_file output_file\0A\0A\00"
@.str.1 = [10 x i8] c"Comienzo\0A\00"
@.str.2 = [15 x i8] c"F143CJN01DZW7L\00"
@.str.3 = [63 x i8] c"-------------------------------------------------------------\0A\00"
@.str.4 = [30 x i8] c"RES of read_seq2 call is :%d\0A\00"
@.str.5 = [25 x i8] c"fasta:%s\0A fasta size:%d\0A\00"
@.str.6 = [9 x i8] c"qual:%s\0A\00"
@.str.7 = [11 x i8] c"extras:%s\0A\00"
@.str.8 = [29 x i8] c"***************************\0A\00"
@.str.9 = [18 x i8] c"Sequential reads\0A\00"
@.str.10 = [40 x i8] c"RES of read_seq2 call is :%d, sname:%s\0A\00"
@.str.11 = [24 x i8] c"fasta:%s fasta size:%d\0A\00"
@.str.12 = [8 x i8] c"qual:%s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %6
store i8* null, i8** %7
store i8* null, i8** %8
store i32 5000, i32* %9
%12 = load i32, i32* %4
%13 = icmp ne i32 %12, 4
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 0
%17 = load i8*, i8** %16
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = call i32 @exit(i32 -1)
unreachable
20: ; preds = %2
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 3
%27 = load i8*, i8** %26
%28 = call i32 @process_biofile(i8* %24, i8* %27)
store i32 %28, i32* %10
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 3
%31 = load i8*, i8** %30
%32 = call i32 @read_seq(i8* %31, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8** %6, i8** %7, i8** %8)
store i32 %32, i32* %10
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%34 = load i32, i32* %10
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %34)
%36 = load i32, i32* %10
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %43
38: ; preds = %20
%39 = load i8*, i8** %6
%40 = load i8*, i8** %6
%41 = call i32 @strlen(i8* %40)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %39, i32 %41)
br label %43
43: ; preds = %38, %20
%44 = load i32, i32* %10
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = load i8*, i8** %7
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8* %47)
br label %49
49: ; preds = %46, %43
%50 = load i32, i32* %10
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %58
52: ; preds = %49
%53 = load i8*, i8** %8
%54 = icmp ne i8* %53, null
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = load i8*, i8** %8
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* %56)
br label %58
58: ; preds = %55, %52, %49
%59 = load i8*, i8** %6
%60 = icmp ne i8* %59, null
br i1 %60, label %61, label %64
61: ; preds = %58
%62 = load i8*, i8** %6
%63 = call i32 @free(i8* %62)
store i8* null, i8** %6
br label %64
64: ; preds = %61, %58
%65 = load i8*, i8** %7
%66 = icmp ne i8* %65, null
br i1 %66, label %67, label %70
67: ; preds = %64
%68 = load i8*, i8** %7
%69 = call i32 @free(i8* %68)
store i8* null, i8** %7
br label %70
70: ; preds = %67, %64
%71 = load i8*, i8** %8
%72 = icmp ne i8* %71, null
br i1 %72, label %73, label %76
73: ; preds = %70
%74 = load i8*, i8** %8
%75 = call i32 @free(i8* %74)
store i8* null, i8** %8
br label %76
76: ; preds = %73, %70
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
%79 = load i8**, i8*** %5
%80 = getelementptr inbounds i8*, i8** %79, i64 3
%81 = load i8*, i8** %80
%82 = call i32 @initialize_sequential_reads(i8* %81)
store i8* null, i8** %11
br label %83
83: ; preds = %131, %76
%84 = call i64 @read_data_sequential(i8** %11, i8** %6, i8** %7, i8** %8)
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %132
86: ; preds = %83
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%88 = load i32, i32* %10
%89 = load i8*, i8** %11
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0), i32 %88, i8* %89)
%91 = load i32, i32* %10
%92 = icmp eq i32 %91, 0
br i1 %92, label %93, label %98
93: ; preds = %86
%94 = load i8*, i8** %6
%95 = load i8*, i8** %6
%96 = call i32 @strlen(i8* %95)
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i8* %94, i32 %96)
br label %98
98: ; preds = %93, %86
%99 = load i32, i32* %10
%100 = icmp eq i32 %99, 0
br i1 %100, label %101, label %104
101: ; preds = %98
%102 = load i8*, i8** %7
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %102)
br label %104
104: ; preds = %101, %98
%105 = load i32, i32* %10
%106 = icmp eq i32 %105, 0
br i1 %106, label %107, label %113
107: ; preds = %104
%108 = load i8*, i8** %8
%109 = icmp ne i8* %108, null
br i1 %109, label %110, label %113
110: ; preds = %107
%111 = load i8*, i8** %8
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* %111)
br label %113
113: ; preds = %110, %107, %104
%114 = load i8*, i8** %6
%115 = icmp ne i8* %114, null
br i1 %115, label %116, label %119
116: ; preds = %113
%117 = load i8*, i8** %6
%118 = call i32 @free(i8* %117)
store i8* null, i8** %6
br label %119
119: ; preds = %116, %113
%120 = load i8*, i8** %7
%121 = icmp ne i8* %120, null
br i1 %121, label %122, label %125
122: ; preds = %119
%123 = load i8*, i8** %7
%124 = call i32 @free(i8* %123)
store i8* null, i8** %7
br label %125
125: ; preds = %122, %119
%126 = load i8*, i8** %8
%127 = icmp ne i8* %126, null
br i1 %127, label %128, label %131
128: ; preds = %125
%129 = load i8*, i8** %8
%130 = call i32 @free(i8* %129)
store i8* null, i8** %8
br label %131
131: ; preds = %128, %125
br label %83
132: ; preds = %83
%133 = call i32 (...) @close_sequential_reads()
%134 = load i32, i32* %10
ret i32 %134
}

LLVM IR (-O2):
@.str = [44 x i8] c"Usage %s fasta_file qual_file output_file\0A\0A\00"
@.str.2 = [15 x i8] c"F143CJN01DZW7L\00"
@.str.4 = [30 x i8] c"RES of read_seq2 call is :%d\0A\00"
@.str.5 = [25 x i8] c"fasta:%s\0A fasta size:%d\0A\00"
@.str.6 = [9 x i8] c"qual:%s\0A\00"
@.str.7 = [11 x i8] c"extras:%s\0A\00"
@.str.10 = [40 x i8] c"RES of read_seq2 call is :%d, sname:%s\0A\00"
@.str.11 = [24 x i8] c"fasta:%s fasta size:%d\0A\00"
@.str.12 = [8 x i8] c"qual:%s\00"
@str = [9 x i8] c"Comienzo\00"
@str.13 = [62 x i8] c"-------------------------------------------------------------\00"
@str.15 = [17 x i8] c"Sequential reads\00"
@str.16 = [28 x i8] c"***************************\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = bitcast i8** %3 to i8*
store i8* null, i8** %3
%8 = bitcast i8** %4 to i8*
store i8* null, i8** %4
%9 = bitcast i8** %5 to i8*
store i8* null, i8** %5
%10 = icmp eq i32 %0, 4
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load i8*, i8** %1
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = tail call i32 @exit(i32 -1)
unreachable
15: ; preds = %2
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%17 = getelementptr inbounds i8*, i8** %1, i64 1
%18 = load i8*, i8** %17
%19 = getelementptr inbounds i8*, i8** %1, i64 3
%20 = load i8*, i8** %19
%21 = tail call i32 @process_biofile(i8* %18, i8* %20)
%22 = load i8*, i8** %19
%23 = call i32 @read_seq(i8* %22, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8** %3, i8** %4, i8** %5)
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.13, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %23)
%26 = icmp eq i32 %23, 0
br i1 %26, label %27, label %37
27: ; preds = %15
%28 = load i8*, i8** %3
%29 = call i32 @strlen(i8* %28)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %28, i32 %29)
%31 = load i8*, i8** %4
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8* %31)
%33 = load i8*, i8** %5
%34 = icmp eq i8* %33, null
br i1 %34, label %37, label %35
35: ; preds = %27
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* %33)
br label %37
37: ; preds = %15, %35, %27
%38 = load i8*, i8** %3
%39 = icmp eq i8* %38, null
br i1 %39, label %42, label %40
40: ; preds = %37
%41 = call i32 @free(i8* %38)
store i8* null, i8** %3
br label %42
42: ; preds = %40, %37
%43 = load i8*, i8** %4
%44 = icmp eq i8* %43, null
br i1 %44, label %47, label %45
45: ; preds = %42
%46 = call i32 @free(i8* %43)
store i8* null, i8** %4
br label %47
47: ; preds = %45, %42
%48 = load i8*, i8** %5
%49 = icmp eq i8* %48, null
br i1 %49, label %52, label %50
50: ; preds = %47
%51 = call i32 @free(i8* %48)
store i8* null, i8** %5
br label %52
52: ; preds = %50, %47
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.16, i64 0, i64 0))
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.15, i64 0, i64 0))
%55 = load i8*, i8** %19
%56 = call i32 @initialize_sequential_reads(i8* %55)
%57 = bitcast i8** %6 to i8*
store i8* null, i8** %6
%58 = call i64 @read_data_sequential(i8** %6, i8** %3, i8** %4, i8** %5)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %92
60: ; preds = %52, %89
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.16, i64 0, i64 0))
%62 = load i8*, i8** %6
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0), i32 %23, i8* %62)
br i1 %26, label %64, label %74
64: ; preds = %60
%65 = load i8*, i8** %3
%66 = call i32 @strlen(i8* %65)
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i8* %65, i32 %66)
%68 = load i8*, i8** %4
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %68)
%70 = load i8*, i8** %5
%71 = icmp eq i8* %70, null
br i1 %71, label %74, label %72
72: ; preds = %64
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* %70)
br label %74
74: ; preds = %60, %72, %64
%75 = load i8*, i8** %3
%76 = icmp eq i8* %75, null
br i1 %76, label %79, label %77
77: ; preds = %74
%78 = call i32 @free(i8* %75)
store i8* null, i8** %3
br label %79
79: ; preds = %77, %74
%80 = load i8*, i8** %4
%81 = icmp eq i8* %80, null
br i1 %81, label %84, label %82
82: ; preds = %79
%83 = call i32 @free(i8* %80)
store i8* null, i8** %4
br label %84
84: ; preds = %82, %79
%85 = load i8*, i8** %5
%86 = icmp eq i8* %85, null
br i1 %86, label %89, label %87
87: ; preds = %84
%88 = call i32 @free(i8* %85)
store i8* null, i8** %5
br label %89
89: ; preds = %87, %84
%90 = call i64 @read_data_sequential(i8** %6, i8** %3, i8** %4, i8** %5)
%91 = icmp eq i64 %90, 0
br i1 %91, label %60, label %92
92: ; preds = %89, %52
%93 = call i32 (...) @close_sequential_reads()
ret i32 %23
}