#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*/ exit(int);
int /*<<< orphan*/ *fdopen(int /*<<< orphan*/, char *);
int /*<<< orphan*/ fileno(int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(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(1);
  }
  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(1);
    } 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(1);
      } 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(1);
      }
      read_from_file = 1;
      FILE *fp;
      if (!(fp = fopen(argv[i], "r"))) {
        printf("No %s file found!\n", argv[i]);
        exit(1);
      }
      process_input(fp, reverse_complement, string_to_append, to_fasta,
                    illumina_trinity);
    }
  }
  if (!read_from_file) {
    FILE *fp_stdin;
    fp_stdin = fdopen(fileno(stdin), "rb");
    process_input(fp_stdin, reverse_complement, string_to_append, to_fasta,
                  illumina_trinity);
  }
}


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    11da <main+0x5a>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1080 <print_help@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13d3 <main+0x253>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe00(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    121b <main+0x9b>
movl   $0x1,-0x14(%rbp)
jmp    13c0 <main+0x240>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xddc(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    124f <main+0xcf>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1080 <print_help@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xda7(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    127d <main+0xfd>
movl   $0x1,-0x24(%rbp)
jmp    13b6 <main+0x236>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd84(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12e9 <main+0x169>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
cmp    -0x8(%rbp),%eax
jne    12c6 <main+0x146>
lea    0xd68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1090 <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    13b1 <main+0x231>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd3f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1317 <main+0x197>
movl   $0x1,-0x2c(%rbp)
jmp    13ac <main+0x22c>
cmpl   $0x0,-0x2c(%rbp)
je     1344 <main+0x1c4>
cmpq   $0x0,-0x20(%rbp)
je     1344 <main+0x1c4>
lea    0xd1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
movl   $0x1,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd54(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
jne    1395 <main+0x215>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xd30(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x38(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x20(%rbp),%rdx
mov    -0x24(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
call   10a0 <process_input@plt>
jmp    13b1 <main+0x231>
jmp    13b6 <main+0x236>
jmp    13bb <main+0x23b>
jmp    13c0 <main+0x240>
jmp    13c5 <main+0x245>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11e1 <main+0x61>
cmpl   $0x0,-0x28(%rbp)
jne    1414 <main+0x294>
mov    0x2c04(%rip),%rax
mov    (%rax),%edi
call   1050 <fileno@plt>
mov    %eax,%edi
lea    0xcd3(%rip),%rsi
call   1060 <fdopen@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x20(%rbp),%rdx
mov    -0x24(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
call   10a0 <process_input@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     136a <main+0x1da>
jle    1309 <main+0x179>
mov    %edi,%ebx
mov    $0x1,%r14d
xor    %r13d,%r13d
lea    0xe3e(%rip),%r15
xor    %eax,%eax
mov    %rax,0x10(%rsp)
movl   $0x0,0x4(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
jmp    1203 <main+0x73>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x1,%r13d
add    $0x1,%r14d
cmp    %ebx,%r14d
jge    1315 <main+0x185>
movslq %r14d,%r12
mov    0x0(%rbp,%r12,8),%rdi
mov    %r15,%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     11f0 <main+0x60>
mov    0x8(%rbp),%rdi
lea    0xde3(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     136a <main+0x1da>
mov    0x0(%rbp,%r12,8),%rdi
lea    0xdcc(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12d0 <main+0x140>
mov    0x0(%rbp,%r12,8),%rdi
lea    0xdbd(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12dd <main+0x14d>
mov    0x0(%rbp,%r12,8),%rdi
lea    0xdb0(%rip),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12fc <main+0x16c>
cmpl   $0x0,0x4(%rsp)
je     128e <main+0xfe>
cmpq   $0x0,0x10(%rsp)
jne    137d <main+0x1ed>
mov    0x0(%rbp,%r12,8),%rdi
lea    0xd96(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1386 <main+0x1f6>
mov    %rax,%rdi
mov    %r13d,%esi
mov    0x10(%rsp),%rdx
mov    0x8(%rsp),%ecx
mov    0x4(%rsp),%r8d
call   10b0 <process_input@plt>
movl   $0x1,0xc(%rsp)
jmp    11f6 <main+0x66>
xchg   %ax,%ax
movl   $0x1,0x8(%rsp)
jmp    11f6 <main+0x66>
add    $0x1,%r14d
cmp    %ebx,%r14d
je     13a3 <main+0x213>
movslq %r14d,%rax
mov    0x0(%rbp,%rax,8),%rax
mov    %rax,0x10(%rsp)
jmp    11f6 <main+0x66>
movl   $0x1,0x4(%rsp)
jmp    11f6 <main+0x66>
xor    %r13d,%r13d
xor    %ebx,%ebx
xor    %r14d,%r14d
xor    %ebp,%ebp
jmp    132a <main+0x19a>
cmpl   $0x0,0xc(%rsp)
mov    0x4(%rsp),%r14d
mov    0x8(%rsp),%ebp
mov    0x10(%rsp),%rbx
jne    1359 <main+0x1c9>
mov    0x2cb7(%rip),%rax
mov    (%rax),%edi
call   1060 <fileno@plt>
lea    0xd06(%rip),%rsi
mov    %eax,%edi
call   1070 <fdopen@plt>
mov    %rax,%rdi
mov    %r13d,%esi
mov    %rbx,%rdx
mov    %ebp,%ecx
mov    %r14d,%r8d
call   10b0 <process_input@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   1090 <print_help@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    0xcc4(%rip),%rdi
jmp    13aa <main+0x21a>
mov    0x0(%rbp,%r12,8),%rsi
lea    0xca0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    0xd01(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   10a0 <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 1)
unreachable
22: ; preds = %2
store i32 1, i32* %11
br label %23
23: ; preds = %129, %22
%24 = load i32, i32* %11
%25 = load i32, i32* %4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %132
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 %128
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 1)
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 %126
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 1)
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 %125
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 %124
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 1)
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* @fopen(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, null
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 1)
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)
br label %124
124: ; preds = %117, %91
br label %125
125: ; preds = %124, %82
br label %126
126: ; preds = %125, %56
br label %127
127: ; preds = %126
br label %128
128: ; preds = %127, %35
br label %129
129: ; preds = %128
%130 = load i32, i32* %11
%131 = add nsw i32 %130, 1
store i32 %131, i32* %11
br label %23
132: ; preds = %23
%133 = load i32, i32* %9
%134 = icmp ne i32 %133, 0
br i1 %134, label %145, label %135
135: ; preds = %132
%136 = load i32, i32* @stdin
%137 = call i32 @fileno(i32 %136)
%138 = call i32* @fdopen(i32 %137, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
store i32* %138, i32** %13
%139 = load i32*, i32** %13
%140 = load i32, i32* %6
%141 = load i8*, i8** %7
%142 = load i32, i32* %8
%143 = load i32, i32* %10
%144 = call i32 @process_input(i32* %139, i32 %140, i8* %141, i32 %142, i32 %143)
br label %145
145: ; preds = %135, %132
%146 = load i32, i32* %3
ret i32 %146
}

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 %82
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 1)
unreachable
12: ; preds = %73
%13 = icmp eq i32 %75, 0
br i1 %13, label %82, label %91
14: ; preds = %6, %73
%15 = phi i32 [ 0, %6 ], [ %79, %73 ]
%16 = phi i8* [ null, %6 ], [ %78, %73 ]
%17 = phi i32 [ 1, %6 ], [ %80, %73 ]
%18 = phi i32 [ 0, %6 ], [ %76, %73 ]
%19 = phi i32 [ 0, %6 ], [ %75, %73 ]
%20 = phi i32 [ 0, %6 ], [ %74, %73 ]
%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 %73, 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 1)
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 %73, 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 1)
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 %73
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 %73, 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 1)
unreachable
63: ; preds = %56
%64 = load i8*, i8** %22
%65 = tail call i32* @fopen(i8* %64, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%66 = icmp eq i32* %65, null
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 1)
unreachable
71: ; preds = %63
%72 = tail call i32 @process_input(i32* %65, i32 %15, i8* %16, i32 %20, i32 %18)
br label %73
73: ; preds = %52, %34, %14, %71, %48
%74 = phi i32 [ %20, %48 ], [ %20, %71 ], [ %20, %14 ], [ 1, %34 ], [ %20, %52 ]
%75 = phi i32 [ %19, %48 ], [ 1, %71 ], [ %19, %14 ], [ %19, %34 ], [ %19, %52 ]
%76 = phi i32 [ %18, %48 ], [ %18, %71 ], [ %18, %14 ], [ %18, %34 ], [ 1, %52 ]
%77 = phi i32 [ %43, %48 ], [ %17, %71 ], [ %17, %14 ], [ %17, %34 ], [ %17, %52 ]
%78 = phi i8* [ %51, %48 ], [ %16, %71 ], [ %16, %14 ], [ %16, %34 ], [ %16, %52 ]
%79 = phi i32 [ %15, %48 ], [ %15, %71 ], [ 1, %14 ], [ %15, %34 ], [ %15, %52 ]
%80 = add nsw i32 %77, 1
%81 = icmp slt i32 %80, %0
br i1 %81, label %14, label %12
82: ; preds = %4, %12
%83 = phi i32 [ %79, %12 ], [ 0, %4 ]
%84 = phi i8* [ %78, %12 ], [ null, %4 ]
%85 = phi i32 [ %76, %12 ], [ 0, %4 ]
%86 = phi i32 [ %74, %12 ], [ 0, %4 ]
%87 = load i32, i32* @stdin
%88 = tail call i32 @fileno(i32 %87)
%89 = tail call i32* @fdopen(i32 %88, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%90 = tail call i32 @process_input(i32* %89, i32 %83, i8* %84, i32 %86, i32 %85)
br label %91
91: ; preds = %82, %12
ret i32 0
}