#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*/ fclose(int /*<<< orphan*/ *);
scalar_t__ file_openfile(char *, int /*<<< orphan*/, int /*<<< orphan*/ **);
int fread(unsigned char *, int, int, int /*<<< orphan*/ *);
scalar_t__ memcmp(unsigned char *, char *, int);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int file_is_compressed(char *filename) {
  FILE *diskfile;
  unsigned char buffer[2];
  char tmpfilename[1025];
  if (file_openfile(filename, 0, &diskfile)) {
    strcpy(tmpfilename, filename);
    strcat(filename, ".gz");
    if (file_openfile(filename, 0, &diskfile)) {
      strcpy(filename, tmpfilename);
      strcat(filename, ".Z");
      if (file_openfile(filename, 0, &diskfile)) {
        strcpy(filename, tmpfilename);
        strcat(filename, ".z");
        if (file_openfile(filename, 0, &diskfile)) {
          strcpy(filename, tmpfilename);
          strcat(filename, ".zip");
          if (file_openfile(filename, 0, &diskfile)) {
            strcpy(filename, tmpfilename);
            strcat(filename, "-z");
            if (file_openfile(filename, 0, &diskfile)) {
              strcpy(filename, tmpfilename);
              strcat(filename, "-gz");
              if (file_openfile(filename, 0, &diskfile)) {
                strcpy(filename, tmpfilename);
                return (0);
              }
            }
          }
        }
      }
    }
  }
  if (fread(buffer, 1, 2, diskfile) != 2) {
    fclose(diskfile);
    return (0);
  }
  fclose(diskfile);
  if ((memcmp(buffer, "\037\213", 2) == 0) ||
      (memcmp(buffer, "\120\113", 2) == 0) ||
      (memcmp(buffer, "\037\036", 2) == 0) ||
      (memcmp(buffer, "\037\235", 2) == 0) ||
      (memcmp(buffer, "\037\240", 2) == 0)) {
    return (1);
  } else {
    return (0);
  }
}


