#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 */
struct stat {
  int /*<<< orphan*/ st_mode;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ S_ISDIR(int /*<<< orphan*/);
int /*<<< orphan*/ argz_add(char **, size_t *, char *);
int /*<<< orphan*/ argz_find(char *, size_t, char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(char *);
int fscanf(int /*<<< orphan*/ *, char *, char **);
int getline(char **, size_t *, int /*<<< orphan*/ *);
int /*<<< orphan*/ puts(char *);
int stat(char *, struct stat *);
int /*<<< orphan*/ stderr;
char *strtok(char *, char *);
int main(void) {
  FILE *out;
  {
    struct stat st;
    if (stat("data", &st) == -1 || !S_ISDIR(st.st_mode)) {
      fprintf(
          stderr,
          "Can't find data/ dir. Are you running this from the right place?\n");
      return 1;
    }
    out = fopen("data/core.data", "r");
    if (out) {
      fprintf(stderr, "data/core.data already exists, exiting.\n");
      return 1;
    }
    out = fopen("data/core.data", "w");
    if (!out) {
      fprintf(stderr, "can't open data/core.data for writing.\n");
      return 1;
    }
  }
  puts("Starting conversion...");
  char *chans = NULL;
  size_t chans_len = 0;
  FILE *in = fopen("data/chans.data", "r");
  if (in) {
    char *c;
    while (fscanf(in, "%ms", &c) == 1) {
      argz_add(&chans, &chans_len, c);
      free(c);
    }
    fclose(in);
  }
  char *line = NULL;
  size_t line_len = 0;
  in = fopen("data/meta.data", "r");
  if (in) {
    while (getline(&line, &line_len, in) != -1) {
      char *chan = strtok(line, "\r\n\t ");
      if (!chan)
        continue;
      if (!argz_find(chans, chans_len, chan)) {
        fputc(';', out);
      }
      fprintf(out, "%s\t", chan);
      char *mod;
      while ((mod = strtok(NULL, "\r\n\t "))) {
        fprintf(out, "%s ", mod);
      }
      fputc('\n', out);
    }
  }
  puts("Done!");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xef5(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0xffffffff,%eax
je     1209 <main+0x39>
mov    -0x18(%rbp),%edi
call   1060 <S_ISDIR@plt>
cmp    $0x0,%eax
jne    122d <main+0x5d>
mov    0x2dd0(%rip),%rax
movslq (%rax),%rdi
lea    0xde6(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1458 <main+0x288>
lea    0xe0e(%rip),%rdi
lea    0xe16(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1273 <main+0xa3>
mov    0x2d8a(%rip),%rax
movslq (%rax),%rdi
lea    0xdf3(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1458 <main+0x288>
lea    0xdc8(%rip),%rdi
lea    0xdfb(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    12b9 <main+0xe9>
mov    0x2d44(%rip),%rax
movslq (%rax),%rdi
lea    0xdd8(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1458 <main+0x288>
lea    0xde6(%rip),%rdi
call   1040 <puts@plt>
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
lea    0xde1(%rip),%rdi
lea    0xd6e(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1341 <main+0x171>
jmp    12fc <main+0x12c>
mov    -0x30(%rbp),%rdi
lea    0xdc6(%rip),%rsi
lea    -0x38(%rbp),%rdx
call   1070 <fscanf@plt>
cmp    $0x1,%eax
jne    1338 <main+0x168>
mov    -0x38(%rbp),%rdx
lea    -0x20(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1080 <argz_add@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
jmp    12fc <main+0x12c>
mov    -0x30(%rbp),%rdi
call   1050 <fclose@plt>
movq   $0x0,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
lea    0xd79(%rip),%rdi
lea    0xcf2(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1445 <main+0x275>
jmp    1378 <main+0x1a8>
mov    -0x30(%rbp),%rdx
lea    -0x40(%rbp),%rdi
lea    -0x48(%rbp),%rsi
call   10f0 <getline@plt>
cmp    $0xffffffff,%eax
je     1440 <main+0x270>
mov    -0x40(%rbp),%rdi
lea    0xd43(%rip),%rsi
call   10e0 <strtok@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    13b6 <main+0x1e6>
jmp    1378 <main+0x1a8>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x50(%rbp),%rdx
call   10c0 <argz_find@plt>
cmp    $0x0,%eax
jne    13de <main+0x20e>
mov    -0x10(%rbp),%rsi
mov    $0x3b,%edi
call   1090 <fputc@plt>
mov    -0x10(%rbp),%rdi
mov    -0x50(%rbp),%rdx
lea    0xcf8(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xce1(%rip),%rsi
call   10e0 <strtok@plt>
mov    %rax,-0x58(%rbp)
cmp    $0x0,%rax
je     142d <main+0x25d>
mov    -0x10(%rbp),%rdi
mov    -0x58(%rbp),%rdx
lea    0xcc8(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
jmp    13f4 <main+0x224>
mov    -0x10(%rbp),%rsi
mov    $0xa,%edi
call   1090 <fputc@plt>
jmp    1378 <main+0x1a8>
jmp    1445 <main+0x275>
lea    0xca1(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xee6(%rip),%rdi
lea    0x10(%rsp),%rsi
call   10b0 <stat@plt>
cmp    $0xffffffff,%eax
je     1241 <main+0x61>
mov    0x10(%rsp),%edi
call   1060 <S_ISDIR@plt>
test   %eax,%eax
je     1241 <main+0x61>
lea    0xe2a(%rip),%rdi
lea    0xe32(%rip),%rsi
call   10d0 <fopen@plt>
test   %rax,%rax
je     1275 <main+0x95>
mov    0x2db0(%rip),%rax
movslq (%rax),%rcx
lea    0xe19(%rip),%rdi
mov    $0x28,%esi
jmp    1257 <main+0x77>
mov    0x2d98(%rip),%rax
movslq (%rax),%rcx
lea    0xdae(%rip),%rdi
mov    $0x41,%esi
mov    $0x1,%edx
call   1100 <fwrite@plt>
mov    $0x1,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xdc6(%rip),%rdi
lea    0xdf9(%rip),%rsi
call   10d0 <fopen@plt>
test   %rax,%rax
je     1448 <main+0x268>
mov    %rax,%rbx
lea    0xe0b(%rip),%rdi
call   1040 <puts@plt>
movq   $0x0,0x10(%rsp)
movq   $0x0,0x20(%rsp)
lea    0xe04(%rip),%rdi
lea    0xd91(%rip),%rsi
call   10d0 <fopen@plt>
test   %rax,%rax
je     1335 <main+0x155>
mov    %rax,%rbp
lea    0xdf9(%rip),%rsi
lea    0x8(%rsp),%rdx
mov    %rax,%rdi
call   1070 <fscanf@plt>
cmp    $0x1,%eax
jne    132d <main+0x14d>
lea    0x10(%rsp),%r14
lea    0x20(%rsp),%r15
lea    0xdd6(%rip),%r12
lea    0x8(%rsp),%r13
nopl   0x0(%rax)
mov    0x8(%rsp),%rdx
mov    %r14,%rdi
mov    %r15,%rsi
call   1080 <argz_add@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
call   1070 <fscanf@plt>
cmp    $0x1,%eax
je     1300 <main+0x120>
mov    %rbp,%rdi
call   1050 <fclose@plt>
movq   $0x0,0x8(%rsp)
movq   $0x0,0x18(%rsp)
lea    0xd83(%rip),%rdi
lea    0xcfc(%rip),%rsi
call   10d0 <fopen@plt>
test   %rax,%rax
je     1435 <main+0x255>
mov    %rax,%r14
lea    0x8(%rsp),%rdi
lea    0x18(%rsp),%rsi
mov    %rax,%rdx
call   10f0 <getline@plt>
cmp    $0xffffffff,%eax
je     1435 <main+0x255>
lea    0xd58(%rip),%r15
lea    0x18(%rsp),%r13
lea    0xd55(%rip),%rbp
jmp    13c2 <main+0x1e2>
cs nopw 0x0(%rax,%rax,1)
mov    $0xa,%edi
mov    %rbx,%rsi
call   1090 <fputc@plt>
lea    0x8(%rsp),%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   10f0 <getline@plt>
cmp    $0xffffffff,%eax
je     1435 <main+0x255>
mov    0x8(%rsp),%rdi
mov    %r15,%rsi
call   10e0 <strtok@plt>
test   %rax,%rax
je     13ad <main+0x1cd>
mov    %rax,%r12
mov    0x10(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    %rax,%rdx
call   10c0 <argz_find@plt>
test   %eax,%eax
jne    13fa <main+0x21a>
mov    $0x3b,%edi
mov    %rbx,%rsi
call   1090 <fputc@plt>
mov    %rbx,%rdi
lea    0xce1(%rip),%rsi
mov    %r12,%rdx
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   10a0 <fprintf@plt>
xor    %edi,%edi
mov    %r15,%rsi
call   10e0 <strtok@plt>
test   %rax,%rax
je     13a0 <main+0x1c0>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %rax,%rdx
jmp    1410 <main+0x230>
lea    0xcb1(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
jmp    1266 <main+0x86>
mov    0x2b91(%rip),%rax
movslq (%rax),%rcx
lea    0xc25(%rip),%rdi
mov    $0x27,%esi
jmp    1257 <main+0x77>

LLVM IR (-O0):
%struct.stat = type { i32 }
@.str = [5 x i8] c"data\00"
@stderr = global i32 0
@.str.1 = [66 x i8] c"Can't find data/ dir. Are you running this from the right place?\0A\00"
@.str.2 = [15 x i8] c"data/core.data\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [41 x i8] c"data/core.data already exists, exiting.\0A\00"
@.str.5 = [2 x i8] c"w\00"
@.str.6 = [40 x i8] c"can't open data/core.data for writing.\0A\00"
@.str.7 = [23 x i8] c"Starting conversion...\00"
@.str.8 = [16 x i8] c"data/chans.data\00"
@.str.9 = [4 x i8] c"%ms\00"
@.str.10 = [15 x i8] c"data/meta.data\00"
@.str.11 = [5 x i8] c"\0D\0A\09 \00"
@.str.12 = [4 x i8] c"%s\09\00"
@.str.13 = [4 x i8] c"%s \00"
@.str.14 = [6 x i8] c"Done!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca %struct.stat
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i8*
store i32 0, i32* %1
%12 = call i32 @stat(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), %struct.stat* %3)
%13 = icmp eq i32 %12, -1
br i1 %13, label %19, label %14
14: ; preds = %0
%15 = getelementptr inbounds %struct.stat, %struct.stat* %3, i32 0, i32 0
%16 = load i32, i32* %15
%17 = call i32 @S_ISDIR(i32 %16)
%18 = icmp ne i32 %17, 0
br i1 %18, label %24, label %19
19: ; preds = %14, %0
%20 = load i32, i32* @stderr
%21 = sext i32 %20 to i64
%22 = inttoptr i64 %21 to i32*
%23 = call i32 (i32*, i8*, ...) @fprintf(i32* %22, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %1
br label %101
24: ; preds = %14
%25 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %25, i32** %2
%26 = load i32*, i32** %2
%27 = icmp ne i32* %26, null
br i1 %27, label %28, label %33
28: ; preds = %24
%29 = load i32, i32* @stderr
%30 = sext i32 %29 to i64
%31 = inttoptr i64 %30 to i32*
%32 = call i32 (i32*, i8*, ...) @fprintf(i32* %31, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %1
br label %101
33: ; preds = %24
%34 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32* %34, i32** %2
%35 = load i32*, i32** %2
%36 = icmp ne i32* %35, null
br i1 %36, label %42, label %37
37: ; preds = %33
%38 = load i32, i32* @stderr
%39 = sext i32 %38 to i64
%40 = inttoptr i64 %39 to i32*
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
store i32 1, i32* %1
br label %101
42: ; preds = %33
%43 = call i32 @puts(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
store i8* null, i8** %4
store i64 0, i64* %5
%44 = call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %44, i32** %6
%45 = load i32*, i32** %6
%46 = icmp ne i32* %45, null
br i1 %46, label %47, label %60
47: ; preds = %42
br label %48
48: ; preds = %52, %47
%49 = load i32*, i32** %6
%50 = call i32 @fscanf(i32* %49, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8** %7)
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %57
52: ; preds = %48
%53 = load i8*, i8** %7
%54 = call i32 @argz_add(i8** %4, i64* %5, i8* %53)
%55 = load i8*, i8** %7
%56 = call i32 @free(i8* %55)
br label %48
57: ; preds = %48
%58 = load i32*, i32** %6
%59 = call i32 @fclose(i32* %58)
br label %60
60: ; preds = %57, %42
store i8* null, i8** %8
store i64 0, i64* %9
%61 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %61, i32** %6
%62 = load i32*, i32** %6
%63 = icmp ne i32* %62, null
br i1 %63, label %64, label %99
64: ; preds = %60
br label %65
65: ; preds = %95, %74, %64
%66 = load i32*, i32** %6
%67 = call i32 @getline(i8** %8, i64* %9, i32* %66)
%68 = icmp ne i32 %67, -1
br i1 %68, label %69, label %98
69: ; preds = %65
%70 = load i8*, i8** %8
%71 = call i8* @strtok(i8* %70, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
store i8* %71, i8** %10
%72 = load i8*, i8** %10
%73 = icmp ne i8* %72, null
br i1 %73, label %75, label %74
74: ; preds = %69
br label %65
75: ; preds = %69
%76 = load i8*, i8** %4
%77 = load i64, i64* %5
%78 = load i8*, i8** %10
%79 = call i32 @argz_find(i8* %76, i64 %77, i8* %78)
%80 = icmp ne i32 %79, 0
br i1 %80, label %84, label %81
81: ; preds = %75
%82 = load i32*, i32** %2
%83 = call i32 @fputc(i8 signext 59, i32* %82)
br label %84
84: ; preds = %81, %75
%85 = load i32*, i32** %2
%86 = load i8*, i8** %10
%87 = call i32 (i32*, i8*, ...) @fprintf(i32* %85, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i8* %86)
br label %88
88: ; preds = %91, %84
%89 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
store i8* %89, i8** %11
%90 = icmp ne i8* %89, null
br i1 %90, label %91, label %95
91: ; preds = %88
%92 = load i32*, i32** %2
%93 = load i8*, i8** %11
%94 = call i32 (i32*, i8*, ...) @fprintf(i32* %92, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i8* %93)
br label %88
95: ; preds = %88
%96 = load i32*, i32** %2
%97 = call i32 @fputc(i8 signext 10, i32* %96)
br label %65
98: ; preds = %65
br label %99
99: ; preds = %98, %60
%100 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %1
br label %101
101: ; preds = %99, %37, %28, %19
%102 = load i32, i32* %1
ret i32 %102
}

LLVM IR (-O2):
%struct.stat = type { i32 }
@.str = [5 x i8] c"data\00"
@stderr = global i32 0
@.str.1 = [66 x i8] c"Can't find data/ dir. Are you running this from the right place?\0A\00"
@.str.2 = [15 x i8] c"data/core.data\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [41 x i8] c"data/core.data already exists, exiting.\0A\00"
@.str.5 = [2 x i8] c"w\00"
@.str.6 = [40 x i8] c"can't open data/core.data for writing.\0A\00"
@.str.7 = [23 x i8] c"Starting conversion...\00"
@.str.8 = [16 x i8] c"data/chans.data\00"
@.str.9 = [4 x i8] c"%ms\00"
@.str.10 = [15 x i8] c"data/meta.data\00"
@.str.11 = [5 x i8] c"\0D\0A\09 \00"
@.str.12 = [4 x i8] c"%s\09\00"
@.str.13 = [4 x i8] c"%s \00"
@.str.14 = [6 x i8] c"Done!\00"
define i32 @main() {
%1 = alloca %struct.stat
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64
%7 = bitcast %struct.stat* %1 to i8*
%8 = call i32 @stat(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), %struct.stat* %1)
%9 = icmp eq i32 %8, -1
br i1 %9, label %15, label %10
10: ; preds = %0
%11 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 0
%12 = load i32, i32* %11
%13 = tail call i32 @S_ISDIR(i32 %12)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %10, %0
%16 = load i32, i32* @stderr
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to i32*
%19 = tail call i64 @fwrite(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0), i64 65, i64 1, i32* %18)
br label %36
20: ; preds = %10
%21 = tail call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%22 = icmp eq i32* %21, null
br i1 %22, label %28, label %23
23: ; preds = %20
%24 = load i32, i32* @stderr
%25 = sext i32 %24 to i64
%26 = inttoptr i64 %25 to i32*
%27 = tail call i64 @fwrite(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), i64 40, i64 1, i32* %26)
br label %36
28: ; preds = %20
%29 = tail call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%30 = icmp eq i32* %29, null
br i1 %30, label %31, label %37
31: ; preds = %28
%32 = load i32, i32* @stderr
%33 = sext i32 %32 to i64
%34 = inttoptr i64 %33 to i32*
%35 = tail call i64 @fwrite(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i64 39, i64 1, i32* %34)
br label %36
36: ; preds = %15, %23, %31
br label %91
37: ; preds = %28
%38 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%39 = bitcast i8** %2 to i8*
store i8* null, i8** %2
%40 = bitcast i64* %3 to i8*
store i64 0, i64* %3
%41 = tail call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%42 = icmp eq i32* %41, null
br i1 %42, label %56, label %43
43: ; preds = %37
%44 = bitcast i8** %4 to i8*
%45 = call i32 @fscanf(i32* %41, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8** %4)
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %54
47: ; preds = %43, %47
%48 = load i8*, i8** %4
%49 = call i32 @argz_add(i8** %2, i64* %3, i8* %48)
%50 = load i8*, i8** %4
%51 = call i32 @free(i8* %50)
%52 = call i32 @fscanf(i32* %41, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8** %4)
%53 = icmp eq i32 %52, 1
br i1 %53, label %47, label %54
54: ; preds = %47, %43
%55 = call i32 @fclose(i32* %41)
br label %56
56: ; preds = %54, %37
%57 = bitcast i8** %5 to i8*
store i8* null, i8** %5
%58 = bitcast i64* %6 to i8*
store i64 0, i64* %6
%59 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%60 = icmp eq i32* %59, null
br i1 %60, label %89, label %61
61: ; preds = %56
%62 = call i32 @getline(i8** %5, i64* %6, i32* %59)
%63 = icmp eq i32 %62, -1
br i1 %63, label %89, label %64
64: ; preds = %61, %86
%65 = load i8*, i8** %5
%66 = call i8* @strtok(i8* %65, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%67 = icmp eq i8* %66, null
br i1 %67, label %86, label %68
68: ; preds = %64
%69 = load i8*, i8** %2
%70 = load i64, i64* %3
%71 = call i32 @argz_find(i8* %69, i64 %70, i8* %66)
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %68
%74 = call i32 @fputc(i8 signext 59, i32* %29)
br label %75
75: ; preds = %73, %68
%76 = call i32 (i32*, i8*, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i8* %66)
%77 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%78 = icmp eq i8* %77, null
br i1 %78, label %84, label %79
79: ; preds = %75, %79
%80 = phi i8* [ %82, %79 ], [ %77, %75 ]
%81 = call i32 (i32*, i8*, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i8* %80)
%82 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%83 = icmp eq i8* %82, null
br i1 %83, label %84, label %79
84: ; preds = %79, %75
%85 = call i32 @fputc(i8 signext 10, i32* %29)
br label %86
86: ; preds = %64, %84
%87 = call i32 @getline(i8** %5, i64* %6, i32* %59)
%88 = icmp eq i32 %87, -1
br i1 %88, label %89, label %64
89: ; preds = %86, %61, %56
%90 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
br label %91
91: ; preds = %36, %89
%92 = phi i32 [ 0, %89 ], [ 1, %36 ]
ret i32 %92
}