#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 */
int /*<<< orphan*/ memcpy(char *, unsigned char *, int);
int /*<<< orphan*/ *strchr(char *, unsigned char);
int /*<<< orphan*/ strcpy(char *, char const *);
int check_file_type(char *name, char *type, unsigned char *buf) {
  int a;
  const char *t = NULL;
  if ((buf[1] == 0xd3) && (buf[2] == 0xd3) && (buf[3] == 0xd3)) {
    t = "BASIC";
    memcpy(name, &buf[4], 8);
    name[8] = '\0';
  }
  if ((buf[1] == 0xd4) && (buf[2] == 0xd4) && (buf[3] == 0xd4)) {
    t = "DATA";
    memcpy(name, &buf[4], 8);
    name[8] = '\0';
  }
  if ((buf[1] == 0xd5) && (buf[2] == 0xd5) && (buf[3] == 0xd5)) {
    t = "LIST";
    memcpy(name, &buf[4], 8);
    name[8] = '\0';
  }
  if ((buf[1] == 0xd7) && (buf[2] == 0xd7) && (buf[3] == 0xd7)) {
    t = "BASIC*";
    memcpy(name, &buf[4], 8);
    name[8] = '\0';
  }
  if ((buf[9] == 'C') && (buf[10] == 'O') && (buf[11] == 'M')) {
    t = "COM";
    memcpy(name, &buf[1], 8);
    name[8] = '\0';
  }
  if ((buf[9] == 'A') && (buf[10] == 'S') && (buf[11] == 'M')) {
    t = "ASM";
    memcpy(name, &buf[1], 8);
    name[8] = '\0';
  }
  if ((buf[9] == 'T') && (buf[10] == 'X') && (buf[11] == 'T')) {
    t = "TXT";
    memcpy(name, &buf[1], 8);
    name[8] = '\0';
  }
  if ((buf[9] == 'P') && (buf[10] == 'A') && (buf[11] == 'S')) {
    t = "PAS";
    memcpy(name, &buf[1], 8);
    name[8] = '\0';
  }
  if ((buf[9] == 'S') && (buf[10] == 'C') && (buf[11] == 'R')) {
    t = "SCR";
    memcpy(name, &buf[1], 8);
    name[8] = '\0';
  }
  if ((buf[9] == '\0') && (buf[10] == '\0') && (buf[11] == '\0'))
    if (strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", buf[1]) != NULL) {
      t = "(none)";
      memcpy(name, &buf[1], 8);
      name[8] = '\0';
    }
  if (t == NULL)
    return 0;
  for (a = 7; (a > 0) && name[a] == ' '; a--)
    name[a] = '\0';
  strcpy(type, t);
  return 1;
}


