#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 assign(int, int);
int /*<<< orphan*/ box();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ system(char *);
int varification(int);
void choice(char *p1, char *p2) {
  int p;
  for (;;) {
    printf("\n* Who will give first move?\n");
    printf("* Press 1(player-1) or 2(player-2): ");
    scanf("%d", &p);
    if (p > 2 || p < 1)
      printf("\n**Wrong input!\a\n**Try again.\n");
    else
      break;
  }
  int i = 0;
  for (; i < 30;) {
    system("cls");
    printf("\t\t***## THIS IS A PEBBLE DROPPING GAME ##***\n\n\n");
    printf("## Two players can play the game.\n");
    printf("## You can drop the pebble in any column you want.\n");
    printf("## Every player will get chance by turns.\n\n");
    printf("\n# Move No: %d", i + 1);
    box();
    int pl;
    char *name;
    if (i % 2 == 0)
      pl = p;
    else {
      if (p == 2)
        pl = 1;
      else
        pl = 2;
    }
    if (pl == 1)
      name = p1;
    else if (pl == 2)
      name = p2;
    printf("## Player-%d: %s\n", pl, name);
    for (;;) {
      int sel;
      printf("Select a column (1-5): ");
      scanf("%d", &sel);
      printf("\n");
      if (sel < 1 || sel > 5) {
        printf("**Wrong input1!\a\n");
        continue;
      } else {
        int assi = assign(sel, pl);
        if (assi == 1) {
          printf("\nInvalid move!\a\n");
          continue;
        }
      }
      break;
    }
    int r;
    r = varification(pl);
    if (r == 1) {
      system("cls");
      printf("\t\t***## THIS IS A PEBBLE DROPPING GAME ##***\n\n\n");
      printf("## Two players can play the game.\n");
      printf("## You can drop the pebble in any column you want.\n");
      printf("## Every player will get chance by turns.\n\n");
      printf("\n# Move No: %d", i + 1);
      box();
      printf("\a\a\n%c\t**## Player-%d: %s wins! ##**\a\n", 1, pl, name);
      break;
    } else if (i == 29) {
      system("cls");
      printf("\t\t***## THIS IS A PEBBLE DROPPING GAME ##***\n\n\n");
      printf("## Two players can play the game.\n");
      printf("## You can drop the pebble in any column you want.\n");
      printf("## Every player will get chance by turns.\n\n");
      printf("\n# Move No: %d", i + 1);
      box();
      printf("\a\n**The match is draw.\a\n");
      break;
    }
    i++;
  }
}


