#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*/ buf;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EXIT_FAILURE;
int EXIT_SUCCESS;
int LegalID(char *, int *);
int LegalInput(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
char *strstr(char *, char *);
int main(void) {
  int i, sex;
  char buf[1024], *p1, *p2;
  char userInput_char[18 + 1];
  int userInput_int[18 + 1];
  char userInputArea[6 + 1];
  char userInputBirth[8 + 1];
  char tmp[6 + 1];
  char Area[30];
  FILE *fpr;
  if ((fpr = fopen("./data.txt", "r")) == NULL) {
    printf("Open file failed.\n");
    return EXIT_FAILURE;
  }
  memset(buf, 0, sizeof(buf));
  int ret = -1;
  while (ret != EXIT_SUCCESS) {
    if (LegalInput(userInput_char) == EXIT_SUCCESS)
      ret = LegalID(userInput_char, userInput_int);
  }
  for (i = 0; i < 6; i++)
    userInputArea[i] = userInput_char[i];
  int ii = 0;
  for (i = 6; i < 6 + 8; i++)
    userInputBirth[ii++] = userInput_char[i];
  userInputBirth[ii] = 0;
  if ((userInput_int[17] % 2) == 0)
    sex = 0;
  else
    sex = 1;
  while (fgets(buf, sizeof(buf), fpr) != NULL) {
    p1 = strstr(buf, ":");
    p1++;
    p2 = p1 + 7;
    for (i = 0; i < 6; i++)
      tmp[i] = p1[i];
    tmp[i] = 0;
    if (strcmp(userInputArea, tmp) == 0) {
      strcpy(Area, p2);
      break;
    }
    memset(buf, 0, sizeof(buf));
  }
  fclose(fpr);
  printf("出生地：%s", Area);
  printf("出生日期：%s\n", userInputBirth);
  if (sex == 1)
    printf("性别：男\n");
  else
    printf("性别：女\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4e0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe47(%rip),%rdi
lea    0xe4b(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x4d8(%rbp)
cmp    $0x0,%rax
jne    11f5 <main+0x55>
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2df5(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    147a <main+0x2da>
lea    -0x410(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
movl   $0xffffffff,-0x4dc(%rbp)
ff ff ff
mov    -0x4dc(%rbp),%eax
mov    0x2db9(%rip),%rcx
cmp    (%rcx),%eax
je     1260 <main+0xc0>
lea    -0x440(%rbp),%rdi
call   10b0 <LegalInput@plt>
mov    0x2d9e(%rip),%rcx
cmp    (%rcx),%eax
jne    125b <main+0xbb>
lea    -0x440(%rbp),%rdi
lea    -0x490(%rbp),%rsi
call   1090 <LegalID@plt>
mov    %eax,-0x4dc(%rbp)
jmp    1212 <main+0x72>
movl   $0x0,-0x8(%rbp)
cmpl   $0x6,-0x8(%rbp)
jge    1295 <main+0xf5>
movslq -0x8(%rbp),%rax
mov    -0x440(%rbp,%rax,1),%cl
movslq -0x8(%rbp),%rax
mov    %cl,-0x497(%rbp,%rax,1)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1267 <main+0xc7>
movl   $0x0,-0x4e0(%rbp)
movl   $0x6,-0x8(%rbp)
cmpl   $0xe,-0x8(%rbp)
jge    12e3 <main+0x143>
movslq -0x8(%rbp),%rax
mov    -0x440(%rbp,%rax,1),%cl
mov    -0x4e0(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x4e0(%rbp)
cltq
mov    %cl,-0x4a0(%rbp,%rax,1)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12a6 <main+0x106>
movslq -0x4e0(%rbp),%rax
movb   $0x0,-0x4a0(%rbp,%rax,1)
mov    -0x44c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1315 <main+0x175>
movl   $0x0,-0xc(%rbp)
jmp    131c <main+0x17c>
movl   $0x1,-0xc(%rbp)
jmp    1321 <main+0x181>
lea    -0x410(%rbp),%rdi
mov    -0x4d8(%rbp),%rdx
mov    $0x400,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     1412 <main+0x272>
lea    -0x410(%rbp),%rdi
lea    0xccf(%rip),%rsi
call   10c0 <strstr@plt>
mov    %rax,-0x418(%rbp)
mov    -0x418(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x418(%rbp)
mov    -0x418(%rbp),%rax
add    $0x7,%rax
mov    %rax,-0x420(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x6,-0x8(%rbp)
jge    13b9 <main+0x219>
mov    -0x418(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,1),%cl
movslq -0x8(%rbp),%rax
mov    %cl,-0x4a7(%rbp,%rax,1)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1388 <main+0x1e8>
movslq -0x8(%rbp),%rax
movb   $0x0,-0x4a7(%rbp,%rax,1)
lea    -0x497(%rbp),%rdi
lea    -0x4a7(%rbp),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    13fa <main+0x25a>
lea    -0x4d0(%rbp),%rdi
mov    -0x420(%rbp),%rsi
call   1030 <strcpy@plt>
jmp    1412 <main+0x272>
lea    -0x410(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1060 <memset@plt>
jmp    1321 <main+0x181>
mov    -0x4d8(%rbp),%rdi
call   1040 <fclose@plt>
lea    -0x4d0(%rbp),%rsi
lea    0xbf6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x4a0(%rbp),%rsi
lea    0xbf0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x1,-0xc(%rbp)
jne    1465 <main+0x2c5>
lea    0xbeb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1473 <main+0x2d3>
lea    0xbe6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x4e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x4b8,%rsp
lea    0xe38(%rip),%rdi
lea    0xe3c(%rip),%rsi
call   10c0 <fopen@plt>
test   %rax,%rax
je     1237 <main+0x87>
mov    %rax,%r14
lea    0xb0(%rsp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
mov    0x2de1(%rip),%r12
cmpl   $0xffffffff,(%r12)
je     125f <main+0xaf>
mov    $0xffffffff,%ebp
lea    0x20(%rsp),%rbx
lea    0x60(%rsp),%r15
jmp    1214 <main+0x64>
nop
cmp    %ecx,%ebp
je     1251 <main+0xa1>
mov    %rbx,%rdi
call   10d0 <LegalInput@plt>
mov    (%r12),%ecx
cmp    %ecx,%eax
jne    1210 <main+0x60>
mov    %rbx,%rdi
mov    %r15,%rsi
call   10b0 <LegalID@plt>
mov    %eax,%ebp
mov    (%r12),%ecx
jmp    1210 <main+0x60>
lea    0xe0b(%rip),%rdi
call   1040 <puts@plt>
mov    0x2d96(%rip),%rax
mov    (%rax),%ebx
jmp    1396 <main+0x1e6>
testb  $0x1,0xa4(%rsp)
01
sete   %r13b
jmp    1262 <main+0xb2>
mov    $0x1,%r13b
movzwl 0x24(%rsp),%eax
mov    %ax,0xc(%rsp)
mov    0x20(%rsp),%eax
mov    %eax,0x8(%rsp)
mov    0x26(%rsp),%rax
mov    %rax,0x10(%rsp)
movb   $0x0,0x18(%rsp)
lea    0xb0(%rsp),%rdi
mov    $0x400,%esi
mov    %r14,%rdx
call   1090 <fgets@plt>
test   %rax,%rax
je     134c <main+0x19c>
lea    0xb0(%rsp),%rbx
lea    0x8(%rsp),%r15
lea    0x1(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
mov    $0x3a,%esi
call   1060 <strchr@plt>
mov    %rax,%rbp
movzbl 0x1(%rax),%eax
mov    %al,0x1(%rsp)
movzbl 0x2(%rbp),%eax
mov    %al,0x2(%rsp)
movzbl 0x3(%rbp),%eax
mov    %al,0x3(%rsp)
movzbl 0x4(%rbp),%eax
mov    %al,0x4(%rsp)
movzbl 0x5(%rbp),%eax
mov    %al,0x5(%rsp)
movzbl 0x6(%rbp),%eax
mov    %al,0x6(%rsp)
movb   $0x0,0x7(%rsp)
mov    %r15,%rdi
mov    %r12,%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     133b <main+0x18b>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
call   1090 <fgets@plt>
test   %rax,%rax
jne    12c0 <main+0x110>
jmp    134c <main+0x19c>
add    $0x8,%rbp
lea    0x40(%rsp),%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
lea    0xcb2(%rip),%rdi
xor    %ebx,%ebx
lea    0x40(%rsp),%rsi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xcac(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1070 <printf@plt>
test   %r13b,%r13b
je     138a <main+0x1da>
lea    0xca7(%rip),%rdi
jmp    1391 <main+0x1e1>
lea    0xcab(%rip),%rdi
call   1040 <puts@plt>
mov    %ebx,%eax
add    $0x4b8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"./data.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [19 x i8] c"Open file failed.\0A\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
@.str.3 = [2 x i8] c":\00"
@.str.4 = [15 x i8] c"\E5\87\BA\E7\94\9F\E5\9C\B0\EF\BC\9A%s\00"
@.str.5 = [19 x i8] c"\E5\87\BA\E7\94\9F\E6\97\A5\E6\9C\9F\EF\BC\9A%s\0A\00"
@.str.6 = [14 x i8] c"\E6\80\A7\E5\88\AB\EF\BC\9A\E7\94\B7\0A\00"
@.str.7 = [14 x i8] c"\E6\80\A7\E5\88\AB\EF\BC\9A\E5\A5\B3\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [1024 x i8]
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca [19 x i8]
%8 = alloca [19 x i32]
%9 = alloca [7 x i8]
%10 = alloca [9 x i8]
%11 = alloca [7 x i8]
%12 = alloca [30 x i8]
%13 = alloca i32*
%14 = alloca i32
%15 = alloca i32
store i32 0, i32* %1
%16 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %16, i32** %13
%17 = icmp eq i32* %16, null
br i1 %17, label %18, label %21
18: ; preds = %0
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%20 = load i32, i32* @EXIT_FAILURE
store i32 %20, i32* %1
br label %136
21: ; preds = %0
%22 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%23 = call i32 @memset(i8* %22, i32 0, i32 1024)
store i32 -1, i32* %14
br label %24
24: ; preds = %37, %21
%25 = load i32, i32* %14
%26 = load i32, i32* @EXIT_SUCCESS
%27 = icmp ne i32 %25, %26
br i1 %27, label %28, label %38
28: ; preds = %24
%29 = getelementptr inbounds [19 x i8], [19 x i8]* %7, i64 0, i64 0
%30 = call i32 @LegalInput(i8* %29)
%31 = load i32, i32* @EXIT_SUCCESS
%32 = icmp eq i32 %30, %31
br i1 %32, label %33, label %37
33: ; preds = %28
%34 = getelementptr inbounds [19 x i8], [19 x i8]* %7, i64 0, i64 0
%35 = getelementptr inbounds [19 x i32], [19 x i32]* %8, i64 0, i64 0
%36 = call i32 @LegalID(i8* %34, i32* %35)
store i32 %36, i32* %14
br label %37
37: ; preds = %33, %28
br label %24
38: ; preds = %24
store i32 0, i32* %2
br label %39
39: ; preds = %50, %38
%40 = load i32, i32* %2
%41 = icmp slt i32 %40, 6
br i1 %41, label %42, label %53
42: ; preds = %39
%43 = load i32, i32* %2
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [19 x i8], [19 x i8]* %7, i64 0, i64 %44
%46 = load i8, i8* %45
%47 = load i32, i32* %2
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [7 x i8], [7 x i8]* %9, i64 0, i64 %48
store i8 %46, i8* %49
br label %50
50: ; preds = %42
%51 = load i32, i32* %2
%52 = add nsw i32 %51, 1
store i32 %52, i32* %2
br label %39
53: ; preds = %39
store i32 0, i32* %15
store i32 6, i32* %2
br label %54
54: ; preds = %66, %53
%55 = load i32, i32* %2
%56 = icmp slt i32 %55, 14
br i1 %56, label %57, label %69
57: ; preds = %54
%58 = load i32, i32* %2
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [19 x i8], [19 x i8]* %7, i64 0, i64 %59
%61 = load i8, i8* %60
%62 = load i32, i32* %15
%63 = add nsw i32 %62, 1
store i32 %63, i32* %15
%64 = sext i32 %62 to i64
%65 = getelementptr inbounds [9 x i8], [9 x i8]* %10, i64 0, i64 %64
store i8 %61, i8* %65
br label %66
66: ; preds = %57
%67 = load i32, i32* %2
%68 = add nsw i32 %67, 1
store i32 %68, i32* %2
br label %54
69: ; preds = %54
%70 = load i32, i32* %15
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [9 x i8], [9 x i8]* %10, i64 0, i64 %71
store i8 0, i8* %72
%73 = getelementptr inbounds [19 x i32], [19 x i32]* %8, i64 0, i64 17
%74 = load i32, i32* %73
%75 = srem i32 %74, 2
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %78
77: ; preds = %69
store i32 0, i32* %3
br label %79
78: ; preds = %69
store i32 1, i32* %3
br label %79
79: ; preds = %78, %77
br label %80
80: ; preds = %119, %79
%81 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%82 = load i32*, i32** %13
%83 = call i32* @fgets(i8* %81, i32 1024, i32* %82)
%84 = icmp ne i32* %83, null
br i1 %84, label %85, label %122
85: ; preds = %80
%86 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%87 = call i8* @strstr(i8* %86, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i8* %87, i8** %5
%88 = load i8*, i8** %5
%89 = getelementptr inbounds i8, i8* %88, i32 1
store i8* %89, i8** %5
%90 = load i8*, i8** %5
%91 = getelementptr inbounds i8, i8* %90, i64 7
store i8* %91, i8** %6
store i32 0, i32* %2
br label %92
92: ; preds = %104, %85
%93 = load i32, i32* %2
%94 = icmp slt i32 %93, 6
br i1 %94, label %95, label %107
95: ; preds = %92
%96 = load i8*, i8** %5
%97 = load i32, i32* %2
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8, i8* %96, i64 %98
%100 = load i8, i8* %99
%101 = load i32, i32* %2
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [7 x i8], [7 x i8]* %11, i64 0, i64 %102
store i8 %100, i8* %103
br label %104
104: ; preds = %95
%105 = load i32, i32* %2
%106 = add nsw i32 %105, 1
store i32 %106, i32* %2
br label %92
107: ; preds = %92
%108 = load i32, i32* %2
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [7 x i8], [7 x i8]* %11, i64 0, i64 %109
store i8 0, i8* %110
%111 = getelementptr inbounds [7 x i8], [7 x i8]* %9, i64 0, i64 0
%112 = getelementptr inbounds [7 x i8], [7 x i8]* %11, i64 0, i64 0
%113 = call i64 @strcmp(i8* %111, i8* %112)
%114 = icmp eq i64 %113, 0
br i1 %114, label %115, label %119
115: ; preds = %107
%116 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 0
%117 = load i8*, i8** %6
%118 = call i32 @strcpy(i8* %116, i8* %117)
br label %122
119: ; preds = %107
%120 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%121 = call i32 @memset(i8* %120, i32 0, i32 1024)
br label %80
122: ; preds = %115, %80
%123 = load i32*, i32** %13
%124 = call i32 @fclose(i32* %123)
%125 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 0
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %125)
%127 = getelementptr inbounds [9 x i8], [9 x i8]* %10, i64 0, i64 0
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i8* %127)
%129 = load i32, i32* %3
%130 = icmp eq i32 %129, 1
br i1 %130, label %131, label %133
131: ; preds = %122
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
br label %135
133: ; preds = %122
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
br label %135
135: ; preds = %133, %131
store i32 0, i32* %1
br label %136
136: ; preds = %135, %18
%137 = load i32, i32* %1
ret i32 %137
}

LLVM IR (-O2):
@.str = [11 x i8] c"./data.txt\00"
@.str.1 = [2 x i8] c"r\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
@.str.4 = [15 x i8] c"\E5\87\BA\E7\94\9F\E5\9C\B0\EF\BC\9A%s\00"
@.str.5 = [19 x i8] c"\E5\87\BA\E7\94\9F\E6\97\A5\E6\9C\9F\EF\BC\9A%s\0A\00"
@str = [13 x i8] c"\E6\80\A7\E5\88\AB\EF\BC\9A\E5\A5\B3\00"
@str.8 = [13 x i8] c"\E6\80\A7\E5\88\AB\EF\BC\9A\E7\94\B7\00"
@str.9 = [18 x i8] c"Open file failed.\00"
define i32 @main() {
%1 = alloca [1024 x i8]
%2 = alloca [19 x i8]
%3 = getelementptr inbounds [19 x i8], [19 x i8]* %2, i64 0, i64 0
%4 = alloca [19 x i32]
%5 = alloca [7 x i8]
%6 = getelementptr inbounds [7 x i8], [7 x i8]* %5, i64 0, i64 0
%7 = alloca [9 x i8]
%8 = alloca [7 x i8]
%9 = alloca [30 x i8]
%10 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%11 = getelementptr inbounds [19 x i8], [19 x i8]* %2, i64 0, i64 0
%12 = bitcast [19 x i32]* %4 to i8*
%13 = getelementptr inbounds [7 x i8], [7 x i8]* %5, i64 0, i64 0
%14 = getelementptr inbounds [9 x i8], [9 x i8]* %7, i64 0, i64 0
%15 = getelementptr inbounds [7 x i8], [7 x i8]* %8, i64 0, i64 0
%16 = getelementptr inbounds [30 x i8], [30 x i8]* %9, i64 0, i64 0
%17 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%18 = icmp eq i32* %17, null
br i1 %18, label %19, label %22
19: ; preds = %0
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.9, i64 0, i64 0))
%21 = load i32, i32* @EXIT_FAILURE
br label %92
22: ; preds = %0
%23 = call i32 @memset(i8* %10, i32 0, i32 1024)
%24 = load i32, i32* @EXIT_SUCCESS
%25 = icmp eq i32 %24, -1
br i1 %25, label %33, label %26
26: ; preds = %22
%27 = getelementptr inbounds [19 x i32], [19 x i32]* %4, i64 0, i64 0
br label %42
28: ; preds = %50
%29 = getelementptr inbounds [19 x i32], [19 x i32]* %4, i64 0, i64 17
%30 = load i32, i32* %29
%31 = and i32 %30, 1
%32 = icmp eq i32 %31, 0
br label %33
33: ; preds = %28, %22
%34 = phi i1 [ %32, %28 ], [ true, %22 ]
%35 = getelementptr inbounds [19 x i8], [19 x i8]* %2, i64 0, i64 6
%36 = bitcast i8* %35 to i64*
%37 = bitcast [9 x i8]* %7 to i64*
%38 = load i64, i64* %36
store i64 %38, i64* %37
%39 = getelementptr inbounds [9 x i8], [9 x i8]* %7, i64 0, i64 8
store i8 0, i8* %39
%40 = call i32* @fgets(i8* %10, i32 1024, i32* %17)
%41 = icmp eq i32* %40, null
br i1 %41, label %84, label %54
42: ; preds = %26, %50
%43 = phi i32 [ -1, %26 ], [ %52, %50 ]
%44 = call i32 @LegalInput(i8* %11)
%45 = load i32, i32* @EXIT_SUCCESS
%46 = icmp eq i32 %44, %45
br i1 %46, label %47, label %50
47: ; preds = %42
%48 = call i32 @LegalID(i8* %11, i32* %27)
%49 = load i32, i32* @EXIT_SUCCESS
br label %50
50: ; preds = %47, %42
%51 = phi i32 [ %49, %47 ], [ %45, %42 ]
%52 = phi i32 [ %48, %47 ], [ %43, %42 ]
%53 = icmp eq i32 %52, %51
br i1 %53, label %28, label %42
54: ; preds = %33
%55 = getelementptr inbounds [7 x i8], [7 x i8]* %8, i64 0, i64 1
%56 = getelementptr inbounds [7 x i8], [7 x i8]* %8, i64 0, i64 2
%57 = getelementptr inbounds [7 x i8], [7 x i8]* %8, i64 0, i64 3
%58 = getelementptr inbounds [7 x i8], [7 x i8]* %8, i64 0, i64 4
%59 = getelementptr inbounds [7 x i8], [7 x i8]* %8, i64 0, i64 5
%60 = getelementptr inbounds [7 x i8], [7 x i8]* %8, i64 0, i64 6
br label %61
61: ; preds = %54, %80
%62 = call i8* @strchr(i8* %10, i32 58)
%63 = getelementptr inbounds i8, i8* %62, i64 1
%64 = load i8, i8* %63
store i8 %64, i8* %15
%65 = getelementptr inbounds i8, i8* %62, i64 2
%66 = load i8, i8* %65
store i8 %66, i8* %55
%67 = getelementptr inbounds i8, i8* %62, i64 3
%68 = load i8, i8* %67
store i8 %68, i8* %56
%69 = getelementptr inbounds i8, i8* %62, i64 4
%70 = load i8, i8* %69
store i8 %70, i8* %57
%71 = getelementptr inbounds i8, i8* %62, i64 5
%72 = load i8, i8* %71
store i8 %72, i8* %58
%73 = getelementptr inbounds i8, i8* %62, i64 6
%74 = load i8, i8* %73
store i8 %74, i8* %59
store i8 0, i8* %60
%75 = call i64 @strcmp(i8* %13, i8* %15)
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %61
%78 = getelementptr inbounds i8, i8* %62, i64 8
%79 = call i32 @strcpy(i8* %16, i8* %78)
br label %84
80: ; preds = %61
%81 = call i32 @memset(i8* %10, i32 0, i32 1024)
%82 = call i32* @fgets(i8* %10, i32 1024, i32* %17)
%83 = icmp eq i32* %82, null
br i1 %83, label %84, label %61
84: ; preds = %80, %33, %77
%85 = call i32 @fclose(i32* %17)
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %16)
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i8* %14)
br i1 %34, label %90, label %88
88: ; preds = %84
%89 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.8, i64 0, i64 0))
br label %92
90: ; preds = %84
%91 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
br label %92
92: ; preds = %88, %90, %19
%93 = phi i32 [ %21, %19 ], [ 0, %90 ], [ 0, %88 ]
ret i32 %93
}