x86 assembly (clang, -O0):
<check_file_type>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movq   $0x0,-0x30(%rbp)
mov    -0x20(%rbp),%rax
movzbl 0x1(%rax),%eax
cmp    $0xd3,%eax
jne    11ae <check_file_type+0x7e>
mov    -0x20(%rbp),%rax
movzbl 0x2(%rax),%eax
cmp    $0xd3,%eax
jne    11ae <check_file_type+0x7e>
mov    -0x20(%rbp),%rax
movzbl 0x3(%rax),%eax
cmp    $0xd3,%eax
jne    11ae <check_file_type+0x7e>
lea    0xe74(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
add    $0x4,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
mov    -0x10(%rbp),%rax
movb   $0x0,0x8(%rax)
mov    -0x20(%rbp),%rax
movzbl 0x1(%rax),%eax
cmp    $0xd4,%eax
jne    1210 <check_file_type+0xe0>
mov    -0x20(%rbp),%rax
movzbl 0x2(%rax),%eax
cmp    $0xd4,%eax
jne    1210 <check_file_type+0xe0>
mov    -0x20(%rbp),%rax
movzbl 0x3(%rax),%eax
cmp    $0xd4,%eax
jne    1210 <check_file_type+0xe0>
lea    0xe18(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
add    $0x4,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
mov    -0x10(%rbp),%rax
movb   $0x0,0x8(%rax)
mov    -0x20(%rbp),%rax
movzbl 0x1(%rax),%eax
cmp    $0xd5,%eax
jne    1272 <check_file_type+0x142>
mov    -0x20(%rbp),%rax
movzbl 0x2(%rax),%eax
cmp    $0xd5,%eax
jne    1272 <check_file_type+0x142>
mov    -0x20(%rbp),%rax
movzbl 0x3(%rax),%eax
cmp    $0xd5,%eax
jne    1272 <check_file_type+0x142>
lea    0xdbb(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
add    $0x4,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
mov    -0x10(%rbp),%rax
movb   $0x0,0x8(%rax)
mov    -0x20(%rbp),%rax
movzbl 0x1(%rax),%eax
cmp    $0xd7,%eax
jne    12d4 <check_file_type+0x1a4>
mov    -0x20(%rbp),%rax
movzbl 0x2(%rax),%eax
cmp    $0xd7,%eax
jne    12d4 <check_file_type+0x1a4>
mov    -0x20(%rbp),%rax
movzbl 0x3(%rax),%eax
cmp    $0xd7,%eax
jne    12d4 <check_file_type+0x1a4>
lea    0xd5e(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
add    $0x4,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
mov    -0x10(%rbp),%rax
movb   $0x0,0x8(%rax)
mov    -0x20(%rbp),%rax
movzbl 0x9(%rax),%eax
cmp    $0x43,%eax
jne    1330 <check_file_type+0x200>
mov    -0x20(%rbp),%rax
movzbl 0xa(%rax),%eax
cmp    $0x4f,%eax
jne    1330 <check_file_type+0x200>
mov    -0x20(%rbp),%rax
movzbl 0xb(%rax),%eax
cmp    $0x4d,%eax
jne    1330 <check_file_type+0x200>
lea    0xd09(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
add    $0x1,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
mov    -0x10(%rbp),%rax
movb   $0x0,0x8(%rax)
mov    -0x20(%rbp),%rax
movzbl 0x9(%rax),%eax
cmp    $0x41,%eax
jne    138c <check_file_type+0x25c>
mov    -0x20(%rbp),%rax
movzbl 0xa(%rax),%eax
cmp    $0x53,%eax
jne    138c <check_file_type+0x25c>
mov    -0x20(%rbp),%rax
movzbl 0xb(%rax),%eax
cmp    $0x4d,%eax
jne    138c <check_file_type+0x25c>
lea    0xcb1(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
add    $0x1,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
mov    -0x10(%rbp),%rax
movb   $0x0,0x8(%rax)
mov    -0x20(%rbp),%rax
movzbl 0x9(%rax),%eax
cmp    $0x54,%eax
jne    13e8 <check_file_type+0x2b8>
mov    -0x20(%rbp),%rax
movzbl 0xa(%rax),%eax
cmp    $0x58,%eax
jne    13e8 <check_file_type+0x2b8>
mov    -0x20(%rbp),%rax
movzbl 0xb(%rax),%eax
cmp    $0x54,%eax
jne    13e8 <check_file_type+0x2b8>
lea    0xc59(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
add    $0x1,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
mov    -0x10(%rbp),%rax
movb   $0x0,0x8(%rax)
mov    -0x20(%rbp),%rax
movzbl 0x9(%rax),%eax
cmp    $0x50,%eax
jne    1444 <check_file_type+0x314>
mov    -0x20(%rbp),%rax
movzbl 0xa(%rax),%eax
cmp    $0x41,%eax
jne    1444 <check_file_type+0x314>
mov    -0x20(%rbp),%rax
movzbl 0xb(%rax),%eax
cmp    $0x53,%eax
jne    1444 <check_file_type+0x314>
lea    0xc01(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
add    $0x1,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
mov    -0x10(%rbp),%rax
movb   $0x0,0x8(%rax)
mov    -0x20(%rbp),%rax
movzbl 0x9(%rax),%eax
cmp    $0x53,%eax
jne    14a0 <check_file_type+0x370>
mov    -0x20(%rbp),%rax
movzbl 0xa(%rax),%eax
cmp    $0x43,%eax
jne    14a0 <check_file_type+0x370>
mov    -0x20(%rbp),%rax
movzbl 0xb(%rax),%eax
cmp    $0x52,%eax
jne    14a0 <check_file_type+0x370>
lea    0xba9(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
add    $0x1,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
mov    -0x10(%rbp),%rax
movb   $0x0,0x8(%rax)
mov    -0x20(%rbp),%rax
movzbl 0x9(%rax),%eax
cmp    $0x0,%eax
jne    151f <check_file_type+0x3ef>
mov    -0x20(%rbp),%rax
movzbl 0xa(%rax),%eax
cmp    $0x0,%eax
jne    151f <check_file_type+0x3ef>
mov    -0x20(%rbp),%rax
movzbl 0xb(%rax),%eax
cmp    $0x0,%eax
jne    151f <check_file_type+0x3ef>
mov    -0x20(%rbp),%rax
lea    0xb4d(%rip),%rdi
movzbl 0x1(%rax),%esi
call   1040 <strchr@plt>
cmp    $0x0,%rax
je     151a <check_file_type+0x3ea>
lea    0xb58(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
add    $0x1,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
mov    -0x10(%rbp),%rax
movb   $0x0,0x8(%rax)
jmp    151f <check_file_type+0x3ef>
cmpq   $0x0,-0x30(%rbp)
jne    1536 <check_file_type+0x406>
movl   $0x0,-0x4(%rbp)
jmp    159f <check_file_type+0x46f>
movl   $0x7,-0x24(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x24(%rbp)
mov    %al,-0x31(%rbp)
jle    1561 <check_file_type+0x431>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
sete   %al
mov    %al,-0x31(%rbp)
mov    -0x31(%rbp),%al
test   $0x1,%al
jne    1571 <check_file_type+0x441>
jmp    158b <check_file_type+0x45b>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    153d <check_file_type+0x40d>
mov    -0x18(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1030 <strcpy@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_file_type>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %rdi,%r15
mov    0x1(%rdx),%al
cmp    $0xd3,%al
jne    11bb <check_file_type+0x8b>
cmpb   $0xd3,0x2(%rbx)
jne    1221 <check_file_type+0xf1>
cmpb   $0xd3,0x3(%rbx)
jne    1221 <check_file_type+0xf1>
lea    0x4(%rbx),%rsi
mov    %r15,%rdi
mov    $0x8,%edx
call   1050 <memcpy@plt>
movb   $0x0,0x8(%r15)
mov    0x1(%rbx),%al
lea    0xe83(%rip),%r12
cmp    $0xd4,%al
je     11c2 <check_file_type+0x92>
cmp    $0xd5,%al
jne    11f2 <check_file_type+0xc2>
cmpb   $0xd5,0x2(%rbx)
jne    1224 <check_file_type+0xf4>
cmpb   $0xd5,0x3(%rbx)
jne    1224 <check_file_type+0xf4>
lea    0x4(%rbx),%rsi
mov    %r15,%rdi
mov    $0x8,%edx
call   1050 <memcpy@plt>
movb   $0x0,0x8(%r15)
mov    0x1(%rbx),%al
lea    0xe52(%rip),%r12
jmp    11f2 <check_file_type+0xc2>
xor    %r12d,%r12d
cmp    $0xd4,%al
jne    1181 <check_file_type+0x51>
cmpb   $0xd4,0x2(%rbx)
jne    1224 <check_file_type+0xf4>
cmpb   $0xd4,0x3(%rbx)
jne    1224 <check_file_type+0xf4>
lea    0x4(%rbx),%rsi
mov    %r15,%rdi
mov    $0x8,%edx
call   1050 <memcpy@plt>
movb   $0x0,0x8(%r15)
mov    0x1(%rbx),%al
lea    0xe18(%rip),%r12
cmp    $0xd5,%al
je     1185 <check_file_type+0x55>
cmp    $0xd7,%al
jne    1224 <check_file_type+0xf4>
cmpb   $0xd7,0x2(%rbx)
jne    1224 <check_file_type+0xf4>
cmpb   $0xd7,0x3(%rbx)
jne    1224 <check_file_type+0xf4>
lea    0x4(%rbx),%rsi
mov    %r15,%rdi
mov    $0x8,%edx
call   1050 <memcpy@plt>
movb   $0x0,0x8(%r15)
lea    0xdf1(%rip),%r12
jmp    1224 <check_file_type+0xf4>
xor    %r12d,%r12d
lea    0x1(%rbx),%r13
mov    0x9(%rbx),%al
cmp    $0x43,%al
jne    1262 <check_file_type+0x132>
cmpb   $0x4f,0xa(%rbx)
jne    133e <check_file_type+0x20e>
cmpb   $0x4d,0xb(%rbx)
jne    133e <check_file_type+0x20e>
mov    %r15,%rdi
mov    %r13,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
movb   $0x0,0x8(%r15)
mov    0x9(%rbx),%al
lea    0xdb5(%rip),%r12
cmp    $0x41,%al
jne    1299 <check_file_type+0x169>
cmpb   $0x53,0xa(%rbx)
jne    133e <check_file_type+0x20e>
cmpb   $0x4d,0xb(%rbx)
jne    133e <check_file_type+0x20e>
mov    %r15,%rdi
mov    %r13,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
movb   $0x0,0x8(%r15)
mov    0x9(%rbx),%al
lea    0xd82(%rip),%r12
cmp    $0x54,%al
jne    12d0 <check_file_type+0x1a0>
cmpb   $0x58,0xa(%rbx)
jne    133e <check_file_type+0x20e>
cmpb   $0x54,0xb(%rbx)
jne    133e <check_file_type+0x20e>
mov    %r15,%rdi
mov    %r13,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
movb   $0x0,0x8(%r15)
mov    0x9(%rbx),%al
lea    0xd4f(%rip),%r12
cmp    $0x50,%al
jne    12ff <check_file_type+0x1cf>
cmpb   $0x41,0xa(%rbx)
jne    133e <check_file_type+0x20e>
cmpb   $0x53,0xb(%rbx)
jne    133e <check_file_type+0x20e>
mov    %r15,%rdi
mov    %r13,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
movb   $0x0,0x8(%r15)
mov    0x9(%rbx),%al
lea    0xd24(%rip),%r12
cmp    $0x53,%al
jne    132e <check_file_type+0x1fe>
cmpb   $0x43,0xa(%rbx)
jne    133e <check_file_type+0x20e>
cmpb   $0x52,0xb(%rbx)
jne    133e <check_file_type+0x20e>
mov    %r15,%rdi
mov    %r13,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
movb   $0x0,0x8(%r15)
mov    0x9(%rbx),%al
lea    0xcf9(%rip),%r12
test   %al,%al
jne    133e <check_file_type+0x20e>
cmpb   $0x0,0xa(%rbx)
jne    133e <check_file_type+0x20e>
cmpb   $0x0,0xb(%rbx)
je     13a5 <check_file_type+0x275>
test   %r12,%r12
je     13a1 <check_file_type+0x271>
cmpb   $0x20,0x7(%r15)
jne    13e2 <check_file_type+0x2b2>
movb   $0x0,0x7(%r15)
cmpb   $0x20,0x6(%r15)
jne    13e2 <check_file_type+0x2b2>
movb   $0x0,0x6(%r15)
cmpb   $0x20,0x5(%r15)
jne    13e2 <check_file_type+0x2b2>
movb   $0x0,0x5(%r15)
cmpb   $0x20,0x4(%r15)
jne    13e2 <check_file_type+0x2b2>
movb   $0x0,0x4(%r15)
cmpb   $0x20,0x3(%r15)
jne    13e2 <check_file_type+0x2b2>
movb   $0x0,0x3(%r15)
cmpb   $0x20,0x2(%r15)
jne    13e2 <check_file_type+0x2b2>
movb   $0x0,0x2(%r15)
cmpb   $0x20,0x1(%r15)
jne    13e2 <check_file_type+0x2b2>
movb   $0x0,0x1(%r15)
jmp    13e2 <check_file_type+0x2b2>
xor    %eax,%eax
jmp    13f2 <check_file_type+0x2c2>
movzbl 0x0(%r13),%esi
lea    0xc7a(%rip),%rdi
call   1040 <strchr@plt>
test   %rax,%rax
je     133e <check_file_type+0x20e>
mov    %r15,%rdi
mov    %r13,%rsi
mov    $0x8,%edx
call   1050 <memcpy@plt>
movb   $0x0,0x8(%r15)
lea    0xc79(%rip),%r12
cmpb   $0x20,0x7(%r15)
je     134e <check_file_type+0x21e>
mov    %r14,%rdi
mov    %r12,%rsi
call   1030 <strcpy@plt>
mov    $0x1,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"BASIC\00"
@.str.1 = [5 x i8] c"DATA\00"
@.str.2 = [5 x i8] c"LIST\00"
@.str.3 = [7 x i8] c"BASIC*\00"
@.str.4 = [4 x i8] c"COM\00"
@.str.5 = [4 x i8] c"ASM\00"
@.str.6 = [4 x i8] c"TXT\00"
@.str.7 = [4 x i8] c"PAS\00"
@.str.8 = [4 x i8] c"SCR\00"
@.str.9 = [37 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\00"
@.str.10 = [7 x i8] c"(none)\00"
define i32 @check_file_type(i8* %0, i8* %1, i8* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* null, i8** %9
%10 = load i8*, i8** %7
%11 = getelementptr inbounds i8, i8* %10, i64 1
%12 = load i8, i8* %11
%13 = zext i8 %12 to i32
%14 = icmp eq i32 %13, 211
br i1 %14, label %15, label %34
15: ; preds = %3
%16 = load i8*, i8** %7
%17 = getelementptr inbounds i8, i8* %16, i64 2
%18 = load i8, i8* %17
%19 = zext i8 %18 to i32
%20 = icmp eq i32 %19, 211
br i1 %20, label %21, label %34
21: ; preds = %15
%22 = load i8*, i8** %7
%23 = getelementptr inbounds i8, i8* %22, i64 3
%24 = load i8, i8* %23
%25 = zext i8 %24 to i32
%26 = icmp eq i32 %25, 211
br i1 %26, label %27, label %34
27: ; preds = %21
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %9
%28 = load i8*, i8** %5
%29 = load i8*, i8** %7
%30 = getelementptr inbounds i8, i8* %29, i64 4
%31 = call i32 @memcpy(i8* %28, i8* %30, i32 8)
%32 = load i8*, i8** %5
%33 = getelementptr inbounds i8, i8* %32, i64 8
store i8 0, i8* %33
br label %34
34: ; preds = %27, %21, %15, %3
%35 = load i8*, i8** %7
%36 = getelementptr inbounds i8, i8* %35, i64 1
%37 = load i8, i8* %36
%38 = zext i8 %37 to i32
%39 = icmp eq i32 %38, 212
br i1 %39, label %40, label %59
40: ; preds = %34
%41 = load i8*, i8** %7
%42 = getelementptr inbounds i8, i8* %41, i64 2
%43 = load i8, i8* %42
%44 = zext i8 %43 to i32
%45 = icmp eq i32 %44, 212
br i1 %45, label %46, label %59
46: ; preds = %40
%47 = load i8*, i8** %7
%48 = getelementptr inbounds i8, i8* %47, i64 3
%49 = load i8, i8* %48
%50 = zext i8 %49 to i32
%51 = icmp eq i32 %50, 212
br i1 %51, label %52, label %59
52: ; preds = %46
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %9
%53 = load i8*, i8** %5
%54 = load i8*, i8** %7
%55 = getelementptr inbounds i8, i8* %54, i64 4
%56 = call i32 @memcpy(i8* %53, i8* %55, i32 8)
%57 = load i8*, i8** %5
%58 = getelementptr inbounds i8, i8* %57, i64 8
store i8 0, i8* %58
br label %59
59: ; preds = %52, %46, %40, %34
%60 = load i8*, i8** %7
%61 = getelementptr inbounds i8, i8* %60, i64 1
%62 = load i8, i8* %61
%63 = zext i8 %62 to i32
%64 = icmp eq i32 %63, 213
br i1 %64, label %65, label %84
65: ; preds = %59
%66 = load i8*, i8** %7
%67 = getelementptr inbounds i8, i8* %66, i64 2
%68 = load i8, i8* %67
%69 = zext i8 %68 to i32
%70 = icmp eq i32 %69, 213
br i1 %70, label %71, label %84
71: ; preds = %65
%72 = load i8*, i8** %7
%73 = getelementptr inbounds i8, i8* %72, i64 3
%74 = load i8, i8* %73
%75 = zext i8 %74 to i32
%76 = icmp eq i32 %75, 213
br i1 %76, label %77, label %84
77: ; preds = %71
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %9
%78 = load i8*, i8** %5
%79 = load i8*, i8** %7
%80 = getelementptr inbounds i8, i8* %79, i64 4
%81 = call i32 @memcpy(i8* %78, i8* %80, i32 8)
%82 = load i8*, i8** %5
%83 = getelementptr inbounds i8, i8* %82, i64 8
store i8 0, i8* %83
br label %84
84: ; preds = %77, %71, %65, %59
%85 = load i8*, i8** %7
%86 = getelementptr inbounds i8, i8* %85, i64 1
%87 = load i8, i8* %86
%88 = zext i8 %87 to i32
%89 = icmp eq i32 %88, 215
br i1 %89, label %90, label %109
90: ; preds = %84
%91 = load i8*, i8** %7
%92 = getelementptr inbounds i8, i8* %91, i64 2
%93 = load i8, i8* %92
%94 = zext i8 %93 to i32
%95 = icmp eq i32 %94, 215
br i1 %95, label %96, label %109
96: ; preds = %90
%97 = load i8*, i8** %7
%98 = getelementptr inbounds i8, i8* %97, i64 3
%99 = load i8, i8* %98
%100 = zext i8 %99 to i32
%101 = icmp eq i32 %100, 215
br i1 %101, label %102, label %109
102: ; preds = %96
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %9
%103 = load i8*, i8** %5
%104 = load i8*, i8** %7
%105 = getelementptr inbounds i8, i8* %104, i64 4
%106 = call i32 @memcpy(i8* %103, i8* %105, i32 8)
%107 = load i8*, i8** %5
%108 = getelementptr inbounds i8, i8* %107, i64 8
store i8 0, i8* %108
br label %109
109: ; preds = %102, %96, %90, %84
%110 = load i8*, i8** %7
%111 = getelementptr inbounds i8, i8* %110, i64 9
%112 = load i8, i8* %111
%113 = zext i8 %112 to i32
%114 = icmp eq i32 %113, 67
br i1 %114, label %115, label %134
115: ; preds = %109
%116 = load i8*, i8** %7
%117 = getelementptr inbounds i8, i8* %116, i64 10
%118 = load i8, i8* %117
%119 = zext i8 %118 to i32
%120 = icmp eq i32 %119, 79
br i1 %120, label %121, label %134
121: ; preds = %115
%122 = load i8*, i8** %7
%123 = getelementptr inbounds i8, i8* %122, i64 11
%124 = load i8, i8* %123
%125 = zext i8 %124 to i32
%126 = icmp eq i32 %125, 77
br i1 %126, label %127, label %134
127: ; preds = %121
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %9
%128 = load i8*, i8** %5
%129 = load i8*, i8** %7
%130 = getelementptr inbounds i8, i8* %129, i64 1
%131 = call i32 @memcpy(i8* %128, i8* %130, i32 8)
%132 = load i8*, i8** %5
%133 = getelementptr inbounds i8, i8* %132, i64 8
store i8 0, i8* %133
br label %134
134: ; preds = %127, %121, %115, %109
%135 = load i8*, i8** %7
%136 = getelementptr inbounds i8, i8* %135, i64 9
%137 = load i8, i8* %136
%138 = zext i8 %137 to i32
%139 = icmp eq i32 %138, 65
br i1 %139, label %140, label %159
140: ; preds = %134
%141 = load i8*, i8** %7
%142 = getelementptr inbounds i8, i8* %141, i64 10
%143 = load i8, i8* %142
%144 = zext i8 %143 to i32
%145 = icmp eq i32 %144, 83
br i1 %145, label %146, label %159
146: ; preds = %140
%147 = load i8*, i8** %7
%148 = getelementptr inbounds i8, i8* %147, i64 11
%149 = load i8, i8* %148
%150 = zext i8 %149 to i32
%151 = icmp eq i32 %150, 77
br i1 %151, label %152, label %159
152: ; preds = %146
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8** %9
%153 = load i8*, i8** %5
%154 = load i8*, i8** %7
%155 = getelementptr inbounds i8, i8* %154, i64 1
%156 = call i32 @memcpy(i8* %153, i8* %155, i32 8)
%157 = load i8*, i8** %5
%158 = getelementptr inbounds i8, i8* %157, i64 8
store i8 0, i8* %158
br label %159
159: ; preds = %152, %146, %140, %134
%160 = load i8*, i8** %7
%161 = getelementptr inbounds i8, i8* %160, i64 9
%162 = load i8, i8* %161
%163 = zext i8 %162 to i32
%164 = icmp eq i32 %163, 84
br i1 %164, label %165, label %184
165: ; preds = %159
%166 = load i8*, i8** %7
%167 = getelementptr inbounds i8, i8* %166, i64 10
%168 = load i8, i8* %167
%169 = zext i8 %168 to i32
%170 = icmp eq i32 %169, 88
br i1 %170, label %171, label %184
171: ; preds = %165
%172 = load i8*, i8** %7
%173 = getelementptr inbounds i8, i8* %172, i64 11
%174 = load i8, i8* %173
%175 = zext i8 %174 to i32
%176 = icmp eq i32 %175, 84
br i1 %176, label %177, label %184
177: ; preds = %171
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %9
%178 = load i8*, i8** %5
%179 = load i8*, i8** %7
%180 = getelementptr inbounds i8, i8* %179, i64 1
%181 = call i32 @memcpy(i8* %178, i8* %180, i32 8)
%182 = load i8*, i8** %5
%183 = getelementptr inbounds i8, i8* %182, i64 8
store i8 0, i8* %183
br label %184
184: ; preds = %177, %171, %165, %159
%185 = load i8*, i8** %7
%186 = getelementptr inbounds i8, i8* %185, i64 9
%187 = load i8, i8* %186
%188 = zext i8 %187 to i32
%189 = icmp eq i32 %188, 80
br i1 %189, label %190, label %209
190: ; preds = %184
%191 = load i8*, i8** %7
%192 = getelementptr inbounds i8, i8* %191, i64 10
%193 = load i8, i8* %192
%194 = zext i8 %193 to i32
%195 = icmp eq i32 %194, 65
br i1 %195, label %196, label %209
196: ; preds = %190
%197 = load i8*, i8** %7
%198 = getelementptr inbounds i8, i8* %197, i64 11
%199 = load i8, i8* %198
%200 = zext i8 %199 to i32
%201 = icmp eq i32 %200, 83
br i1 %201, label %202, label %209
202: ; preds = %196
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8** %9
%203 = load i8*, i8** %5
%204 = load i8*, i8** %7
%205 = getelementptr inbounds i8, i8* %204, i64 1
%206 = call i32 @memcpy(i8* %203, i8* %205, i32 8)
%207 = load i8*, i8** %5
%208 = getelementptr inbounds i8, i8* %207, i64 8
store i8 0, i8* %208
br label %209
209: ; preds = %202, %196, %190, %184
%210 = load i8*, i8** %7
%211 = getelementptr inbounds i8, i8* %210, i64 9
%212 = load i8, i8* %211
%213 = zext i8 %212 to i32
%214 = icmp eq i32 %213, 83
br i1 %214, label %215, label %234
215: ; preds = %209
%216 = load i8*, i8** %7
%217 = getelementptr inbounds i8, i8* %216, i64 10
%218 = load i8, i8* %217
%219 = zext i8 %218 to i32
%220 = icmp eq i32 %219, 67
br i1 %220, label %221, label %234
221: ; preds = %215
%222 = load i8*, i8** %7
%223 = getelementptr inbounds i8, i8* %222, i64 11
%224 = load i8, i8* %223
%225 = zext i8 %224 to i32
%226 = icmp eq i32 %225, 82
br i1 %226, label %227, label %234
227: ; preds = %221
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8** %9
%228 = load i8*, i8** %5
%229 = load i8*, i8** %7
%230 = getelementptr inbounds i8, i8* %229, i64 1
%231 = call i32 @memcpy(i8* %228, i8* %230, i32 8)
%232 = load i8*, i8** %5
%233 = getelementptr inbounds i8, i8* %232, i64 8
store i8 0, i8* %233
br label %234
234: ; preds = %227, %221, %215, %209
%235 = load i8*, i8** %7
%236 = getelementptr inbounds i8, i8* %235, i64 9
%237 = load i8, i8* %236
%238 = zext i8 %237 to i32
%239 = icmp eq i32 %238, 0
br i1 %239, label %240, label %266
240: ; preds = %234
%241 = load i8*, i8** %7
%242 = getelementptr inbounds i8, i8* %241, i64 10
%243 = load i8, i8* %242
%244 = zext i8 %243 to i32
%245 = icmp eq i32 %244, 0
br i1 %245, label %246, label %266
246: ; preds = %240
%247 = load i8*, i8** %7
%248 = getelementptr inbounds i8, i8* %247, i64 11
%249 = load i8, i8* %248
%250 = zext i8 %249 to i32
%251 = icmp eq i32 %250, 0
br i1 %251, label %252, label %266
252: ; preds = %246
%253 = load i8*, i8** %7
%254 = getelementptr inbounds i8, i8* %253, i64 1
%255 = load i8, i8* %254
%256 = call i32* @strchr(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), i8 zeroext %255)
%257 = icmp ne i32* %256, null
br i1 %257, label %258, label %265
258: ; preds = %252
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8** %9
%259 = load i8*, i8** %5
%260 = load i8*, i8** %7
%261 = getelementptr inbounds i8, i8* %260, i64 1
%262 = call i32 @memcpy(i8* %259, i8* %261, i32 8)
%263 = load i8*, i8** %5
%264 = getelementptr inbounds i8, i8* %263, i64 8
store i8 0, i8* %264
br label %265
265: ; preds = %258, %252
br label %266
266: ; preds = %265, %246, %240, %234
%267 = load i8*, i8** %9
%268 = icmp eq i8* %267, null
br i1 %268, label %269, label %270
269: ; preds = %266
store i32 0, i32* %4
br label %296
270: ; preds = %266
store i32 7, i32* %8
br label %271
271: ; preds = %289, %270
%272 = load i32, i32* %8
%273 = icmp sgt i32 %272, 0
br i1 %273, label %274, label %282
274: ; preds = %271
%275 = load i8*, i8** %5
%276 = load i32, i32* %8
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds i8, i8* %275, i64 %277
%279 = load i8, i8* %278
%280 = sext i8 %279 to i32
%281 = icmp eq i32 %280, 32
br label %282
282: ; preds = %274, %271
%283 = phi i1 [ false, %271 ], [ %281, %274 ]
br i1 %283, label %284, label %292
284: ; preds = %282
%285 = load i8*, i8** %5
%286 = load i32, i32* %8
%287 = sext i32 %286 to i64
%288 = getelementptr inbounds i8, i8* %285, i64 %287
store i8 0, i8* %288
br label %289
289: ; preds = %284
%290 = load i32, i32* %8
%291 = add nsw i32 %290, -1
store i32 %291, i32* %8
br label %271
292: ; preds = %282
%293 = load i8*, i8** %6
%294 = load i8*, i8** %9
%295 = call i32 @strcpy(i8* %293, i8* %294)
store i32 1, i32* %4
br label %296
296: ; preds = %292, %269
%297 = load i32, i32* %4
ret i32 %297
}

LLVM IR (-O2):
@.str = [6 x i8] c"BASIC\00"
@.str.1 = [5 x i8] c"DATA\00"
@.str.2 = [5 x i8] c"LIST\00"
@.str.3 = [7 x i8] c"BASIC*\00"
@.str.4 = [4 x i8] c"COM\00"
@.str.5 = [4 x i8] c"ASM\00"
@.str.6 = [4 x i8] c"TXT\00"
@.str.7 = [4 x i8] c"PAS\00"
@.str.8 = [4 x i8] c"SCR\00"
@.str.9 = [37 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\00"
@.str.10 = [7 x i8] c"(none)\00"
define i32 @check_file_type(i8* %0, i8* %1, i8* %2) {
%4 = getelementptr inbounds i8, i8* %2, i64 1
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, -45
br i1 %6, label %7, label %20
7: ; preds = %3
%8 = getelementptr inbounds i8, i8* %2, i64 2
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, -45
br i1 %10, label %11, label %70
11: ; preds = %7
%12 = getelementptr inbounds i8, i8* %2, i64 3
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, -45
br i1 %14, label %15, label %70
15: ; preds = %11
%16 = getelementptr inbounds i8, i8* %2, i64 4
%17 = tail call i32 @memcpy(i8* %0, i8* %16, i32 8)
%18 = getelementptr inbounds i8, i8* %0, i64 8
store i8 0, i8* %18
%19 = load i8, i8* %4
br label %20
20: ; preds = %15, %3
%21 = phi i8 [ %5, %3 ], [ %19, %15 ]
%22 = phi i8* [ null, %3 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), %15 ]
%23 = icmp eq i8 %21, -44
br i1 %23, label %24, label %37
24: ; preds = %20
%25 = getelementptr inbounds i8, i8* %2, i64 2
%26 = load i8, i8* %25
%27 = icmp eq i8 %26, -44
br i1 %27, label %28, label %70
28: ; preds = %24
%29 = getelementptr inbounds i8, i8* %2, i64 3
%30 = load i8, i8* %29
%31 = icmp eq i8 %30, -44
br i1 %31, label %32, label %70
32: ; preds = %28
%33 = getelementptr inbounds i8, i8* %2, i64 4
%34 = tail call i32 @memcpy(i8* %0, i8* %33, i32 8)
%35 = getelementptr inbounds i8, i8* %0, i64 8
store i8 0, i8* %35
%36 = load i8, i8* %4
br label %37
37: ; preds = %32, %20
%38 = phi i8 [ %36, %32 ], [ %21, %20 ]
%39 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), %32 ], [ %22, %20 ]
%40 = icmp eq i8 %38, -43
br i1 %40, label %41, label %54
41: ; preds = %37
%42 = getelementptr inbounds i8, i8* %2, i64 2
%43 = load i8, i8* %42
%44 = icmp eq i8 %43, -43
br i1 %44, label %45, label %70
45: ; preds = %41
%46 = getelementptr inbounds i8, i8* %2, i64 3
%47 = load i8, i8* %46
%48 = icmp eq i8 %47, -43
br i1 %48, label %49, label %70
49: ; preds = %45
%50 = getelementptr inbounds i8, i8* %2, i64 4
%51 = tail call i32 @memcpy(i8* %0, i8* %50, i32 8)
%52 = getelementptr inbounds i8, i8* %0, i64 8
store i8 0, i8* %52
%53 = load i8, i8* %4
br label %54
54: ; preds = %49, %37
%55 = phi i8 [ %38, %37 ], [ %53, %49 ]
%56 = phi i8* [ %39, %37 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %49 ]
%57 = icmp eq i8 %55, -41
br i1 %57, label %58, label %70
58: ; preds = %54
%59 = getelementptr inbounds i8, i8* %2, i64 2
%60 = load i8, i8* %59
%61 = icmp eq i8 %60, -41
br i1 %61, label %62, label %70
62: ; preds = %58
%63 = getelementptr inbounds i8, i8* %2, i64 3
%64 = load i8, i8* %63
%65 = icmp eq i8 %64, -41
br i1 %65, label %66, label %70
66: ; preds = %62
%67 = getelementptr inbounds i8, i8* %2, i64 4
%68 = tail call i32 @memcpy(i8* %0, i8* %67, i32 8)
%69 = getelementptr inbounds i8, i8* %0, i64 8
store i8 0, i8* %69
br label %70
70: ; preds = %11, %7, %24, %28, %45, %41, %66, %62, %58, %54
%71 = phi i8* [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), %66 ], [ %56, %62 ], [ %56, %58 ], [ %56, %54 ], [ %39, %45 ], [ %39, %41 ], [ %22, %24 ], [ %22, %28 ], [ null, %7 ], [ null, %11 ]
%72 = getelementptr inbounds i8, i8* %2, i64 9
%73 = load i8, i8* %72
%74 = icmp eq i8 %73, 67
br i1 %74, label %75, label %87
75: ; preds = %70
%76 = getelementptr inbounds i8, i8* %2, i64 10
%77 = load i8, i8* %76
%78 = icmp eq i8 %77, 79
br i1 %78, label %79, label %170
79: ; preds = %75
%80 = getelementptr inbounds i8, i8* %2, i64 11
%81 = load i8, i8* %80
%82 = icmp eq i8 %81, 77
br i1 %82, label %83, label %170
83: ; preds = %79
%84 = tail call i32 @memcpy(i8* %0, i8* %4, i32 8)
%85 = getelementptr inbounds i8, i8* %0, i64 8
store i8 0, i8* %85
%86 = load i8, i8* %72
br label %87
87: ; preds = %83, %70
%88 = phi i8 [ %73, %70 ], [ %86, %83 ]
%89 = phi i8* [ %71, %70 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), %83 ]
%90 = icmp eq i8 %88, 65
br i1 %90, label %91, label %103
91: ; preds = %87
%92 = getelementptr inbounds i8, i8* %2, i64 10
%93 = load i8, i8* %92
%94 = icmp eq i8 %93, 83
br i1 %94, label %95, label %170
95: ; preds = %91
%96 = getelementptr inbounds i8, i8* %2, i64 11
%97 = load i8, i8* %96
%98 = icmp eq i8 %97, 77
br i1 %98, label %99, label %170
99: ; preds = %95
%100 = tail call i32 @memcpy(i8* %0, i8* %4, i32 8)
%101 = getelementptr inbounds i8, i8* %0, i64 8
store i8 0, i8* %101
%102 = load i8, i8* %72
br label %103
103: ; preds = %99, %87
%104 = phi i8 [ %102, %99 ], [ %88, %87 ]
%105 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), %99 ], [ %89, %87 ]
%106 = icmp eq i8 %104, 84
br i1 %106, label %107, label %119
107: ; preds = %103
%108 = getelementptr inbounds i8, i8* %2, i64 10
%109 = load i8, i8* %108
%110 = icmp eq i8 %109, 88
br i1 %110, label %111, label %170
111: ; preds = %107
%112 = getelementptr inbounds i8, i8* %2, i64 11
%113 = load i8, i8* %112
%114 = icmp eq i8 %113, 84
br i1 %114, label %115, label %170
115: ; preds = %111
%116 = tail call i32 @memcpy(i8* %0, i8* %4, i32 8)
%117 = getelementptr inbounds i8, i8* %0, i64 8
store i8 0, i8* %117
%118 = load i8, i8* %72
br label %119
119: ; preds = %115, %103
%120 = phi i8 [ %104, %103 ], [ %118, %115 ]
%121 = phi i8* [ %105, %103 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), %115 ]
%122 = icmp eq i8 %120, 80
br i1 %122, label %123, label %135
123: ; preds = %119
%124 = getelementptr inbounds i8, i8* %2, i64 10
%125 = load i8, i8* %124
%126 = icmp eq i8 %125, 65
br i1 %126, label %127, label %170
127: ; preds = %123
%128 = getelementptr inbounds i8, i8* %2, i64 11
%129 = load i8, i8* %128
%130 = icmp eq i8 %129, 83
br i1 %130, label %131, label %170
131: ; preds = %127
%132 = tail call i32 @memcpy(i8* %0, i8* %4, i32 8)
%133 = getelementptr inbounds i8, i8* %0, i64 8
store i8 0, i8* %133
%134 = load i8, i8* %72
br label %135
135: ; preds = %131, %119
%136 = phi i8 [ %134, %131 ], [ %120, %119 ]
%137 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), %131 ], [ %121, %119 ]
%138 = icmp eq i8 %136, 83
br i1 %138, label %139, label %151
139: ; preds = %135
%140 = getelementptr inbounds i8, i8* %2, i64 10
%141 = load i8, i8* %140
%142 = icmp eq i8 %141, 67
br i1 %142, label %143, label %170
143: ; preds = %139
%144 = getelementptr inbounds i8, i8* %2, i64 11
%145 = load i8, i8* %144
%146 = icmp eq i8 %145, 82
br i1 %146, label %147, label %170
147: ; preds = %143
%148 = tail call i32 @memcpy(i8* %0, i8* %4, i32 8)
%149 = getelementptr inbounds i8, i8* %0, i64 8
store i8 0, i8* %149
%150 = load i8, i8* %72
br label %151
151: ; preds = %147, %135
%152 = phi i8 [ %136, %135 ], [ %150, %147 ]
%153 = phi i8* [ %137, %135 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), %147 ]
%154 = icmp eq i8 %152, 0
br i1 %154, label %155, label %170
155: ; preds = %151
%156 = getelementptr inbounds i8, i8* %2, i64 10
%157 = load i8, i8* %156
%158 = icmp eq i8 %157, 0
br i1 %158, label %159, label %170
159: ; preds = %155
%160 = getelementptr inbounds i8, i8* %2, i64 11
%161 = load i8, i8* %160
%162 = icmp eq i8 %161, 0
br i1 %162, label %163, label %170
163: ; preds = %159
%164 = load i8, i8* %4
%165 = tail call i32* @strchr(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), i8 zeroext %164)
%166 = icmp eq i32* %165, null
br i1 %166, label %170, label %167
167: ; preds = %163
%168 = tail call i32 @memcpy(i8* %0, i8* %4, i32 8)
%169 = getelementptr inbounds i8, i8* %0, i64 8
store i8 0, i8* %169
br label %173
170: ; preds = %79, %75, %91, %95, %111, %107, %123, %127, %143, %139, %163, %159, %155, %151
%171 = phi i8* [ %153, %163 ], [ %153, %159 ], [ %153, %155 ], [ %153, %151 ], [ %137, %143 ], [ %137, %139 ], [ %121, %123 ], [ %121, %127 ], [ %105, %111 ], [ %105, %107 ], [ %89, %91 ], [ %89, %95 ], [ %71, %75 ], [ %71, %79 ]
%172 = icmp eq i8* %171, null
br i1 %172, label %205, label %173
173: ; preds = %167, %170
%174 = phi i8* [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), %167 ], [ %171, %170 ]
%175 = getelementptr inbounds i8, i8* %0, i64 7
%176 = load i8, i8* %175
%177 = icmp eq i8 %176, 32
br i1 %177, label %178, label %203
178: ; preds = %173
store i8 0, i8* %175
%179 = getelementptr inbounds i8, i8* %0, i64 6
%180 = load i8, i8* %179
%181 = icmp eq i8 %180, 32
br i1 %181, label %182, label %203
182: ; preds = %178
store i8 0, i8* %179
%183 = getelementptr inbounds i8, i8* %0, i64 5
%184 = load i8, i8* %183
%185 = icmp eq i8 %184, 32
br i1 %185, label %186, label %203
186: ; preds = %182
store i8 0, i8* %183
%187 = getelementptr inbounds i8, i8* %0, i64 4
%188 = load i8, i8* %187
%189 = icmp eq i8 %188, 32
br i1 %189, label %190, label %203
190: ; preds = %186
store i8 0, i8* %187
%191 = getelementptr inbounds i8, i8* %0, i64 3
%192 = load i8, i8* %191
%193 = icmp eq i8 %192, 32
br i1 %193, label %194, label %203
194: ; preds = %190
store i8 0, i8* %191
%195 = getelementptr inbounds i8, i8* %0, i64 2
%196 = load i8, i8* %195
%197 = icmp eq i8 %196, 32
br i1 %197, label %198, label %203
198: ; preds = %194
store i8 0, i8* %195
%199 = getelementptr inbounds i8, i8* %0, i64 1
%200 = load i8, i8* %199
%201 = icmp eq i8 %200, 32
br i1 %201, label %202, label %203
202: ; preds = %198
store i8 0, i8* %199
br label %203
203: ; preds = %202, %198, %194, %190, %186, %182, %178, %173
%204 = tail call i32 @strcpy(i8* %1, i8* %174)
br label %205
205: ; preds = %170, %203
%206 = phi i32 [ 1, %203 ], [ 0, %170 ]
ret i32 %206
}