#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 */

/* Variables and functions */
scalar_t__ memcmp(char const *, char *, int);
int check_icon_type(const char *type) {
  if (memcmp(type, "ICON", 4) == 0 || memcmp(type, "ICN#", 4) == 0 ||
      memcmp(type, "icm#", 4) == 0 || memcmp(type, "icm4", 4) == 0 ||
      memcmp(type, "icm8", 4) == 0 || memcmp(type, "ics#", 4) == 0 ||
      memcmp(type, "ics4", 4) == 0 || memcmp(type, "ics8", 4) == 0 ||
      memcmp(type, "is32", 4) == 0 || memcmp(type, "s8mk", 4) == 0 ||
      memcmp(type, "icl4", 4) == 0 || memcmp(type, "icl8", 4) == 0 ||
      memcmp(type, "il32", 4) == 0 || memcmp(type, "l8mk", 4) == 0 ||
      memcmp(type, "ich#", 4) == 0 || memcmp(type, "ich4", 4) == 0 ||
      memcmp(type, "ich8", 4) == 0 || memcmp(type, "ih32", 4) == 0 ||
      memcmp(type, "h8mk", 4) == 0 || memcmp(type, "it32", 4) == 0 ||
      memcmp(type, "t8mk", 4) == 0 || memcmp(type, "icp4", 4) == 0 ||
      memcmp(type, "icp5", 4) == 0 || memcmp(type, "icp6", 4) == 0 ||
      memcmp(type, "ic07", 4) == 0 || memcmp(type, "ic08", 4) == 0 ||
      memcmp(type, "ic09", 4) == 0 || memcmp(type, "ic10", 4) == 0 ||
      memcmp(type, "ic11", 4) == 0 || memcmp(type, "ic12", 4) == 0 ||
      memcmp(type, "ic13", 4) == 0 || memcmp(type, "ic14", 4) == 0 ||
      memcmp(type, "TOC ", 4) == 0 || memcmp(type, "icnV", 4) == 0)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<check_icon_type>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xebf(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xea5(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xe8b(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xe71(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xe57(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xe3d(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xe23(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xe09(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xdef(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xdd5(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xdbb(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xda1(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xd87(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xd6d(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xd53(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xd39(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xd1f(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xd05(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xceb(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xcd1(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xcb7(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xc9d(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xc83(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xc69(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xc4f(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xc35(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xc1b(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xc01(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xbe7(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xbcd(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xbb3(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xb99(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
je     153a <check_icon_type+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xb7f(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
cmp    $0x0,%rax
jne    1546 <check_icon_type+0x436>
movl   $0x1,-0x4(%rbp)
jmp    154d <check_icon_type+0x43d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_icon_type>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee3(%rip),%rsi
mov    $0x4,%edx
call   1030 <memcmp@plt>
mov    $0x1,%ebp
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xec9(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xeb1(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xe99(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xe81(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xe69(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xe51(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xe39(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xe21(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xe09(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xdf1(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xdd9(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xdc1(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xda9(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xd91(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xd79(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xd61(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xd49(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xd31(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xd19(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xd01(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xce9(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xcd1(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xcb9(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xca1(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xc89(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xc71(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xc59(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xc41(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xc29(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xc15(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xc01(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xbed(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
test   %rax,%rax
je     14e2 <check_icon_type+0x3d2>
lea    0xbd9(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <memcmp@plt>
xor    %ebp,%ebp
test   %rax,%rax
sete   %bpl
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"ICON\00"
@.str.1 = [5 x i8] c"ICN#\00"
@.str.2 = [5 x i8] c"icm#\00"
@.str.3 = [5 x i8] c"icm4\00"
@.str.4 = [5 x i8] c"icm8\00"
@.str.5 = [5 x i8] c"ics#\00"
@.str.6 = [5 x i8] c"ics4\00"
@.str.7 = [5 x i8] c"ics8\00"
@.str.8 = [5 x i8] c"is32\00"
@.str.9 = [5 x i8] c"s8mk\00"
@.str.10 = [5 x i8] c"icl4\00"
@.str.11 = [5 x i8] c"icl8\00"
@.str.12 = [5 x i8] c"il32\00"
@.str.13 = [5 x i8] c"l8mk\00"
@.str.14 = [5 x i8] c"ich#\00"
@.str.15 = [5 x i8] c"ich4\00"
@.str.16 = [5 x i8] c"ich8\00"
@.str.17 = [5 x i8] c"ih32\00"
@.str.18 = [5 x i8] c"h8mk\00"
@.str.19 = [5 x i8] c"it32\00"
@.str.20 = [5 x i8] c"t8mk\00"
@.str.21 = [5 x i8] c"icp4\00"
@.str.22 = [5 x i8] c"icp5\00"
@.str.23 = [5 x i8] c"icp6\00"
@.str.24 = [5 x i8] c"ic07\00"
@.str.25 = [5 x i8] c"ic08\00"
@.str.26 = [5 x i8] c"ic09\00"
@.str.27 = [5 x i8] c"ic10\00"
@.str.28 = [5 x i8] c"ic11\00"
@.str.29 = [5 x i8] c"ic12\00"
@.str.30 = [5 x i8] c"ic13\00"
@.str.31 = [5 x i8] c"ic14\00"
@.str.32 = [5 x i8] c"TOC \00"
@.str.33 = [5 x i8] c"icnV\00"
define i32 @check_icon_type(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i64 @memcmp(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %139, label %7
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i64 @memcmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 4)
%10 = icmp eq i64 %9, 0
br i1 %10, label %139, label %11
11: ; preds = %7
%12 = load i8*, i8** %3
%13 = call i64 @memcmp(i8* %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 4)
%14 = icmp eq i64 %13, 0
br i1 %14, label %139, label %15
15: ; preds = %11
%16 = load i8*, i8** %3
%17 = call i64 @memcmp(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 4)
%18 = icmp eq i64 %17, 0
br i1 %18, label %139, label %19
19: ; preds = %15
%20 = load i8*, i8** %3
%21 = call i64 @memcmp(i8* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 4)
%22 = icmp eq i64 %21, 0
br i1 %22, label %139, label %23
23: ; preds = %19
%24 = load i8*, i8** %3
%25 = call i64 @memcmp(i8* %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 4)
%26 = icmp eq i64 %25, 0
br i1 %26, label %139, label %27
27: ; preds = %23
%28 = load i8*, i8** %3
%29 = call i64 @memcmp(i8* %28, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%30 = icmp eq i64 %29, 0
br i1 %30, label %139, label %31
31: ; preds = %27
%32 = load i8*, i8** %3
%33 = call i64 @memcmp(i8* %32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 4)
%34 = icmp eq i64 %33, 0
br i1 %34, label %139, label %35
35: ; preds = %31
%36 = load i8*, i8** %3
%37 = call i64 @memcmp(i8* %36, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 4)
%38 = icmp eq i64 %37, 0
br i1 %38, label %139, label %39
39: ; preds = %35
%40 = load i8*, i8** %3
%41 = call i64 @memcmp(i8* %40, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 4)
%42 = icmp eq i64 %41, 0
br i1 %42, label %139, label %43
43: ; preds = %39
%44 = load i8*, i8** %3
%45 = call i64 @memcmp(i8* %44, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 4)
%46 = icmp eq i64 %45, 0
br i1 %46, label %139, label %47
47: ; preds = %43
%48 = load i8*, i8** %3
%49 = call i64 @memcmp(i8* %48, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 4)
%50 = icmp eq i64 %49, 0
br i1 %50, label %139, label %51
51: ; preds = %47
%52 = load i8*, i8** %3
%53 = call i64 @memcmp(i8* %52, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 4)
%54 = icmp eq i64 %53, 0
br i1 %54, label %139, label %55
55: ; preds = %51
%56 = load i8*, i8** %3
%57 = call i64 @memcmp(i8* %56, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i32 4)
%58 = icmp eq i64 %57, 0
br i1 %58, label %139, label %59
59: ; preds = %55
%60 = load i8*, i8** %3
%61 = call i64 @memcmp(i8* %60, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i32 4)
%62 = icmp eq i64 %61, 0
br i1 %62, label %139, label %63
63: ; preds = %59
%64 = load i8*, i8** %3
%65 = call i64 @memcmp(i8* %64, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 4)
%66 = icmp eq i64 %65, 0
br i1 %66, label %139, label %67
67: ; preds = %63
%68 = load i8*, i8** %3
%69 = call i64 @memcmp(i8* %68, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 4)
%70 = icmp eq i64 %69, 0
br i1 %70, label %139, label %71
71: ; preds = %67
%72 = load i8*, i8** %3
%73 = call i64 @memcmp(i8* %72, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i32 4)
%74 = icmp eq i64 %73, 0
br i1 %74, label %139, label %75
75: ; preds = %71
%76 = load i8*, i8** %3
%77 = call i64 @memcmp(i8* %76, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), i32 4)
%78 = icmp eq i64 %77, 0
br i1 %78, label %139, label %79
79: ; preds = %75
%80 = load i8*, i8** %3
%81 = call i64 @memcmp(i8* %80, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 4)
%82 = icmp eq i64 %81, 0
br i1 %82, label %139, label %83
83: ; preds = %79
%84 = load i8*, i8** %3
%85 = call i64 @memcmp(i8* %84, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 4)
%86 = icmp eq i64 %85, 0
br i1 %86, label %139, label %87
87: ; preds = %83
%88 = load i8*, i8** %3
%89 = call i64 @memcmp(i8* %88, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i32 4)
%90 = icmp eq i64 %89, 0
br i1 %90, label %139, label %91
91: ; preds = %87
%92 = load i8*, i8** %3
%93 = call i64 @memcmp(i8* %92, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0), i32 4)
%94 = icmp eq i64 %93, 0
br i1 %94, label %139, label %95
95: ; preds = %91
%96 = load i8*, i8** %3
%97 = call i64 @memcmp(i8* %96, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0), i32 4)
%98 = icmp eq i64 %97, 0
br i1 %98, label %139, label %99
99: ; preds = %95
%100 = load i8*, i8** %3
%101 = call i64 @memcmp(i8* %100, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), i32 4)
%102 = icmp eq i64 %101, 0
br i1 %102, label %139, label %103
103: ; preds = %99
%104 = load i8*, i8** %3
%105 = call i64 @memcmp(i8* %104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0), i32 4)
%106 = icmp eq i64 %105, 0
br i1 %106, label %139, label %107
107: ; preds = %103
%108 = load i8*, i8** %3
%109 = call i64 @memcmp(i8* %108, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0), i32 4)
%110 = icmp eq i64 %109, 0
br i1 %110, label %139, label %111
111: ; preds = %107
%112 = load i8*, i8** %3
%113 = call i64 @memcmp(i8* %112, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i32 4)
%114 = icmp eq i64 %113, 0
br i1 %114, label %139, label %115
115: ; preds = %111
%116 = load i8*, i8** %3
%117 = call i64 @memcmp(i8* %116, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.28, i64 0, i64 0), i32 4)
%118 = icmp eq i64 %117, 0
br i1 %118, label %139, label %119
119: ; preds = %115
%120 = load i8*, i8** %3
%121 = call i64 @memcmp(i8* %120, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0), i32 4)
%122 = icmp eq i64 %121, 0
br i1 %122, label %139, label %123
123: ; preds = %119
%124 = load i8*, i8** %3
%125 = call i64 @memcmp(i8* %124, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.30, i64 0, i64 0), i32 4)
%126 = icmp eq i64 %125, 0
br i1 %126, label %139, label %127
127: ; preds = %123
%128 = load i8*, i8** %3
%129 = call i64 @memcmp(i8* %128, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.31, i64 0, i64 0), i32 4)
%130 = icmp eq i64 %129, 0
br i1 %130, label %139, label %131
131: ; preds = %127
%132 = load i8*, i8** %3
%133 = call i64 @memcmp(i8* %132, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i64 0, i64 0), i32 4)
%134 = icmp eq i64 %133, 0
br i1 %134, label %139, label %135
135: ; preds = %131
%136 = load i8*, i8** %3
%137 = call i64 @memcmp(i8* %136, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0), i32 4)
%138 = icmp eq i64 %137, 0
br i1 %138, label %139, label %140
139: ; preds = %135, %131, %127, %123, %119, %115, %111, %107, %103, %99, %95, %91, %87, %83, %79, %75, %71, %67, %63, %59, %55, %51, %47, %43, %39, %35, %31, %27, %23, %19, %15, %11, %7, %1
store i32 1, i32* %2
br label %141
140: ; preds = %135
store i32 0, i32* %2
br label %141
141: ; preds = %140, %139
%142 = load i32, i32* %2
ret i32 %142
}

LLVM IR (-O2):
@.str = [5 x i8] c"ICON\00"
@.str.1 = [5 x i8] c"ICN#\00"
@.str.2 = [5 x i8] c"icm#\00"
@.str.3 = [5 x i8] c"icm4\00"
@.str.4 = [5 x i8] c"icm8\00"
@.str.5 = [5 x i8] c"ics#\00"
@.str.6 = [5 x i8] c"ics4\00"
@.str.7 = [5 x i8] c"ics8\00"
@.str.8 = [5 x i8] c"is32\00"
@.str.9 = [5 x i8] c"s8mk\00"
@.str.10 = [5 x i8] c"icl4\00"
@.str.11 = [5 x i8] c"icl8\00"
@.str.12 = [5 x i8] c"il32\00"
@.str.13 = [5 x i8] c"l8mk\00"
@.str.14 = [5 x i8] c"ich#\00"
@.str.15 = [5 x i8] c"ich4\00"
@.str.16 = [5 x i8] c"ich8\00"
@.str.17 = [5 x i8] c"ih32\00"
@.str.18 = [5 x i8] c"h8mk\00"
@.str.19 = [5 x i8] c"it32\00"
@.str.20 = [5 x i8] c"t8mk\00"
@.str.21 = [5 x i8] c"icp4\00"
@.str.22 = [5 x i8] c"icp5\00"
@.str.23 = [5 x i8] c"icp6\00"
@.str.24 = [5 x i8] c"ic07\00"
@.str.25 = [5 x i8] c"ic08\00"
@.str.26 = [5 x i8] c"ic09\00"
@.str.27 = [5 x i8] c"ic10\00"
@.str.28 = [5 x i8] c"ic11\00"
@.str.29 = [5 x i8] c"ic12\00"
@.str.30 = [5 x i8] c"ic13\00"
@.str.31 = [5 x i8] c"ic14\00"
@.str.32 = [5 x i8] c"TOC \00"
@.str.33 = [5 x i8] c"icnV\00"
define i32 @check_icon_type(i8* %0) {
%2 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%3 = icmp eq i64 %2, 0
br i1 %3, label %104, label %4
4: ; preds = %1
%5 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %104, label %7
7: ; preds = %4
%8 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 4)
%9 = icmp eq i64 %8, 0
br i1 %9, label %104, label %10
10: ; preds = %7
%11 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 4)
%12 = icmp eq i64 %11, 0
br i1 %12, label %104, label %13
13: ; preds = %10
%14 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 4)
%15 = icmp eq i64 %14, 0
br i1 %15, label %104, label %16
16: ; preds = %13
%17 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 4)
%18 = icmp eq i64 %17, 0
br i1 %18, label %104, label %19
19: ; preds = %16
%20 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%21 = icmp eq i64 %20, 0
br i1 %21, label %104, label %22
22: ; preds = %19
%23 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 4)
%24 = icmp eq i64 %23, 0
br i1 %24, label %104, label %25
25: ; preds = %22
%26 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 4)
%27 = icmp eq i64 %26, 0
br i1 %27, label %104, label %28
28: ; preds = %25
%29 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 4)
%30 = icmp eq i64 %29, 0
br i1 %30, label %104, label %31
31: ; preds = %28
%32 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 4)
%33 = icmp eq i64 %32, 0
br i1 %33, label %104, label %34
34: ; preds = %31
%35 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 4)
%36 = icmp eq i64 %35, 0
br i1 %36, label %104, label %37
37: ; preds = %34
%38 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 4)
%39 = icmp eq i64 %38, 0
br i1 %39, label %104, label %40
40: ; preds = %37
%41 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i32 4)
%42 = icmp eq i64 %41, 0
br i1 %42, label %104, label %43
43: ; preds = %40
%44 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i32 4)
%45 = icmp eq i64 %44, 0
br i1 %45, label %104, label %46
46: ; preds = %43
%47 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 4)
%48 = icmp eq i64 %47, 0
br i1 %48, label %104, label %49
49: ; preds = %46
%50 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 4)
%51 = icmp eq i64 %50, 0
br i1 %51, label %104, label %52
52: ; preds = %49
%53 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i32 4)
%54 = icmp eq i64 %53, 0
br i1 %54, label %104, label %55
55: ; preds = %52
%56 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), i32 4)
%57 = icmp eq i64 %56, 0
br i1 %57, label %104, label %58
58: ; preds = %55
%59 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 4)
%60 = icmp eq i64 %59, 0
br i1 %60, label %104, label %61
61: ; preds = %58
%62 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 4)
%63 = icmp eq i64 %62, 0
br i1 %63, label %104, label %64
64: ; preds = %61
%65 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i32 4)
%66 = icmp eq i64 %65, 0
br i1 %66, label %104, label %67
67: ; preds = %64
%68 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0), i32 4)
%69 = icmp eq i64 %68, 0
br i1 %69, label %104, label %70
70: ; preds = %67
%71 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0), i32 4)
%72 = icmp eq i64 %71, 0
br i1 %72, label %104, label %73
73: ; preds = %70
%74 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), i32 4)
%75 = icmp eq i64 %74, 0
br i1 %75, label %104, label %76
76: ; preds = %73
%77 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0), i32 4)
%78 = icmp eq i64 %77, 0
br i1 %78, label %104, label %79
79: ; preds = %76
%80 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0), i32 4)
%81 = icmp eq i64 %80, 0
br i1 %81, label %104, label %82
82: ; preds = %79
%83 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i32 4)
%84 = icmp eq i64 %83, 0
br i1 %84, label %104, label %85
85: ; preds = %82
%86 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.28, i64 0, i64 0), i32 4)
%87 = icmp eq i64 %86, 0
br i1 %87, label %104, label %88
88: ; preds = %85
%89 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0), i32 4)
%90 = icmp eq i64 %89, 0
br i1 %90, label %104, label %91
91: ; preds = %88
%92 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.30, i64 0, i64 0), i32 4)
%93 = icmp eq i64 %92, 0
br i1 %93, label %104, label %94
94: ; preds = %91
%95 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.31, i64 0, i64 0), i32 4)
%96 = icmp eq i64 %95, 0
br i1 %96, label %104, label %97
97: ; preds = %94
%98 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i64 0, i64 0), i32 4)
%99 = icmp eq i64 %98, 0
br i1 %99, label %104, label %100
100: ; preds = %97
%101 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0), i32 4)
%102 = icmp eq i64 %101, 0
%103 = zext i1 %102 to i32
br label %104
104: ; preds = %100, %1, %4, %7, %10, %13, %16, %19, %22, %25, %28, %31, %34, %37, %40, %43, %46, %49, %52, %55, %58, %61, %64, %67, %70, %73, %76, %79, %82, %85, %88, %91, %94, %97
%105 = phi i32 [ 1, %97 ], [ 1, %94 ], [ 1, %91 ], [ 1, %88 ], [ 1, %85 ], [ 1, %82 ], [ 1, %79 ], [ 1, %76 ], [ 1, %73 ], [ 1, %70 ], [ 1, %67 ], [ 1, %64 ], [ 1, %61 ], [ 1, %58 ], [ 1, %55 ], [ 1, %52 ], [ 1, %49 ], [ 1, %46 ], [ 1, %43 ], [ 1, %40 ], [ 1, %37 ], [ 1, %34 ], [ 1, %31 ], [ 1, %28 ], [ 1, %25 ], [ 1, %22 ], [ 1, %19 ], [ 1, %16 ], [ 1, %13 ], [ 1, %10 ], [ 1, %7 ], [ 1, %4 ], [ 1, %1 ], [ %103, %100 ]
ret i32 %105
}