#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*/ airInfo(char *);
int /*<<< orphan*/ allguest();
int /*<<< orphan*/ buyTickets();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ isLineExist(char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ query(char *);
int /*<<< orphan*/ queryp();
int /*<<< orphan*/ refund(char *);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ selled();
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ writefilenew(char *);
int main() {
  printf("\n\t**********     欢迎进入广州白云机场服务系统  \t*********\n\n");
  printf("\t\t***********                 菜单            ***********\n\n");
  printf("\t\t***********         1   购买机票            ***********\n");
  printf("\t\t***********         2 查询已购机票          ***********\n");
  printf("\t\t***********         3 查询航线信息          ***********\n");
  printf("\t\t***********         4 查询售出机票          ***********\n");
  printf("\t\t***********         5     退票              ***********\n");
  printf("\t\t***********         6   刷新屏幕            ***********\n");
  printf("\t\t***********         7  增加新航班           ***********\n");
  printf("\t\t***********         8 机场所有航班的信息    ***********\n");
  printf("\t\t***********         9 查看某航班上的乘客信息***********\n");
  printf("\t\t***********         10   退出系统           ***********\n");
  int choice;
  while (choice) {
    printf("请输入你要进行操作所对应的序号：(1~10) ");
    scanf("%d", &choice);
    switch (choice) {
    case 1: {
      buyTickets();
      break;
    }
    case 2: {
      char name[20];
      printf("请输入您的姓名： ");
      scanf("%s", name);
      query(name);
      break;
    }
    case 3: {
      char airNum[20];
      printf("请输入航班号： ");
      scanf("%s", airNum);
      airInfo(airNum);
      break;
    }
    case 4: {
      printf("所有顾客信息如下：\n");
      selled();
      break;
    }
    case 5: {
      char name[20];
      printf("请输入姓名： ");
      scanf("%s", name);
      refund(name);
      break;
    }
    case 6: {
      system("cls");
      main();
      break;
    }
    case 7: {
      char s1[500], s[500];
      printf("请输入航班号: ");
      scanf("%s", s1);
      if (isLineExist(s1))
        printf("对不起,该航班信息已经存在,请添加其他航班.\n");
      else {
        printf("请输入起飞时刻,到达时刻,目的地,票价,折扣,每班载量,"
               "剩余载量（以英文','分隔）\n");
        scanf("%s", s);
        strcat(s1, ",");
        strcat(s1, s);
        writefilenew(s1);
        writefilenew("\n");
        printf("添加航班成功！\n");
      }
      break;
    }
    case 8: {
      printf("所有的航班信息如下：\n");
      queryp();
      break;
    }
    case 9: {
      allguest();
      break;
    }
    case 10:
      exit(0);
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x470,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe1f(%rip),%rdi
call   1070 <printf@plt>
lea    0xe5d(%rip),%rdi
call   1070 <printf@plt>
lea    0xe8f(%rip),%rdi
call   1070 <printf@plt>
lea    0xec2(%rip),%rdi
call   1070 <printf@plt>
lea    0xef7(%rip),%rdi
call   1070 <printf@plt>
lea    0xf2c(%rip),%rdi
call   1070 <printf@plt>
lea    0xf61(%rip),%rdi
call   1070 <printf@plt>
lea    0xf92(%rip),%rdi
call   1070 <printf@plt>
lea    0xfc5(%rip),%rdi
call   1070 <printf@plt>
lea    0xff9(%rip),%rdi
call   1070 <printf@plt>
lea    0x1031(%rip),%rdi
call   1070 <printf@plt>
lea    0x106b(%rip),%rdi
call   1070 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
je     148e <main+0x29e>
lea    0x1094(%rip),%rdi
call   1070 <printf@plt>
lea    0x10c0(%rip),%rdi
xor    %eax,%eax
lea    -0x8(%rbp),%rsi
call   10c0 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x468(%rbp)
sub    $0x9,%eax
ja     1489 <main+0x299>
mov    -0x468(%rbp),%rax
lea    0xd20(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1090 <buyTickets@plt>
jmp    1489 <main+0x299>
lea    0x1076(%rip),%rdi
call   1070 <printf@plt>
lea    -0x20(%rbp),%rsi
lea    0x1080(%rip),%rdi
mov    $0x0,%al
call   10c0 <scanf@plt>
lea    -0x20(%rbp),%rdi
call   10a0 <query@plt>
jmp    1489 <main+0x299>
lea    0x1067(%rip),%rdi
call   1070 <printf@plt>
lea    -0x40(%rbp),%rsi
lea    0x1054(%rip),%rdi
mov    $0x0,%al
call   10c0 <scanf@plt>
lea    -0x40(%rbp),%rdi
call   1100 <airInfo@plt>
jmp    1489 <main+0x299>
lea    0x1052(%rip),%rdi
call   1070 <printf@plt>
mov    $0x0,%al
call   1040 <selled@plt>
jmp    1489 <main+0x299>
lea    0x1057(%rip),%rdi
call   1070 <printf@plt>
lea    -0x60(%rbp),%rsi
lea    0x1010(%rip),%rdi
mov    $0x0,%al
call   10c0 <scanf@plt>
lea    -0x60(%rbp),%rdi
call   1080 <refund@plt>
jmp    1489 <main+0x299>
lea    0x103f(%rip),%rdi
call   1060 <system@plt>
call   10b0 <main@plt>
jmp    1489 <main+0x299>
lea    0x102d(%rip),%rdi
call   1070 <printf@plt>
lea    -0x260(%rbp),%rsi
lea    0xfcb(%rip),%rdi
mov    $0x0,%al
call   10c0 <scanf@plt>
lea    -0x260(%rbp),%rdi
call   1110 <isLineExist@plt>
cmp    $0x0,%eax
je     13ee <main+0x1fe>
lea    0x100c(%rip),%rdi
call   1070 <printf@plt>
jmp    1459 <main+0x269>
lea    0x1039(%rip),%rdi
call   1070 <printf@plt>
lea    -0x460(%rbp),%rsi
lea    0xf84(%rip),%rdi
mov    $0x0,%al
call   10c0 <scanf@plt>
lea    -0x260(%rbp),%rdi
lea    0x107f(%rip),%rsi
call   10e0 <strcat@plt>
lea    -0x260(%rbp),%rdi
lea    -0x460(%rbp),%rsi
call   10e0 <strcat@plt>
lea    -0x260(%rbp),%rdi
call   1030 <writefilenew@plt>
lea    0xc28(%rip),%rdi
call   1030 <writefilenew@plt>
lea    0x104a(%rip),%rdi
call   1070 <printf@plt>
jmp    1489 <main+0x299>
lea    0x1050(%rip),%rdi
call   1070 <printf@plt>
mov    $0x0,%al
call   10d0 <queryp@plt>
jmp    1489 <main+0x299>
mov    $0x0,%al
call   1050 <allguest@plt>
jmp    1489 <main+0x299>
xor    %edi,%edi
call   10f0 <exit@plt>
jmp    1292 <main+0xa2>
mov    $0x1,%eax
add    $0x470,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x408,%rsp
lea    0xeae(%rip),%rdi
call   1040 <puts@plt>
lea    0xeeb(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf4e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf82(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb6(%rip),%rdi
call   1040 <puts@plt>
lea    0xfea(%rip),%rdi
call   1040 <puts@plt>
lea    0x101a(%rip),%rdi
call   1040 <puts@plt>
lea    0x104c(%rip),%rdi
call   1040 <puts@plt>
lea    0x107f(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b6(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ef(%rip),%rdi
call   1040 <puts@plt>
lea    0xd80(%rip),%r14
lea    0xdb1(%rip),%rbx
lea    0xc(%rsp),%r15
lea    0xd45(%rip),%r12
lea    0xdbb(%rip),%rbp
lea    0x210(%rsp),%r13
jmp    12ec <main+0xec>
xor    %eax,%eax
call   10a0 <buyTickets@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0xc(%rsp),%eax
test   %eax,%eax
je     146f <main+0x26f>
mov    %r14,%rdi
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   10d0 <scanf@plt>
mov    0xc(%rsp),%eax
lea    -0x1(%rax),%ecx
cmp    $0x9,%ecx
ja     12e4 <main+0xe4>
movslq (%r12,%rcx,4),%rax
add    %r12,%rax
jmp    *%rax
lea    0xd46(%rip),%rdi
call   1080 <printf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10d0 <scanf@plt>
mov    %r13,%rdi
call   10b0 <query@plt>
jmp    12e0 <main+0xe0>
lea    0xd40(%rip),%rdi
call   1080 <printf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10d0 <scanf@plt>
mov    %r13,%rdi
call   1110 <airInfo@plt>
jmp    12e0 <main+0xe0>
lea    0x1145(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1050 <selled@plt>
jmp    12e0 <main+0xe0>
lea    0xd1c(%rip),%rdi
call   1080 <printf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10d0 <scanf@plt>
mov    %r13,%rdi
call   1090 <refund@plt>
jmp    12e0 <main+0xe0>
lea    0xd0a(%rip),%rdi
call   1070 <system@plt>
call   10c0 <main@plt>
jmp    12e0 <main+0xe0>
lea    0xcf8(%rip),%rdi
call   1080 <printf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10d0 <scanf@plt>
mov    %r13,%rdi
call   1120 <isLineExist@plt>
lea    0x1093(%rip),%rdi
test   %eax,%eax
jne    1441 <main+0x241>
lea    0x1005(%rip),%rdi
call   1040 <puts@plt>
mov    %rbp,%rdi
mov    %r13,%r15
lea    0x10(%rsp),%r13
mov    %r13,%rsi
xor    %eax,%eax
call   10d0 <scanf@plt>
mov    %r15,%rdi
lea    0xcbd(%rip),%rsi
call   10f0 <strcat@plt>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r15,%r13
lea    0xc(%rsp),%r15
lea    0xc3f(%rip),%rbx
call   10f0 <strcat@plt>
mov    %r13,%rdi
call   1030 <writefilenew@plt>
lea    0xcd8(%rip),%rdi
call   1030 <writefilenew@plt>
lea    0x1014(%rip),%rdi
call   1040 <puts@plt>
jmp    12e0 <main+0xe0>
lea    0xf77(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   10e0 <queryp@plt>
jmp    12e0 <main+0xe0>
xor    %eax,%eax
call   1060 <allguest@plt>
jmp    12e0 <main+0xe0>
mov    $0x1,%eax
add    $0x408,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edi,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
@.str = [74 x i8] c"\0A\09********** \E6\AC\A2\E8\BF\8E\E8\BF\9B\E5\85\A5\E5\B9\BF\E5\B7\9E\E7\99\BD\E4\BA\91\E6\9C\BA\E5\9C\BA\E6\9C\8D\E5\8A\A1\E7\B3\BB\E7\BB\9F \09*********\0A\0A\00"
@.str.1 = [62 x i8] c"\09\09*********** \E8\8F\9C\E5\8D\95 ***********\0A\0A\00"
@.str.2 = [63 x i8] c"\09\09*********** 1 \E8\B4\AD\E4\B9\B0\E6\9C\BA\E7\A5\A8 ***********\0A\00"
@.str.3 = [65 x i8] c"\09\09*********** 2 \E6\9F\A5\E8\AF\A2\E5\B7\B2\E8\B4\AD\E6\9C\BA\E7\A5\A8 ***********\0A\00"
@.str.4 = [65 x i8] c"\09\09*********** 3 \E6\9F\A5\E8\AF\A2\E8\88\AA\E7\BA\BF\E4\BF\A1\E6\81\AF ***********\0A\00"
@.str.5 = [65 x i8] c"\09\09*********** 4 \E6\9F\A5\E8\AF\A2\E5\94\AE\E5\87\BA\E6\9C\BA\E7\A5\A8 ***********\0A\00"
@.str.6 = [61 x i8] c"\09\09*********** 5 \E9\80\80\E7\A5\A8 ***********\0A\00"
@.str.7 = [63 x i8] c"\09\09*********** 6 \E5\88\B7\E6\96\B0\E5\B1\8F\E5\B9\95 ***********\0A\00"
@.str.8 = [64 x i8] c"\09\09*********** 7 \E5\A2\9E\E5\8A\A0\E6\96\B0\E8\88\AA\E7\8F\AD ***********\0A\00"
@.str.9 = [68 x i8] c"\09\09*********** 8 \E6\9C\BA\E5\9C\BA\E6\89\80\E6\9C\89\E8\88\AA\E7\8F\AD\E7\9A\84\E4\BF\A1\E6\81\AF ***********\0A\00"
@.str.10 = [70 x i8] c"\09\09*********** 9 \E6\9F\A5\E7\9C\8B\E6\9F\90\E8\88\AA\E7\8F\AD\E4\B8\8A\E7\9A\84\E4\B9\98\E5\AE\A2\E4\BF\A1\E6\81\AF***********\0A\00"
@.str.11 = [63 x i8] c"\09\09*********** 10 \E9\80\80\E5\87\BA\E7\B3\BB\E7\BB\9F ***********\0A\00"
@.str.12 = [56 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E4\BD\A0\E8\A6\81\E8\BF\9B\E8\A1\8C\E6\93\8D\E4\BD\9C\E6\89\80\E5\AF\B9\E5\BA\94\E7\9A\84\E5\BA\8F\E5\8F\B7\EF\BC\9A(1~10) \00"
@.str.13 = [3 x i8] c"%d\00"
@.str.14 = [26 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E6\82\A8\E7\9A\84\E5\A7\93\E5\90\8D\EF\BC\9A \00"
@.str.15 = [3 x i8] c"%s\00"
@.str.16 = [23 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E8\88\AA\E7\8F\AD\E5\8F\B7\EF\BC\9A \00"
@.str.17 = [29 x i8] c"\E6\89\80\E6\9C\89\E9\A1\BE\E5\AE\A2\E4\BF\A1\E6\81\AF\E5\A6\82\E4\B8\8B\EF\BC\9A\0A\00"
@.str.18 = [20 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E5\A7\93\E5\90\8D\EF\BC\9A \00"
@.str.19 = [4 x i8] c"cls\00"
@.str.20 = [21 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E8\88\AA\E7\8F\AD\E5\8F\B7: \00"
@.str.21 = [62 x i8] c"\E5\AF\B9\E4\B8\8D\E8\B5\B7,\E8\AF\A5\E8\88\AA\E7\8F\AD\E4\BF\A1\E6\81\AF\E5\B7\B2\E7\BB\8F\E5\AD\98\E5\9C\A8,\E8\AF\B7\E6\B7\BB\E5\8A\A0\E5\85\B6\E4\BB\96\E8\88\AA\E7\8F\AD.\0A\00"
@.str.22 = [110 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E8\B5\B7\E9\A3\9E\E6\97\B6\E5\88\BB,\E5\88\B0\E8\BE\BE\E6\97\B6\E5\88\BB,\E7\9B\AE\E7\9A\84\E5\9C\B0,\E7\A5\A8\E4\BB\B7,\E6\8A\98\E6\89\A3,\E6\AF\8F\E7\8F\AD\E8\BD\BD\E9\87\8F,\E5\89\A9\E4\BD\99\E8\BD\BD\E9\87\8F\EF\BC\88\E4\BB\A5\E8\8B\B1\E6\96\87','\E5\88\86\E9\9A\94\EF\BC\89\0A\00"
@.str.23 = [2 x i8] c",\00"
@.str.24 = [2 x i8] c"\0A\00"
@.str.25 = [23 x i8] c"\E6\B7\BB\E5\8A\A0\E8\88\AA\E7\8F\AD\E6\88\90\E5\8A\9F\EF\BC\81\0A\00"
@.str.26 = [32 x i8] c"\E6\89\80\E6\9C\89\E7\9A\84\E8\88\AA\E7\8F\AD\E4\BF\A1\E6\81\AF\E5\A6\82\E4\B8\8B\EF\BC\9A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [20 x i8]
%4 = alloca [20 x i8]
%5 = alloca [20 x i8]
%6 = alloca [500 x i8]
%7 = alloca [500 x i8]
store i32 0, i32* %1
%8 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.8, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.9, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.10, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.11, i64 0, i64 0))
br label %20
20: ; preds = %83, %0
%21 = load i32, i32* %2
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %84
23: ; preds = %20
%24 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.12, i64 0, i64 0))
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i32* %2)
%26 = load i32, i32* %2
switch i32 %26, label %83 [
i32 1, label %27
i32 2, label %29
i32 3, label %35
i32 4, label %41
i32 5, label %44
i32 6, label %50
i32 7, label %53
i32 8, label %76
i32 9, label %79
i32 10, label %81
]
27: ; preds = %23
%28 = call i32 (...) @buyTickets()
br label %83
29: ; preds = %23
%30 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0))
%31 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%32 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %31)
%33 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%34 = call i32 @query(i8* %33)
br label %83
35: ; preds = %23
%36 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0))
%37 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%38 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %37)
%39 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%40 = call i32 @airInfo(i8* %39)
br label %83
41: ; preds = %23
%42 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.17, i64 0, i64 0))
%43 = call i32 (...) @selled()
br label %83
44: ; preds = %23
%45 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0))
%46 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%47 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %46)
%48 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%49 = call i32 @refund(i8* %48)
br label %83
50: ; preds = %23
%51 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%52 = call i32 @main()
br label %83
53: ; preds = %23
%54 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0))
%55 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%56 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %55)
%57 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%58 = call i32 @isLineExist(i8* %57)
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %53
%61 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.21, i64 0, i64 0))
br label %75
62: ; preds = %53
%63 = call i32 @printf(i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.22, i64 0, i64 0))
%64 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%65 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %64)
%66 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%67 = call i32 @strcat(i8* %66, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
%68 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%69 = getelementptr inbounds [500 x i8], [500 x i8]* %7, i64 0, i64 0
%70 = call i32 @strcat(i8* %68, i8* %69)
%71 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%72 = call i32 @writefilenew(i8* %71)
%73 = call i32 @writefilenew(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i64 0, i64 0))
%74 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.25, i64 0, i64 0))
br label %75
75: ; preds = %62, %60
br label %83
76: ; preds = %23
%77 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.26, i64 0, i64 0))
%78 = call i32 (...) @queryp()
br label %83
79: ; preds = %23
%80 = call i32 (...) @allguest()
br label %83
81: ; preds = %23
%82 = call i32 @exit(i32 0)
unreachable
83: ; preds = %23, %79, %76, %75, %50, %44, %41, %35, %29, %27
br label %20
84: ; preds = %20
ret i32 1
}

