#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 Computers_Move(int, int, int);
scalar_t__ assign(int, int);
int /*<<< orphan*/ box();
int /*<<< orphan*/ delay(double);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ introduction();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ system(char *);
scalar_t__ varification(int);
void hvc_choice(char *h, int level) {
  int p;
  while (1) {
    printf("\n\n* Who will give first move?\n");
    delay(0.5);
    printf("* Press 1(human) or 2(computer): ");
    char ch;
    fflush(stdin);
    scanf("%c", &ch);
    p = ch - 48;
    if (p > 2 || p < 1)
      printf("\n**Wrong input!\a\n**Try again.\n");
    else
      break;
  }
  int i = 0;
  while (1) {
    system("cls");
    introduction();
    printf("\n##**HUMAN vs. COMPUTER\n\n");
    printf("\n# Move No: %d", i + 1);
    box();
    int pl;
    char *name;
    if (i % 2 == 0)
      pl = p;
    else
      pl = 3 - p;
    if (pl == 1)
      name = h;
    else
      name = "Computer";
    delay(0.35);
    printf("## Player-%d: %s\n", pl, name);
    delay(0.5);
    while (1) {
      int sel;
      printf("Select a column (1-5): ");
      if (pl == 1) {
        char ch;
        fflush(stdin);
        scanf("%c", &ch);
        sel = ch - 48;
      } else {
        sel = Computers_Move(i, sel, level);
        delay(0.7);
        printf("%d", sel);
        delay(1.0);
      }
      printf("\n");
      if (sel < 1 || sel > 5) {
        printf("**Wrong input1!\a\n");
        continue;
      } else if (assign(sel, pl)) {
        printf("\nInvalid move!\a\n");
        continue;
      }
      break;
    }
    if (varification(pl)) {
      system("cls");
      introduction();
      printf("\n# Move No: %d", i + 1);
      box();
      delay(0.4);
      printf("\a\a\n%c\t**## Player-%d: %s wins! ##**\n", 1, pl, name);
      delay(0.35);
      printf("\a");
      delay(0.6);
      printf("\a\a");
      break;
    } else if (i == 34) {
      system("cls");
      introduction();
      printf("\n# Move No: %d", i + 1);
      box();
      delay(0.4);
      printf("\a\n**The match is draw.\n");
      delay(0.2);
      printf("\a");
      delay(0.4);
      printf("\a");
      break;
    }
    i++;
  }
}


