#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*/ printf(char *, char, char, char, char, char, char, char,
                          char, char);
int /*<<< orphan*/ system(char *);
void show_tab(char **matriz) {
  int i, j;
  system("clear");
  printf("   |   |\n %c | %c | %c\n___|___|___\n   |   |\n %c | %c | "
         "%c\n___|___|___\n   |   |\n %c | %c | %c\n   |   |\n",
         matriz[0][0], matriz[0][1], matriz[0][2], matriz[1][0], matriz[1][1],
         matriz[1][2], matriz[2][0], matriz[2][1], matriz[2][2]);
}


x86 assembly (clang, -O0):
<show_tab>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x38,%rsp
mov    %rdi,-0x10(%rbp)
lea    0xecc(%rip),%rdi
call   1030 <system@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%sil
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    0x1(%rax),%dl
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    0x2(%rax),%cl
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    (%rax),%r8b
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x1(%rax),%r9b
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x2(%rax),%bl
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    (%rax),%r11b
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    0x1(%rax),%r10b
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
lea    0xe67(%rip),%rdi
movsbl %sil,%esi
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %r8b,%r8d
movsbl %r9b,%r9d
movsbl %bl,%ebx
mov    %ebx,(%rsp)
movsbl %r11b,%r11d
mov    %r11d,0x8(%rsp)
movsbl %r10b,%r10d
mov    %r10d,0x10(%rsp)
movsbl 0x2(%rax),%eax
mov    %eax,0x18(%rsp)
call   1040 <printf@plt>
add    $0x38,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_tab>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
call   1030 <system@plt>
mov    (%rbx),%rax
mov    0x8(%rbx),%rdi
movsbl (%rax),%esi
movsbl 0x1(%rax),%edx
movsbl 0x2(%rax),%ecx
movsbl (%rdi),%r8d
movsbl 0x1(%rdi),%r9d
movsbl 0x2(%rdi),%r10d
mov    0x10(%rbx),%rdi
movsbl (%rdi),%r11d
movsbl 0x1(%rdi),%eax
movsbl 0x2(%rdi),%ebx
lea    0xe9f(%rip),%rdi
push   %rbx
push   %rax
push   %r11
push   %r10
call   1040 <printf@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [103 x i8] c" | |\0A %c | %c | %c\0A___|___|___\0A | |\0A %c | %c | %c\0A___|___|___\0A | |\0A %c | %c | %c\0A | |\0A\00"
define void @show_tab(i8** %0) {
%2 = alloca i8**
%3 = alloca i32
%4 = alloca i32
store i8** %0, i8*** %2
%5 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%6 = load i8**, i8*** %2
%7 = getelementptr inbounds i8*, i8** %6, i64 0
%8 = load i8*, i8** %7
%9 = getelementptr inbounds i8, i8* %8, i64 0
%10 = load i8, i8* %9
%11 = load i8**, i8*** %2
%12 = getelementptr inbounds i8*, i8** %11, i64 0
%13 = load i8*, i8** %12
%14 = getelementptr inbounds i8, i8* %13, i64 1
%15 = load i8, i8* %14
%16 = load i8**, i8*** %2
%17 = getelementptr inbounds i8*, i8** %16, i64 0
%18 = load i8*, i8** %17
%19 = getelementptr inbounds i8, i8* %18, i64 2
%20 = load i8, i8* %19
%21 = load i8**, i8*** %2
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = getelementptr inbounds i8, i8* %23, i64 0
%25 = load i8, i8* %24
%26 = load i8**, i8*** %2
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = getelementptr inbounds i8, i8* %28, i64 1
%30 = load i8, i8* %29
%31 = load i8**, i8*** %2
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
%34 = getelementptr inbounds i8, i8* %33, i64 2
%35 = load i8, i8* %34
%36 = load i8**, i8*** %2
%37 = getelementptr inbounds i8*, i8** %36, i64 2
%38 = load i8*, i8** %37
%39 = getelementptr inbounds i8, i8* %38, i64 0
%40 = load i8, i8* %39
%41 = load i8**, i8*** %2
%42 = getelementptr inbounds i8*, i8** %41, i64 2
%43 = load i8*, i8** %42
%44 = getelementptr inbounds i8, i8* %43, i64 1
%45 = load i8, i8* %44
%46 = load i8**, i8*** %2
%47 = getelementptr inbounds i8*, i8** %46, i64 2
%48 = load i8*, i8** %47
%49 = getelementptr inbounds i8, i8* %48, i64 2
%50 = load i8, i8* %49
%51 = call i32 @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.1, i64 0, i64 0), i8 signext %10, i8 signext %15, i8 signext %20, i8 signext %25, i8 signext %30, i8 signext %35, i8 signext %40, i8 signext %45, i8 signext %50)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.1 = [103 x i8] c" | |\0A %c | %c | %c\0A___|___|___\0A | |\0A %c | %c | %c\0A___|___|___\0A | |\0A %c | %c | %c\0A | |\0A\00"
define void @show_tab(i8** nocapture %0) {
%2 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = load i8*, i8** %0
%4 = load i8, i8* %3
%5 = getelementptr inbounds i8, i8* %3, i64 1
%6 = load i8, i8* %5
%7 = getelementptr inbounds i8, i8* %3, i64 2
%8 = load i8, i8* %7
%9 = getelementptr inbounds i8*, i8** %0, i64 1
%10 = load i8*, i8** %9
%11 = load i8, i8* %10
%12 = getelementptr inbounds i8, i8* %10, i64 1
%13 = load i8, i8* %12
%14 = getelementptr inbounds i8, i8* %10, i64 2
%15 = load i8, i8* %14
%16 = getelementptr inbounds i8*, i8** %0, i64 2
%17 = load i8*, i8** %16
%18 = load i8, i8* %17
%19 = getelementptr inbounds i8, i8* %17, i64 1
%20 = load i8, i8* %19
%21 = getelementptr inbounds i8, i8* %17, i64 2
%22 = load i8, i8* %21
%23 = tail call i32 @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.1, i64 0, i64 0), i8 signext %4, i8 signext %6, i8 signext %8, i8 signext %11, i8 signext %13, i8 signext %15, i8 signext %18, i8 signext %20, i8 signext %22)
ret void
}