#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf_s(char *, char *);
int /*<<< orphan*/ stdin;
void Intro_Yo(char c[3][3]) {
  int i, j, k;
  char aux;
  do {
    do {
      printf("Coloca una ficha: ");
      fflush(stdin);
      scanf_s("%c", &aux);
    } while (aux < '1' || aux > '9');
    k = 0;
    switch (aux) {
    case '1':
      i = 0;
      j = 0;
      if (c[i][j] == 'X' || c[i][j] == 'O') {
        k = 1;
        printf("La casilla esta ocupada, intentalo con otro numero.\n\n");
      }
      break;
    case '2':
      i = 0;
      j = 1;
      if (c[i][j] == 'X' || c[i][j] == 'O') {
        k = 1;
        printf("La casilla esta ocupada, intentalo con otro numero.\n\n");
      }
      break;
    case '3':
      i = 0;
      j = 2;
      if (c[i][j] == 'X' || c[i][j] == 'O') {
        k = 1;
        printf("La casilla esta ocupada, intentalo con otro numero.\n\n");
      }
      break;
    case '4':
      i = 1;
      j = 0;
      if (c[i][j] == 'X' || c[i][j] == 'O') {
        k = 1;
        printf("La casilla esta ocupada, intentalo con otro numero.\n\n");
      }
      break;
    case '5':
      i = 1;
      j = 1;
      if (c[i][j] == 'X' || c[i][j] == 'O') {
        k = 1;
        printf("La casilla esta ocupada, intentalo con otro numero.\n\n");
      }
      break;
    case '6':
      i = 1;
      j = 2;
      if (c[i][j] == 'X' || c[i][j] == 'O') {
        k = 1;
        printf("La casilla esta ocupada, intentalo con otro numero.\n\n");
      }
      break;
    case '7':
      i = 2;
      j = 0;
      if (c[i][j] == 'X' || c[i][j] == 'O') {
        k = 1;
        printf("La casilla esta ocupada, intentalo con otro numero.\n\n");
      }
      break;
    case '8':
      i = 2;
      j = 1;
      if (c[i][j] == 'X' || c[i][j] == 'O') {
        k = 1;
        printf("La casilla esta ocupada, intentalo con otro numero.\n\n");
      }
      break;
    case '9':
      i = 2;
      j = 2;
      if (c[i][j] == 'X' || c[i][j] == 'O') {
        k = 1;
        printf("La casilla esta ocupada, intentalo con otro numero.\n\n");
      }
      break;
    }
  } while (k == 1);
  c[i][j] = 'X';
}


