#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*/ Intro_IA(char **);
int /*<<< orphan*/ Intro_Primera(char **);
int /*<<< orphan*/ Intro_Yo(char **);
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ tablero(char **);
void loop(char c[3][3]) {
  int i;
  i = 0;
  Intro_Primera(c);
  do {
    system("cls");
    tablero(c);
    if (i % 2 == 0) {
      Intro_Yo(c);
    } else {
      Intro_IA(c);
    }
    i++;
  } while (i < 9);
}


x86 assembly (clang, -O0):
<loop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <Intro_Primera@plt>
lea    0xe8d(%rip),%rdi
call   1050 <system@plt>
mov    -0x8(%rbp),%rdi
call   1030 <tablero@plt>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11a3 <loop+0x53>
mov    -0x8(%rbp),%rdi
call   1070 <Intro_Yo@plt>
jmp    11ac <loop+0x5c>
mov    -0x8(%rbp),%rdi
call   1060 <Intro_IA@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x9,-0xc(%rbp)
jl     116c <loop+0x1c>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<loop>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1040 <Intro_Primera@plt>
lea    0xe9d(%rip),%r14
mov    %r14,%rdi
call   1050 <system@plt>
mov    %rbx,%rdi
call   1030 <tablero@plt>
mov    %rbx,%rdi
call   1070 <Intro_Yo@plt>
mov    %r14,%rdi
call   1050 <system@plt>
mov    %rbx,%rdi
call   1030 <tablero@plt>
mov    %rbx,%rdi
call   1060 <Intro_IA@plt>
mov    %r14,%rdi
call   1050 <system@plt>
mov    %rbx,%rdi
call   1030 <tablero@plt>
mov    %rbx,%rdi
call   1070 <Intro_Yo@plt>
mov    %r14,%rdi
call   1050 <system@plt>
mov    %rbx,%rdi
call   1030 <tablero@plt>
mov    %rbx,%rdi
call   1060 <Intro_IA@plt>
mov    %r14,%rdi
call   1050 <system@plt>
mov    %rbx,%rdi
call   1030 <tablero@plt>
mov    %rbx,%rdi
call   1070 <Intro_Yo@plt>
mov    %r14,%rdi
call   1050 <system@plt>
mov    %rbx,%rdi
call   1030 <tablero@plt>
mov    %rbx,%rdi
call   1060 <Intro_IA@plt>
mov    %r14,%rdi
call   1050 <system@plt>
mov    %rbx,%rdi
call   1030 <tablero@plt>
mov    %rbx,%rdi
call   1070 <Intro_Yo@plt>
mov    %r14,%rdi
call   1050 <system@plt>
mov    %rbx,%rdi
call   1030 <tablero@plt>
mov    %rbx,%rdi
call   1060 <Intro_IA@plt>
mov    %r14,%rdi
call   1050 <system@plt>
mov    %rbx,%rdi
call   1030 <tablero@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1070 <Intro_Yo@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"cls\00"
define void @loop([3 x i8]* %0) {
%2 = alloca [3 x i8]*
%3 = alloca i32
store [3 x i8]* %0, [3 x i8]** %2
store i32 0, i32* %3
%4 = load [3 x i8]*, [3 x i8]** %2
%5 = bitcast [3 x i8]* %4 to i8**
%6 = call i32 @Intro_Primera(i8** %5)
br label %7
7: ; preds = %26, %1
%8 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%9 = load [3 x i8]*, [3 x i8]** %2
%10 = bitcast [3 x i8]* %9 to i8**
%11 = call i32 @tablero(i8** %10)
%12 = load i32, i32* %3
%13 = srem i32 %12, 2
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %7
%16 = load [3 x i8]*, [3 x i8]** %2
%17 = bitcast [3 x i8]* %16 to i8**
%18 = call i32 @Intro_Yo(i8** %17)
br label %23
19: ; preds = %7
%20 = load [3 x i8]*, [3 x i8]** %2
%21 = bitcast [3 x i8]* %20 to i8**
%22 = call i32 @Intro_IA(i8** %21)
br label %23
23: ; preds = %19, %15
%24 = load i32, i32* %3
%25 = add nsw i32 %24, 1
store i32 %25, i32* %3
br label %26
26: ; preds = %23
%27 = load i32, i32* %3
%28 = icmp slt i32 %27, 9
br i1 %28, label %7, label %29
29: ; preds = %26
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"cls\00"
define void @loop([3 x i8]* %0) {
%2 = bitcast [3 x i8]* %0 to i8**
%3 = tail call i32 @Intro_Primera(i8** %2)
%4 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @tablero(i8** %2)
%6 = tail call i32 @Intro_Yo(i8** %2)
%7 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @tablero(i8** %2)
%9 = tail call i32 @Intro_IA(i8** %2)
%10 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @tablero(i8** %2)
%12 = tail call i32 @Intro_Yo(i8** %2)
%13 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%14 = tail call i32 @tablero(i8** %2)
%15 = tail call i32 @Intro_IA(i8** %2)
%16 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%17 = tail call i32 @tablero(i8** %2)
%18 = tail call i32 @Intro_Yo(i8** %2)
%19 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%20 = tail call i32 @tablero(i8** %2)
%21 = tail call i32 @Intro_IA(i8** %2)
%22 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%23 = tail call i32 @tablero(i8** %2)
%24 = tail call i32 @Intro_Yo(i8** %2)
%25 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%26 = tail call i32 @tablero(i8** %2)
%27 = tail call i32 @Intro_IA(i8** %2)
%28 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%29 = tail call i32 @tablero(i8** %2)
%30 = tail call i32 @Intro_Yo(i8** %2)
ret void
}