LLVM IR (-O2):
@.str.12 = [56 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E4\BD\A0\E8\A6\81\E8\BF\9B\E8\A1\8C\E6\93\8D\E4\BD\9C\E6\89\80\E5\AF\B9\E5\BA\94\E7\9A\84\E5\BA\8F\E5\8F\B7\EF\BC\9A(1~10) \00"
@.str.13 = [3 x i8] c"%d\00"
@.str.14 = [26 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E6\82\A8\E7\9A\84\E5\A7\93\E5\90\8D\EF\BC\9A \00"
@.str.15 = [3 x i8] c"%s\00"
@.str.16 = [23 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E8\88\AA\E7\8F\AD\E5\8F\B7\EF\BC\9A \00"
@.str.18 = [20 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E5\A7\93\E5\90\8D\EF\BC\9A \00"
@.str.19 = [4 x i8] c"cls\00"
@.str.20 = [21 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E8\88\AA\E7\8F\AD\E5\8F\B7: \00"
@.str.23 = [2 x i8] c",\00"
@.str.24 = [2 x i8] c"\0A\00"
@str = [73 x i8] c"\0A\09********** \E6\AC\A2\E8\BF\8E\E8\BF\9B\E5\85\A5\E5\B9\BF\E5\B7\9E\E7\99\BD\E4\BA\91\E6\9C\BA\E5\9C\BA\E6\9C\8D\E5\8A\A1\E7\B3\BB\E7\BB\9F \09*********\0A\00"
@str.27 = [61 x i8] c"\09\09*********** \E8\8F\9C\E5\8D\95 ***********\0A\00"
@str.28 = [62 x i8] c"\09\09*********** 1 \E8\B4\AD\E4\B9\B0\E6\9C\BA\E7\A5\A8 ***********\00"
@str.29 = [64 x i8] c"\09\09*********** 2 \E6\9F\A5\E8\AF\A2\E5\B7\B2\E8\B4\AD\E6\9C\BA\E7\A5\A8 ***********\00"
@str.30 = [64 x i8] c"\09\09*********** 3 \E6\9F\A5\E8\AF\A2\E8\88\AA\E7\BA\BF\E4\BF\A1\E6\81\AF ***********\00"
@str.31 = [64 x i8] c"\09\09*********** 4 \E6\9F\A5\E8\AF\A2\E5\94\AE\E5\87\BA\E6\9C\BA\E7\A5\A8 ***********\00"
@str.32 = [60 x i8] c"\09\09*********** 5 \E9\80\80\E7\A5\A8 ***********\00"
@str.33 = [62 x i8] c"\09\09*********** 6 \E5\88\B7\E6\96\B0\E5\B1\8F\E5\B9\95 ***********\00"
@str.34 = [63 x i8] c"\09\09*********** 7 \E5\A2\9E\E5\8A\A0\E6\96\B0\E8\88\AA\E7\8F\AD ***********\00"
@str.35 = [67 x i8] c"\09\09*********** 8 \E6\9C\BA\E5\9C\BA\E6\89\80\E6\9C\89\E8\88\AA\E7\8F\AD\E7\9A\84\E4\BF\A1\E6\81\AF ***********\00"
@str.36 = [69 x i8] c"\09\09*********** 9 \E6\9F\A5\E7\9C\8B\E6\9F\90\E8\88\AA\E7\8F\AD\E4\B8\8A\E7\9A\84\E4\B9\98\E5\AE\A2\E4\BF\A1\E6\81\AF***********\00"
@str.37 = [62 x i8] c"\09\09*********** 10 \E9\80\80\E5\87\BA\E7\B3\BB\E7\BB\9F ***********\00"
@str.38 = [31 x i8] c"\E6\89\80\E6\9C\89\E7\9A\84\E8\88\AA\E7\8F\AD\E4\BF\A1\E6\81\AF\E5\A6\82\E4\B8\8B\EF\BC\9A\00"
@str.39 = [109 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E8\B5\B7\E9\A3\9E\E6\97\B6\E5\88\BB,\E5\88\B0\E8\BE\BE\E6\97\B6\E5\88\BB,\E7\9B\AE\E7\9A\84\E5\9C\B0,\E7\A5\A8\E4\BB\B7,\E6\8A\98\E6\89\A3,\E6\AF\8F\E7\8F\AD\E8\BD\BD\E9\87\8F,\E5\89\A9\E4\BD\99\E8\BD\BD\E9\87\8F\EF\BC\88\E4\BB\A5\E8\8B\B1\E6\96\87','\E5\88\86\E9\9A\94\EF\BC\89\00"
@str.40 = [22 x i8] c"\E6\B7\BB\E5\8A\A0\E8\88\AA\E7\8F\AD\E6\88\90\E5\8A\9F\EF\BC\81\00"
@str.41 = [61 x i8] c"\E5\AF\B9\E4\B8\8D\E8\B5\B7,\E8\AF\A5\E8\88\AA\E7\8F\AD\E4\BF\A1\E6\81\AF\E5\B7\B2\E7\BB\8F\E5\AD\98\E5\9C\A8,\E8\AF\B7\E6\B7\BB\E5\8A\A0\E5\85\B6\E4\BB\96\E8\88\AA\E7\8F\AD.\00"
@str.42 = [28 x i8] c"\E6\89\80\E6\9C\89\E9\A1\BE\E5\AE\A2\E4\BF\A1\E6\81\AF\E5\A6\82\E4\B8\8B\EF\BC\9A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [20 x i8]
%3 = alloca [20 x i8]
%4 = alloca [20 x i8]
%5 = alloca [500 x i8]
%6 = alloca [500 x i8]
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.34, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.35, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.36, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.37, i64 0, i64 0))
%19 = bitcast i32* %1 to i8*
%20 = getelementptr inbounds [500 x i8], [500 x i8]* %5, i64 0, i64 0
%21 = getelementptr inbounds [500 x i8], [500 x i8]* %6, i64 0, i64 0
%22 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%23 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%24 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
br label %25
25: ; preds = %0, %73
%26 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.12, i64 0, i64 0))
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i32* %1)
%28 = load i32, i32* %1
switch i32 %28, label %73 [
i32 1, label %29
i32 2, label %31
i32 3, label %35
i32 4, label %39
i32 5, label %42
i32 6, label %46
i32 7, label %49
i32 8, label %64
i32 9, label %67
i32 10, label %69
]
29: ; preds = %25
%30 = call i32 (...) @buyTickets()
br label %71
31: ; preds = %25
%32 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0))
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %24)
%34 = call i32 @query(i8* %24)
br label %71
35: ; preds = %25
%36 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0))
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %23)
%38 = call i32 @airInfo(i8* %23)
br label %71
39: ; preds = %25
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.42, i64 0, i64 0))
%41 = call i32 (...) @selled()
br label %71
42: ; preds = %25
%43 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0))
%44 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %22)
%45 = call i32 @refund(i8* %22)
br label %71
46: ; preds = %25
%47 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%48 = call i32 @main()
br label %71
49: ; preds = %25
%50 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0))
%51 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %20)
%52 = call i32 @isLineExist(i8* %20)
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %61
54: ; preds = %49
%55 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([109 x i8], [109 x i8]* @str.39, i64 0, i64 0))
%56 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %21)
%57 = call i32 @strcat(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
%58 = call i32 @strcat(i8* %20, i8* %21)
%59 = call i32 @writefilenew(i8* %20)
%60 = call i32 @writefilenew(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i64 0, i64 0))
br label %61
61: ; preds = %49, %54
%62 = phi i8* [ getelementptr inbounds ([22 x i8], [22 x i8]* @str.40, i64 0, i64 0), %54 ], [ getelementptr inbounds ([61 x i8], [61 x i8]* @str.41, i64 0, i64 0), %49 ]
%63 = call i32 @puts(i8* dereferenceable(1) %62)
br label %71
64: ; preds = %25
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.38, i64 0, i64 0))
%66 = call i32 (...) @queryp()
br label %71
67: ; preds = %25
%68 = call i32 (...) @allguest()
br label %71
69: ; preds = %25
%70 = call i32 @exit(i32 0)
unreachable
71: ; preds = %29, %31, %35, %39, %42, %46, %61, %64, %67
%72 = load i32, i32* %1
br label %73
73: ; preds = %71, %25
%74 = phi i32 [ %72, %71 ], [ %28, %25 ]
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %25
76: ; preds = %73
ret i32 1
}