x86 assembly (clang, -O0):
<Intro_Yo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
jmp    1141 <Intro_Yo+0x11>
lea    0xedc(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xed5(%rip),%rdi
lea    -0x15(%rbp),%rsi
call   1050 <scanf_s@plt>
movsbl -0x15(%rbp),%ecx
mov    $0x1,%al
cmp    $0x31,%ecx
mov    %al,-0x16(%rbp)
jl     118a <Intro_Yo+0x5a>
movsbl -0x15(%rbp),%eax
cmp    $0x39,%eax
setg   %al
mov    %al,-0x16(%rbp)
mov    -0x16(%rbp),%al
test   $0x1,%al
jne    1141 <Intro_Yo+0x11>
movl   $0x0,-0x14(%rbp)
movsbl -0x15(%rbp),%eax
add    $0xffffffcf,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x8,%eax
ja     155c <Intro_Yo+0x42c>
mov    -0x20(%rbp),%rax
lea    0xe43(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x58,%eax
je     1214 <Intro_Yo+0xe4>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4f,%eax
jne    1227 <Intro_Yo+0xf7>
movl   $0x1,-0x14(%rbp)
lea    0xe18(%rip),%rdi
call   1030 <printf@plt>
jmp    155c <Intro_Yo+0x42c>
movl   $0x0,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x58,%eax
je     127a <Intro_Yo+0x14a>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4f,%eax
jne    128d <Intro_Yo+0x15d>
movl   $0x1,-0x14(%rbp)
lea    0xdb2(%rip),%rdi
call   1030 <printf@plt>
jmp    155c <Intro_Yo+0x42c>
movl   $0x0,-0xc(%rbp)
movl   $0x2,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x58,%eax
je     12e0 <Intro_Yo+0x1b0>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4f,%eax
jne    12f3 <Intro_Yo+0x1c3>
movl   $0x1,-0x14(%rbp)
lea    0xd4c(%rip),%rdi
call   1030 <printf@plt>
jmp    155c <Intro_Yo+0x42c>
movl   $0x1,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x58,%eax
je     1346 <Intro_Yo+0x216>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4f,%eax
jne    1359 <Intro_Yo+0x229>
movl   $0x1,-0x14(%rbp)
lea    0xce6(%rip),%rdi
call   1030 <printf@plt>
jmp    155c <Intro_Yo+0x42c>
movl   $0x1,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x58,%eax
je     13ac <Intro_Yo+0x27c>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4f,%eax
jne    13bf <Intro_Yo+0x28f>
movl   $0x1,-0x14(%rbp)
lea    0xc80(%rip),%rdi
call   1030 <printf@plt>
jmp    155c <Intro_Yo+0x42c>
movl   $0x1,-0xc(%rbp)
movl   $0x2,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x58,%eax
je     1412 <Intro_Yo+0x2e2>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4f,%eax
jne    1425 <Intro_Yo+0x2f5>
movl   $0x1,-0x14(%rbp)
lea    0xc1a(%rip),%rdi
call   1030 <printf@plt>
jmp    155c <Intro_Yo+0x42c>
movl   $0x2,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x58,%eax
je     1478 <Intro_Yo+0x348>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4f,%eax
jne    148b <Intro_Yo+0x35b>
movl   $0x1,-0x14(%rbp)
lea    0xbb4(%rip),%rdi
call   1030 <printf@plt>
jmp    155c <Intro_Yo+0x42c>
movl   $0x2,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x58,%eax
je     14de <Intro_Yo+0x3ae>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4f,%eax
jne    14f1 <Intro_Yo+0x3c1>
movl   $0x1,-0x14(%rbp)
lea    0xb4e(%rip),%rdi
call   1030 <printf@plt>
jmp    155c <Intro_Yo+0x42c>
movl   $0x2,-0xc(%rbp)
movl   $0x2,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x58,%eax
je     1544 <Intro_Yo+0x414>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4f,%eax
jne    1557 <Intro_Yo+0x427>
movl   $0x1,-0x14(%rbp)
lea    0xae8(%rip),%rdi
call   1030 <printf@plt>
jmp    155c <Intro_Yo+0x42c>
jmp    1561 <Intro_Yo+0x431>
cmpl   $0x1,-0x14(%rbp)
je     113c <Intro_Yo+0xc>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
movb   $0x58,(%rax,%rcx,1)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Intro_Yo>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdi,0x20(%rsp)
xor    %eax,%eax
mov    %rax,0x18(%rsp)
lea    0xec3(%rip),%r15
mov    0x2e80(%rip),%rbp
lea    0xec8(%rip),%r12
lea    0xf(%rsp),%rbx
xor    %eax,%eax
mov    %rax,0x10(%rsp)
jmp    11a0 <Intro_Yo+0x60>
xor    %r13d,%r13d
lea    0xeb3(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,0x18(%rsp)
mov    %r13,0x10(%rsp)
cs nopw 0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1040 <printf@plt>
mov    0x0(%rbp),%edi
call   1050 <fflush@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1060 <scanf_s@plt>
movzbl 0xf(%rsp),%eax
lea    -0x3a(%rax),%ecx
cmp    $0xf7,%cl
jb     11a0 <Intro_Yo+0x60>
add    $0xcf,%al
cmp    $0x8,%al
ja     1485 <Intro_Yo+0x345>
movzbl %al,%eax
lea    0xe24(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x20(%rsp),%rax
movzbl (%rax),%eax
cmp    $0x4f,%al
je     13d6 <Intro_Yo+0x296>
mov    $0x0,%r14d
mov    $0x0,%r13d
mov    $0x0,%ecx
mov    %rcx,0x18(%rsp)
mov    $0x0,%ecx
mov    %rcx,0x10(%rsp)
cmp    $0x58,%al
je     1180 <Intro_Yo+0x40>
jmp    1485 <Intro_Yo+0x345>
mov    0x20(%rsp),%rax
movzbl 0x1(%rax),%eax
cmp    $0x4f,%al
je     13e1 <Intro_Yo+0x2a1>
mov    $0x0,%r14d
movabs $0x100000000,%r13
cmp    $0x58,%al
je     1180 <Intro_Yo+0x40>
jmp    1405 <Intro_Yo+0x2c5>
mov    0x20(%rsp),%rax
movzbl 0x2(%rax),%eax
cmp    $0x4f,%al
je     13f3 <Intro_Yo+0x2b3>
mov    $0x0,%r14d
movabs $0x200000000,%r13
cmp    $0x58,%al
je     1180 <Intro_Yo+0x40>
jmp    1409 <Intro_Yo+0x2c9>
mov    0x20(%rsp),%rax
movzbl 0x3(%rax),%eax
movabs $0x100000000,%r14
cmp    $0x4f,%al
je     117d <Intro_Yo+0x3d>
mov    $0x0,%r13d
cmp    $0x58,%al
je     1180 <Intro_Yo+0x40>
jmp    140d <Intro_Yo+0x2cd>
mov    0x20(%rsp),%rax
movzbl 0x4(%rax),%eax
movabs $0x100000000,%r13
mov    %r13,%r14
cmp    $0x4f,%al
je     1180 <Intro_Yo+0x40>
movabs $0x100000000,%r13
mov    %r13,%r14
cmp    $0x58,%al
je     1180 <Intro_Yo+0x40>
jmp    1419 <Intro_Yo+0x2d9>
mov    0x20(%rsp),%rax
movzbl 0x5(%rax),%eax
movabs $0x100000000,%r14
movabs $0x200000000,%r13
cmp    $0x4f,%al
je     1180 <Intro_Yo+0x40>
movabs $0x100000000,%r14
movabs $0x200000000,%r13
cmp    $0x58,%al
je     1180 <Intro_Yo+0x40>
jmp    1425 <Intro_Yo+0x2e5>
mov    0x20(%rsp),%rax
movzbl 0x6(%rax),%eax
movabs $0x200000000,%r14
cmp    $0x4f,%al
je     117d <Intro_Yo+0x3d>
mov    $0x0,%r13d
cmp    $0x58,%al
je     1180 <Intro_Yo+0x40>
jmp    1440 <Intro_Yo+0x300>
mov    0x20(%rsp),%rax
movzbl 0x7(%rax),%eax
movabs $0x200000000,%r14
movabs $0x100000000,%r13
cmp    $0x4f,%al
je     1180 <Intro_Yo+0x40>
movabs $0x200000000,%r14
movabs $0x100000000,%r13
cmp    $0x58,%al
je     1180 <Intro_Yo+0x40>
jmp    1453 <Intro_Yo+0x313>
mov    0x20(%rsp),%rax
movzbl 0x8(%rax),%eax
movabs $0x200000000,%r13
mov    %r13,%r14
cmp    $0x58,%al
je     1180 <Intro_Yo+0x40>
movabs $0x200000000,%r13
mov    %r13,%r14
cmp    $0x4f,%al
je     1180 <Intro_Yo+0x40>
jmp    146e <Intro_Yo+0x32e>
xor    %r14d,%r14d
xor    %r13d,%r13d
jmp    1180 <Intro_Yo+0x40>
xor    %r14d,%r14d
movabs $0x100000000,%r13
jmp    1180 <Intro_Yo+0x40>
xor    %r14d,%r14d
movabs $0x200000000,%r13
jmp    1180 <Intro_Yo+0x40>
xor    %eax,%eax
jmp    145d <Intro_Yo+0x31d>
xor    %eax,%eax
jmp    142f <Intro_Yo+0x2ef>
movabs $0x100000000,%rax
jmp    144a <Intro_Yo+0x30a>
movabs $0x100000000,%rax
jmp    1478 <Intro_Yo+0x338>
movabs $0x100000000,%rax
mov    %rax,0x18(%rsp)
movabs $0x200000000,%rax
jmp    1480 <Intro_Yo+0x340>
movabs $0x200000000,%rax
mov    %rax,0x18(%rsp)
xor    %eax,%eax
jmp    1480 <Intro_Yo+0x340>
movabs $0x200000000,%rax
mov    %rax,0x18(%rsp)
movabs $0x100000000,%rax
jmp    1480 <Intro_Yo+0x340>
movabs $0x200000000,%rax
mov    %rax,%rcx
mov    %rax,0x18(%rsp)
mov    %rax,0x10(%rsp)
mov    0x18(%rsp),%rax
sar    $0x20,%rax
mov    0x10(%rsp),%rdx
sar    $0x20,%rdx
lea    (%rax,%rax,2),%rax
mov    0x20(%rsp),%rcx
add    %rax,%rcx
movb   $0x58,(%rdx,%rcx,1)
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [19 x i8] c"Coloca una ficha: \00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [54 x i8] c"La casilla esta ocupada, intentalo con otro numero.\0A\0A\00"
define void @Intro_Yo([3 x i8]* %0) {
%2 = alloca [3 x i8]*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8
store [3 x i8]* %0, [3 x i8]** %2
br label %7
7: ; preds = %252, %1
br label %8
8: ; preds = %21, %7
%9 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* @stdin
%11 = call i32 @fflush(i32 %10)
%12 = call i32 @scanf_s(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %6)
br label %13
13: ; preds = %8
%14 = load i8, i8* %6
%15 = sext i8 %14 to i32
%16 = icmp slt i32 %15, 49
br i1 %16, label %21, label %17
17: ; preds = %13
%18 = load i8, i8* %6
%19 = sext i8 %18 to i32
%20 = icmp sgt i32 %19, 57
br label %21
21: ; preds = %17, %13
%22 = phi i1 [ true, %13 ], [ %20, %17 ]
br i1 %22, label %8, label %23
23: ; preds = %21
store i32 0, i32* %5
%24 = load i8, i8* %6
%25 = sext i8 %24 to i32
switch i32 %25, label %251 [
i32 49, label %26
i32 50, label %51
i32 51, label %76
i32 52, label %101
i32 53, label %126
i32 54, label %151
i32 55, label %176
i32 56, label %201
i32 57, label %226
]
26: ; preds = %23
store i32 0, i32* %3
store i32 0, i32* %4
%27 = load [3 x i8]*, [3 x i8]** %2
%28 = load i32, i32* %3
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [3 x i8], [3 x i8]* %27, i64 %29
%31 = load i32, i32* %4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [3 x i8], [3 x i8]* %30, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 88
br i1 %36, label %48, label %37
37: ; preds = %26
%38 = load [3 x i8]*, [3 x i8]** %2
%39 = load i32, i32* %3
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [3 x i8], [3 x i8]* %38, i64 %40
%42 = load i32, i32* %4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [3 x i8], [3 x i8]* %41, i64 0, i64 %43
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 79
br i1 %47, label %48, label %50
48: ; preds = %37, %26
store i32 1, i32* %5
%49 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
br label %50
50: ; preds = %48, %37
br label %251
51: ; preds = %23
store i32 0, i32* %3
store i32 1, i32* %4
%52 = load [3 x i8]*, [3 x i8]** %2
%53 = load i32, i32* %3
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [3 x i8], [3 x i8]* %52, i64 %54
%56 = load i32, i32* %4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [3 x i8], [3 x i8]* %55, i64 0, i64 %57
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 88
br i1 %61, label %73, label %62
62: ; preds = %51
%63 = load [3 x i8]*, [3 x i8]** %2
%64 = load i32, i32* %3
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [3 x i8], [3 x i8]* %63, i64 %65
%67 = load i32, i32* %4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [3 x i8], [3 x i8]* %66, i64 0, i64 %68
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 79
br i1 %72, label %73, label %75
73: ; preds = %62, %51
store i32 1, i32* %5
%74 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
br label %75
75: ; preds = %73, %62
br label %251
76: ; preds = %23
store i32 0, i32* %3
store i32 2, i32* %4
%77 = load [3 x i8]*, [3 x i8]** %2
%78 = load i32, i32* %3
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [3 x i8], [3 x i8]* %77, i64 %79
%81 = load i32, i32* %4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [3 x i8], [3 x i8]* %80, i64 0, i64 %82
%84 = load i8, i8* %83
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 88
br i1 %86, label %98, label %87
87: ; preds = %76
%88 = load [3 x i8]*, [3 x i8]** %2
%89 = load i32, i32* %3
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [3 x i8], [3 x i8]* %88, i64 %90
%92 = load i32, i32* %4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [3 x i8], [3 x i8]* %91, i64 0, i64 %93
%95 = load i8, i8* %94
%96 = sext i8 %95 to i32
%97 = icmp eq i32 %96, 79
br i1 %97, label %98, label %100
98: ; preds = %87, %76
store i32 1, i32* %5
%99 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
br label %100
100: ; preds = %98, %87
br label %251
101: ; preds = %23
store i32 1, i32* %3
store i32 0, i32* %4
%102 = load [3 x i8]*, [3 x i8]** %2
%103 = load i32, i32* %3
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [3 x i8], [3 x i8]* %102, i64 %104
%106 = load i32, i32* %4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [3 x i8], [3 x i8]* %105, i64 0, i64 %107
%109 = load i8, i8* %108
%110 = sext i8 %109 to i32
%111 = icmp eq i32 %110, 88
br i1 %111, label %123, label %112
112: ; preds = %101
%113 = load [3 x i8]*, [3 x i8]** %2
%114 = load i32, i32* %3
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [3 x i8], [3 x i8]* %113, i64 %115
%117 = load i32, i32* %4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [3 x i8], [3 x i8]* %116, i64 0, i64 %118
%120 = load i8, i8* %119
%121 = sext i8 %120 to i32
%122 = icmp eq i32 %121, 79
br i1 %122, label %123, label %125
123: ; preds = %112, %101
store i32 1, i32* %5
%124 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
br label %125
125: ; preds = %123, %112
br label %251
126: ; preds = %23
store i32 1, i32* %3
store i32 1, i32* %4
%127 = load [3 x i8]*, [3 x i8]** %2
%128 = load i32, i32* %3
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [3 x i8], [3 x i8]* %127, i64 %129
%131 = load i32, i32* %4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [3 x i8], [3 x i8]* %130, i64 0, i64 %132
%134 = load i8, i8* %133
%135 = sext i8 %134 to i32
%136 = icmp eq i32 %135, 88
br i1 %136, label %148, label %137
137: ; preds = %126
%138 = load [3 x i8]*, [3 x i8]** %2
%139 = load i32, i32* %3
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [3 x i8], [3 x i8]* %138, i64 %140
%142 = load i32, i32* %4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [3 x i8], [3 x i8]* %141, i64 0, i64 %143
%145 = load i8, i8* %144
%146 = sext i8 %145 to i32
%147 = icmp eq i32 %146, 79
br i1 %147, label %148, label %150
148: ; preds = %137, %126
store i32 1, i32* %5
%149 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
br label %150
150: ; preds = %148, %137
br label %251
151: ; preds = %23
store i32 1, i32* %3
store i32 2, i32* %4
%152 = load [3 x i8]*, [3 x i8]** %2
%153 = load i32, i32* %3
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds [3 x i8], [3 x i8]* %152, i64 %154
%156 = load i32, i32* %4
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [3 x i8], [3 x i8]* %155, i64 0, i64 %157
%159 = load i8, i8* %158
%160 = sext i8 %159 to i32
%161 = icmp eq i32 %160, 88
br i1 %161, label %173, label %162
162: ; preds = %151
%163 = load [3 x i8]*, [3 x i8]** %2
%164 = load i32, i32* %3
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [3 x i8], [3 x i8]* %163, i64 %165
%167 = load i32, i32* %4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [3 x i8], [3 x i8]* %166, i64 0, i64 %168
%170 = load i8, i8* %169
%171 = sext i8 %170 to i32
%172 = icmp eq i32 %171, 79
br i1 %172, label %173, label %175
173: ; preds = %162, %151
store i32 1, i32* %5
%174 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
br label %175
175: ; preds = %173, %162
br label %251
176: ; preds = %23
store i32 2, i32* %3
store i32 0, i32* %4
%177 = load [3 x i8]*, [3 x i8]** %2
%178 = load i32, i32* %3
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [3 x i8], [3 x i8]* %177, i64 %179
%181 = load i32, i32* %4
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds [3 x i8], [3 x i8]* %180, i64 0, i64 %182
%184 = load i8, i8* %183
%185 = sext i8 %184 to i32
%186 = icmp eq i32 %185, 88
br i1 %186, label %198, label %187
187: ; preds = %176
%188 = load [3 x i8]*, [3 x i8]** %2
%189 = load i32, i32* %3
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds [3 x i8], [3 x i8]* %188, i64 %190
%192 = load i32, i32* %4
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds [3 x i8], [3 x i8]* %191, i64 0, i64 %193
%195 = load i8, i8* %194
%196 = sext i8 %195 to i32
%197 = icmp eq i32 %196, 79
br i1 %197, label %198, label %200
198: ; preds = %187, %176
store i32 1, i32* %5
%199 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
br label %200
200: ; preds = %198, %187
br label %251
201: ; preds = %23
store i32 2, i32* %3
store i32 1, i32* %4
%202 = load [3 x i8]*, [3 x i8]** %2
%203 = load i32, i32* %3
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [3 x i8], [3 x i8]* %202, i64 %204
%206 = load i32, i32* %4
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds [3 x i8], [3 x i8]* %205, i64 0, i64 %207
%209 = load i8, i8* %208
%210 = sext i8 %209 to i32
%211 = icmp eq i32 %210, 88
br i1 %211, label %223, label %212
212: ; preds = %201
%213 = load [3 x i8]*, [3 x i8]** %2
%214 = load i32, i32* %3
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds [3 x i8], [3 x i8]* %213, i64 %215
%217 = load i32, i32* %4
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds [3 x i8], [3 x i8]* %216, i64 0, i64 %218
%220 = load i8, i8* %219
%221 = sext i8 %220 to i32
%222 = icmp eq i32 %221, 79
br i1 %222, label %223, label %225
223: ; preds = %212, %201
store i32 1, i32* %5
%224 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
br label %225
225: ; preds = %223, %212
br label %251
226: ; preds = %23
store i32 2, i32* %3
store i32 2, i32* %4
%227 = load [3 x i8]*, [3 x i8]** %2
%228 = load i32, i32* %3
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds [3 x i8], [3 x i8]* %227, i64 %229
%231 = load i32, i32* %4
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds [3 x i8], [3 x i8]* %230, i64 0, i64 %232
%234 = load i8, i8* %233
%235 = sext i8 %234 to i32
%236 = icmp eq i32 %235, 88
br i1 %236, label %248, label %237
237: ; preds = %226
%238 = load [3 x i8]*, [3 x i8]** %2
%239 = load i32, i32* %3
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds [3 x i8], [3 x i8]* %238, i64 %240
%242 = load i32, i32* %4
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds [3 x i8], [3 x i8]* %241, i64 0, i64 %243
%245 = load i8, i8* %244
%246 = sext i8 %245 to i32
%247 = icmp eq i32 %246, 79
br i1 %247, label %248, label %250
248: ; preds = %237, %226
store i32 1, i32* %5
%249 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
br label %250
250: ; preds = %248, %237
br label %251
251: ; preds = %23, %250, %225, %200, %175, %150, %125, %100, %75, %50
br label %252
252: ; preds = %251
%253 = load i32, i32* %5
%254 = icmp eq i32 %253, 1
br i1 %254, label %7, label %255
255: ; preds = %252
%256 = load [3 x i8]*, [3 x i8]** %2
%257 = load i32, i32* %3
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds [3 x i8], [3 x i8]* %256, i64 %258
%260 = load i32, i32* %4
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds [3 x i8], [3 x i8]* %259, i64 0, i64 %261
store i8 88, i8* %262
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"Coloca una ficha: \00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"%c\00"
@str.10 = [53 x i8] c"La casilla esta ocupada, intentalo con otro numero.\0A\00"
define void @Intro_Yo([3 x i8]* nocapture %0) {
%2 = alloca i8
%3 = getelementptr inbounds [3 x i8], [3 x i8]* %0, i64 2, i64 2
%4 = getelementptr inbounds [3 x i8], [3 x i8]* %0, i64 2, i64 1
%5 = getelementptr inbounds [3 x i8], [3 x i8]* %0, i64 2, i64 0
%6 = getelementptr inbounds [3 x i8], [3 x i8]* %0, i64 1, i64 2
%7 = getelementptr inbounds [3 x i8], [3 x i8]* %0, i64 1, i64 1
%8 = getelementptr inbounds [3 x i8], [3 x i8]* %0, i64 1, i64 0
%9 = getelementptr inbounds [3 x i8], [3 x i8]* %0, i64 0, i64 2
%10 = getelementptr inbounds [3 x i8], [3 x i8]* %0, i64 0, i64 1
%11 = getelementptr inbounds [3 x i8], [3 x i8]* %0, i64 0, i64 0
br label %12
12: ; preds = %42, %1
%13 = phi i64 [ 0, %1 ], [ %44, %42 ]
%14 = phi i64 [ 0, %1 ], [ %45, %42 ]
br label %15
15: ; preds = %15, %12
%16 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%17 = load i32, i32* @stdin
%18 = call i32 @fflush(i32 %17)
%19 = call i32 @scanf_s(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%20 = load i8, i8* %2
%21 = add i8 %20, -58
%22 = icmp ult i8 %21, -9
br i1 %22, label %15, label %23
23: ; preds = %15
switch i8 %20, label %47 [
i8 49, label %24
i8 50, label %26
i8 51, label %28
i8 52, label %30
i8 53, label %32
i8 54, label %34
i8 55, label %36
i8 56, label %38
i8 57, label %40
]
24: ; preds = %23
%25 = load i8, i8* %11
switch i8 %25, label %47 [
i8 88, label %42
i8 79, label %42
]
26: ; preds = %23
%27 = load i8, i8* %10
switch i8 %27, label %47 [
i8 88, label %42
i8 79, label %42
]
28: ; preds = %23
%29 = load i8, i8* %9
switch i8 %29, label %47 [
i8 88, label %42
i8 79, label %42
]
30: ; preds = %23
%31 = load i8, i8* %8
switch i8 %31, label %47 [
i8 88, label %42
i8 79, label %42
]
32: ; preds = %23
%33 = load i8, i8* %7
switch i8 %33, label %47 [
i8 88, label %42
i8 79, label %42
]
34: ; preds = %23
%35 = load i8, i8* %6
switch i8 %35, label %47 [
i8 88, label %42
i8 79, label %42
]
36: ; preds = %23
%37 = load i8, i8* %5
switch i8 %37, label %47 [
i8 88, label %42
i8 79, label %42
]
38: ; preds = %23
%39 = load i8, i8* %4
switch i8 %39, label %47 [
i8 88, label %42
i8 79, label %42
]
40: ; preds = %23
%41 = load i8, i8* %3
switch i8 %41, label %47 [
i8 88, label %42
i8 79, label %42
]
42: ; preds = %40, %40, %38, %38, %36, %36, %34, %34, %32, %32, %30, %30, %28, %28, %26, %26, %24, %24
%43 = phi i8* [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %24 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %24 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %26 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %26 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %28 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %28 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %30 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %30 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %32 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %32 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %34 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %34 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %36 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %36 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %38 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %38 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %40 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0), %40 ]
%44 = phi i64 [ 0, %24 ], [ 0, %24 ], [ 0, %26 ], [ 0, %26 ], [ 0, %28 ], [ 0, %28 ], [ 4294967296, %30 ], [ 4294967296, %30 ], [ 4294967296, %32 ], [ 4294967296, %32 ], [ 4294967296, %34 ], [ 4294967296, %34 ], [ 8589934592, %36 ], [ 8589934592, %36 ], [ 8589934592, %38 ], [ 8589934592, %38 ], [ 8589934592, %40 ], [ 8589934592, %40 ]
%45 = phi i64 [ 0, %24 ], [ 0, %24 ], [ 4294967296, %26 ], [ 4294967296, %26 ], [ 8589934592, %28 ], [ 8589934592, %28 ], [ 0, %30 ], [ 0, %30 ], [ 4294967296, %32 ], [ 4294967296, %32 ], [ 8589934592, %34 ], [ 8589934592, %34 ], [ 0, %36 ], [ 0, %36 ], [ 4294967296, %38 ], [ 4294967296, %38 ], [ 8589934592, %40 ], [ 8589934592, %40 ]
%46 = call i32 @puts(i8* dereferenceable(1) %43)
br label %12
47: ; preds = %23, %24, %26, %28, %30, %32, %34, %36, %38, %40
%48 = phi i64 [ 8589934592, %40 ], [ 8589934592, %38 ], [ 8589934592, %36 ], [ 4294967296, %34 ], [ 4294967296, %32 ], [ 4294967296, %30 ], [ 0, %28 ], [ 0, %26 ], [ 0, %24 ], [ %13, %23 ]
%49 = phi i64 [ 8589934592, %40 ], [ 4294967296, %38 ], [ 0, %36 ], [ 8589934592, %34 ], [ 4294967296, %32 ], [ 0, %30 ], [ 8589934592, %28 ], [ 4294967296, %26 ], [ 0, %24 ], [ %14, %23 ]
%50 = ashr i64 %48, 32
%51 = ashr i64 %49, 32
%52 = getelementptr inbounds [3 x i8], [3 x i8]* %0, i64 %50, i64 %51
store i8 88, i8* %52
ret void
}