x86 assembly (clang, -O0):
<hvc_choice>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movsd  0xe3b(%rip),%xmm0
call   1070 <delay@plt>
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2e09(%rip),%rax
mov    (%rax),%edi
call   10a0 <fflush@plt>
lea    0xe8c(%rip),%rdi
lea    -0x11(%rbp),%rsi
call   10b0 <scanf@plt>
movsbl -0x11(%rbp),%eax
sub    $0x30,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x2,-0x10(%rbp)
jg     1214 <hvc_choice+0x74>
cmpl   $0x1,-0x10(%rbp)
jge    1227 <hvc_choice+0x87>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    122c <hvc_choice+0x8c>
jmp    1231 <hvc_choice+0x91>
jmp    11af <hvc_choice+0xf>
movl   $0x0,-0x18(%rbp)
lea    0xe5c(%rip),%rdi
call   1050 <system@plt>
mov    $0x0,%al
call   1040 <introduction@plt>
lea    0xe4d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%esi
add    $0x1,%esi
lea    0xe53(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x0,%al
call   1080 <box@plt>
mov    -0x18(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1293 <hvc_choice+0xf3>
mov    -0x10(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    129e <hvc_choice+0xfe>
mov    $0x3,%eax
sub    -0x10(%rbp),%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    12b5 <hvc_choice+0x115>
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    12c0 <hvc_choice+0x120>
lea    0xe0c(%rip),%rax
mov    %rax,-0x28(%rbp)
movsd  0xd40(%rip),%xmm0
call   1070 <delay@plt>
mov    -0x1c(%rbp),%esi
mov    -0x28(%rbp),%rdx
lea    0xdf6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movsd  0xd16(%rip),%xmm0
call   1070 <delay@plt>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x1,-0x1c(%rbp)
jne    1334 <hvc_choice+0x194>
mov    0x2cda(%rip),%rax
mov    (%rax),%edi
call   10a0 <fflush@plt>
lea    0xd5d(%rip),%rdi
lea    -0x2d(%rbp),%rsi
call   10b0 <scanf@plt>
movsbl -0x2d(%rbp),%eax
sub    $0x30,%eax
mov    %eax,-0x2c(%rbp)
jmp    1370 <hvc_choice+0x1d0>
mov    -0x18(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1030 <Computers_Move@plt>
mov    %eax,-0x2c(%rbp)
movsd  0xccb(%rip),%xmm0
call   1070 <delay@plt>
mov    -0x2c(%rbp),%esi
lea    0xd69(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movsd  0xca5(%rip),%xmm0
call   1070 <delay@plt>
lea    0xd94(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x1,-0x2c(%rbp)
jl     1392 <hvc_choice+0x1f2>
cmpl   $0x5,-0x2c(%rbp)
jle    13a5 <hvc_choice+0x205>
lea    0xd62(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    12ef <hvc_choice+0x14f>
mov    -0x2c(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   10c0 <assign@plt>
cmp    $0x0,%rax
je     13cd <hvc_choice+0x22d>
lea    0xd4c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    12ef <hvc_choice+0x14f>
jmp    13d2 <hvc_choice+0x232>
jmp    13d7 <hvc_choice+0x237>
mov    -0x1c(%rbp),%edi
call   1090 <varification@plt>
cmp    $0x0,%rax
je     1479 <hvc_choice+0x2d9>
lea    0xcab(%rip),%rdi
call   1050 <system@plt>
mov    $0x0,%al
call   1040 <introduction@plt>
mov    -0x18(%rbp),%esi
add    $0x1,%esi
lea    0xcb0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x0,%al
call   1080 <box@plt>
movsd  0xc01(%rip),%xmm0
call   1070 <delay@plt>
mov    -0x1c(%rbp),%edx
mov    -0x28(%rbp),%rcx
lea    0xcec(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1060 <printf@plt>
movsd  0xbc2(%rip),%xmm0
call   1070 <delay@plt>
lea    0xcf2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movsd  0xbcf(%rip),%xmm0
call   1070 <delay@plt>
lea    0xcd6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    151a <hvc_choice+0x37a>
cmpl   $0x22,-0x18(%rbp)
jne    1507 <hvc_choice+0x367>
lea    0xc11(%rip),%rdi
call   1050 <system@plt>
mov    $0x0,%al
call   1040 <introduction@plt>
mov    -0x18(%rbp),%esi
add    $0x1,%esi
lea    0xc16(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x0,%al
call   1080 <box@plt>
movsd  0xb67(%rip),%xmm0
call   1070 <delay@plt>
lea    0xc81(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movsd  0xb54(%rip),%xmm0
call   1070 <delay@plt>
lea    0xc64(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movsd  0xb31(%rip),%xmm0
call   1070 <delay@plt>
lea    0xc49(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    151a <hvc_choice+0x37a>
jmp    150c <hvc_choice+0x36c>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1238 <hvc_choice+0x98>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hvc_choice>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %esi,%ebx
mov    %rdi,0x20(%rsp)
lea    0xeef(%rip),%rdi
call   1040 <puts@plt>
movsd  0xe17(%rip),%xmm0
call   1090 <delay@plt>
lea    0xe43(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    0x2de5(%rip),%rax
mov    (%rax),%edi
call   10c0 <fflush@plt>
lea    0xe49(%rip),%rdi
lea    0x6(%rsp),%rsi
call   10d0 <scanf@plt>
mov    0x6(%rsp),%al
lea    -0x33(%rax),%ecx
cmp    $0xfd,%cl
ja     129d <hvc_choice+0xdd>
lea    0xf0c(%rip),%r14
lea    0xe96(%rip),%r15
lea    0xdfc(%rip),%r12
lea    0xe17(%rip),%r13
lea    0x6(%rsp),%rbp
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
movsd  0xd98(%rip),%xmm0
call   1090 <delay@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    0x2d6a(%rip),%rax
mov    (%rax),%edi
call   10c0 <fflush@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
call   10d0 <scanf@plt>
movzbl 0x6(%rsp),%eax
lea    -0x33(%rax),%ecx
cmp    $0xfe,%cl
jb     1250 <hvc_choice+0x90>
movzbl %al,%eax
mov    $0x33,%ecx
sub    %eax,%ecx
mov    %ecx,0x10(%rsp)
add    $0xffffffd0,%eax
mov    %eax,0x14(%rsp)
lea    0xdd2(%rip),%r15
lea    0xe69(%rip),%rbp
xor    %r14d,%r14d
mov    %ebx,0xc(%rsp)
nopw   0x0(%rax,%rax,1)
lea    0xd86(%rip),%rdi
call   1070 <system@plt>
xor    %eax,%eax
call   1060 <introduction@plt>
lea    0xdff(%rip),%rdi
call   1040 <puts@plt>
lea    0x1(%r14),%esi
lea    0xd67(%rip),%rdi
mov    %esi,0x8(%rsp)
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10a0 <box@plt>
test   $0x1,%r14b
mov    0x10(%rsp),%r12d
cmove  0x14(%rsp),%r12d
cmp    $0x1,%r12d
lea    0xd4a(%rip),%rbx
cmove  0x20(%rsp),%rbx
movsd  0xcd4(%rip),%xmm0
call   1090 <delay@plt>
lea    0xd39(%rip),%rdi
mov    %r12d,%esi
mov    %rbx,0x18(%rsp)
mov    %rbx,%rdx
mov    0xc(%rsp),%ebx
xor    %eax,%eax
call   1080 <printf@plt>
movsd  0xca2(%rip),%xmm0
call   1090 <delay@plt>
jmp    1375 <hvc_choice+0x1b5>
cs nopw 0x0(%rax,%rax,1)
nop
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1080 <printf@plt>
cmp    $0x1,%r12d
jne    13b0 <hvc_choice+0x1f0>
mov    0x2c5c(%rip),%rax
mov    (%rax),%edi
call   10c0 <fflush@plt>
lea    0xcc0(%rip),%rdi
lea    0x7(%rsp),%rsi
call   10d0 <scanf@plt>
movsbl 0x7(%rsp),%r13d
add    $0xffffffd0,%r13d
jmp    13eb <hvc_choice+0x22b>
mov    %r14d,%edi
mov    %r13d,%esi
mov    %ebx,%edx
call   1050 <Computers_Move@plt>
mov    %eax,%r13d
movsd  0xc48(%rip),%xmm0
call   1090 <delay@plt>
lea    0xc99(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1080 <printf@plt>
movsd  0xc32(%rip),%xmm0
call   1090 <delay@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x6(%r13),%eax
mov    %rbp,%rdi
cmp    $0xfffffffb,%eax
jb     1370 <hvc_choice+0x1b0>
mov    %r13d,%edi
mov    %r12d,%esi
call   10e0 <assign@plt>
lea    0xd02(%rip),%rdi
test   %rax,%rax
jne    1370 <hvc_choice+0x1b0>
mov    %r12d,%edi
call   10b0 <varification@plt>
test   %rax,%rax
jne    14bb <hvc_choice+0x2fb>
cmp    $0x22,%r14d
mov    0x8(%rsp),%eax
mov    %eax,%r14d
jne    12d0 <hvc_choice+0x110>
lea    0xc14(%rip),%rdi
call   1070 <system@plt>
xor    %eax,%eax
call   1060 <introduction@plt>
lea    0xc05(%rip),%rdi
mov    $0x23,%esi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10a0 <box@plt>
movsd  0xba9(%rip),%xmm0
call   1090 <delay@plt>
lea    0xc7f(%rip),%rdi
call   1040 <puts@plt>
movsd  0xba0(%rip),%xmm0
call   1090 <delay@plt>
mov    $0x7,%edi
call   1030 <putchar@plt>
movsd  0xb79(%rip),%xmm0
call   1090 <delay@plt>
mov    $0x7,%edi
call   1030 <putchar@plt>
jmp    1541 <hvc_choice+0x381>
lea    0xb9b(%rip),%rdi
call   1070 <system@plt>
xor    %eax,%eax
call   1060 <introduction@plt>
lea    0xb8c(%rip),%rdi
mov    0x8(%rsp),%esi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10a0 <box@plt>
movsd  0xb31(%rip),%xmm0
call   1090 <delay@plt>
lea    0xba8(%rip),%rdi
mov    $0x1,%esi
mov    %r12d,%edx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
call   1080 <printf@plt>
movsd  0xaf1(%rip),%xmm0
call   1090 <delay@plt>
mov    $0x7,%edi
call   1030 <putchar@plt>
movsd  0xafa(%rip),%xmm0
call   1090 <delay@plt>
lea    0xb8e(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [31 x i8] c"\0A\0A* Who will give first move?\0A\00"
@.str.1 = [34 x i8] c"* Press 1(human) or 2(computer): \00"
@stdin = global i32 0
@.str.2 = [3 x i8] c"%c\00"
@.str.3 = [31 x i8] c"\0A**Wrong input!\07\0A**Try again.\0A\00"
@.str.4 = [4 x i8] c"cls\00"
@.str.5 = [26 x i8] c"\0A##**HUMAN vs. COMPUTER\0A\0A\00"
@.str.6 = [15 x i8] c"\0A# Move No: %d\00"
@.str.7 = [9 x i8] c"Computer\00"
@.str.8 = [18 x i8] c"## Player-%d: %s\0A\00"
@.str.9 = [24 x i8] c"Select a column (1-5): \00"
@.str.10 = [3 x i8] c"%d\00"
@.str.11 = [2 x i8] c"\0A\00"
@.str.12 = [18 x i8] c"**Wrong input1!\07\0A\00"
@.str.13 = [17 x i8] c"\0AInvalid move!\07\0A\00"
@.str.14 = [37 x i8] c"\07\07\0A%c\09**## Player-%d: %s wins! ##**\0A\00"
@.str.15 = [2 x i8] c"\07\00"
@.str.16 = [3 x i8] c"\07\07\00"
@.str.17 = [24 x i8] c"\07\0A**The match is draw.\0A\00"
define void @hvc_choice(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i8
store i8* %0, i8** %3
store i32 %1, i32* %4
br label %12
12: ; preds = %2, %30
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @delay(double 5.000000e-01)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%16 = load i32, i32* @stdin
%17 = call i32 @fflush(i32 %16)
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %6)
%19 = load i8, i8* %6
%20 = sext i8 %19 to i32
%21 = sub nsw i32 %20, 48
store i32 %21, i32* %5
%22 = load i32, i32* %5
%23 = icmp sgt i32 %22, 2
br i1 %23, label %27, label %24
24: ; preds = %12
%25 = load i32, i32* %5
%26 = icmp slt i32 %25, 1
br i1 %26, label %27, label %29
27: ; preds = %24, %12
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
br label %30
29: ; preds = %24
br label %31
30: ; preds = %27
br label %12
31: ; preds = %29
store i32 0, i32* %7
br label %32
32: ; preds = %31, %134
%33 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%34 = call i32 (...) @introduction()
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%36 = load i32, i32* %7
%37 = add nsw i32 %36, 1
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %37)
%39 = call i32 (...) @box()
%40 = load i32, i32* %7
%41 = srem i32 %40, 2
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %32
%44 = load i32, i32* %5
store i32 %44, i32* %8
br label %48
45: ; preds = %32
%46 = load i32, i32* %5
%47 = sub nsw i32 3, %46
store i32 %47, i32* %8
br label %48
48: ; preds = %45, %43
%49 = load i32, i32* %8
%50 = icmp eq i32 %49, 1
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = load i8*, i8** %3
store i8* %52, i8** %9
br label %54
53: ; preds = %48
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8** %9
br label %54
54: ; preds = %53, %51
%55 = call i32 @delay(double 3.500000e-01)
%56 = load i32, i32* %8
%57 = load i8*, i8** %9
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 %56, i8* %57)
%59 = call i32 @delay(double 5.000000e-01)
br label %60
60: ; preds = %54, %87, %94
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
%62 = load i32, i32* %8
%63 = icmp eq i32 %62, 1
br i1 %63, label %64, label %71
64: ; preds = %60
%65 = load i32, i32* @stdin
%66 = call i32 @fflush(i32 %65)
%67 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %11)
%68 = load i8, i8* %11
%69 = sext i8 %68 to i32
%70 = sub nsw i32 %69, 48
store i32 %70, i32* %10
br label %80
71: ; preds = %60
%72 = load i32, i32* %7
%73 = load i32, i32* %10
%74 = load i32, i32* %4
%75 = call i32 @Computers_Move(i32 %72, i32 %73, i32 %74)
store i32 %75, i32* %10
%76 = call i32 @delay(double 0x3FE6666666666666)
%77 = load i32, i32* %10
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 %77)
%79 = call i32 @delay(double 1.000000e+00)
br label %80
80: ; preds = %71, %64
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%82 = load i32, i32* %10
%83 = icmp slt i32 %82, 1
br i1 %83, label %87, label %84
84: ; preds = %80
%85 = load i32, i32* %10
%86 = icmp sgt i32 %85, 5
br i1 %86, label %87, label %89
87: ; preds = %84, %80
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0))
br label %60
89: ; preds = %84
%90 = load i32, i32* %10
%91 = load i32, i32* %8
%92 = call i64 @assign(i32 %90, i32 %91)
%93 = icmp ne i64 %92, 0
br i1 %93, label %94, label %96
94: ; preds = %89
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
br label %60
96: ; preds = %89
br label %97
97: ; preds = %96
br label %98
98: ; preds = %97
%99 = load i32, i32* %8
%100 = call i64 @varification(i32 %99)
%101 = icmp ne i64 %100, 0
br i1 %101, label %102, label %117
102: ; preds = %98
%103 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%104 = call i32 (...) @introduction()
%105 = load i32, i32* %7
%106 = add nsw i32 %105, 1
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %106)
%108 = call i32 (...) @box()
%109 = call i32 @delay(double 4.000000e-01)
%110 = load i32, i32* %8
%111 = load i8*, i8** %9
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0), i32 1, i32 %110, i8* %111)
%113 = call i32 @delay(double 3.500000e-01)
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%115 = call i32 @delay(double 6.000000e-01)
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
br label %137
117: ; preds = %98
%118 = load i32, i32* %7
%119 = icmp eq i32 %118, 34
br i1 %119, label %120, label %133
120: ; preds = %117
%121 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%122 = call i32 (...) @introduction()
%123 = load i32, i32* %7
%124 = add nsw i32 %123, 1
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %124)
%126 = call i32 (...) @box()
%127 = call i32 @delay(double 4.000000e-01)
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.17, i64 0, i64 0))
%129 = call i32 @delay(double 2.000000e-01)
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%131 = call i32 @delay(double 4.000000e-01)
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
br label %137
133: ; preds = %117
br label %134
134: ; preds = %133
%135 = load i32, i32* %7
%136 = add nsw i32 %135, 1
store i32 %136, i32* %7
br label %32
137: ; preds = %120, %102
ret void
}

LLVM IR (-O2):
@.str.1 = [34 x i8] c"* Press 1(human) or 2(computer): \00"
@stdin = global i32 0
@.str.2 = [3 x i8] c"%c\00"
@.str.4 = [4 x i8] c"cls\00"
@.str.6 = [15 x i8] c"\0A# Move No: %d\00"
@.str.7 = [9 x i8] c"Computer\00"
@.str.8 = [18 x i8] c"## Player-%d: %s\0A\00"
@.str.9 = [24 x i8] c"Select a column (1-5): \00"
@.str.10 = [3 x i8] c"%d\00"
@.str.14 = [37 x i8] c"\07\07\0A%c\09**## Player-%d: %s wins! ##**\0A\00"
@.str.16 = [3 x i8] c"\07\07\00"
@str = [30 x i8] c"\0A\0A* Who will give first move?\00"
@str.18 = [25 x i8] c"\0A##**HUMAN vs. COMPUTER\0A\00"
@str.19 = [23 x i8] c"\07\0A**The match is draw.\00"
@str.20 = [16 x i8] c"\0AInvalid move!\07\00"
@str.21 = [17 x i8] c"**Wrong input1!\07\00"
@str.22 = [30 x i8] c"\0A**Wrong input!\07\0A**Try again.\00"
define void @hvc_choice(i8* %0, i32 %1) {
%3 = alloca i8
%4 = alloca i8
%5 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%6 = call i32 @delay(double 5.000000e-01)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* @stdin
%9 = call i32 @fflush(i32 %8)
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %3)
%11 = load i8, i8* %3
%12 = add i8 %11, -51
%13 = icmp ult i8 %12, -2
br i1 %13, label %14, label %25
14: ; preds = %2, %14
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.22, i64 0, i64 0))
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%17 = call i32 @delay(double 5.000000e-01)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%19 = load i32, i32* @stdin
%20 = call i32 @fflush(i32 %19)
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %3)
%22 = load i8, i8* %3
%23 = add i8 %22, -51
%24 = icmp ult i8 %23, -2
br i1 %24, label %14, label %25
25: ; preds = %14, %2
%26 = phi i8 [ %11, %2 ], [ %22, %14 ]
%27 = zext i8 %26 to i32
%28 = add nsw i32 %27, -48
%29 = sub nuw nsw i32 51, %27
br label %30
30: ; preds = %25, %87
%31 = phi i32 [ %36, %87 ], [ 0, %25 ]
%32 = phi i32 [ %63, %87 ], [ undef, %25 ]
%33 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%34 = call i32 (...) @introduction()
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.18, i64 0, i64 0))
%36 = add nuw nsw i32 %31, 1
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %36)
%38 = call i32 (...) @box()
%39 = and i32 %31, 1
%40 = icmp eq i32 %39, 0
%41 = select i1 %40, i32 %28, i32 %29
%42 = icmp eq i32 %41, 1
%43 = select i1 %42, i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0)
%44 = call i32 @delay(double 3.500000e-01)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 %41, i8* %43)
%46 = call i32 @delay(double 5.000000e-01)
br label %47
47: ; preds = %70, %30
%48 = phi i32 [ %32, %30 ], [ %63, %70 ]
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
br i1 %42, label %50, label %57
50: ; preds = %47
%51 = load i32, i32* @stdin
%52 = call i32 @fflush(i32 %51)
%53 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %4)
%54 = load i8, i8* %4
%55 = sext i8 %54 to i32
%56 = add nsw i32 %55, -48
br label %62
57: ; preds = %47
%58 = call i32 @Computers_Move(i32 %31, i32 %48, i32 %1)
%59 = call i32 @delay(double 0x3FE6666666666666)
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 %58)
%61 = call i32 @delay(double 1.000000e+00)
br label %62
62: ; preds = %57, %50
%63 = phi i32 [ %56, %50 ], [ %58, %57 ]
%64 = call i32 @putchar(i32 10)
%65 = add i32 %63, -6
%66 = icmp ult i32 %65, -5
br i1 %66, label %70, label %67
67: ; preds = %62
%68 = call i64 @assign(i32 %63, i32 %41)
%69 = icmp eq i64 %68, 0
br i1 %69, label %73, label %70
70: ; preds = %67, %62
%71 = phi i8* [ getelementptr inbounds ([17 x i8], [17 x i8]* @str.21, i64 0, i64 0), %62 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.20, i64 0, i64 0), %67 ]
%72 = call i32 @puts(i8* dereferenceable(1) %71)
br label %47
73: ; preds = %67
%74 = call i64 @varification(i32 %41)
%75 = icmp eq i64 %74, 0
br i1 %75, label %87, label %76
76: ; preds = %73
%77 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%78 = call i32 (...) @introduction()
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %36)
%80 = call i32 (...) @box()
%81 = call i32 @delay(double 4.000000e-01)
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0), i32 1, i32 %41, i8* %43)
%83 = call i32 @delay(double 3.500000e-01)
%84 = call i32 @putchar(i32 7)
%85 = call i32 @delay(double 6.000000e-01)
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
br label %100
87: ; preds = %73
%88 = icmp eq i32 %31, 34
br i1 %88, label %89, label %30
89: ; preds = %87
%90 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%91 = call i32 (...) @introduction()
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 35)
%93 = call i32 (...) @box()
%94 = call i32 @delay(double 4.000000e-01)
%95 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.19, i64 0, i64 0))
%96 = call i32 @delay(double 2.000000e-01)
%97 = call i32 @putchar(i32 7)
%98 = call i32 @delay(double 4.000000e-01)
%99 = call i32 @putchar(i32 7)
br label %100
100: ; preds = %76, %89
ret void
}