#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ stderr;
char *strchr(char *, char);
int main(int argc, char **argv) {
  char line[200];
  char *p1, *p2;
  char *p;
  FILE *fd;
  if (argc <= 1) {
    fprintf(stderr, "Usage: doctags docfile ... >tags\n");
    exit(1);
  }
  printf("help-tags\ttags\t1\n");
  while (--argc > 0) {
    ++argv;
    fd = fopen(argv[0], "r");
    if (fd == NULL) {
      fprintf(stderr, "Unable to open %s for reading\n", argv[0]);
      continue;
    }
    while (fgets(line, 200, fd) != NULL) {
      p1 = strchr(line, '*');
      while (p1 != NULL) {
        p2 = strchr(p1 + 1, '*');
        if (p2 != NULL && p2 > p1 + 1) {
          for (p = p1 + 1; p < p2; ++p)
            if (*p == ' ' || *p == '\t' || *p == '|')
              break;
          if (p == p2 && (p1 == line || p1[-1] == ' ' || p1[-1] == '\t') &&
              (strchr(" \t\n\r", p[1]) != NULL || p[1] == '\0')) {
            *p2 = '\0';
            ++p1;
            printf("%s\t%s\t/*", p1, argv[0]);
            while (*p1) {
              if (*p1 == '\\' || *p1 == '/')
                putchar('\\');
              putchar(*p1);
              ++p1;
            }
            printf("*\n");
            p2 = strchr(p2 + 1, '*');
          }
        }
        p1 = p2;
      }
    }
    fclose(fd);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jg     11c4 <main+0x44>
mov    0x2e36(%rip),%rax
mov    (%rax),%edi
lea    0xe4d(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
jle    14cb <main+0x34b>
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xe36(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x100(%rbp)
cmpq   $0x0,-0x100(%rbp)
jne    123b <main+0xbb>
mov    0x2dc1(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe07(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    11d2 <main+0x52>
jmp    1240 <main+0xc0>
lea    -0xe0(%rbp),%rdi
mov    -0x100(%rbp),%rdx
mov    $0xc8,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     14ba <main+0x33a>
lea    -0xe0(%rbp),%rdi
mov    $0x2a,%esi
call   1050 <strchr@plt>
mov    %rax,-0xe8(%rbp)
cmpq   $0x0,-0xe8(%rbp)
je     14b5 <main+0x335>
mov    -0xe8(%rbp),%rdi
add    $0x1,%rdi
mov    $0x2a,%esi
call   1050 <strchr@plt>
mov    %rax,-0xf0(%rbp)
cmpq   $0x0,-0xf0(%rbp)
je     14a2 <main+0x322>
mov    -0xf0(%rbp),%rax
mov    -0xe8(%rbp),%rcx
add    $0x1,%rcx
cmp    %rcx,%rax
jbe    14a2 <main+0x322>
mov    -0xe8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xf8(%rbp)
mov    -0xf8(%rbp),%rax
cmp    -0xf0(%rbp),%rax
jae    134d <main+0x1cd>
mov    -0xf8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     132c <main+0x1ac>
mov    -0xf8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
je     132c <main+0x1ac>
mov    -0xf8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7c,%eax
jne    1331 <main+0x1b1>
jmp    134d <main+0x1cd>
jmp    1336 <main+0x1b6>
mov    -0xf8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xf8(%rbp)
jmp    12df <main+0x15f>
mov    -0xf8(%rbp),%rax
cmp    -0xf0(%rbp),%rax
jne    149d <main+0x31d>
mov    -0xe8(%rbp),%rax
lea    -0xe0(%rbp),%rcx
cmp    %rcx,%rax
je     13a0 <main+0x220>
mov    -0xe8(%rbp),%rax
movsbl -0x1(%rax),%eax
cmp    $0x20,%eax
je     13a0 <main+0x220>
mov    -0xe8(%rbp),%rax
movsbl -0x1(%rax),%eax
cmp    $0x9,%eax
jne    149d <main+0x31d>
mov    -0xf8(%rbp),%rax
lea    0xca7(%rip),%rdi
movsbl 0x1(%rax),%esi
call   1050 <strchr@plt>
cmp    $0x0,%rax
jne    13d5 <main+0x255>
mov    -0xf8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x0,%eax
jne    149d <main+0x31d>
mov    -0xf0(%rbp),%rax
movb   $0x0,(%rax)
mov    -0xe8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xe8(%rbp)
mov    -0xe8(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xc54(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xe8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1473 <main+0x2f3>
mov    -0xe8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5c,%eax
je     1443 <main+0x2c3>
mov    -0xe8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
jne    144d <main+0x2cd>
mov    $0x5c,%edi
call   1030 <putchar@plt>
mov    -0xe8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <putchar@plt>
mov    -0xe8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xe8(%rbp)
jmp    140d <main+0x28d>
lea    0xbe9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xf0(%rbp),%rdi
add    $0x1,%rdi
mov    $0x2a,%esi
call   1050 <strchr@plt>
mov    %rax,-0xf0(%rbp)
jmp    14a2 <main+0x322>
mov    -0xf0(%rbp),%rax
mov    %rax,-0xe8(%rbp)
jmp    127a <main+0xfa>
jmp    1240 <main+0xc0>
mov    -0x100(%rbp),%rdi
call   1040 <fclose@plt>
jmp    11d2 <main+0x52>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
cmp    $0x1,%edi
jle    13b3 <main+0x223>
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xe9b(%rip),%rdi
call   1040 <puts@plt>
lea    0x10(%rsp),%r13
jmp    11ef <main+0x5f>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r12,%rdi
call   1050 <fclose@plt>
mov    (%rsp),%rbx
mov    0x8(%rsp),%rbp
lea    -0x1(%rbp),%eax
cmp    $0x2,%ebp
mov    %eax,%ebp
jle    139f <main+0x20f>
mov    0x8(%rbx),%rdi
add    $0x8,%rbx
lea    0xe24(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     1380 <main+0x1f0>
mov    %rax,%r12
mov    %rbp,0x8(%rsp)
mov    %rbx,(%rsp)
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    $0xc8,%esi
mov    %r12,%rdx
call   1080 <fgets@plt>
test   %rax,%rax
je     11d0 <main+0x40>
mov    %r13,%rdi
mov    $0x2a,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     1220 <main+0x90>
mov    %rax,%r14
jmp    1258 <main+0xc8>
nopl   0x0(%rax)
mov    %rbp,%r14
test   %rbp,%rbp
je     1220 <main+0x90>
lea    0x1(%r14),%r15
mov    %r15,%rdi
mov    $0x2a,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     1220 <main+0x90>
mov    %rax,%rbp
cmp    %r15,%rax
jbe    1250 <main+0xc0>
mov    %rbp,%rcx
sub    %r14,%rcx
mov    $0x1,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movzbl (%r14,%rax,1),%edx
cmp    $0x9,%dl
je     12c0 <main+0x130>
cmp    $0x20,%dl
je     12c0 <main+0x130>
cmp    $0x7c,%dl
je     12c0 <main+0x130>
add    $0x1,%rax
cmp    %rax,%rcx
jne    1290 <main+0x100>
mov    %rbp,%rax
cmp    %rbp,%rax
jne    1250 <main+0xc0>
jmp    12c8 <main+0x138>
nopw   0x0(%rax,%rax,1)
add    %r14,%rax
cmp    %rbp,%rax
jne    1250 <main+0xc0>
cmp    %r13,%r14
je     12dd <main+0x14d>
mov    -0x1(%r14),%al
cmp    $0x20,%al
je     12dd <main+0x14d>
cmp    $0x9,%al
jne    1250 <main+0xc0>
movsbl 0x1(%rbp),%ebx
lea    0xd5b(%rip),%rdi
mov    %ebx,%esi
call   1060 <strchr@plt>
test   %ebx,%ebx
je     12fc <main+0x16c>
test   %rax,%rax
je     1250 <main+0xc0>
mov    %rbp,%rbx
add    $0x1,%rbx
movb   $0x0,0x0(%rbp)
mov    (%rsp),%rax
mov    (%rax),%rdx
lea    0xd33(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    134a <main+0x1ba>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0x5c,%edi
call   1030 <putchar@plt>
movzbl (%r15),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
add    $0x1,%r15
movzbl (%r15),%eax
cmp    $0x2f,%al
je     1330 <main+0x1a0>
cmp    $0x5c,%al
je     1330 <main+0x1a0>
test   %al,%al
jne    133e <main+0x1ae>
lea    0xcee(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    $0x2a,%esi
call   1060 <strchr@plt>
mov    %rax,%rbp
jmp    1250 <main+0xc0>
nopl   0x0(%rax,%rax,1)
mov    0x2c59(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xc91(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
jmp    11e1 <main+0x51>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c26(%rip),%rax
mov    (%rax),%edi
lea    0xc3d(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [34 x i8] c"Usage: doctags docfile ... >tags\0A\00"
@.str.1 = [18 x i8] c"help-tags\09tags\091\0A\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [31 x i8] c"Unable to open %s for reading\0A\00"
@.str.4 = [5 x i8] c" \09\0A\0D\00"
@.str.5 = [9 x i8] c"%s\09%s\09/*\00"
@.str.6 = [3 x i8] c"*\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [200 x i8]
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = load i32, i32* %4
%12 = icmp sle i32 %11, 1
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @exit(i32 1)
unreachable
17: ; preds = %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %160, %32, %17
%20 = load i32, i32* %4
%21 = add nsw i32 %20, -1
store i32 %21, i32* %4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %163
23: ; preds = %19
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i32 1
store i8** %25, i8*** %5
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 0
%28 = load i8*, i8** %27
%29 = call i32* @fopen(i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %29, i32** %10
%30 = load i32*, i32** %10
%31 = icmp eq i32* %30, null
br i1 %31, label %32, label %38
32: ; preds = %23
%33 = load i32, i32* @stderr
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 0
%36 = load i8*, i8** %35
%37 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i8* %36)
br label %19
38: ; preds = %23
br label %39
39: ; preds = %159, %38
%40 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%41 = load i32*, i32** %10
%42 = call i32* @fgets(i8* %40, i32 200, i32* %41)
%43 = icmp ne i32* %42, null
br i1 %43, label %44, label %160
44: ; preds = %39
%45 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%46 = call i8* @strchr(i8* %45, i8 signext 42)
store i8* %46, i8** %7
br label %47
47: ; preds = %157, %44
%48 = load i8*, i8** %7
%49 = icmp ne i8* %48, null
br i1 %49, label %50, label %159
50: ; preds = %47
%51 = load i8*, i8** %7
%52 = getelementptr inbounds i8, i8* %51, i64 1
%53 = call i8* @strchr(i8* %52, i8 signext 42)
store i8* %53, i8** %8
%54 = load i8*, i8** %8
%55 = icmp ne i8* %54, null
br i1 %55, label %56, label %157
56: ; preds = %50
%57 = load i8*, i8** %8
%58 = load i8*, i8** %7
%59 = getelementptr inbounds i8, i8* %58, i64 1
%60 = icmp ugt i8* %57, %59
br i1 %60, label %61, label %157
61: ; preds = %56
%62 = load i8*, i8** %7
%63 = getelementptr inbounds i8, i8* %62, i64 1
store i8* %63, i8** %9
br label %64
64: ; preds = %85, %61
%65 = load i8*, i8** %9
%66 = load i8*, i8** %8
%67 = icmp ult i8* %65, %66
br i1 %67, label %68, label %88
68: ; preds = %64
%69 = load i8*, i8** %9
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 32
br i1 %72, label %83, label %73
73: ; preds = %68
%74 = load i8*, i8** %9
%75 = load i8, i8* %74
%76 = sext i8 %75 to i32
%77 = icmp eq i32 %76, 9
br i1 %77, label %83, label %78
78: ; preds = %73
%79 = load i8*, i8** %9
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 124
br i1 %82, label %83, label %84
83: ; preds = %78, %73, %68
br label %88
84: ; preds = %78
br label %85
85: ; preds = %84
%86 = load i8*, i8** %9
%87 = getelementptr inbounds i8, i8* %86, i32 1
store i8* %87, i8** %9
br label %64
88: ; preds = %83, %64
%89 = load i8*, i8** %9
%90 = load i8*, i8** %8
%91 = icmp eq i8* %89, %90
br i1 %91, label %92, label %156
92: ; preds = %88
%93 = load i8*, i8** %7
%94 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%95 = icmp eq i8* %93, %94
br i1 %95, label %108, label %96
96: ; preds = %92
%97 = load i8*, i8** %7
%98 = getelementptr inbounds i8, i8* %97, i64 -1
%99 = load i8, i8* %98
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 32
br i1 %101, label %108, label %102
102: ; preds = %96
%103 = load i8*, i8** %7
%104 = getelementptr inbounds i8, i8* %103, i64 -1
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = icmp eq i32 %106, 9
br i1 %107, label %108, label %156
108: ; preds = %102, %96, %92
%109 = load i8*, i8** %9
%110 = getelementptr inbounds i8, i8* %109, i64 1
%111 = load i8, i8* %110
%112 = call i8* @strchr(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8 signext %111)
%113 = icmp ne i8* %112, null
br i1 %113, label %120, label %114
114: ; preds = %108
%115 = load i8*, i8** %9
%116 = getelementptr inbounds i8, i8* %115, i64 1
%117 = load i8, i8* %116
%118 = sext i8 %117 to i32
%119 = icmp eq i32 %118, 0
br i1 %119, label %120, label %156
120: ; preds = %114, %108
%121 = load i8*, i8** %8
store i8 0, i8* %121
%122 = load i8*, i8** %7
%123 = getelementptr inbounds i8, i8* %122, i32 1
store i8* %123, i8** %7
%124 = load i8*, i8** %7
%125 = load i8**, i8*** %5
%126 = getelementptr inbounds i8*, i8** %125, i64 0
%127 = load i8*, i8** %126
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %124, i8* %127)
br label %129
129: ; preds = %145, %120
%130 = load i8*, i8** %7
%131 = load i8, i8* %130
%132 = icmp ne i8 %131, 0
br i1 %132, label %133, label %151
133: ; preds = %129
%134 = load i8*, i8** %7
%135 = load i8, i8* %134
%136 = sext i8 %135 to i32
%137 = icmp eq i32 %136, 92
br i1 %137, label %143, label %138
138: ; preds = %133
%139 = load i8*, i8** %7
%140 = load i8, i8* %139
%141 = sext i8 %140 to i32
%142 = icmp eq i32 %141, 47
br i1 %142, label %143, label %145
143: ; preds = %138, %133
%144 = call i32 @putchar(i8 signext 92)
br label %145
145: ; preds = %143, %138
%146 = load i8*, i8** %7
%147 = load i8, i8* %146
%148 = call i32 @putchar(i8 signext %147)
%149 = load i8*, i8** %7
%150 = getelementptr inbounds i8, i8* %149, i32 1
store i8* %150, i8** %7
br label %129
151: ; preds = %129
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%153 = load i8*, i8** %8
%154 = getelementptr inbounds i8, i8* %153, i64 1
%155 = call i8* @strchr(i8* %154, i8 signext 42)
store i8* %155, i8** %8
br label %156
156: ; preds = %151, %114, %102, %88
br label %157
157: ; preds = %156, %56, %50
%158 = load i8*, i8** %8
store i8* %158, i8** %7
br label %47
159: ; preds = %47
br label %39
160: ; preds = %39
%161 = load i32*, i32** %10
%162 = call i32 @fclose(i32* %161)
br label %19
163: ; preds = %19
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [34 x i8] c"Usage: doctags docfile ... >tags\0A\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [31 x i8] c"Unable to open %s for reading\0A\00"
@.str.4 = [5 x i8] c" \09\0A\0D\00"
@.str.5 = [9 x i8] c"%s\09%s\09/*\00"
@str = [17 x i8] c"help-tags\09tags\091\00"
@str.7 = [2 x i8] c"*\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [200 x i8]
%4 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%5 = icmp slt i32 %0, 2
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @exit(i32 1)
unreachable
10: ; preds = %2
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
br label %12
12: ; preds = %10, %27
%13 = phi i32 [ %0, %10 ], [ %15, %27 ]
%14 = phi i8** [ %1, %10 ], [ %16, %27 ]
%15 = add nsw i32 %13, -1
%16 = getelementptr inbounds i8*, i8** %14, i64 1
%17 = load i8*, i8** %16
%18 = call i32* @fopen(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%19 = icmp eq i32* %18, null
br i1 %19, label %23, label %20
20: ; preds = %12
%21 = call i32* @fgets(i8* %4, i32 200, i32* %18)
%22 = icmp eq i32* %21, null
br i1 %22, label %87, label %32
23: ; preds = %12
%24 = load i32, i32* @stderr
%25 = load i8*, i8** %16
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i8* %25)
br label %27
27: ; preds = %23, %87
%28 = icmp sgt i32 %13, 2
br i1 %28, label %12, label %89
29: ; preds = %35, %84, %32
%30 = call i32* @fgets(i8* %4, i32 200, i32* %18)
%31 = icmp eq i32* %30, null
br i1 %31, label %87, label %32
32: ; preds = %20, %29
%33 = call i8* @strchr(i8* %4, i8 signext 42)
%34 = icmp eq i8* %33, null
br i1 %34, label %29, label %35
35: ; preds = %32, %84
%36 = phi i8* [ %85, %84 ], [ %33, %32 ]
%37 = ptrtoint i8* %36 to i64
%38 = getelementptr inbounds i8, i8* %36, i64 1
%39 = call i8* @strchr(i8* %38, i8 signext 42)
%40 = ptrtoint i8* %39 to i64
%41 = icmp eq i8* %39, null
br i1 %41, label %29, label %42
42: ; preds = %35
%43 = icmp ugt i8* %39, %38
br i1 %43, label %44, label %84
44: ; preds = %42
%45 = sub i64 %40, %37
%46 = getelementptr i8, i8* %36, i64 %45
br label %47
47: ; preds = %44, %50
%48 = phi i8* [ %51, %50 ], [ %38, %44 ]
%49 = load i8, i8* %48
switch i8 %49, label %50 [
i8 32, label %53
i8 9, label %53
i8 124, label %53
]
50: ; preds = %47
%51 = getelementptr inbounds i8, i8* %48, i64 1
%52 = icmp eq i8* %51, %46
br i1 %52, label %53, label %47
53: ; preds = %50, %47, %47, %47
%54 = phi i8* [ %48, %47 ], [ %48, %47 ], [ %48, %47 ], [ %46, %50 ]
%55 = icmp eq i8* %54, %39
br i1 %55, label %56, label %84
56: ; preds = %53
%57 = icmp eq i8* %36, %4
br i1 %57, label %61, label %58
58: ; preds = %56
%59 = getelementptr inbounds i8, i8* %36, i64 -1
%60 = load i8, i8* %59
switch i8 %60, label %84 [
i8 32, label %61
i8 9, label %61
]
61: ; preds = %58, %58, %56
%62 = getelementptr inbounds i8, i8* %39, i64 1
%63 = load i8, i8* %62
%64 = call i8* @strchr(i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8 signext %63)
%65 = icmp ne i8* %64, null
%66 = icmp eq i8 %63, 0
%67 = or i1 %66, %65
br i1 %67, label %68, label %84
68: ; preds = %61
store i8 0, i8* %39
%69 = load i8*, i8** %16
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %38, i8* %69)
br label %71
71: ; preds = %77, %68
%72 = phi i8* [ %38, %68 ], [ %80, %77 ]
%73 = load i8, i8* %72
switch i8 %73, label %77 [
i8 0, label %81
i8 92, label %74
i8 47, label %74
]
74: ; preds = %71, %71
%75 = call i32 @putchar(i8 signext 92)
%76 = load i8, i8* %72
br label %77
77: ; preds = %71, %74
%78 = phi i8 [ %73, %71 ], [ %76, %74 ]
%79 = call i32 @putchar(i8 signext %78)
%80 = getelementptr inbounds i8, i8* %72, i64 1
br label %71
81: ; preds = %71
%82 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.7, i64 0, i64 0))
%83 = call i8* @strchr(i8* %62, i8 signext 42)
br label %84
84: ; preds = %61, %58, %53, %81, %42
%85 = phi i8* [ %83, %81 ], [ %39, %53 ], [ %39, %42 ], [ %39, %58 ], [ %39, %61 ]
%86 = icmp eq i8* %85, null
br i1 %86, label %29, label %35
87: ; preds = %29, %20
%88 = call i32 @fclose(i32* %18)
br label %27
89: ; preds = %27
ret i32 0
}