#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 atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ parse(char *, char *, int *, char);
int /*<<< orphan*/ slit(int /*<<< orphan*/ *, int, int *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdin;
main(int argc, char *argv[]) {
  int i, ncol = 1, colnum[256];
  char num[8];
  FILE *fp;
  colnum[0] = 0;
  while (argc > 1 && argv[1][0] == '-') {
    if (argv[1][1] == 'c') {
      argc--;
      argv++;
      i = 0;
      ncol = 0;
      while (parse(argv[1], num, &i, ',') != 0 && ncol < 256) {
        colnum[ncol] = atoi(num) - 1;
        if (colnum[ncol] < 0) {
          (void)fprintf(stderr, "slit: bad column\n");
          exit(1);
        }
        ncol++;
      }
    } else {
      (void)fprintf(stderr, "%s: unknown arg %s\n", argv[0], argv[1]);
      exit(1);
    }
    argc--;
    argv++;
  }
  if (argc == 1) {
    slit(stdin, ncol, colnum);
  } else {
    for (i = 1; i < argc; i++) {
      if ((fp = fopen(argv[i], "r")) == NULL) {
        (void)fprintf(stderr, "slit: can't open %s\n", argv[i]);
        (void)fprintf(stderr, "Usage: slit [-c <chanstr>]");
        (void)fprintf(stderr, " [<filename>]\n");
        exit(1);
      } else {
        slit(fp, ncol, colnum);
        fclose(fp);
      }
    }
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x440,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x18(%rbp)
movl   $0x0,-0x420(%rbp)
xor    %eax,%eax
cmpl   $0x1,-0x8(%rbp)
mov    %al,-0x431(%rbp)
jle    11c3 <main+0x53>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
sete   %al
mov    %al,-0x431(%rbp)
mov    -0x431(%rbp),%al
test   $0x1,%al
jne    11d6 <main+0x66>
jmp    130f <main+0x19f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movsbl 0x1(%rax),%eax
cmp    $0x63,%eax
jne    12c5 <main+0x155>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x428(%rbp),%rsi
lea    -0x14(%rbp),%rdx
mov    $0x2c,%ecx
call   1080 <parse@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x432(%rbp)
je     1250 <main+0xe0>
cmpl   $0x100,-0x18(%rbp)
setl   %al
mov    %al,-0x432(%rbp)
mov    -0x432(%rbp),%al
test   $0x1,%al
jne    1263 <main+0xf3>
jmp    12c0 <main+0x150>
lea    -0x428(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,%ecx
sub    $0x1,%ecx
movslq -0x18(%rbp),%rax
mov    %ecx,-0x420(%rbp,%rax,4)
movslq -0x18(%rbp),%rax
cmpl   $0x0,-0x420(%rbp,%rax,4)
jge    12b2 <main+0x142>
mov    0x2d40(%rip),%rax
mov    (%rax),%edi
lea    0xd5f(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    120e <main+0x9e>
jmp    12f5 <main+0x185>
mov    0x2d0c(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rcx
lea    0xd2e(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
jmp    119a <main+0x2a>
cmpl   $0x1,-0x8(%rbp)
jne    1337 <main+0x1c7>
mov    0x2cc8(%rip),%rax
mov    (%rax),%rdi
mov    -0x18(%rbp),%esi
lea    -0x420(%rbp),%rdx
call   1050 <slit@plt>
jmp    1408 <main+0x298>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1403 <main+0x293>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcc9(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x430(%rbp)
cmp    $0x0,%rax
jne    13ce <main+0x25e>
mov    0x2c5e(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xc99(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c3b(%rip),%rax
mov    (%rax),%edi
lea    0xc97(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c24(%rip),%rax
mov    (%rax),%edi
lea    0xc9b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x430(%rbp),%rdi
mov    -0x18(%rbp),%esi
lea    -0x420(%rbp),%rdx
call   1050 <slit@plt>
mov    -0x430(%rbp),%rdi
call   1030 <fclose@plt>
jmp    13f5 <main+0x285>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    133e <main+0x1ce>
jmp    1408 <main+0x298>
xor    %edi,%edi
call   1090 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x428,%rsp
movl   $0x0,0x20(%rsp)
mov    $0x1,%r15d
cmp    $0x2,%edi
jl     1274 <main+0x104>
mov    %rsi,%rbp
mov    0x8(%rsi),%rcx
mov    $0x1,%ebx
cmpb   $0x2d,(%rcx)
jne    12aa <main+0x13a>
lea    0x18(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmpb   $0x63,0x1(%rcx)
jne    1370 <main+0x200>
mov    %rdi,%r13
movl   $0x0,0xc(%rsp)
lea    0x10(%rbp),%r14
mov    0x10(%rbp),%rdi
mov    %r12,%rsi
lea    0xc(%rsp),%rdx
mov    $0x2c,%ecx
call   1080 <parse@plt>
test   %rax,%rax
je     1250 <main+0xe0>
mov    %rbp,0x10(%rsp)
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
call   1070 <atoi@plt>
lea    -0x1(%rax),%ecx
mov    %ecx,0x20(%rsp,%rbp,4)
test   %eax,%eax
jle    1314 <main+0x1a4>
lea    0x1(%rbp),%r15
mov    (%r14),%rdi
mov    %r12,%rsi
lea    0xc(%rsp),%rdx
mov    $0x2c,%ecx
call   1080 <parse@plt>
test   %rax,%rax
je     1241 <main+0xd1>
cmp    $0xff,%rbp
mov    %r15,%rbp
jb     1200 <main+0x90>
mov    0x10(%rsp),%rbp
jmp    1253 <main+0xe3>
nopl   0x0(%rax,%rax,1)
xor    %r15d,%r15d
mov    %r13,%rax
add    $0xfffffffe,%r13d
cmp    $0x3,%eax
jle    1277 <main+0x107>
mov    0x18(%rbp),%rcx
cmpb   $0x2d,(%rcx)
mov    %r14,%rbp
mov    %r13d,%edi
je     11c0 <main+0x50>
jmp    12b6 <main+0x146>
mov    %edi,%r13d
cmp    $0x1,%r13d
jne    129b <main+0x12b>
mov    0x2d64(%rip),%rax
mov    (%rax),%rdi
lea    0x20(%rsp),%rdx
mov    %r15d,%esi
call   1050 <slit@plt>
xor    %edi,%edi
call   1090 <exit@plt>
movl   $0x1,0xc(%rsp)
xor    %edi,%edi
call   1090 <exit@plt>
mov    %edi,%r13d
mov    $0x1,%r15d
mov    %rbp,%r14
movl   $0x1,0xc(%rsp)
lea    0xd61(%rip),%r12
lea    0x20(%rsp),%rbp
nopw   0x0(%rax,%rax,1)
movslq %ebx,%rax
mov    (%r14,%rax,8),%rdi
mov    %r12,%rsi
call   1060 <fopen@plt>
test   %rax,%rax
je     1326 <main+0x1b6>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r15d,%esi
mov    %rbp,%rdx
call   1050 <slit@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
mov    0xc(%rsp),%ebx
add    $0x1,%ebx
mov    %ebx,0xc(%rsp)
cmp    %r13d,%ebx
jl     12d0 <main+0x160>
xor    %edi,%edi
call   1090 <exit@plt>
mov    0x2cbd(%rip),%rax
mov    (%rax),%edi
lea    0xcdc(%rip),%rsi
jmp    135f <main+0x1ef>
mov    0x2cab(%rip),%rbx
mov    (%rbx),%edi
movslq 0xc(%rsp),%rax
mov    (%r14,%rax,8),%rdx
lea    0xce9(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xcee(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xcf9(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    0x2c61(%rip),%rax
mov    (%rax),%edi
mov    0x0(%rbp),%rdx
lea    0xc8e(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [18 x i8] c"slit: bad column\0A\00"
@.str.1 = [20 x i8] c"%s: unknown arg %s\0A\00"
@stdin = global i32* null
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [21 x i8] c"slit: can't open %s\0A\00"
@.str.4 = [27 x i8] c"Usage: slit [-c <chanstr>]\00"
@.str.5 = [15 x i8] c" [<filename>]\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [256 x i32]
%9 = alloca [8 x i8]
%10 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %7
%11 = getelementptr inbounds [256 x i32], [256 x i32]* %8, i64 0, i64 0
store i32 0, i32* %11
br label %12
12: ; preds = %80, %2
%13 = load i32, i32* %4
%14 = icmp sgt i32 %13, 1
br i1 %14, label %15, label %23
15: ; preds = %12
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = getelementptr inbounds i8, i8* %18, i64 0
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 45
br label %23
23: ; preds = %15, %12
%24 = phi i1 [ false, %12 ], [ %22, %15 ]
br i1 %24, label %25, label %85
25: ; preds = %23
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = getelementptr inbounds i8, i8* %28, i64 1
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 99
br i1 %32, label %33, label %70
33: ; preds = %25
%34 = load i32, i32* %4
%35 = add nsw i32 %34, -1
store i32 %35, i32* %4
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i32 1
store i8** %37, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
br label %38
38: ; preds = %66, %33
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 1
%41 = load i8*, i8** %40
%42 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
%43 = call i64 @parse(i8* %41, i8* %42, i32* %6, i8 signext 44)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %38
%46 = load i32, i32* %7
%47 = icmp slt i32 %46, 256
br label %48
48: ; preds = %45, %38
%49 = phi i1 [ false, %38 ], [ %47, %45 ]
br i1 %49, label %50, label %69
50: ; preds = %48
%51 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
%52 = call i32 @atoi(i8* %51)
%53 = sub nsw i32 %52, 1
%54 = load i32, i32* %7
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [256 x i32], [256 x i32]* %8, i64 0, i64 %55
store i32 %53, i32* %56
%57 = load i32, i32* %7
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [256 x i32], [256 x i32]* %8, i64 0, i64 %58
%60 = load i32, i32* %59
%61 = icmp slt i32 %60, 0
br i1 %61, label %62, label %66
62: ; preds = %50
%63 = load i32, i32* @stderr
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%65 = call i32 @exit(i32 1)
unreachable
66: ; preds = %50
%67 = load i32, i32* %7
%68 = add nsw i32 %67, 1
store i32 %68, i32* %7
br label %38
69: ; preds = %48
br label %80
70: ; preds = %25
%71 = load i32, i32* @stderr
%72 = load i8**, i8*** %5
%73 = getelementptr inbounds i8*, i8** %72, i64 0
%74 = load i8*, i8** %73
%75 = load i8**, i8*** %5
%76 = getelementptr inbounds i8*, i8** %75, i64 1
%77 = load i8*, i8** %76
%78 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8* %74, i8* %77)
%79 = call i32 @exit(i32 1)
unreachable
80: ; preds = %69
%81 = load i32, i32* %4
%82 = add nsw i32 %81, -1
store i32 %82, i32* %4
%83 = load i8**, i8*** %5
%84 = getelementptr inbounds i8*, i8** %83, i32 1
store i8** %84, i8*** %5
br label %12
85: ; preds = %23
%86 = load i32, i32* %4
%87 = icmp eq i32 %86, 1
br i1 %87, label %88, label %93
88: ; preds = %85
%89 = load i32*, i32** @stdin
%90 = load i32, i32* %7
%91 = getelementptr inbounds [256 x i32], [256 x i32]* %8, i64 0, i64 0
%92 = call i32 @slit(i32* %89, i32 %90, i32* %91)
br label %131
93: ; preds = %85
store i32 1, i32* %6
br label %94
94: ; preds = %127, %93
%95 = load i32, i32* %6
%96 = load i32, i32* %4
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %130
98: ; preds = %94
%99 = load i8**, i8*** %5
%100 = load i32, i32* %6
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8*, i8** %99, i64 %101
%103 = load i8*, i8** %102
%104 = call i32* @fopen(i8* %103, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %104, i32** %10
%105 = icmp eq i32* %104, null
br i1 %105, label %106, label %119
106: ; preds = %98
%107 = load i32, i32* @stderr
%108 = load i8**, i8*** %5
%109 = load i32, i32* %6
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8*, i8** %108, i64 %110
%112 = load i8*, i8** %111
%113 = call i32 (i32, i8*, ...) @fprintf(i32 %107, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* %112)
%114 = load i32, i32* @stderr
%115 = call i32 (i32, i8*, ...) @fprintf(i32 %114, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%116 = load i32, i32* @stderr
%117 = call i32 (i32, i8*, ...) @fprintf(i32 %116, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%118 = call i32 @exit(i32 1)
unreachable
119: ; preds = %98
%120 = load i32*, i32** %10
%121 = load i32, i32* %7
%122 = getelementptr inbounds [256 x i32], [256 x i32]* %8, i64 0, i64 0
%123 = call i32 @slit(i32* %120, i32 %121, i32* %122)
%124 = load i32*, i32** %10
%125 = call i32 @fclose(i32* %124)
br label %126
126: ; preds = %119
br label %127
127: ; preds = %126
%128 = load i32, i32* %6
%129 = add nsw i32 %128, 1
store i32 %129, i32* %6
br label %94
130: ; preds = %94
br label %131
131: ; preds = %130, %88
%132 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [18 x i8] c"slit: bad column\0A\00"
@.str.1 = [20 x i8] c"%s: unknown arg %s\0A\00"
@stdin = global i32* null
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [21 x i8] c"slit: can't open %s\0A\00"
@.str.4 = [27 x i8] c"Usage: slit [-c <chanstr>]\00"
@.str.5 = [15 x i8] c" [<filename>]\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca [256 x i32]
%5 = alloca [8 x i8]
%6 = bitcast i32* %3 to i8*
%7 = bitcast [256 x i32]* %4 to i8*
%8 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 0
%9 = getelementptr inbounds [256 x i32], [256 x i32]* %4, i64 0, i64 0
store i32 0, i32* %9
%10 = icmp sgt i32 %0, 1
br i1 %10, label %11, label %61
11: ; preds = %2
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = load i8, i8* %13
%15 = icmp eq i8 %14, 45
br i1 %15, label %21, label %66
16: ; preds = %57
%17 = getelementptr inbounds i8*, i8** %23, i64 3
%18 = load i8*, i8** %17
%19 = load i8, i8* %18
%20 = icmp eq i8 %19, 45
br i1 %20, label %21, label %66
21: ; preds = %11, %16
%22 = phi i8* [ %18, %16 ], [ %13, %11 ]
%23 = phi i8** [ %29, %16 ], [ %1, %11 ]
%24 = phi i32 [ %59, %16 ], [ %0, %11 ]
%25 = getelementptr inbounds i8, i8* %22, i64 1
%26 = load i8, i8* %25
%27 = icmp eq i8 %26, 99
br i1 %27, label %28, label %50
28: ; preds = %21
store i32 0, i32* %3
%29 = getelementptr inbounds i8*, i8** %23, i64 2
%30 = load i8*, i8** %29
%31 = call i64 @parse(i8* %30, i8* %8, i32* %3, i8 signext 44)
%32 = icmp eq i64 %31, 0
br i1 %32, label %57, label %33
33: ; preds = %28, %43
%34 = phi i64 [ %44, %43 ], [ 0, %28 ]
%35 = call i32 @atoi(i8* %8)
%36 = add nsw i32 %35, -1
%37 = getelementptr inbounds [256 x i32], [256 x i32]* %4, i64 0, i64 %34
store i32 %36, i32* %37
%38 = icmp slt i32 %35, 1
br i1 %38, label %39, label %43
39: ; preds = %33
%40 = load i32, i32* @stderr
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%42 = call i32 @exit(i32 1)
unreachable
43: ; preds = %33
%44 = add nuw nsw i64 %34, 1
%45 = load i8*, i8** %29
%46 = call i64 @parse(i8* %45, i8* %8, i32* %3, i8 signext 44)
%47 = icmp ne i64 %46, 0
%48 = icmp ult i64 %34, 255
%49 = select i1 %47, i1 %48, i1 false
br i1 %49, label %33, label %55
50: ; preds = %21
%51 = load i32, i32* @stderr
%52 = load i8*, i8** %23
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8* %52, i8* %22)
%54 = call i32 @exit(i32 1)
unreachable
55: ; preds = %43
%56 = trunc i64 %44 to i32
br label %57
57: ; preds = %55, %28
%58 = phi i32 [ 0, %28 ], [ %56, %55 ]
%59 = add nsw i32 %24, -2
%60 = icmp sgt i32 %24, 3
br i1 %60, label %16, label %61
61: ; preds = %57, %2
%62 = phi i32 [ 1, %2 ], [ %58, %57 ]
%63 = phi i32 [ %0, %2 ], [ %59, %57 ]
%64 = icmp eq i32 %63, 1
br i1 %64, label %70, label %65
65: ; preds = %61
store i32 1, i32* %3
br label %98
66: ; preds = %16, %11
%67 = phi i32 [ %0, %11 ], [ %59, %16 ]
%68 = phi i32 [ 1, %11 ], [ %58, %16 ]
%69 = phi i8** [ %1, %11 ], [ %29, %16 ]
store i32 1, i32* %3
br label %73
70: ; preds = %61
%71 = load i32*, i32** @stdin
%72 = call i32 @slit(i32* %71, i32 %62, i32* %9)
br label %98
73: ; preds = %66, %92
%74 = phi i32 [ %96, %92 ], [ 1, %66 ]
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8*, i8** %69, i64 %75
%77 = load i8*, i8** %76
%78 = call i32* @fopen(i8* %77, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%79 = icmp eq i32* %78, null
br i1 %79, label %80, label %92
80: ; preds = %73
%81 = load i32, i32* @stderr
%82 = load i32, i32* %3
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8*, i8** %69, i64 %83
%85 = load i8*, i8** %84
%86 = call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* %85)
%87 = load i32, i32* @stderr
%88 = call i32 (i32, i8*, ...) @fprintf(i32 %87, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%89 = load i32, i32* @stderr
%90 = call i32 (i32, i8*, ...) @fprintf(i32 %89, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%91 = call i32 @exit(i32 1)
unreachable
92: ; preds = %73
%93 = call i32 @slit(i32* %78, i32 %68, i32* %9)
%94 = call i32 @fclose(i32* %78)
%95 = load i32, i32* %3
%96 = add nsw i32 %95, 1
store i32 %96, i32* %3
%97 = icmp slt i32 %96, %67
br i1 %97, label %73, label %98
98: ; preds = %92, %65, %70
%99 = call i32 @exit(i32 0)
unreachable
}