#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*/ gzFile;

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fileno(int /*<<< orphan*/);
int /*<<< orphan*/ gzclose(int /*<<< orphan*/);
int /*<<< orphan*/ gzdopen(int /*<<< orphan*/, char *);
int /*<<< orphan*/ gzopen(char *, char *);
int /*<<< orphan*/ print_help(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ process_input(int /*<<< orphan*/, int, char *, int, int);
int /*<<< orphan*/ stdin;
scalar_t__ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  int reverse_complement = 0;
  char *string_to_append = NULL;
  int to_fasta = 0;
  int read_from_file = 0;
  int illumina_trinity = 0;
  if (argc == 1) {
    print_help(argv[0]);
    exit(0);
  }
  for (int i = 1; i < argc; ++i) {
    if (strcmp(argv[i], "--rev") == 0)
      reverse_complement = 1;
    else if (strcmp(argv[1], "-h") == 0) {
      print_help(argv[0]);
      exit(0);
    } else if (strcmp(argv[i], "--to-fasta") == 0)
      to_fasta = 1;
    else if ((strcmp(argv[i], "--append") == 0)) {
      if (i + 1 == argc) {
        printf("String to append is missing!\n");
        exit(0);
      } else {
        string_to_append = argv[i + 1];
        i++;
      }
    } else if ((strcmp(argv[i], "--illumina-trinity") == 0))
      illumina_trinity = 1;
    else {
      if (illumina_trinity && string_to_append) {
        printf("You are using both --append and --illumina-trinity options. "
               "You can only provide one or the other.\n");
        exit(0);
      }
      read_from_file = 1;
      gzFile fp;
      if (!(fp = gzopen(argv[i], "r"))) {
        printf("No %s file found!\n", argv[i]);
        exit(0);
      }
      process_input(fp, reverse_complement, string_to_append, to_fasta,
                    illumina_trinity);
      gzclose(fp);
    }
  }
  if (!read_from_file) {
    gzFile fp_stdin;
    fp_stdin = gzdopen(fileno(stdin), "rb");
    process_input(fp_stdin, reverse_complement, string_to_append, to_fasta,
                  illumina_trinity);
    gzclose(fp_stdin);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movq   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    11e7 <main+0x57>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1090 <print_help@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13d9 <main+0x249>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdf3(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1228 <main+0x98>
movl   $0x1,-0x14(%rbp)
jmp    13c6 <main+0x236>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdcf(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1259 <main+0xc9>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1090 <print_help@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd9d(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1287 <main+0xf7>
movl   $0x1,-0x24(%rbp)
jmp    13bc <main+0x22c>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd7a(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12f0 <main+0x160>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
cmp    -0x8(%rbp),%eax
jne    12cd <main+0x13d>
lea    0xd5e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x20(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    13b7 <main+0x227>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd38(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    131e <main+0x18e>
movl   $0x1,-0x2c(%rbp)
jmp    13b2 <main+0x222>
cmpl   $0x0,-0x2c(%rbp)
je     1348 <main+0x1b8>
cmpq   $0x0,-0x20(%rbp)
je     1348 <main+0x1b8>
lea    0xd14(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
movl   $0x1,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd50(%rip),%rsi
call   1080 <gzopen@plt>
mov    %eax,-0x34(%rbp)
cmp    $0x0,%eax
jne    1394 <main+0x204>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xd2e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    -0x34(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x20(%rbp),%rdx
mov    -0x24(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
call   10b0 <process_input@plt>
mov    -0x34(%rbp),%edi
call   1030 <gzclose@plt>
jmp    13b7 <main+0x227>
jmp    13bc <main+0x22c>
jmp    13c1 <main+0x231>
jmp    13c6 <main+0x236>
jmp    13cb <main+0x23b>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11ee <main+0x5e>
cmpl   $0x0,-0x28(%rbp)
jne    1420 <main+0x290>
mov    0x2bfe(%rip),%rax
mov    (%rax),%edi
call   1070 <fileno@plt>
mov    %eax,%edi
lea    0xccd(%rip),%rsi
call   1040 <gzdopen@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x20(%rbp),%rdx
mov    -0x24(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
call   10b0 <process_input@plt>
mov    -0x38(%rbp),%edi
call   1030 <gzclose@plt>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbp
cmp    $0x1,%edi
je     1381 <main+0x1e1>
jle    1319 <main+0x179>
mov    %edi,%ebx
mov    $0x1,%r12d
xor    %r13d,%r13d
xor    %eax,%eax
mov    %rax,0x10(%rsp)
movl   $0x0,0x8(%rsp)
xor    %r14d,%r14d
movl   $0x0,0xc(%rsp)
jmp    1203 <main+0x63>
nopw   0x0(%rax,%rax,1)
mov    $0x1,%r13d
add    $0x1,%r12d
cmp    %ebx,%r12d
jge    1326 <main+0x186>
movslq %r12d,%r15
mov    0x0(%rbp,%r15,8),%rdi
lea    0xdee(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     11f0 <main+0x50>
mov    0x8(%rbp),%rdi
lea    0xddf(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1381 <main+0x1e1>
mov    0x0(%rbp,%r15,8),%rdi
lea    0xdc8(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12e0 <main+0x140>
mov    0x0(%rbp,%r15,8),%rdi
lea    0xdb9(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12ed <main+0x14d>
mov    0x0(%rbp,%r15,8),%rdi
lea    0xda8(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     130c <main+0x16c>
cmpl   $0x0,0x8(%rsp)
je     1296 <main+0xf6>
cmpq   $0x0,0x10(%rsp)
jne    1391 <main+0x1f1>
mov    0x0(%rbp,%r15,8),%rdi
lea    0xd8e(%rip),%rsi
call   1090 <gzopen@plt>
test   %eax,%eax
je     139a <main+0x1fa>
mov    %eax,%r14d
mov    %eax,%edi
mov    %r13d,%esi
mov    0x10(%rsp),%rdx
mov    0xc(%rsp),%ecx
mov    0x8(%rsp),%r8d
call   10c0 <process_input@plt>
mov    %r14d,%edi
call   1030 <gzclose@plt>
mov    $0x1,%r14d
jmp    11f6 <main+0x56>
nopl   (%rax)
movl   $0x1,0xc(%rsp)
jmp    11f6 <main+0x56>
add    $0x1,%r12d
cmp    %ebx,%r12d
je     13b4 <main+0x214>
movslq %r12d,%rax
mov    0x0(%rbp,%rax,8),%rax
mov    %rax,0x10(%rsp)
jmp    11f6 <main+0x56>
movl   $0x1,0x8(%rsp)
jmp    11f6 <main+0x56>
xor    %r13d,%r13d
xor    %r15d,%r15d
xor    %r14d,%r14d
xor    %ebp,%ebp
jmp    1339 <main+0x199>
test   %r14d,%r14d
mov    0x8(%rsp),%r14d
mov    0xc(%rsp),%ebp
mov    0x10(%rsp),%r15
jne    1370 <main+0x1d0>
mov    0x2ca8(%rip),%rax
mov    (%rax),%edi
call   1080 <fileno@plt>
lea    0xcf7(%rip),%rsi
mov    %eax,%edi
call   1050 <gzdopen@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    %r13d,%esi
mov    %r15,%rdx
mov    %ebp,%ecx
mov    %r14d,%r8d
call   10c0 <process_input@plt>
mov    %ebx,%edi
call   1030 <gzclose@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x0(%rbp),%rdi
call   10a0 <print_help@plt>
xor    %edi,%edi
call   10b0 <exit@plt>
lea    0xcb0(%rip),%rdi
jmp    13bb <main+0x21b>
mov    0x0(%rbp,%r15,8),%rsi
lea    0xc8c(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %edi,%edi
call   10b0 <exit@plt>
lea    0xcf0(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"--rev\00"
@.str.1 = [3 x i8] c"-h\00"
@.str.2 = [11 x i8] c"--to-fasta\00"
@.str.3 = [9 x i8] c"--append\00"
@.str.4 = [30 x i8] c"String to append is missing!\0A\00"
@.str.5 = [19 x i8] c"--illumina-trinity\00"
@.str.6 = [100 x i8] c"You are using both --append and --illumina-trinity options. You can only provide one or the other.\0A\00"
@.str.7 = [2 x i8] c"r\00"
@.str.8 = [19 x i8] c"No %s file found!\0A\00"
@stdin = global i32 0
@.str.9 = [3 x i8] c"rb\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i8* null, i8** %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
%14 = load i32, i32* %4
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %22
16: ; preds = %2
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 0
%19 = load i8*, i8** %18
%20 = call i32 @print_help(i8* %19)
%21 = call i32 @exit(i32 0)
unreachable
22: ; preds = %2
store i32 1, i32* %11
br label %23
23: ; preds = %131, %22
%24 = load i32, i32* %11
%25 = load i32, i32* %4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %134
27: ; preds = %23
%28 = load i8**, i8*** %5
%29 = load i32, i32* %11
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8*, i8** %28, i64 %30
%32 = load i8*, i8** %31
%33 = call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %27
store i32 1, i32* %6
br label %130
36: ; preds = %27
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 1
%39 = load i8*, i8** %38
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %48
42: ; preds = %36
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 0
%45 = load i8*, i8** %44
%46 = call i32 @print_help(i8* %45)
%47 = call i32 @exit(i32 0)
unreachable
48: ; preds = %36
%49 = load i8**, i8*** %5
%50 = load i32, i32* %11
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8*, i8** %49, i64 %51
%53 = load i8*, i8** %52
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %48
store i32 1, i32* %8
br label %128
57: ; preds = %48
%58 = load i8**, i8*** %5
%59 = load i32, i32* %11
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8*, i8** %58, i64 %60
%62 = load i8*, i8** %61
%63 = call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %83
65: ; preds = %57
%66 = load i32, i32* %11
%67 = add nsw i32 %66, 1
%68 = load i32, i32* %4
%69 = icmp eq i32 %67, %68
br i1 %69, label %70, label %73
70: ; preds = %65
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
%72 = call i32 @exit(i32 0)
unreachable
73: ; preds = %65
%74 = load i8**, i8*** %5
%75 = load i32, i32* %11
%76 = add nsw i32 %75, 1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8*, i8** %74, i64 %77
%79 = load i8*, i8** %78
store i8* %79, i8** %7
%80 = load i32, i32* %11
%81 = add nsw i32 %80, 1
store i32 %81, i32* %11
br label %82
82: ; preds = %73
br label %127
83: ; preds = %57
%84 = load i8**, i8*** %5
%85 = load i32, i32* %11
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8*, i8** %84, i64 %86
%88 = load i8*, i8** %87
%89 = call i64 @strcmp(i8* %88, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %83
store i32 1, i32* %10
br label %126
92: ; preds = %83
%93 = load i32, i32* %10
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %101
95: ; preds = %92
%96 = load i8*, i8** %7
%97 = icmp ne i8* %96, null
br i1 %97, label %98, label %101
98: ; preds = %95
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.6, i64 0, i64 0))
%100 = call i32 @exit(i32 0)
unreachable
101: ; preds = %95, %92
store i32 1, i32* %9
%102 = load i8**, i8*** %5
%103 = load i32, i32* %11
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8*, i8** %102, i64 %104
%106 = load i8*, i8** %105
%107 = call i32 @gzopen(i8* %106, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
store i32 %107, i32* %12
%108 = icmp ne i32 %107, 0
br i1 %108, label %117, label %109
109: ; preds = %101
%110 = load i8**, i8*** %5
%111 = load i32, i32* %11
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8*, i8** %110, i64 %112
%114 = load i8*, i8** %113
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* %114)
%116 = call i32 @exit(i32 0)
unreachable
117: ; preds = %101
%118 = load i32, i32* %12
%119 = load i32, i32* %6
%120 = load i8*, i8** %7
%121 = load i32, i32* %8
%122 = load i32, i32* %10
%123 = call i32 @process_input(i32 %118, i32 %119, i8* %120, i32 %121, i32 %122)
%124 = load i32, i32* %12
%125 = call i32 @gzclose(i32 %124)
br label %126
126: ; preds = %117, %91
br label %127
127: ; preds = %126, %82
br label %128
128: ; preds = %127, %56
br label %129
129: ; preds = %128
br label %130
130: ; preds = %129, %35
br label %131
131: ; preds = %130
%132 = load i32, i32* %11
%133 = add nsw i32 %132, 1
store i32 %133, i32* %11
br label %23
134: ; preds = %23
%135 = load i32, i32* %9
%136 = icmp ne i32 %135, 0
br i1 %136, label %149, label %137
137: ; preds = %134
%138 = load i32, i32* @stdin
%139 = call i32 @fileno(i32 %138)
%140 = call i32 @gzdopen(i32 %139, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
store i32 %140, i32* %13
%141 = load i32, i32* %13
%142 = load i32, i32* %6
%143 = load i8*, i8** %7
%144 = load i32, i32* %8
%145 = load i32, i32* %10
%146 = call i32 @process_input(i32 %141, i32 %142, i8* %143, i32 %144, i32 %145)
%147 = load i32, i32* %13
%148 = call i32 @gzclose(i32 %147)
br label %149
149: ; preds = %137, %134
%150 = load i32, i32* %3
ret i32 %150
}

LLVM IR (-O2):
@.str = [6 x i8] c"--rev\00"
@.str.1 = [3 x i8] c"-h\00"
@.str.2 = [11 x i8] c"--to-fasta\00"
@.str.3 = [9 x i8] c"--append\00"
@.str.5 = [19 x i8] c"--illumina-trinity\00"
@.str.7 = [2 x i8] c"r\00"
@.str.8 = [19 x i8] c"No %s file found!\0A\00"
@stdin = global i32 0
@.str.9 = [3 x i8] c"rb\00"
@str = [99 x i8] c"You are using both --append and --illumina-trinity options. You can only provide one or the other.\00"
@str.10 = [29 x i8] c"String to append is missing!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 1
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = icmp sgt i32 %0, 1
br i1 %5, label %6, label %83
6: ; preds = %4
%7 = getelementptr inbounds i8*, i8** %1, i64 1
br label %14
8: ; preds = %2
%9 = load i8*, i8** %1
%10 = tail call i32 @print_help(i8* %9)
%11 = tail call i32 @exit(i32 0)
unreachable
12: ; preds = %74
%13 = icmp eq i32 %76, 0
br i1 %13, label %83, label %93
14: ; preds = %6, %74
%15 = phi i32 [ 0, %6 ], [ %80, %74 ]
%16 = phi i8* [ null, %6 ], [ %79, %74 ]
%17 = phi i32 [ 1, %6 ], [ %81, %74 ]
%18 = phi i32 [ 0, %6 ], [ %77, %74 ]
%19 = phi i32 [ 0, %6 ], [ %76, %74 ]
%20 = phi i32 [ 0, %6 ], [ %75, %74 ]
%21 = sext i32 %17 to i64
%22 = getelementptr inbounds i8*, i8** %1, i64 %21
%23 = load i8*, i8** %22
%24 = tail call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %74, label %26
26: ; preds = %14
%27 = load i8*, i8** %7
%28 = tail call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %34
30: ; preds = %26
%31 = load i8*, i8** %1
%32 = tail call i32 @print_help(i8* %31)
%33 = tail call i32 @exit(i32 0)
unreachable
34: ; preds = %26
%35 = load i8*, i8** %22
%36 = tail call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %74, label %38
38: ; preds = %34
%39 = load i8*, i8** %22
%40 = tail call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %52
42: ; preds = %38
%43 = add nsw i32 %17, 1
%44 = icmp eq i32 %43, %0
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.10, i64 0, i64 0))
%47 = tail call i32 @exit(i32 0)
unreachable
48: ; preds = %42
%49 = sext i32 %43 to i64
%50 = getelementptr inbounds i8*, i8** %1, i64 %49
%51 = load i8*, i8** %50
br label %74
52: ; preds = %38
%53 = load i8*, i8** %22
%54 = tail call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %74, label %56
56: ; preds = %52
%57 = icmp ne i32 %18, 0
%58 = icmp ne i8* %16, null
%59 = select i1 %57, i1 %58, i1 false
br i1 %59, label %60, label %63
60: ; preds = %56
%61 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @str, i64 0, i64 0))
%62 = tail call i32 @exit(i32 0)
unreachable
63: ; preds = %56
%64 = load i8*, i8** %22
%65 = tail call i32 @gzopen(i8* %64, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%66 = icmp eq i32 %65, 0
br i1 %66, label %67, label %71
67: ; preds = %63
%68 = load i8*, i8** %22
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* %68)
%70 = tail call i32 @exit(i32 0)
unreachable
71: ; preds = %63
%72 = tail call i32 @process_input(i32 %65, i32 %15, i8* %16, i32 %20, i32 %18)
%73 = tail call i32 @gzclose(i32 %65)
br label %74
74: ; preds = %52, %34, %14, %71, %48
%75 = phi i32 [ %20, %48 ], [ %20, %71 ], [ %20, %14 ], [ 1, %34 ], [ %20, %52 ]
%76 = phi i32 [ %19, %48 ], [ 1, %71 ], [ %19, %14 ], [ %19, %34 ], [ %19, %52 ]
%77 = phi i32 [ %18, %48 ], [ %18, %71 ], [ %18, %14 ], [ %18, %34 ], [ 1, %52 ]
%78 = phi i32 [ %43, %48 ], [ %17, %71 ], [ %17, %14 ], [ %17, %34 ], [ %17, %52 ]
%79 = phi i8* [ %51, %48 ], [ %16, %71 ], [ %16, %14 ], [ %16, %34 ], [ %16, %52 ]
%80 = phi i32 [ %15, %48 ], [ %15, %71 ], [ 1, %14 ], [ %15, %34 ], [ %15, %52 ]
%81 = add nsw i32 %78, 1
%82 = icmp slt i32 %81, %0
br i1 %82, label %14, label %12
83: ; preds = %4, %12
%84 = phi i32 [ %80, %12 ], [ 0, %4 ]
%85 = phi i8* [ %79, %12 ], [ null, %4 ]
%86 = phi i32 [ %77, %12 ], [ 0, %4 ]
%87 = phi i32 [ %75, %12 ], [ 0, %4 ]
%88 = load i32, i32* @stdin
%89 = tail call i32 @fileno(i32 %88)
%90 = tail call i32 @gzdopen(i32 %89, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%91 = tail call i32 @process_input(i32 %90, i32 %84, i8* %85, i32 %87, i32 %86)
%92 = tail call i32 @gzclose(i32 %90)
br label %93
93: ; preds = %83, %12
ret i32 0
}