x86 assembly (clang, -O0):
<file_is_compressed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
lea    -0x18(%rbp),%rdx
call   1070 <file_openfile@plt>
cmp    $0x0,%rax
je     1318 <file_is_compressed+0x1b8>
lea    -0x420(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rdi
lea    0xe5d(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
lea    -0x18(%rbp),%rdx
call   1070 <file_openfile@plt>
cmp    $0x0,%rax
je     1313 <file_is_compressed+0x1b3>
mov    -0x10(%rbp),%rdi
lea    -0x420(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rdi
lea    0xe28(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
lea    -0x18(%rbp),%rdx
call   1070 <file_openfile@plt>
cmp    $0x0,%rax
je     130e <file_is_compressed+0x1ae>
mov    -0x10(%rbp),%rdi
lea    -0x420(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rdi
lea    0xdf2(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
lea    -0x18(%rbp),%rdx
call   1070 <file_openfile@plt>
cmp    $0x0,%rax
je     1309 <file_is_compressed+0x1a9>
mov    -0x10(%rbp),%rdi
lea    -0x420(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rdi
lea    0xdbc(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
lea    -0x18(%rbp),%rdx
call   1070 <file_openfile@plt>
cmp    $0x0,%rax
je     1304 <file_is_compressed+0x1a4>
mov    -0x10(%rbp),%rdi
lea    -0x420(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rdi
lea    0xd88(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
lea    -0x18(%rbp),%rdx
call   1070 <file_openfile@plt>
cmp    $0x0,%rax
je     12ff <file_is_compressed+0x19f>
mov    -0x10(%rbp),%rdi
lea    -0x420(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rdi
lea    0xd52(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
lea    -0x18(%rbp),%rdx
call   1070 <file_openfile@plt>
cmp    $0x0,%rax
je     12fa <file_is_compressed+0x19a>
mov    -0x10(%rbp),%rdi
lea    -0x420(%rbp),%rsi
call   1030 <strcpy@plt>
movl   $0x0,-0x4(%rbp)
jmp    1404 <file_is_compressed+0x2a4>
jmp    12ff <file_is_compressed+0x19f>
jmp    1304 <file_is_compressed+0x1a4>
jmp    1309 <file_is_compressed+0x1a9>
jmp    130e <file_is_compressed+0x1ae>
jmp    1313 <file_is_compressed+0x1b3>
jmp    1318 <file_is_compressed+0x1b8>
lea    -0x1a(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x1,%esi
mov    $0x2,%edx
call   1040 <fread@plt>
cmp    $0x2,%eax
je     134d <file_is_compressed+0x1ed>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
movl   $0x0,-0x4(%rbp)
jmp    1404 <file_is_compressed+0x2a4>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
lea    -0x1a(%rbp),%rdi
lea    0xcb5(%rip),%rsi
mov    $0x2,%edx
call   1060 <memcmp@plt>
cmp    $0x0,%rax
je     13f1 <file_is_compressed+0x291>
lea    -0x1a(%rbp),%rdi
lea    0xc99(%rip),%rsi
mov    $0x2,%edx
call   1060 <memcmp@plt>
cmp    $0x0,%rax
je     13f1 <file_is_compressed+0x291>
lea    -0x1a(%rbp),%rdi
lea    0xc7d(%rip),%rsi
mov    $0x2,%edx
call   1060 <memcmp@plt>
cmp    $0x0,%rax
je     13f1 <file_is_compressed+0x291>
lea    -0x1a(%rbp),%rdi
lea    0xc61(%rip),%rsi
mov    $0x2,%edx
call   1060 <memcmp@plt>
cmp    $0x0,%rax
je     13f1 <file_is_compressed+0x291>
lea    -0x1a(%rbp),%rdi
lea    0xc45(%rip),%rsi
mov    $0x2,%edx
call   1060 <memcmp@plt>
cmp    $0x0,%rax
jne    13fd <file_is_compressed+0x29d>
movl   $0x1,-0x4(%rbp)
jmp    1404 <file_is_compressed+0x2a4>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<file_is_compressed>:
push   %rbp
push   %rbx
sub    $0x418,%rsp
mov    %rdi,%rbx
xor    %ebp,%ebp
lea    0x8(%rsp),%rdx
xor    %esi,%esi
call   1070 <file_openfile@plt>
test   %rax,%rax
je     12c3 <file_is_compressed+0x163>
lea    0x10(%rsp),%rdi
mov    %rbx,%rsi
call   1030 <strcpy@plt>
lea    0xe69(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcat@plt>
lea    0x8(%rsp),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <file_openfile@plt>
test   %rax,%rax
je     12c3 <file_is_compressed+0x163>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
lea    0xe39(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcat@plt>
lea    0x8(%rsp),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <file_openfile@plt>
test   %rax,%rax
je     12c3 <file_is_compressed+0x163>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
lea    0xe08(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcat@plt>
lea    0x8(%rsp),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <file_openfile@plt>
test   %rax,%rax
je     12c3 <file_is_compressed+0x163>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
lea    0xdd7(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcat@plt>
lea    0x8(%rsp),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <file_openfile@plt>
test   %rax,%rax
je     12c3 <file_is_compressed+0x163>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
lea    0xdac(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcat@plt>
lea    0x8(%rsp),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <file_openfile@plt>
test   %rax,%rax
je     12c3 <file_is_compressed+0x163>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
lea    0xd7f(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcat@plt>
lea    0x8(%rsp),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <file_openfile@plt>
test   %rax,%rax
je     12c3 <file_is_compressed+0x163>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
xor    %ebp,%ebp
jmp    1388 <file_is_compressed+0x228>
mov    0x8(%rsp),%rcx
lea    0x6(%rsp),%rdi
mov    $0x1,%esi
mov    $0x2,%edx
call   1040 <fread@plt>
mov    %eax,%ebx
mov    0x8(%rsp),%rdi
call   1050 <fclose@plt>
cmp    $0x2,%ebx
jne    1388 <file_is_compressed+0x228>
lea    0xd1e(%rip),%rsi
lea    0x6(%rsp),%rdi
mov    $0x2,%edx
call   1060 <memcmp@plt>
test   %rax,%rax
je     1383 <file_is_compressed+0x223>
lea    0xd06(%rip),%rsi
lea    0x6(%rsp),%rdi
mov    $0x2,%edx
call   1060 <memcmp@plt>
test   %rax,%rax
je     1383 <file_is_compressed+0x223>
lea    0xcee(%rip),%rsi
lea    0x6(%rsp),%rdi
mov    $0x2,%edx
call   1060 <memcmp@plt>
test   %rax,%rax
je     1383 <file_is_compressed+0x223>
lea    0xcd6(%rip),%rsi
lea    0x6(%rsp),%rdi
mov    $0x2,%edx
call   1060 <memcmp@plt>
mov    $0x1,%ebp
test   %rax,%rax
je     1388 <file_is_compressed+0x228>
lea    0xcb9(%rip),%rsi
lea    0x6(%rsp),%rdi
mov    $0x2,%edx
call   1060 <memcmp@plt>
xor    %ebp,%ebp
test   %rax,%rax
sete   %bpl
jmp    1388 <file_is_compressed+0x228>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x418,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c".gz\00"
@.str.1 = [3 x i8] c".Z\00"
@.str.2 = [3 x i8] c".z\00"
@.str.3 = [5 x i8] c".zip\00"
@.str.4 = [3 x i8] c"-z\00"
@.str.5 = [4 x i8] c"-gz\00"
@.str.6 = [3 x i8] c"\1F\8B\00"
@.str.7 = [3 x i8] c"PK\00"
@.str.8 = [3 x i8] c"\1F\1E\00"
@.str.9 = [3 x i8] c"\1F\9D\00"
@.str.10 = [3 x i8] c"\1F\A0\00"
define i32 @file_is_compressed(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca [2 x i8]
%6 = alloca [1025 x i8]
store i8* %0, i8** %3
%7 = load i8*, i8** %3
%8 = call i64 @file_openfile(i8* %7, i32 0, i32** %4)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %74
10: ; preds = %1
%11 = getelementptr inbounds [1025 x i8], [1025 x i8]* %6, i64 0, i64 0
%12 = load i8*, i8** %3
%13 = call i32 @strcpy(i8* %11, i8* %12)
%14 = load i8*, i8** %3
%15 = call i32 @strcat(i8* %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%16 = load i8*, i8** %3
%17 = call i64 @file_openfile(i8* %16, i32 0, i32** %4)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %73
19: ; preds = %10
%20 = load i8*, i8** %3
%21 = getelementptr inbounds [1025 x i8], [1025 x i8]* %6, i64 0, i64 0
%22 = call i32 @strcpy(i8* %20, i8* %21)
%23 = load i8*, i8** %3
%24 = call i32 @strcat(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%25 = load i8*, i8** %3
%26 = call i64 @file_openfile(i8* %25, i32 0, i32** %4)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %72
28: ; preds = %19
%29 = load i8*, i8** %3
%30 = getelementptr inbounds [1025 x i8], [1025 x i8]* %6, i64 0, i64 0
%31 = call i32 @strcpy(i8* %29, i8* %30)
%32 = load i8*, i8** %3
%33 = call i32 @strcat(i8* %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%34 = load i8*, i8** %3
%35 = call i64 @file_openfile(i8* %34, i32 0, i32** %4)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %71
37: ; preds = %28
%38 = load i8*, i8** %3
%39 = getelementptr inbounds [1025 x i8], [1025 x i8]* %6, i64 0, i64 0
%40 = call i32 @strcpy(i8* %38, i8* %39)
%41 = load i8*, i8** %3
%42 = call i32 @strcat(i8* %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%43 = load i8*, i8** %3
%44 = call i64 @file_openfile(i8* %43, i32 0, i32** %4)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %70
46: ; preds = %37
%47 = load i8*, i8** %3
%48 = getelementptr inbounds [1025 x i8], [1025 x i8]* %6, i64 0, i64 0
%49 = call i32 @strcpy(i8* %47, i8* %48)
%50 = load i8*, i8** %3
%51 = call i32 @strcat(i8* %50, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%52 = load i8*, i8** %3
%53 = call i64 @file_openfile(i8* %52, i32 0, i32** %4)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %69
55: ; preds = %46
%56 = load i8*, i8** %3
%57 = getelementptr inbounds [1025 x i8], [1025 x i8]* %6, i64 0, i64 0
%58 = call i32 @strcpy(i8* %56, i8* %57)
%59 = load i8*, i8** %3
%60 = call i32 @strcat(i8* %59, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%61 = load i8*, i8** %3
%62 = call i64 @file_openfile(i8* %61, i32 0, i32** %4)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %68
64: ; preds = %55
%65 = load i8*, i8** %3
%66 = getelementptr inbounds [1025 x i8], [1025 x i8]* %6, i64 0, i64 0
%67 = call i32 @strcpy(i8* %65, i8* %66)
store i32 0, i32* %2
br label %106
68: ; preds = %55
br label %69
69: ; preds = %68, %46
br label %70
70: ; preds = %69, %37
br label %71
71: ; preds = %70, %28
br label %72
72: ; preds = %71, %19
br label %73
73: ; preds = %72, %10
br label %74
74: ; preds = %73, %1
%75 = getelementptr inbounds [2 x i8], [2 x i8]* %5, i64 0, i64 0
%76 = load i32*, i32** %4
%77 = call i32 @fread(i8* %75, i32 1, i32 2, i32* %76)
%78 = icmp ne i32 %77, 2
br i1 %78, label %79, label %82
79: ; preds = %74
%80 = load i32*, i32** %4
%81 = call i32 @fclose(i32* %80)
store i32 0, i32* %2
br label %106
82: ; preds = %74
%83 = load i32*, i32** %4
%84 = call i32 @fclose(i32* %83)
%85 = getelementptr inbounds [2 x i8], [2 x i8]* %5, i64 0, i64 0
%86 = call i64 @memcmp(i8* %85, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 2)
%87 = icmp eq i64 %86, 0
br i1 %87, label %104, label %88
88: ; preds = %82
%89 = getelementptr inbounds [2 x i8], [2 x i8]* %5, i64 0, i64 0
%90 = call i64 @memcmp(i8* %89, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%91 = icmp eq i64 %90, 0
br i1 %91, label %104, label %92
92: ; preds = %88
%93 = getelementptr inbounds [2 x i8], [2 x i8]* %5, i64 0, i64 0
%94 = call i64 @memcmp(i8* %93, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 2)
%95 = icmp eq i64 %94, 0
br i1 %95, label %104, label %96
96: ; preds = %92
%97 = getelementptr inbounds [2 x i8], [2 x i8]* %5, i64 0, i64 0
%98 = call i64 @memcmp(i8* %97, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 2)
%99 = icmp eq i64 %98, 0
br i1 %99, label %104, label %100
100: ; preds = %96
%101 = getelementptr inbounds [2 x i8], [2 x i8]* %5, i64 0, i64 0
%102 = call i64 @memcmp(i8* %101, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 2)
%103 = icmp eq i64 %102, 0
br i1 %103, label %104, label %105
104: ; preds = %100, %96, %92, %88, %82
store i32 1, i32* %2
br label %106
105: ; preds = %100
store i32 0, i32* %2
br label %106
106: ; preds = %105, %104, %79, %64
%107 = load i32, i32* %2
ret i32 %107
}

LLVM IR (-O2):
@.str = [4 x i8] c".gz\00"
@.str.1 = [3 x i8] c".Z\00"
@.str.2 = [3 x i8] c".z\00"
@.str.3 = [5 x i8] c".zip\00"
@.str.4 = [3 x i8] c"-z\00"
@.str.5 = [4 x i8] c"-gz\00"
@.str.6 = [3 x i8] c"\1F\8B\00"
@.str.7 = [3 x i8] c"PK\00"
@.str.8 = [3 x i8] c"\1F\1E\00"
@.str.9 = [3 x i8] c"\1F\9D\00"
@.str.10 = [3 x i8] c"\1F\A0\00"
define i32 @file_is_compressed(i8* %0) {
%2 = alloca i32*
%3 = alloca [2 x i8]
%4 = alloca [1025 x i8]
%5 = bitcast i32** %2 to i8*
%6 = getelementptr inbounds [2 x i8], [2 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [1025 x i8], [1025 x i8]* %4, i64 0, i64 0
%8 = call i64 @file_openfile(i8* %0, i32 0, i32** %2)
%9 = icmp eq i64 %8, 0
br i1 %9, label %42, label %10
10: ; preds = %1
%11 = call i32 @strcpy(i8* %7, i8* %0)
%12 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%13 = call i64 @file_openfile(i8* %0, i32 0, i32** %2)
%14 = icmp eq i64 %13, 0
br i1 %14, label %42, label %15
15: ; preds = %10
%16 = call i32 @strcpy(i8* %0, i8* %7)
%17 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%18 = call i64 @file_openfile(i8* %0, i32 0, i32** %2)
%19 = icmp eq i64 %18, 0
br i1 %19, label %42, label %20
20: ; preds = %15
%21 = call i32 @strcpy(i8* %0, i8* %7)
%22 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%23 = call i64 @file_openfile(i8* %0, i32 0, i32** %2)
%24 = icmp eq i64 %23, 0
br i1 %24, label %42, label %25
25: ; preds = %20
%26 = call i32 @strcpy(i8* %0, i8* %7)
%27 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%28 = call i64 @file_openfile(i8* %0, i32 0, i32** %2)
%29 = icmp eq i64 %28, 0
br i1 %29, label %42, label %30
30: ; preds = %25
%31 = call i32 @strcpy(i8* %0, i8* %7)
%32 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%33 = call i64 @file_openfile(i8* %0, i32 0, i32** %2)
%34 = icmp eq i64 %33, 0
br i1 %34, label %42, label %35
35: ; preds = %30
%36 = call i32 @strcpy(i8* %0, i8* %7)
%37 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%38 = call i64 @file_openfile(i8* %0, i32 0, i32** %2)
%39 = icmp eq i64 %38, 0
br i1 %39, label %42, label %40
40: ; preds = %35
%41 = call i32 @strcpy(i8* %0, i8* %7)
br label %64
42: ; preds = %10, %20, %30, %35, %25, %15, %1
%43 = load i32*, i32** %2
%44 = call i32 @fread(i8* %6, i32 1, i32 2, i32* %43)
%45 = icmp eq i32 %44, 2
%46 = load i32*, i32** %2
%47 = call i32 @fclose(i32* %46)
br i1 %45, label %48, label %64
48: ; preds = %42
%49 = call i64 @memcmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 2)
%50 = icmp eq i64 %49, 0
br i1 %50, label %64, label %51
51: ; preds = %48
%52 = call i64 @memcmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%53 = icmp eq i64 %52, 0
br i1 %53, label %64, label %54
54: ; preds = %51
%55 = call i64 @memcmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 2)
%56 = icmp eq i64 %55, 0
br i1 %56, label %64, label %57
57: ; preds = %54
%58 = call i64 @memcmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 2)
%59 = icmp eq i64 %58, 0
br i1 %59, label %64, label %60
60: ; preds = %57
%61 = call i64 @memcmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 2)
%62 = icmp eq i64 %61, 0
%63 = zext i1 %62 to i32
br label %64
64: ; preds = %42, %60, %48, %51, %54, %57, %40
%65 = phi i32 [ 0, %40 ], [ 1, %57 ], [ 1, %54 ], [ 1, %51 ], [ 1, %48 ], [ %63, %60 ], [ 0, %42 ]
ret i32 %65
}