#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 countLines(int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fread(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(char *);
scalar_t__ malloc(int);
char *parseOutText(char *, char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
void actionSys(char *dir) {
  char *fileVersion = (char *)malloc(sizeof(char) * (256 + 1));
  strcpy(fileVersion, dir);
  strcat(fileVersion, "/version");
  FILE *fpFileVersion = fopen(fileVersion, "r");
  if (fpFileVersion != NULL) {
    char *fpFileVersionContent = (char *)malloc(sizeof(char) * (1023 + 1));
    fread(fpFileVersionContent, 1023 + 1, 1, fpFileVersion);
    char *linuxVersion =
        parseOutText(fpFileVersionContent, "Linux version ", " (");
    printf("Linux: %s\n", linuxVersion);
    free(linuxVersion);
    char *gccVersion = parseOutText(fpFileVersionContent, "gcc version ", " ");
    printf("gcc: %s\n", gccVersion);
    free(gccVersion);
    free(fpFileVersionContent);
    fclose(fpFileVersion);
  } else {
    printf("File: %s does not exists!\n", fileVersion);
    free(fileVersion);
    exit(1);
  }
  char *fileSwap = (char *)malloc(sizeof(char) * (256 + 1));
  strcpy(fileSwap, dir);
  strcat(fileSwap, "/swaps");
  FILE *fpFileSwap = fopen(fileSwap, "r");
  if (fpFileSwap != NULL) {
    char *fpFileSwapContent = (char *)malloc(sizeof(char) * (1023 + 1));
    fread(fpFileSwapContent, 1023 + 1, 1, fpFileSwap);
    char *firstSwapPart = parseOutText(fpFileSwapContent, "Priority\n", " ");
    printf("Swap: %s\n", firstSwapPart);
    free(firstSwapPart);
    free(fpFileSwapContent);
    fclose(fpFileSwap);
  } else {
    printf("File: %s does not exists!\n", fileSwap);
    free(fileSwap);
    exit(1);
  }
  char *fileModules = (char *)malloc(sizeof(char) * 256 + 1);
  strcpy(fileModules, dir);
  strcat(fileModules, "/modules");
  FILE *fpModules = fopen(fileModules, "r");
  if (fpModules != NULL) {
    int noLines = countLines(fpModules);
    printf("Modules: %d\n", noLines);
    fclose(fpModules);
  } else {
    printf("File: %s does not exists!\n", fileModules);
    free(fileModules);
    exit(1);
  }
}


x86 assembly (clang, -O0):
<actionSys>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x101,%edi
call   1090 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x10(%rbp),%rdi
lea    0xe1e(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x10(%rbp),%rdi
lea    0xe17(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     12ae <actionSys+0xfe>
mov    $0x400,%edi
call   1090 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x400,%esi
mov    $0x1,%edx
call   1050 <fread@plt>
mov    -0x20(%rbp),%rdi
lea    0xdd5(%rip),%rsi
lea    0xddd(%rip),%rdx
call   10a0 <parseOutText@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rsi
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
lea    0xdbc(%rip),%rsi
lea    0xdc0(%rip),%rdx
call   10a0 <parseOutText@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rsi
lea    0xdae(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rdi
call   1060 <fclose@plt>
jmp    12d3 <actionSys+0x123>
mov    -0x10(%rbp),%rsi
lea    0xd85(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    $0x101,%edi
call   1090 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x38(%rbp),%rdi
lea    0xd60(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x38(%rbp),%rdi
lea    0xd00(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     138f <actionSys+0x1df>
mov    $0x400,%edi
call   1090 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x40(%rbp),%rcx
mov    $0x400,%esi
mov    $0x1,%edx
call   1050 <fread@plt>
mov    -0x48(%rbp),%rdi
lea    0xd13(%rip),%rsi
lea    0xcdf(%rip),%rdx
call   10a0 <parseOutText@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rsi
lea    0xd02(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1060 <fclose@plt>
jmp    13b4 <actionSys+0x204>
mov    -0x38(%rbp),%rsi
lea    0xca4(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    $0x101,%edi
call   1090 <malloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x58(%rbp),%rdi
lea    0xc9a(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x58(%rbp),%rdi
lea    0xc1f(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x60(%rbp)
je     1429 <actionSys+0x279>
mov    -0x60(%rbp),%rdi
call   1080 <countLines@plt>
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%esi
lea    0xc69(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x60(%rbp),%rdi
call   1060 <fclose@plt>
jmp    144e <actionSys+0x29e>
mov    -0x58(%rbp),%rsi
lea    0xc0a(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<actionSys>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdi,%r14
mov    $0x101,%edi
call   1090 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
call   1040 <strcpy@plt>
lea    0xe26(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcat@plt>
lea    0xe20(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <fopen@plt>
test   %rax,%rax
je     13a2 <actionSys+0x1f2>
mov    %rax,%r15
mov    $0x400,%edi
call   1090 <malloc@plt>
mov    %rax,%r12
mov    %rax,%rdi
mov    $0x400,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fread@plt>
lea    0xde5(%rip),%rsi
lea    0xded(%rip),%rdx
mov    %r12,%rdi
call   10a0 <parseOutText@plt>
mov    %rax,%rbx
lea    0xdde(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
lea    0xdd0(%rip),%rsi
lea    0xdd4(%rip),%rdx
mov    %r12,%rdi
call   10a0 <parseOutText@plt>
mov    %rax,%rbx
lea    0xdc4(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1060 <fclose@plt>
mov    $0x101,%edi
call   1090 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
call   1040 <strcpy@plt>
lea    0xda7(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <strcat@plt>
lea    0xd48(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <fopen@plt>
test   %rax,%rax
je     13a2 <actionSys+0x1f2>
mov    %rax,%r15
mov    $0x400,%edi
call   1090 <malloc@plt>
mov    %rax,%r12
mov    %rax,%rdi
mov    $0x400,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fread@plt>
lea    0xd62(%rip),%rsi
lea    0xd2e(%rip),%rdx
mov    %r12,%rdi
call   10a0 <parseOutText@plt>
mov    %rax,%rbx
lea    0xd53(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1060 <fclose@plt>
mov    $0x101,%edi
call   1090 <malloc@plt>
mov    %rax,%r15
mov    %rax,%rdi
mov    %r14,%rsi
call   1040 <strcpy@plt>
lea    0xd1c(%rip),%rsi
mov    %r15,%rdi
call   10c0 <strcat@plt>
lea    0xca2(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fopen@plt>
test   %rax,%rax
je     13b8 <actionSys+0x208>
mov    %rax,%rbx
mov    %rax,%rdi
call   1080 <countLines@plt>
lea    0xcf7(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1060 <fclose@plt>
lea    0xc95(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
jmp    13cc <actionSys+0x21c>
lea    0xc7f(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"/version\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [15 x i8] c"Linux version \00"
@.str.3 = [3 x i8] c" (\00"
@.str.4 = [11 x i8] c"Linux: %s\0A\00"
@.str.5 = [13 x i8] c"gcc version \00"
@.str.6 = [2 x i8] c" \00"
@.str.7 = [9 x i8] c"gcc: %s\0A\00"
@.str.8 = [27 x i8] c"File: %s does not exists!\0A\00"
@.str.9 = [7 x i8] c"/swaps\00"
@.str.10 = [10 x i8] c"Priority\0A\00"
@.str.11 = [10 x i8] c"Swap: %s\0A\00"
@.str.12 = [9 x i8] c"/modules\00"
@.str.13 = [13 x i8] c"Modules: %d\0A\00"
define void @actionSys(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i32*
%14 = alloca i32
store i8* %0, i8** %2
%15 = call i64 @malloc(i32 257)
%16 = inttoptr i64 %15 to i8*
store i8* %16, i8** %3
%17 = load i8*, i8** %3
%18 = load i8*, i8** %2
%19 = call i32 @strcpy(i8* %17, i8* %18)
%20 = load i8*, i8** %3
%21 = call i32 @strcat(i8* %20, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%22 = load i8*, i8** %3
%23 = call i32* @fopen(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %23, i32** %4
%24 = load i32*, i32** %4
%25 = icmp ne i32* %24, null
br i1 %25, label %26, label %48
26: ; preds = %1
%27 = call i64 @malloc(i32 1024)
%28 = inttoptr i64 %27 to i8*
store i8* %28, i8** %5
%29 = load i8*, i8** %5
%30 = load i32*, i32** %4
%31 = call i32 @fread(i8* %29, i32 1024, i32 1, i32* %30)
%32 = load i8*, i8** %5
%33 = call i8* @parseOutText(i8* %32, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i8* %33, i8** %6
%34 = load i8*, i8** %6
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %34)
%36 = load i8*, i8** %6
%37 = call i32 @free(i8* %36)
%38 = load i8*, i8** %5
%39 = call i8* @parseOutText(i8* %38, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i8* %39, i8** %7
%40 = load i8*, i8** %7
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %40)
%42 = load i8*, i8** %7
%43 = call i32 @free(i8* %42)
%44 = load i8*, i8** %5
%45 = call i32 @free(i8* %44)
%46 = load i32*, i32** %4
%47 = call i32 @fclose(i32* %46)
br label %54
48: ; preds = %1
%49 = load i8*, i8** %3
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i8* %49)
%51 = load i8*, i8** %3
%52 = call i32 @free(i8* %51)
%53 = call i32 @exit(i32 1)
unreachable
54: ; preds = %26
%55 = call i64 @malloc(i32 257)
%56 = inttoptr i64 %55 to i8*
store i8* %56, i8** %8
%57 = load i8*, i8** %8
%58 = load i8*, i8** %2
%59 = call i32 @strcpy(i8* %57, i8* %58)
%60 = load i8*, i8** %8
%61 = call i32 @strcat(i8* %60, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%62 = load i8*, i8** %8
%63 = call i32* @fopen(i8* %62, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %63, i32** %9
%64 = load i32*, i32** %9
%65 = icmp ne i32* %64, null
br i1 %65, label %66, label %82
66: ; preds = %54
%67 = call i64 @malloc(i32 1024)
%68 = inttoptr i64 %67 to i8*
store i8* %68, i8** %10
%69 = load i8*, i8** %10
%70 = load i32*, i32** %9
%71 = call i32 @fread(i8* %69, i32 1024, i32 1, i32* %70)
%72 = load i8*, i8** %10
%73 = call i8* @parseOutText(i8* %72, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i8* %73, i8** %11
%74 = load i8*, i8** %11
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %74)
%76 = load i8*, i8** %11
%77 = call i32 @free(i8* %76)
%78 = load i8*, i8** %10
%79 = call i32 @free(i8* %78)
%80 = load i32*, i32** %9
%81 = call i32 @fclose(i32* %80)
br label %88
82: ; preds = %54
%83 = load i8*, i8** %8
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i8* %83)
%85 = load i8*, i8** %8
%86 = call i32 @free(i8* %85)
%87 = call i32 @exit(i32 1)
unreachable
88: ; preds = %66
%89 = call i64 @malloc(i32 257)
%90 = inttoptr i64 %89 to i8*
store i8* %90, i8** %12
%91 = load i8*, i8** %12
%92 = load i8*, i8** %2
%93 = call i32 @strcpy(i8* %91, i8* %92)
%94 = load i8*, i8** %12
%95 = call i32 @strcat(i8* %94, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
%96 = load i8*, i8** %12
%97 = call i32* @fopen(i8* %96, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %97, i32** %13
%98 = load i32*, i32** %13
%99 = icmp ne i32* %98, null
br i1 %99, label %100, label %107
100: ; preds = %88
%101 = load i32*, i32** %13
%102 = call i32 @countLines(i32* %101)
store i32 %102, i32* %14
%103 = load i32, i32* %14
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 %103)
%105 = load i32*, i32** %13
%106 = call i32 @fclose(i32* %105)
br label %113
107: ; preds = %88
%108 = load i8*, i8** %12
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i8* %108)
%110 = load i8*, i8** %12
%111 = call i32 @free(i8* %110)
%112 = call i32 @exit(i32 1)
unreachable
113: ; preds = %100
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"/version\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [15 x i8] c"Linux version \00"
@.str.3 = [3 x i8] c" (\00"
@.str.4 = [11 x i8] c"Linux: %s\0A\00"
@.str.5 = [13 x i8] c"gcc version \00"
@.str.6 = [2 x i8] c" \00"
@.str.7 = [9 x i8] c"gcc: %s\0A\00"
@.str.8 = [27 x i8] c"File: %s does not exists!\0A\00"
@.str.9 = [7 x i8] c"/swaps\00"
@.str.10 = [10 x i8] c"Priority\0A\00"
@.str.11 = [10 x i8] c"Swap: %s\0A\00"
@.str.12 = [9 x i8] c"/modules\00"
@.str.13 = [13 x i8] c"Modules: %d\0A\00"
define void @actionSys(i8* %0) {
%2 = tail call i64 @malloc(i32 257)
%3 = inttoptr i64 %2 to i8*
%4 = tail call i32 @strcpy(i8* %3, i8* %0)
%5 = tail call i32 @strcat(i8* %3, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32* @fopen(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp eq i32* %6, null
br i1 %7, label %26, label %8
8: ; preds = %1
%9 = tail call i64 @malloc(i32 1024)
%10 = inttoptr i64 %9 to i8*
%11 = tail call i32 @fread(i8* %10, i32 1024, i32 1, i32* %6)
%12 = tail call i8* @parseOutText(i8* %10, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %12)
%14 = tail call i32 @free(i8* %12)
%15 = tail call i8* @parseOutText(i8* %10, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %15)
%17 = tail call i32 @free(i8* %15)
%18 = tail call i32 @free(i8* %10)
%19 = tail call i32 @fclose(i32* %6)
%20 = tail call i64 @malloc(i32 257)
%21 = inttoptr i64 %20 to i8*
%22 = tail call i32 @strcpy(i8* %21, i8* %0)
%23 = tail call i32 @strcat(i8* %21, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%24 = tail call i32* @fopen(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%25 = icmp eq i32* %24, null
br i1 %25, label %45, label %30
26: ; preds = %1
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i8* %3)
%28 = tail call i32 @free(i8* %3)
%29 = tail call i32 @exit(i32 1)
unreachable
30: ; preds = %8
%31 = tail call i64 @malloc(i32 1024)
%32 = inttoptr i64 %31 to i8*
%33 = tail call i32 @fread(i8* %32, i32 1024, i32 1, i32* %24)
%34 = tail call i8* @parseOutText(i8* %32, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %34)
%36 = tail call i32 @free(i8* %34)
%37 = tail call i32 @free(i8* %32)
%38 = tail call i32 @fclose(i32* %24)
%39 = tail call i64 @malloc(i32 257)
%40 = inttoptr i64 %39 to i8*
%41 = tail call i32 @strcpy(i8* %40, i8* %0)
%42 = tail call i32 @strcat(i8* %40, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
%43 = tail call i32* @fopen(i8* %40, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%44 = icmp eq i32* %43, null
br i1 %44, label %53, label %49
45: ; preds = %8
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i8* %21)
%47 = tail call i32 @free(i8* %21)
%48 = tail call i32 @exit(i32 1)
unreachable
49: ; preds = %30
%50 = tail call i32 @countLines(i32* %43)
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 %50)
%52 = tail call i32 @fclose(i32* %43)
ret void
53: ; preds = %30
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i8* %40)
%55 = tail call i32 @free(i8* %40)
%56 = tail call i32 @exit(i32 1)
unreachable
}