x86 assembly (clang, -O0):
<choice>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf92(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1070 <scanf@plt>
cmpl   $0x2,-0x14(%rbp)
jg     11b0 <choice+0x50>
cmpl   $0x1,-0x14(%rbp)
jge    11c3 <choice+0x63>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11c8 <choice+0x68>
jmp    11cd <choice+0x6d>
jmp    1170 <choice+0x10>
movl   $0x0,-0x18(%rbp)
cmpl   $0x1e,-0x18(%rbp)
jge    146b <choice+0x30b>
lea    0xe7d(%rip),%rdi
call   1030 <system@plt>
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%esi
add    $0x1,%esi
lea    0xeea(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <box@plt>
mov    -0x18(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    125c <choice+0xfc>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    127e <choice+0x11e>
cmpl   $0x2,-0x14(%rbp)
jne    1272 <choice+0x112>
movl   $0x1,-0x1c(%rbp)
jmp    1279 <choice+0x119>
movl   $0x2,-0x1c(%rbp)
jmp    127e <choice+0x11e>
cmpl   $0x1,-0x1c(%rbp)
jne    1295 <choice+0x135>
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    12ac <choice+0x14c>
cmpl   $0x2,-0x1c(%rbp)
jne    12a7 <choice+0x147>
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    12ac <choice+0x14c>
mov    -0x1c(%rbp),%esi
mov    -0x28(%rbp),%rdx
lea    0xe6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe4f(%rip),%rdi
lea    -0x2c(%rbp),%rsi
call   1070 <scanf@plt>
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x1,-0x2c(%rbp)
jl     1301 <choice+0x1a1>
cmpl   $0x5,-0x2c(%rbp)
jle    1314 <choice+0x1b4>
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12c1 <choice+0x161>
mov    -0x2c(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   1080 <assign@plt>
mov    %eax,-0x30(%rbp)
cmpl   $0x1,-0x30(%rbp)
jne    133f <choice+0x1df>
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12c1 <choice+0x161>
jmp    1344 <choice+0x1e4>
jmp    1349 <choice+0x1e9>
mov    -0x1c(%rbp),%edi
call   1060 <varification@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x1,-0x34(%rbp)
jne    13dc <choice+0x27c>
lea    0xcfd(%rip),%rdi
call   1030 <system@plt>
lea    0xcf5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd17(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd2c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd52(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%esi
add    $0x1,%esi
lea    0xd6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <box@plt>
mov    -0x1c(%rbp),%edx
mov    -0x28(%rbp),%rcx
lea    0xdaa(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    146b <choice+0x30b>
cmpl   $0x1d,-0x18(%rbp)
jne    1458 <choice+0x2f8>
lea    0xc75(%rip),%rdi
call   1030 <system@plt>
lea    0xc6d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc8f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xca4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xcca(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%esi
add    $0x1,%esi
lea    0xce2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <box@plt>
lea    0xd4f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    146b <choice+0x30b>
jmp    145d <choice+0x2fd>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11d4 <choice+0x74>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<choice>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,0x20(%rsp)
mov    %rdi,0x28(%rsp)
lea    0xee9(%rip),%rdi
call   1040 <puts@plt>
lea    0xe55(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe7c(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1090 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xfffffffd,%eax
cmp    $0xfffffffd,%eax
ja     1221 <choice+0xa1>
lea    0xfb7(%rip),%r14
lea    0xeab(%rip),%r15
lea    0xe1c(%rip),%r12
lea    0xe4a(%rip),%rbp
lea    0xc(%rsp),%rbx
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xfffffffd,%eax
cmp    $0xfffffffe,%eax
jb     11f0 <choice+0x70>
lea    0xe22(%rip),%r13
lea    0xe06(%rip),%rbp
lea    0x14(%rsp),%r14
lea    0xf41(%rip),%r15
lea    0xf2a(%rip),%rbx
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xdce(%rip),%rdi
call   1050 <system@plt>
lea    0xe5a(%rip),%rdi
call   1040 <puts@plt>
lea    0xe7d(%rip),%rdi
call   1040 <puts@plt>
lea    0xe93(%rip),%rdi
call   1040 <puts@plt>
lea    0xeba(%rip),%rdi
call   1040 <puts@plt>
lea    0x1(%r12),%esi
lea    0xd91(%rip),%rdi
mov    %esi,0x10(%rsp)
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   1070 <box@plt>
mov    0xc(%rsp),%eax
xor    %ecx,%ecx
cmp    $0x2,%eax
sete   %cl
mov    %r12,%rdx
mov    $0x2,%r12d
sub    %ecx,%r12d
mov    %rdx,0x30(%rsp)
test   $0x1,%dl
cmove  %eax,%r12d
mov    0x28(%rsp),%rdx
cmp    $0x1,%r12d
je     12e9 <choice+0x169>
mov    0x20(%rsp),%rdx
cmp    $0x2,%r12d
je     12e9 <choice+0x169>
mov    0x18(%rsp),%rdx
lea    0xd48(%rip),%rdi
mov    %r12d,%esi
mov    %rdx,0x18(%rsp)
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1318 <choice+0x198>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rcx,%rdi
call   1040 <puts@plt>
mov    %r13,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
call   1090 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x14(%rsp),%edi
lea    -0x6(%rdi),%eax
mov    %r15,%rcx
cmp    $0xfffffffb,%eax
jb     1310 <choice+0x190>
mov    %r12d,%esi
call   10a0 <assign@plt>
mov    %rbx,%rcx
cmp    $0x1,%eax
je     1310 <choice+0x190>
mov    %r12d,%edi
call   1080 <varification@plt>
cmp    $0x1,%eax
je     13d9 <choice+0x259>
cmpl   $0x1d,0x30(%rsp)
mov    0x10(%rsp),%eax
mov    %eax,%r12d
jne    1250 <choice+0xd0>
lea    0xca9(%rip),%rdi
call   1050 <system@plt>
lea    0xd35(%rip),%rdi
call   1040 <puts@plt>
lea    0xd58(%rip),%rdi
call   1040 <puts@plt>
lea    0xd6e(%rip),%rdi
call   1040 <puts@plt>
lea    0xd95(%rip),%rdi
call   1040 <puts@plt>
lea    0xc71(%rip),%rdi
mov    $0x1e,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   1070 <box@plt>
lea    0xcd3(%rip),%rdi
call   1040 <puts@plt>
jmp    1449 <choice+0x2c9>
lea    0xc45(%rip),%rdi
call   1050 <system@plt>
lea    0xcd1(%rip),%rdi
call   1040 <puts@plt>
lea    0xcf4(%rip),%rdi
call   1040 <puts@plt>
lea    0xd0a(%rip),%rdi
call   1040 <puts@plt>
lea    0xd31(%rip),%rdi
call   1040 <puts@plt>
lea    0xc0d(%rip),%rdi
mov    0x10(%rsp),%esi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   1070 <box@plt>
lea    0xc2d(%rip),%rdi
mov    $0x1,%esi
mov    %r12d,%edx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
call   1060 <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"
@.str.2 = [3 x i8] c"%d\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 = [48 x i8] c"\09\09***## THIS IS A PEBBLE DROPPING GAME ##***\0A\0A\0A\00"
@.str.6 = [35 x i8] c"## Two players can play the game.\0A\00"
@.str.7 = [52 x i8] c"## You can drop the pebble in any column you want.\0A\00"
@.str.8 = [44 x i8] c"## Every player will get chance by turns.\0A\0A\00"
@.str.9 = [15 x i8] c"\0A# Move No: %d\00"
@.str.10 = [18 x i8] c"## Player-%d: %s\0A\00"
@.str.11 = [24 x i8] c"Select a column (1-5): \00"
@.str.12 = [2 x i8] c"\0A\00"
@.str.13 = [18 x i8] c"**Wrong input1!\07\0A\00"
@.str.14 = [17 x i8] c"\0AInvalid move!\07\0A\00"
@.str.15 = [38 x i8] c"\07\07\0A%c\09**## Player-%d: %s wins! ##**\07\0A\00"
@.str.16 = [25 x i8] c"\07\0A**The match is draw.\07\0A\00"
define void @choice(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
br label %12
12: ; preds = %24, %2
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %5)
%16 = load i32, i32* %5
%17 = icmp sgt i32 %16, 2
br i1 %17, label %21, label %18
18: ; preds = %12
%19 = load i32, i32* %5
%20 = icmp slt i32 %19, 1
br i1 %20, label %21, label %23
21: ; preds = %18, %12
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
br label %24
23: ; preds = %18
br label %25
24: ; preds = %21
br label %12
25: ; preds = %23
store i32 0, i32* %6
br label %26
26: ; preds = %119, %25
%27 = load i32, i32* %6
%28 = icmp slt i32 %27, 30
br i1 %28, label %29, label %122
29: ; preds = %26
%30 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
%35 = load i32, i32* %6
%36 = add nsw i32 %35, 1
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 %36)
%38 = call i32 (...) @box()
%39 = load i32, i32* %6
%40 = srem i32 %39, 2
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %29
%43 = load i32, i32* %5
store i32 %43, i32* %7
br label %50
44: ; preds = %29
%45 = load i32, i32* %5
%46 = icmp eq i32 %45, 2
br i1 %46, label %47, label %48
47: ; preds = %44
store i32 1, i32* %7
br label %49
48: ; preds = %44
store i32 2, i32* %7
br label %49
49: ; preds = %48, %47
br label %50
50: ; preds = %49, %42
%51 = load i32, i32* %7
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = load i8*, i8** %3
store i8* %54, i8** %8
br label %61
55: ; preds = %50
%56 = load i32, i32* %7
%57 = icmp eq i32 %56, 2
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = load i8*, i8** %4
store i8* %59, i8** %8
br label %60
60: ; preds = %58, %55
br label %61
61: ; preds = %60, %53
%62 = load i32, i32* %7
%63 = load i8*, i8** %8
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i32 %62, i8* %63)
br label %65
65: ; preds = %82, %74, %61
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0))
%67 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %9)
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%69 = load i32, i32* %9
%70 = icmp slt i32 %69, 1
br i1 %70, label %74, label %71
71: ; preds = %65
%72 = load i32, i32* %9
%73 = icmp sgt i32 %72, 5
br i1 %73, label %74, label %76
74: ; preds = %71, %65
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0))
br label %65
76: ; preds = %71
%77 = load i32, i32* %9
%78 = load i32, i32* %7
%79 = call i32 @assign(i32 %77, i32 %78)
store i32 %79, i32* %10
%80 = load i32, i32* %10
%81 = icmp eq i32 %80, 1
br i1 %81, label %82, label %84
82: ; preds = %76
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0))
br label %65
84: ; preds = %76
br label %85
85: ; preds = %84
br label %86
86: ; preds = %85
%87 = load i32, i32* %7
%88 = call i32 @varification(i32 %87)
store i32 %88, i32* %11
%89 = load i32, i32* %11
%90 = icmp eq i32 %89, 1
br i1 %90, label %91, label %104
91: ; preds = %86
%92 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0))
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
%97 = load i32, i32* %6
%98 = add nsw i32 %97, 1
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 %98)
%100 = call i32 (...) @box()
%101 = load i32, i32* %7
%102 = load i8*, i8** %8
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0), i32 1, i32 %101, i8* %102)
br label %122
104: ; preds = %86
%105 = load i32, i32* %6
%106 = icmp eq i32 %105, 29
br i1 %106, label %107, label %118
107: ; preds = %104
%108 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.7, i64 0, i64 0))
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
%113 = load i32, i32* %6
%114 = add nsw i32 %113, 1
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 %114)
%116 = call i32 (...) @box()
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.16, i64 0, i64 0))
br label %122
118: ; preds = %104
br label %119
119: ; preds = %118
%120 = load i32, i32* %6
%121 = add nsw i32 %120, 1
store i32 %121, i32* %6
br label %26
122: ; preds = %107, %91, %26
ret void
}

