#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_ctime;
  int /*<<< orphan*/ st_mtime;
  int /*<<< orphan*/ st_atime;
};
struct dirent {
  char *d_name;
};
typedef int /*<<< orphan*/ firstchars;
typedef int /*<<< orphan*/ FILE;
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
scalar_t__ asciicheck(unsigned char *);
int /*<<< orphan*/ closedir(int /*<<< orphan*/ *);
char *ctime(int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(unsigned char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ *opendir(char *);
int /*<<< orphan*/ printf(char *, ...);
struct dirent *readdir(int /*<<< orphan*/ *);
int stat(char *, struct stat *);
scalar_t__ strcmp(char *, char *);
scalar_t__ strstr(unsigned char *, char *);
int main(int argc, char *argv[]) {
  FILE *filen;
  DIR *dirp;
  unsigned char firstchars[100];
  struct stat stat_buf;
  struct dirent *dirpoint;
  dirp = opendir(".");
  while ((dirpoint = readdir(dirp)) != NULL) {
    if (stat(dirpoint->d_name, &stat_buf) == -1) {
      exit(1);
    }
    if (argc == 2) {
      if (strcmp(argv[1], "-t") == 0) {
        printf("Filename: %s, ", dirpoint->d_name);
        printf("Last Access Time: %s ******* Last Modified Time: %s ******* "
               "Last Status Change Time: %s\n",
               ctime(&stat_buf.st_atime), ctime(&stat_buf.st_mtime),
               ctime(&stat_buf.st_ctime));
      }
      if (strcmp(argv[1], "-f") == 0) {
        printf("Filename: %s, ", dirpoint->d_name);
        printf("Type: ");
        filen = fopen(dirpoint->d_name, "r");
        fgets(firstchars, sizeof(firstchars), filen);
        fclose(filen);
        if (strstr(firstchars, "%!PS-Adobe")) {
          printf("PostScript File\n");
        } else {
          if (strstr(firstchars, "\r\n")) {
            printf("DOS File\n");
          } else {
            if (firstchars[0] == 0x7f && firstchars[1] == 'E' &&
                firstchars[2] == 'L' && firstchars[3] == 'F') {
              printf("ELF File\n");
            } else {
              if (asciicheck(firstchars)) {
                printf("ACSII File\n");
              } else {
                printf("Binary File\n");
              }
            }
          }
        }
      }
    } else {
      printf("%s\n", dirpoint->d_name);
    }
  }
  closedir(dirp);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe10(%rip),%rdi
call   1040 <opendir@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
call   10b0 <readdir@plt>
mov    %rax,-0xa8(%rbp)
cmp    $0x0,%rax
je     1471 <main+0x2a1>
mov    -0xa8(%rbp),%rax
mov    (%rax),%rdi
lea    -0xa0(%rbp),%rsi
call   10a0 <stat@plt>
cmp    $0xffffffff,%eax
jne    123c <main+0x6c>
mov    $0x1,%edi
call   10e0 <exit@plt>
cmpl   $0x2,-0x8(%rbp)
jne    1454 <main+0x284>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdad(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    12d5 <main+0x105>
mov    -0xa8(%rbp),%rax
mov    (%rax),%rsi
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xa0(%rbp),%rdi
add    $0x8,%rdi
call   1050 <ctime@plt>
mov    %rax,-0xb8(%rbp)
lea    -0xa0(%rbp),%rdi
add    $0x4,%rdi
call   1050 <ctime@plt>
mov    %rax,-0xb0(%rbp)
lea    -0xa0(%rbp),%rdi
call   1050 <ctime@plt>
mov    -0xb8(%rbp),%rsi
mov    -0xb0(%rbp),%rdx
mov    %rax,%rcx
lea    0xd46(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd89(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    144f <main+0x27f>
mov    -0xa8(%rbp),%rax
mov    (%rax),%rsi
lea    0xd01(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd5e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xa8(%rbp),%rax
mov    (%rax),%rdi
lea    0xd4d(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    -0x90(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x64,%esi
call   1080 <fgets@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
lea    -0x90(%rbp),%rdi
lea    0xd1a(%rip),%rsi
call   10f0 <strstr@plt>
cmp    $0x0,%rax
je     1381 <main+0x1b1>
lea    0xd0f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    144a <main+0x27a>
lea    -0x90(%rbp),%rdi
lea    0xd06(%rip),%rsi
call   10f0 <strstr@plt>
cmp    $0x0,%rax
je     13b1 <main+0x1e1>
lea    0xcf3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1445 <main+0x275>
movzbl -0x90(%rbp),%eax
cmp    $0x7f,%eax
jne    1404 <main+0x234>
movzbl -0x8f(%rbp),%eax
cmp    $0x45,%eax
jne    1404 <main+0x234>
movzbl -0x8e(%rbp),%eax
cmp    $0x4c,%eax
jne    1404 <main+0x234>
movzbl -0x8d(%rbp),%eax
cmp    $0x46,%eax
jne    1404 <main+0x234>
lea    0xcaa(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1440 <main+0x270>
lea    -0x90(%rbp),%rdi
call   10c0 <asciicheck@plt>
cmp    $0x0,%rax
je     142d <main+0x25d>
lea    0xc8b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    143b <main+0x26b>
lea    0xc84(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1440 <main+0x270>
jmp    1445 <main+0x275>
jmp    144a <main+0x27a>
jmp    144f <main+0x27f>
jmp    146c <main+0x29c>
mov    -0xa8(%rbp),%rax
mov    (%rax),%rsi
lea    0xc04(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    11f9 <main+0x29>
mov    -0x20(%rbp),%rdi
call   1070 <closedir@plt>
mov    -0x4(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rsi,%r12
mov    %edi,0xc(%rsp)
lea    0xe01(%rip),%rdi
call   1050 <opendir@plt>
mov    %rax,%r14
mov    %rax,%rdi
call   10c0 <readdir@plt>
test   %rax,%rax
je     13bb <main+0x1db>
mov    %rax,%r15
lea    0x10(%rsp),%r13
jmp    124c <main+0x6c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%r15),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   10c0 <readdir@plt>
mov    %rax,%r15
test   %rax,%rax
je     13bb <main+0x1db>
mov    (%r15),%rdi
mov    %r13,%rsi
call   10b0 <stat@plt>
cmp    $0xffffffff,%eax
je     13d7 <main+0x1f7>
cmpl   $0x2,0xc(%rsp)
jne    1230 <main+0x50>
mov    0x8(%r12),%rdi
lea    0xd8f(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    12d3 <main+0xf3>
mov    (%r15),%rsi
lea    0xd7e(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x18(%rsp),%rdi
call   1060 <ctime@plt>
mov    %r12,%rbx
mov    %rax,%r12
lea    0x14(%rsp),%rdi
call   1060 <ctime@plt>
mov    %r14,%rbp
mov    %rax,%r14
mov    %r13,%rdi
call   1060 <ctime@plt>
lea    0xd57(%rip),%rdi
mov    %r12,%rsi
mov    %rbx,%r12
mov    %r14,%rdx
mov    %rbp,%r14
mov    %rax,%rcx
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x8(%r12),%rdi
lea    0xd8e(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    1238 <main+0x58>
mov    (%r15),%rsi
lea    0xd0e(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xd6b(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    (%r15),%rdi
lea    0xd61(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,%rbp
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x64,%esi
mov    %rax,%rdx
call   1090 <fgets@plt>
mov    %rbp,%rdi
call   1040 <fclose@plt>
mov    %rbx,%rdi
lea    0xd34(%rip),%rsi
call   1100 <strstr@plt>
lea    0xd5f(%rip),%rdi
test   %rax,%rax
jne    1233 <main+0x53>
lea    0x20(%rsp),%rdi
lea    0xd1e(%rip),%rsi
call   1100 <strstr@plt>
lea    0xd35(%rip),%rdi
test   %rax,%rax
jne    1233 <main+0x53>
movdqa 0x20(%rsp),%xmm0
movd   %xmm0,%eax
lea    0xd12(%rip),%rdi
cmp    $0x464c457f,%eax
je     1233 <main+0x53>
lea    0x20(%rsp),%rdi
call   10d0 <asciicheck@plt>
test   %rax,%rax
lea    0xce8(%rip),%rdi
lea    0xcd5(%rip),%rax
cmove  %rax,%rdi
jmp    1233 <main+0x53>
mov    %r14,%rdi
call   1080 <closedir@plt>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%edi
call   10f0 <exit@plt>

LLVM IR (-O0):
%struct.stat = type { i32, i32, i32 }
%struct.dirent = type { i8* }
@.str = [2 x i8] c".\00"
@.str.1 = [3 x i8] c"-t\00"
@.str.2 = [15 x i8] c"Filename: %s, \00"
@.str.3 = [89 x i8] c"Last Access Time: %s ******* Last Modified Time: %s ******* Last Status Change Time: %s\0A\00"
@.str.4 = [3 x i8] c"-f\00"
@.str.5 = [7 x i8] c"Type: \00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [11 x i8] c"%!PS-Adobe\00"
@.str.8 = [17 x i8] c"PostScript File\0A\00"
@.str.9 = [3 x i8] c"\0D\0A\00"
@.str.10 = [10 x i8] c"DOS File\0A\00"
@.str.11 = [10 x i8] c"ELF File\0A\00"
@.str.12 = [12 x i8] c"ACSII File\0A\00"
@.str.13 = [13 x i8] c"Binary File\0A\00"
@.str.14 = [4 x i8] c"%s\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 [100 x i8]
%9 = alloca %struct.stat
%10 = alloca %struct.dirent*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = call i32* @opendir(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %11, i32** %7
br label %12
12: ; preds = %117, %2
%13 = load i32*, i32** %7
%14 = call %struct.dirent* @readdir(i32* %13)
store %struct.dirent* %14, %struct.dirent** %10
%15 = icmp ne %struct.dirent* %14, null
br i1 %15, label %16, label %118
16: ; preds = %12
%17 = load %struct.dirent*, %struct.dirent** %10
%18 = getelementptr inbounds %struct.dirent, %struct.dirent* %17, i32 0, i32 0
%19 = load i8*, i8** %18
%20 = call i32 @stat(i8* %19, %struct.stat* %9)
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %24
22: ; preds = %16
%23 = call i32 @exit(i32 1)
unreachable
24: ; preds = %16
%25 = load i32, i32* %4
%26 = icmp eq i32 %25, 2
br i1 %26, label %27, label %112
27: ; preds = %24
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
%31 = call i64 @strcmp(i8* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %45
33: ; preds = %27
%34 = load %struct.dirent*, %struct.dirent** %10
%35 = getelementptr inbounds %struct.dirent, %struct.dirent* %34, i32 0, i32 0
%36 = load i8*, i8** %35
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %36)
%38 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 2
%39 = call i8* @ctime(i32* %38)
%40 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 1
%41 = call i8* @ctime(i32* %40)
%42 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 0
%43 = call i8* @ctime(i32* %42)
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.3, i64 0, i64 0), i8* %39, i8* %41, i8* %43)
br label %45
45: ; preds = %33, %27
%46 = load i8**, i8*** %5
%47 = getelementptr inbounds i8*, i8** %46, i64 1
%48 = load i8*, i8** %47
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %111
51: ; preds = %45
%52 = load %struct.dirent*, %struct.dirent** %10
%53 = getelementptr inbounds %struct.dirent, %struct.dirent* %52, i32 0, i32 0
%54 = load i8*, i8** %53
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %54)
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%57 = load %struct.dirent*, %struct.dirent** %10
%58 = getelementptr inbounds %struct.dirent, %struct.dirent* %57, i32 0, i32 0
%59 = load i8*, i8** %58
%60 = call i32* @fopen(i8* %59, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32* %60, i32** %6
%61 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%62 = load i32*, i32** %6
%63 = call i32 @fgets(i8* %61, i32 100, i32* %62)
%64 = load i32*, i32** %6
%65 = call i32 @fclose(i32* %64)
%66 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%67 = call i64 @strstr(i8* %66, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%68 = icmp ne i64 %67, 0
br i1 %68, label %69, label %71
69: ; preds = %51
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
br label %110
71: ; preds = %51
%72 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%73 = call i64 @strstr(i8* %72, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%74 = icmp ne i64 %73, 0
br i1 %74, label %75, label %77
75: ; preds = %71
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
br label %109
77: ; preds = %71
%78 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%79 = load i8, i8* %78
%80 = zext i8 %79 to i32
%81 = icmp eq i32 %80, 127
br i1 %81, label %82, label %99
82: ; preds = %77
%83 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 1
%84 = load i8, i8* %83
%85 = zext i8 %84 to i32
%86 = icmp eq i32 %85, 69
br i1 %86, label %87, label %99
87: ; preds = %82
%88 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 2
%89 = load i8, i8* %88
%90 = zext i8 %89 to i32
%91 = icmp eq i32 %90, 76
br i1 %91, label %92, label %99
92: ; preds = %87
%93 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 3
%94 = load i8, i8* %93
%95 = zext i8 %94 to i32
%96 = icmp eq i32 %95, 70
br i1 %96, label %97, label %99
97: ; preds = %92
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
br label %108
99: ; preds = %92, %87, %82, %77
%100 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%101 = call i64 @asciicheck(i8* %100)
%102 = icmp ne i64 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %99
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
br label %107
105: ; preds = %99
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0))
br label %107
107: ; preds = %105, %103
br label %108
108: ; preds = %107, %97
br label %109
109: ; preds = %108, %75
br label %110
110: ; preds = %109, %69
br label %111
111: ; preds = %110, %45
br label %117
112: ; preds = %24
%113 = load %struct.dirent*, %struct.dirent** %10
%114 = getelementptr inbounds %struct.dirent, %struct.dirent* %113, i32 0, i32 0
%115 = load i8*, i8** %114
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i8* %115)
br label %117
117: ; preds = %112, %111
br label %12
118: ; preds = %12
%119 = load i32*, i32** %7
%120 = call i32 @closedir(i32* %119)
%121 = load i32, i32* %3
ret i32 %121
}

LLVM IR (-O2):
%struct.stat = type { i32, i32, i32 }
%struct.dirent = type { i8* }
@.str = [2 x i8] c".\00"
@.str.1 = [3 x i8] c"-t\00"
@.str.2 = [15 x i8] c"Filename: %s, \00"
@.str.3 = [89 x i8] c"Last Access Time: %s ******* Last Modified Time: %s ******* Last Status Change Time: %s\0A\00"
@.str.4 = [3 x i8] c"-f\00"
@.str.5 = [7 x i8] c"Type: \00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [11 x i8] c"%!PS-Adobe\00"
@.str.9 = [3 x i8] c"\0D\0A\00"
@str = [12 x i8] c"Binary File\00"
@str.15 = [11 x i8] c"ACSII File\00"
@str.16 = [9 x i8] c"ELF File\00"
@str.17 = [9 x i8] c"DOS File\00"
@str.18 = [16 x i8] c"PostScript File\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [100 x i8]
%4 = alloca %struct.stat
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%6 = bitcast %struct.stat* %4 to i8*
%7 = tail call i32* @opendir(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = call %struct.dirent* @readdir(i32* %7)
%9 = icmp eq %struct.dirent* %8, null
br i1 %9, label %71, label %10
10: ; preds = %2
%11 = icmp eq i32 %0, 2
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 2
%14 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 1
%15 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 0
%16 = bitcast [100 x i8]* %3 to <4 x i8>*
br label %17
17: ; preds = %10, %68
%18 = phi %struct.dirent* [ %8, %10 ], [ %69, %68 ]
%19 = getelementptr inbounds %struct.dirent, %struct.dirent* %18, i64 0, i32 0
%20 = load i8*, i8** %19
%21 = call i32 @stat(i8* %20, %struct.stat* %4)
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %17
%24 = call i32 @exit(i32 1)
unreachable
25: ; preds = %17
br i1 %11, label %26, label %63
26: ; preds = %25
%27 = load i8*, i8** %12
%28 = call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %26
%31 = load i8*, i8** %19
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %31)
%33 = call i8* @ctime(i32* %13)
%34 = call i8* @ctime(i32* %14)
%35 = call i8* @ctime(i32* %15)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @.str.3, i64 0, i64 0), i8* %33, i8* %34, i8* %35)
br label %37
37: ; preds = %30, %26
%38 = load i8*, i8** %12
%39 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %68
41: ; preds = %37
%42 = load i8*, i8** %19
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %42)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%45 = load i8*, i8** %19
%46 = call i32* @fopen(i8* %45, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%47 = call i32 @fgets(i8* %5, i32 100, i32* %46)
%48 = call i32 @fclose(i32* %46)
%49 = call i64 @strstr(i8* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %65
51: ; preds = %41
%52 = call i64 @strstr(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %65
54: ; preds = %51
%55 = load <4 x i8>, <4 x i8>* %16
%56 = freeze <4 x i8> %55
%57 = bitcast <4 x i8> %56 to i32
%58 = icmp eq i32 %57, 1179403647
br i1 %58, label %65, label %59
59: ; preds = %54
%60 = call i64 @asciicheck(i8* %5)
%61 = icmp eq i64 %60, 0
%62 = select i1 %61, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @str.15, i64 0, i64 0)
br label %65
63: ; preds = %25
%64 = load i8*, i8** %19
br label %65
65: ; preds = %59, %54, %51, %41, %63
%66 = phi i8* [ %64, %63 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.18, i64 0, i64 0), %41 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.17, i64 0, i64 0), %51 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.16, i64 0, i64 0), %54 ], [ %62, %59 ]
%67 = call i32 @puts(i8* dereferenceable(1) %66)
br label %68
68: ; preds = %65, %37
%69 = call %struct.dirent* @readdir(i32* %7)
%70 = icmp eq %struct.dirent* %69, null
br i1 %70, label %71, label %17
71: ; preds = %68, %2
%72 = call i32 @closedir(i32* %7)
ret i32 0
}