#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*/ buff;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/ *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ memcmp(char *, char *, int);
scalar_t__ removetab(char *);
int /*<<< orphan*/ strcmp(char *, char *);
int main(const int argc, const char **argv) {
  char buff[300];
  FILE *ifile = fopen((argc > 1 ? argv[1] : "makefile"), "rb");
  FILE *ofile = fopen((argc > 2 ? argv[2] : "bsdmake"), "wb");
  assert(ifile);
  assert(ofile);
  while (fgets(buff, sizeof(buff), ifile))
    if (!memcmp(buff, "ifdef", 5) || !memcmp(buff, "else", 4) ||
        !memcmp(buff, "ifeq", 4) || !memcmp(buff, "endif", 5))
      fprintf(ofile, ".%s", buff);
    else if (!strcmp(buff, "CC=$(PREFIX)g++\n"))
      fprintf(ofile, "CC=$(PREFIX)cc\n");
    else if (!strcmp(buff, "CC=g++\n"))
      fprintf(ofile, "CC=cc\n");
    else if (!strcmp(buff, "CURL=-lcurl\n")) {
      fprintf(ofile, "CURL=`pkg-config --libs libcurl`\n");
      fprintf(ofile, "CURLI=`pkg-config --cflags libcurl`\n");
    } else if (buff[0] == '\t' && removetab(buff + 1))
      fprintf(ofile, "%s", buff + 1);
    else
      fprintf(ofile, "%s", buff);
  fclose(ifile);
  fclose(ofile);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    11b7 <main+0x37>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x158(%rbp)
jmp    11ca <main+0x4a>
lea    0xe42(%rip),%rax
mov    %rax,-0x158(%rbp)
jmp    11ca <main+0x4a>
mov    -0x158(%rbp),%rdi
lea    0xe31(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x148(%rbp)
cmpl   $0x2,-0x8(%rbp)
jle    1202 <main+0x82>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x160(%rbp)
jmp    1215 <main+0x95>
lea    0xe03(%rip),%rax
mov    %rax,-0x160(%rbp)
jmp    1215 <main+0x95>
mov    -0x160(%rbp),%rdi
lea    0xdf1(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x150(%rbp)
mov    -0x148(%rbp),%rdi
call   1070 <assert@plt>
mov    -0x150(%rbp),%rdi
call   1070 <assert@plt>
lea    -0x140(%rbp),%rdi
mov    -0x148(%rbp),%rdx
mov    $0x12c,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
je     1449 <main+0x2c9>
lea    -0x140(%rbp),%rdi
lea    0xda0(%rip),%rsi
mov    $0x5,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%eax
je     12ed <main+0x16d>
lea    -0x140(%rbp),%rdi
lea    0xd85(%rip),%rsi
mov    $0x4,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%eax
je     12ed <main+0x16d>
lea    -0x140(%rbp),%rdi
lea    0xd69(%rip),%rsi
mov    $0x4,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%eax
je     12ed <main+0x16d>
lea    -0x140(%rbp),%rdi
lea    0xd4d(%rip),%rsi
mov    $0x5,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%eax
jne    130e <main+0x18e>
mov    -0x150(%rbp),%rdi
lea    -0x140(%rbp),%rdx
lea    0xd2b(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1444 <main+0x2c4>
lea    -0x140(%rbp),%rdi
lea    0xd15(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1344 <main+0x1c4>
mov    -0x150(%rbp),%rdi
lea    0xd0a(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    143f <main+0x2bf>
lea    -0x140(%rbp),%rdi
lea    0xd00(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    137a <main+0x1fa>
mov    -0x150(%rbp),%rdi
lea    0xcec(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    143a <main+0x2ba>
lea    -0x140(%rbp),%rdi
lea    0xcd9(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    13c5 <main+0x245>
mov    -0x150(%rbp),%rdi
lea    0xcca(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x150(%rbp),%rdi
lea    0xcd7(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1435 <main+0x2b5>
movsbl -0x140(%rbp),%eax
cmp    $0x9,%eax
jne    1414 <main+0x294>
lea    -0x140(%rbp),%rdi
add    $0x1,%rdi
call   1090 <removetab@plt>
cmp    $0x0,%rax
je     1414 <main+0x294>
mov    -0x150(%rbp),%rdi
lea    -0x140(%rbp),%rdx
add    $0x1,%rdx
lea    0xc26(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1430 <main+0x2b0>
mov    -0x150(%rbp),%rdi
lea    -0x140(%rbp),%rdx
lea    0xc05(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1435 <main+0x2b5>
jmp    143a <main+0x2ba>
jmp    143f <main+0x2bf>
jmp    1444 <main+0x2c4>
jmp    1247 <main+0xc7>
mov    -0x148(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x150(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
cmp    $0x1,%edi
jle    11cc <main+0x3c>
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x8(%rsi),%rdi
lea    0xe53(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%r14
cmp    $0x2,%ebp
jne    11eb <main+0x5b>
lea    0xe42(%rip),%rdi
jmp    11ef <main+0x5f>
lea    0xe2d(%rip),%rdi
lea    0xe2f(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%r14
lea    0xe23(%rip),%rdi
jmp    11ef <main+0x5f>
mov    0x10(%rbx),%rdi
lea    0xe1e(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%r13
mov    %r14,%rdi
call   1070 <assert@plt>
mov    %r13,%rdi
call   1070 <assert@plt>
mov    %rsp,%rdi
mov    $0x12c,%esi
mov    %r14,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     13a6 <main+0x216>
lea    0xde9(%rip),%r12
mov    %rsp,%rbx
lea    0xdf5(%rip),%rbp
lea    0xdde(%rip),%r15
jmp    1279 <main+0xe9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %rbx,%rdi
mov    $0x12c,%esi
mov    %r14,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     13a6 <main+0x216>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x5,%edx
call   1050 <memcmp@plt>
test   %eax,%eax
je     1250 <main+0xc0>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %eax,%eax
je     1250 <main+0xc0>
mov    %rbx,%rdi
lea    0xd77(%rip),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %eax,%eax
je     1250 <main+0xc0>
mov    %rbx,%rdi
lea    0xd64(%rip),%rsi
mov    $0x5,%edx
call   1050 <memcmp@plt>
test   %eax,%eax
je     1250 <main+0xc0>
mov    $0x11,%edx
mov    %rbx,%rdi
lea    0xd4d(%rip),%rsi
call   1050 <memcmp@plt>
test   %eax,%eax
je     1339 <main+0x1a9>
mov    $0x8,%edx
mov    %rbx,%rdi
lea    0xd56(%rip),%rsi
call   1050 <memcmp@plt>
test   %eax,%eax
je     134c <main+0x1bc>
mov    $0xd,%edx
mov    %rbx,%rdi
lea    0xd4d(%rip),%rsi
call   1050 <memcmp@plt>
test   %eax,%eax
je     136f <main+0x1df>
cmpb   $0x9,(%rsp)
jne    135f <main+0x1cf>
lea    0x1(%rsp),%rdi
call   1090 <removetab@plt>
test   %rax,%rax
je     135f <main+0x1cf>
lea    0x1(%rsp),%rdi
jmp    1362 <main+0x1d2>
mov    $0xf,%esi
mov    $0x1,%edx
lea    0xcf8(%rip),%rdi
jmp    1399 <main+0x209>
mov    $0x6,%esi
mov    $0x1,%edx
lea    0xcfd(%rip),%rdi
jmp    1399 <main+0x209>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1040 <fputs@plt>
jmp    1260 <main+0xd0>
mov    $0x21,%esi
mov    $0x1,%edx
lea    0xcee(%rip),%rdi
mov    %r13,%rcx
call   10b0 <fwrite@plt>
mov    $0x24,%esi
mov    $0x1,%edx
lea    0xcf7(%rip),%rdi
mov    %r13,%rcx
call   10b0 <fwrite@plt>
jmp    1260 <main+0xd0>
mov    %r14,%rdi
call   1030 <fclose@plt>
mov    %r13,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"makefile\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [8 x i8] c"bsdmake\00"
@.str.3 = [3 x i8] c"wb\00"
@.str.4 = [6 x i8] c"ifdef\00"
@.str.5 = [5 x i8] c"else\00"
@.str.6 = [5 x i8] c"ifeq\00"
@.str.7 = [6 x i8] c"endif\00"
@.str.8 = [4 x i8] c".%s\00"
@.str.9 = [17 x i8] c"CC=$(PREFIX)g++\0A\00"
@.str.10 = [16 x i8] c"CC=$(PREFIX)cc\0A\00"
@.str.11 = [8 x i8] c"CC=g++\0A\00"
@.str.12 = [7 x i8] c"CC=cc\0A\00"
@.str.13 = [13 x i8] c"CURL=-lcurl\0A\00"
@.str.14 = [34 x i8] c"CURL=`pkg-config --libs libcurl`\0A\00"
@.str.15 = [37 x i8] c"CURLI=`pkg-config --cflags libcurl`\0A\00"
@.str.16 = [3 x i8] c"%s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [300 x i8]
%7 = alloca i32*
%8 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i32, i32* %4
%10 = icmp sgt i32 %9, 1
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 1
%14 = load i8*, i8** %13
br label %16
15: ; preds = %2
br label %16
16: ; preds = %15, %11
%17 = phi i8* [ %14, %11 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), %15 ]
%18 = call i32* @fopen(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %18, i32** %7
%19 = load i32, i32* %4
%20 = icmp sgt i32 %19, 2
br i1 %20, label %21, label %25
21: ; preds = %16
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 2
%24 = load i8*, i8** %23
br label %26
25: ; preds = %16
br label %26
26: ; preds = %25, %21
%27 = phi i8* [ %24, %21 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), %25 ]
%28 = call i32* @fopen(i8* %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i32* %28, i32** %8
%29 = load i32*, i32** %7
%30 = call i32 @assert(i32* %29)
%31 = load i32*, i32** %8
%32 = call i32 @assert(i32* %31)
br label %33
33: ; preds = %104, %26
%34 = getelementptr inbounds [300 x i8], [300 x i8]* %6, i64 0, i64 0
%35 = load i32*, i32** %7
%36 = call i64 @fgets(i8* %34, i32 300, i32* %35)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %105
38: ; preds = %33
%39 = getelementptr inbounds [300 x i8], [300 x i8]* %6, i64 0, i64 0
%40 = call i32 @memcmp(i8* %39, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 5)
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %54
42: ; preds = %38
%43 = getelementptr inbounds [300 x i8], [300 x i8]* %6, i64 0, i64 0
%44 = call i32 @memcmp(i8* %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 4)
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %54
46: ; preds = %42
%47 = getelementptr inbounds [300 x i8], [300 x i8]* %6, i64 0, i64 0
%48 = call i32 @memcmp(i8* %47, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %46
%51 = getelementptr inbounds [300 x i8], [300 x i8]* %6, i64 0, i64 0
%52 = call i32 @memcmp(i8* %51, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%53 = icmp ne i32 %52, 0
br i1 %53, label %58, label %54
54: ; preds = %50, %46, %42, %38
%55 = load i32*, i32** %8
%56 = getelementptr inbounds [300 x i8], [300 x i8]* %6, i64 0, i64 0
%57 = call i32 (i32*, i8*, ...) @fprintf(i32* %55, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %56)
br label %104
58: ; preds = %50
%59 = getelementptr inbounds [300 x i8], [300 x i8]* %6, i64 0, i64 0
%60 = call i32 @strcmp(i8* %59, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%61 = icmp ne i32 %60, 0
br i1 %61, label %65, label %62
62: ; preds = %58
%63 = load i32*, i32** %8
%64 = call i32 (i32*, i8*, ...) @fprintf(i32* %63, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
br label %103
65: ; preds = %58
%66 = getelementptr inbounds [300 x i8], [300 x i8]* %6, i64 0, i64 0
%67 = call i32 @strcmp(i8* %66, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%68 = icmp ne i32 %67, 0
br i1 %68, label %72, label %69
69: ; preds = %65
%70 = load i32*, i32** %8
%71 = call i32 (i32*, i8*, ...) @fprintf(i32* %70, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
br label %102
72: ; preds = %65
%73 = getelementptr inbounds [300 x i8], [300 x i8]* %6, i64 0, i64 0
%74 = call i32 @strcmp(i8* %73, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0))
%75 = icmp ne i32 %74, 0
br i1 %75, label %81, label %76
76: ; preds = %72
%77 = load i32*, i32** %8
%78 = call i32 (i32*, i8*, ...) @fprintf(i32* %77, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0))
%79 = load i32*, i32** %8
%80 = call i32 (i32*, i8*, ...) @fprintf(i32* %79, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0))
br label %101
81: ; preds = %72
%82 = getelementptr inbounds [300 x i8], [300 x i8]* %6, i64 0, i64 0
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 9
br i1 %85, label %86, label %96
86: ; preds = %81
%87 = getelementptr inbounds [300 x i8], [300 x i8]* %6, i64 0, i64 0
%88 = getelementptr inbounds i8, i8* %87, i64 1
%89 = call i64 @removetab(i8* %88)
%90 = icmp ne i64 %89, 0
br i1 %90, label %91, label %96
91: ; preds = %86
%92 = load i32*, i32** %8
%93 = getelementptr inbounds [300 x i8], [300 x i8]* %6, i64 0, i64 0
%94 = getelementptr inbounds i8, i8* %93, i64 1
%95 = call i32 (i32*, i8*, ...) @fprintf(i32* %92, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* %94)
br label %100
96: ; preds = %86, %81
%97 = load i32*, i32** %8
%98 = getelementptr inbounds [300 x i8], [300 x i8]* %6, i64 0, i64 0
%99 = call i32 (i32*, i8*, ...) @fprintf(i32* %97, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* %98)
br label %100
100: ; preds = %96, %91
br label %101
101: ; preds = %100, %76
br label %102
102: ; preds = %101, %69
br label %103
103: ; preds = %102, %62
br label %104
104: ; preds = %103, %54
br label %33
105: ; preds = %33
%106 = load i32*, i32** %7
%107 = call i32 @fclose(i32* %106)
%108 = load i32*, i32** %8
%109 = call i32 @fclose(i32* %108)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"makefile\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [8 x i8] c"bsdmake\00"
@.str.3 = [3 x i8] c"wb\00"
@.str.4 = [6 x i8] c"ifdef\00"
@.str.5 = [5 x i8] c"else\00"
@.str.6 = [5 x i8] c"ifeq\00"
@.str.7 = [6 x i8] c"endif\00"
@.str.8 = [4 x i8] c".%s\00"
@.str.9 = [17 x i8] c"CC=$(PREFIX)g++\0A\00"
@.str.10 = [16 x i8] c"CC=$(PREFIX)cc\0A\00"
@.str.11 = [8 x i8] c"CC=g++\0A\00"
@.str.12 = [7 x i8] c"CC=cc\0A\00"
@.str.13 = [13 x i8] c"CURL=-lcurl\0A\00"
@.str.14 = [34 x i8] c"CURL=`pkg-config --libs libcurl`\0A\00"
@.str.15 = [37 x i8] c"CURLI=`pkg-config --cflags libcurl`\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [300 x i8]
%4 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 0
%5 = icmp sgt i32 %0, 1
br i1 %5, label %8, label %6
6: ; preds = %2
%7 = tail call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %16
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i32* @fopen(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp eq i32 %0, 2
br i1 %12, label %16, label %13
13: ; preds = %8
%14 = getelementptr inbounds i8*, i8** %1, i64 2
%15 = load i8*, i8** %14
br label %16
16: ; preds = %6, %8, %13
%17 = phi i32* [ %11, %13 ], [ %11, %8 ], [ %7, %6 ]
%18 = phi i8* [ %15, %13 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), %8 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), %6 ]
%19 = tail call i32* @fopen(i8* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%20 = tail call i32 @assert(i32* %17)
%21 = tail call i32 @assert(i32* %19)
%22 = call i64 @fgets(i8* %4, i32 300, i32* %17)
%23 = icmp eq i64 %22, 0
br i1 %23, label %69, label %24
24: ; preds = %16
%25 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 1
br label %26
26: ; preds = %24, %66
%27 = call i32 @memcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 5)
%28 = icmp eq i32 %27, 0
br i1 %28, label %38, label %29
29: ; preds = %26
%30 = call i32 @memcmp(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 4)
%31 = icmp eq i32 %30, 0
br i1 %31, label %38, label %32
32: ; preds = %29
%33 = call i32 @memcmp(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%34 = icmp eq i32 %33, 0
br i1 %34, label %38, label %35
35: ; preds = %32
%36 = call i32 @memcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %35, %32, %29, %26
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %4)
br label %66
40: ; preds = %35
%41 = call i32 bitcast (i32 (i8*, i8*, i32)* @memcmp to i32 (i8*, i8*, i64)*)(i8* %4, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i64 17)
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i64 @fwrite(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i64 15, i64 1, i32* %19)
br label %66
45: ; preds = %40
%46 = call i32 bitcast (i32 (i8*, i8*, i32)* @memcmp to i32 (i8*, i8*, i64)*)(i8* %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i64 8)
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i64 6, i64 1, i32* %19)
br label %66
50: ; preds = %45
%51 = call i32 bitcast (i32 (i8*, i8*, i32)* @memcmp to i32 (i8*, i8*, i64)*)(i8* %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i64 13)
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = call i64 @fwrite(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0), i64 33, i64 1, i32* %19)
%55 = call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0), i64 36, i64 1, i32* %19)
br label %66
56: ; preds = %50
%57 = load i8, i8* %4
%58 = icmp eq i8 %57, 9
br i1 %58, label %59, label %64
59: ; preds = %56
%60 = call i64 @removetab(i8* %25)
%61 = icmp eq i64 %60, 0
br i1 %61, label %64, label %62
62: ; preds = %59
%63 = call i32 @fputs(i8* %25, i32* %19)
br label %66
64: ; preds = %59, %56
%65 = call i32 @fputs(i8* %4, i32* %19)
br label %66
66: ; preds = %43, %53, %64, %62, %48, %38
%67 = call i64 @fgets(i8* %4, i32 300, i32* %17)
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %26
69: ; preds = %66, %16
%70 = call i32 @fclose(i32* %17)
%71 = call i32 @fclose(i32* %19)
ret i32 0
}