LLVM IR (-O2):
@.str.1 = [37 x i8] c"* Press 1(player-1) or 2(player-2): \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.4 = [4 x i8] c"cls\00"
@.str.9 = [15 x i8] c"\0A# Move No: %d\00"
@.str.10 = [18 x i8] c"## Player-%d: %s\0A\00"
@.str.11 = [24 x i8] c"Select a column (1-5): \00"
@.str.15 = [38 x i8] c"\07\07\0A%c\09**## Player-%d: %s wins! ##**\07\0A\00"
@str = [29 x i8] c"\0A* Who will give first move?\00"
@str.25 = [24 x i8] c"\07\0A**The match is draw.\07\00"
@str.26 = [47 x i8] c"\09\09***## THIS IS A PEBBLE DROPPING GAME ##***\0A\0A\00"
@str.27 = [34 x i8] c"## Two players can play the game.\00"
@str.28 = [51 x i8] c"## You can drop the pebble in any column you want.\00"
@str.29 = [43 x i8] c"## Every player will get chance by turns.\0A\00"
@str.30 = [16 x i8] c"\0AInvalid move!\07\00"
@str.31 = [17 x i8] c"**Wrong input1!\07\00"
@str.32 = [30 x i8] c"\0A**Wrong input!\07\0A**Try again.\00"
define void @choice(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%9 = load i32, i32* %3
%10 = add i32 %9, -3
%11 = icmp ult i32 %10, -2
br i1 %11, label %14, label %12
12: ; preds = %14, %2
%13 = bitcast i32* %4 to i8*
br label %22
14: ; preds = %2, %14
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.32, 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 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%19 = load i32, i32* %3
%20 = add i32 %19, -3
%21 = icmp ult i32 %20, -2
br i1 %21, label %14, label %12
22: ; preds = %69, %12
%23 = phi i8* [ %42, %69 ], [ undef, %12 ]
%24 = phi i32 [ %30, %69 ], [ 0, %12 ]
%25 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.26, i64 0, i64 0))
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.27, i64 0, i64 0))
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.28, i64 0, i64 0))
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.29, i64 0, i64 0))
%30 = add nuw nsw i32 %24, 1
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 %30)
%32 = call i32 (...) @box()
%33 = and i32 %24, 1
%34 = icmp eq i32 %33, 0
%35 = load i32, i32* %3
%36 = icmp eq i32 %35, 2
%37 = select i1 %36, i32 1, i32 2
%38 = select i1 %34, i32 %35, i32 %37
switch i32 %38, label %40 [
i32 1, label %41
i32 2, label %39
]
39: ; preds = %22
br label %41
40: ; preds = %22
br label %41
41: ; preds = %22, %40, %39
%42 = phi i8* [ %1, %39 ], [ %0, %22 ], [ %23, %40 ]
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i32 %38, i8* %42)
br label %44
44: ; preds = %54, %41
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0))
%46 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%47 = call i32 @putchar(i32 10)
%48 = load i32, i32* %4
%49 = add i32 %48, -6
%50 = icmp ult i32 %49, -5
br i1 %50, label %54, label %51
51: ; preds = %44
%52 = call i32 @assign(i32 %48, i32 %38)
%53 = icmp eq i32 %52, 1
br i1 %53, label %54, label %57
54: ; preds = %51, %44
%55 = phi i8* [ getelementptr inbounds ([17 x i8], [17 x i8]* @str.31, i64 0, i64 0), %44 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @str.30, i64 0, i64 0), %51 ]
%56 = call i32 @puts(i8* dereferenceable(1) %55)
br label %44
57: ; preds = %51
%58 = call i32 @varification(i32 %38)
%59 = icmp eq i32 %58, 1
br i1 %59, label %60, label %69
60: ; preds = %57
%61 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%62 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.26, i64 0, i64 0))
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.27, i64 0, i64 0))
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.28, i64 0, i64 0))
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.29, i64 0, i64 0))
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 %30)
%67 = call i32 (...) @box()
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0), i32 1, i32 %38, i8* %42)
br label %80
69: ; preds = %57
%70 = icmp eq i32 %24, 29
br i1 %70, label %71, label %22
71: ; preds = %69
%72 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.26, i64 0, i64 0))
%74 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.27, i64 0, i64 0))
%75 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.28, i64 0, i64 0))
%76 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.29, i64 0, i64 0))
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 30)
%78 = call i32 (...) @box()
%79 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.25, i64 0, i64 0))
br label %80
80: ; preds = %71, %60
ret void
}