#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
scalar_t__ 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 hvh_choice(char *p1, char *p2) {
  int p;
  while (1) {
    printf("\n* Who will give first move?\n");
    delay(0.5);
    printf("* Press 1(player-1) or 2(player-2): ");
    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. HUMAN\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 = p1;
    else
      name = p2;
    delay(0.35);
    printf("## Player-%d: %s\n", pl, name);
    delay(0.5);
    while (1) {
      int sel;
      printf("Select a column (1-5): ");
      char ch;
      fflush(stdin);
      scanf("%c", &ch);
      sel = ch - 48;
      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):
<hvh_choice>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe81(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsd  0xe4a(%rip),%xmm0
call   1060 <delay@plt>
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2e18(%rip),%rax
mov    (%rax),%edi
call   1090 <fflush@plt>
lea    0xe8d(%rip),%rdi
lea    -0x15(%rbp),%rsi
call   10a0 <scanf@plt>
movsbl -0x15(%rbp),%eax
sub    $0x30,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jg     1205 <hvh_choice+0x75>
cmpl   $0x1,-0x14(%rbp)
jge    1218 <hvh_choice+0x88>
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    121d <hvh_choice+0x8d>
jmp    1222 <hvh_choice+0x92>
jmp    11a0 <hvh_choice+0x10>
movl   $0x0,-0x1c(%rbp)
lea    0xe5d(%rip),%rdi
call   1040 <system@plt>
mov    $0x0,%al
call   1030 <introduction@plt>
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
lea    0xe51(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <box@plt>
mov    -0x1c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1284 <hvh_choice+0xf4>
mov    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    128f <hvh_choice+0xff>
mov    $0x3,%eax
sub    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x1,-0x20(%rbp)
jne    12a6 <hvh_choice+0x116>
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    12ae <hvh_choice+0x11e>
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
movsd  0xd52(%rip),%xmm0
call   1060 <delay@plt>
mov    -0x20(%rbp),%esi
mov    -0x28(%rbp),%rdx
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsd  0xd28(%rip),%xmm0
call   1060 <delay@plt>
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2cf6(%rip),%rax
mov    (%rax),%edi
call   1090 <fflush@plt>
lea    0xd6b(%rip),%rdi
lea    -0x2d(%rbp),%rsi
call   10a0 <scanf@plt>
movsbl -0x2d(%rbp),%eax
sub    $0x30,%eax
mov    %eax,-0x2c(%rbp)
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x1,-0x2c(%rbp)
jl     1335 <hvh_choice+0x1a5>
cmpl   $0x5,-0x2c(%rbp)
jle    1348 <hvh_choice+0x1b8>
lea    0xda5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12dd <hvh_choice+0x14d>
mov    -0x2c(%rbp),%edi
mov    -0x20(%rbp),%esi
call   10b0 <assign@plt>
cmp    $0x0,%rax
je     1370 <hvh_choice+0x1e0>
lea    0xd8f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12dd <hvh_choice+0x14d>
jmp    1375 <hvh_choice+0x1e5>
jmp    137a <hvh_choice+0x1ea>
mov    -0x20(%rbp),%edi
call   1080 <varification@plt>
cmp    $0x0,%rax
je     141c <hvh_choice+0x28c>
lea    0xcfa(%rip),%rdi
call   1040 <system@plt>
mov    $0x0,%al
call   1030 <introduction@plt>
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
lea    0xcfc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <box@plt>
movsd  0xc4e(%rip),%xmm0
call   1060 <delay@plt>
mov    -0x20(%rbp),%edx
mov    -0x28(%rbp),%rcx
lea    0xd2f(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1050 <printf@plt>
movsd  0xc1f(%rip),%xmm0
call   1060 <delay@plt>
lea    0xd35(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsd  0xc1c(%rip),%xmm0
call   1060 <delay@plt>
lea    0xd19(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    14bd <hvh_choice+0x32d>
cmpl   $0x22,-0x1c(%rbp)
jne    14aa <hvh_choice+0x31a>
lea    0xc60(%rip),%rdi
call   1040 <system@plt>
mov    $0x0,%al
call   1030 <introduction@plt>
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
lea    0xc62(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <box@plt>
movsd  0xbb4(%rip),%xmm0
call   1060 <delay@plt>
lea    0xcc4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsd  0xba1(%rip),%xmm0
call   1060 <delay@plt>
lea    0xca7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsd  0xb7e(%rip),%xmm0
call   1060 <delay@plt>
lea    0xc8c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    14bd <hvh_choice+0x32d>
jmp    14af <hvh_choice+0x31f>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1229 <hvh_choice+0x99>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hvh_choice>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,0x28(%rsp)
mov    %rdi,0x20(%rsp)
lea    0xee6(%rip),%rdi
call   1040 <puts@plt>
movsd  0xe24(%rip),%xmm0
call   1080 <delay@plt>
lea    0xe40(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x2df2(%rip),%r14
mov    (%r14),%edi
call   10b0 <fflush@plt>
lea    0xe48(%rip),%rdi
lea    0xa(%rsp),%rsi
call   10c0 <scanf@plt>
mov    0xa(%rsp),%al
lea    -0x33(%rax),%ecx
cmp    $0xfd,%cl
ja     1287 <hvh_choice+0xd7>
lea    0xefe(%rip),%r13
lea    0xe8c(%rip),%r15
lea    0xdf8(%rip),%r12
lea    0xe16(%rip),%rbp
lea    0xa(%rsp),%rbx
nopl   0x0(%rax)
mov    %r13,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
movsd  0xda8(%rip),%xmm0
call   1080 <delay@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    (%r14),%edi
call   10b0 <fflush@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10c0 <scanf@plt>
movzbl 0xa(%rsp),%eax
lea    -0x33(%rax),%ecx
cmp    $0xfe,%cl
jb     1240 <hvh_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    0xda3(%rip),%r12
lea    0xb(%rsp),%r13
lea    0xe59(%rip),%r14
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
lea    0xd89(%rip),%rdi
call   1060 <system@plt>
xor    %eax,%eax
call   1050 <introduction@plt>
lea    0xdf8(%rip),%rdi
call   1040 <puts@plt>
lea    0x1(%rbx),%esi
lea    0xd6b(%rip),%rdi
mov    %esi,0xc(%rsp)
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   1090 <box@plt>
mov    %rbx,0x30(%rsp)
test   $0x1,%bl
mov    0x10(%rsp),%ebp
cmove  0x14(%rsp),%ebp
cmp    $0x1,%ebp
mov    0x28(%rsp),%rbx
cmove  0x20(%rsp),%rbx
movsd  0xce6(%rip),%xmm0
call   1080 <delay@plt>
lea    0xd35(%rip),%rdi
mov    %ebp,%esi
mov    %rbx,0x18(%rsp)
mov    %rbx,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
movsd  0xcb9(%rip),%xmm0
call   1080 <delay@plt>
jmp    1355 <hvh_choice+0x1a5>
xchg   %ax,%ax
call   1040 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x2c82(%rip),%rax
mov    (%rax),%edi
call   10b0 <fflush@plt>
mov    %r12,%rdi
mov    %r13,%rsi
call   10c0 <scanf@plt>
movzbl 0xb(%rsp),%ebx
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x36(%rbx),%eax
mov    %r14,%rdi
cmp    $0xfb,%al
jb     1350 <hvh_choice+0x1a0>
add    $0xffffffd0,%ebx
mov    %ebx,%edi
mov    %ebp,%esi
call   10d0 <assign@plt>
lea    0xd5b(%rip),%rdi
test   %rax,%rax
jne    1350 <hvh_choice+0x1a0>
mov    %ebp,%edi
call   10a0 <varification@plt>
test   %rax,%rax
jne    1443 <hvh_choice+0x293>
cmpl   $0x22,0x30(%rsp)
mov    0xc(%rsp),%eax
mov    %eax,%ebx
jne    12c0 <hvh_choice+0x110>
lea    0xc7f(%rip),%rdi
call   1060 <system@plt>
xor    %eax,%eax
call   1050 <introduction@plt>
lea    0xc70(%rip),%rdi
mov    $0x23,%esi
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   1090 <box@plt>
movsd  0xc11(%rip),%xmm0
call   1080 <delay@plt>
lea    0xcdd(%rip),%rdi
call   1040 <puts@plt>
movsd  0xc08(%rip),%xmm0
call   1080 <delay@plt>
mov    $0x7,%edi
call   1030 <putchar@plt>
movsd  0xbe1(%rip),%xmm0
call   1080 <delay@plt>
mov    $0x7,%edi
call   1030 <putchar@plt>
jmp    14c8 <hvh_choice+0x318>
lea    0xc06(%rip),%rdi
call   1060 <system@plt>
xor    %eax,%eax
call   1050 <introduction@plt>
lea    0xbf7(%rip),%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   1090 <box@plt>
movsd  0xb99(%rip),%xmm0
call   1080 <delay@plt>
lea    0xc0a(%rip),%rdi
mov    $0x1,%esi
mov    %ebp,%edx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
call   1070 <printf@plt>
movsd  0xb6a(%rip),%xmm0
call   1080 <delay@plt>
mov    $0x7,%edi
call   1030 <putchar@plt>
movsd  0xb63(%rip),%xmm0
call   1080 <delay@plt>
lea    0xbf1(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [30 x i8] c"\0A* Who will give first move?\0A\00"
@.str.1 = [37 x i8] c"* Press 1(player-1) or 2(player-2): \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 = [23 x i8] c"\0A##**HUMAN vs. HUMAN\0A\0A\00"
@.str.6 = [15 x i8] c"\0A# Move No: %d\00"
@.str.7 = [18 x i8] c"## Player-%d: %s\0A\00"
@.str.8 = [24 x i8] c"Select a column (1-5): \00"
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [18 x i8] c"**Wrong input1!\07\0A\00"
@.str.11 = [17 x i8] c"\0AInvalid move!\07\0A\00"
@.str.12 = [37 x i8] c"\07\07\0A%c\09**## Player-%d: %s wins! ##**\0A\00"
@.str.13 = [2 x i8] c"\07\00"
@.str.14 = [3 x i8] c"\07\07\00"
@.str.15 = [24 x i8] c"\07\0A**The match is draw.\0A\00"
define void @hvh_choice(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%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 i8* %1, i8** %4
br label %12
12: ; preds = %2, %30
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @delay(double 5.000000e-01)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 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, %122
%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 ([23 x i8], [23 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 %55
53: ; preds = %48
%54 = load i8*, i8** %4
store i8* %54, i8** %9
br label %55
55: ; preds = %53, %51
%56 = call i32 @delay(double 3.500000e-01)
%57 = load i32, i32* %8
%58 = load i8*, i8** %9
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 %57, i8* %58)
%60 = call i32 @delay(double 5.000000e-01)
br label %61
61: ; preds = %55, %75, %82
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0))
%63 = load i32, i32* @stdin
%64 = call i32 @fflush(i32 %63)
%65 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %11)
%66 = load i8, i8* %11
%67 = sext i8 %66 to i32
%68 = sub nsw i32 %67, 48
store i32 %68, i32* %10
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%70 = load i32, i32* %10
%71 = icmp slt i32 %70, 1
br i1 %71, label %75, label %72
72: ; preds = %61
%73 = load i32, i32* %10
%74 = icmp sgt i32 %73, 5
br i1 %74, label %75, label %77
75: ; preds = %72, %61
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
br label %61
77: ; preds = %72
%78 = load i32, i32* %10
%79 = load i32, i32* %8
%80 = call i64 @assign(i32 %78, i32 %79)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %77
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
br label %61
84: ; preds = %77
br label %85
85: ; preds = %84
br label %86
86: ; preds = %85
%87 = load i32, i32* %8
%88 = call i64 @varification(i32 %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %105
90: ; preds = %86
%91 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%92 = call i32 (...) @introduction()
%93 = load i32, i32* %7
%94 = add nsw i32 %93, 1
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %94)
%96 = call i32 (...) @box()
%97 = call i32 @delay(double 4.000000e-01)
%98 = load i32, i32* %8
%99 = load i8*, i8** %9
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i32 1, i32 %98, i8* %99)
%101 = call i32 @delay(double 3.500000e-01)
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%103 = call i32 @delay(double 6.000000e-01)
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
br label %125
105: ; preds = %86
%106 = load i32, i32* %7
%107 = icmp eq i32 %106, 34
br i1 %107, label %108, label %121
108: ; preds = %105
%109 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%110 = call i32 (...) @introduction()
%111 = load i32, i32* %7
%112 = add nsw i32 %111, 1
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i32 %112)
%114 = call i32 (...) @box()
%115 = call i32 @delay(double 4.000000e-01)
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0))
%117 = call i32 @delay(double 2.000000e-01)
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%119 = call i32 @delay(double 4.000000e-01)
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %125
121: ; preds = %105
br label %122
122: ; preds = %121
%123 = load i32, i32* %7
%124 = add nsw i32 %123, 1
store i32 %124, i32* %7
br label %32
125: ; preds = %108, %90
ret void
}

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