void mostrar(char m[9][9], int tam) {
  const char *const green = "\033[0;40;32m";
  const char *const yellow = "\033[0;40;33m";
  const char *const red = "\033[0;40;31m";
  const char *const blue = "\033[0;40;34m";
  const char *const normal = "\033[0m";
  const char *const purple = "\033[0;40;35m";
  int i, j;
  printf("\t\t     0  1  2  3  4  5  6  7  8\n\n");
  for (i = 0; i < tam; i++) {
    printf("\t\t%s%d   %s", normal, i, normal);
    for (j = 0; j < tam; j++) {
      if (m[i][j] == '.')
        printf("%s %c %s", normal, m[i][j], normal);
      if (m[i][j] == 'Y')
        printf("%s %c %s", yellow, m[i][j], yellow);
      if (m[i][j] == 'G')
        printf("%s %c %s", green, m[i][j], green);
      if (m[i][j] == 'B')
        printf("%s %c %s", blue, m[i][j], blue);
      if (m[i][j] == 'R')
        printf("%s %c %s", red, m[i][j], red);
      if (m[i][j] == 'P')
        printf("%s %c %s", purple, m[i][j], purple);
    }
    printf("%s  %d%s", normal, i, normal);
    printf("\n\n");
  }
  printf("%s", normal);
}


x86 assembly (clang, -O0):
<mostrar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xed4(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    13d4 <mostrar+0x2c4>
mov    -0x44(%rbp),%edx
lea    0xed3(%rip),%rdi
lea    0xe99(%rip),%rcx
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    139d <mostrar+0x28d>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x9,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x2e,%eax
jne    11ff <mostrar+0xef>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x9,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
lea    0xe7d(%rip),%rdi
lea    0xe37(%rip),%rcx
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x9,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x59,%eax
jne    124e <mostrar+0x13e>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x9,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
lea    0xe2e(%rip),%rdi
lea    0xdc7(%rip),%rcx
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x9,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x47,%eax
jne    129d <mostrar+0x18d>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x9,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
lea    0xddf(%rip),%rdi
lea    0xd6d(%rip),%rcx
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x9,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x42,%eax
jne    12ec <mostrar+0x1dc>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x9,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
lea    0xd90(%rip),%rdi
lea    0xd3f(%rip),%rcx
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x9,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x52,%eax
jne    133b <mostrar+0x22b>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x9,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
lea    0xd41(%rip),%rdi
lea    0xce5(%rip),%rcx
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x9,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x50,%eax
jne    138a <mostrar+0x27a>
mov    -0x8(%rbp),%rax
movslq -0x44(%rbp),%rcx
imul   $0x9,%rcx,%rcx
add    %rcx,%rax
movslq -0x48(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
lea    0xcf2(%rip),%rdi
lea    0xcb1(%rip),%rcx
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    138f <mostrar+0x27f>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    11a4 <mostrar+0x94>
mov    -0x44(%rbp),%edx
lea    0xccd(%rip),%rdi
lea    0xc7e(%rip),%rcx
mov    %rcx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1176 <mostrar+0x66>
lea    0xc8d(%rip),%rdi
lea    0xc4a(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mostrar>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
lea    0xf23(%rip),%rdi
call   1030 <puts@plt>
test   %ebp,%ebp
jle    12b8 <mostrar+0x198>
mov    %ebp,%r14d
lea    0xede(%rip),%r15
lea    0xef3(%rip),%r12
xor    %ebp,%ebp
jmp    1197 <mostrar+0x77>
nopl   0x0(%rax)
lea    0xeea(%rip),%rdi
mov    %r15,%rsi
mov    (%rsp),%rbp
mov    %ebp,%edx
mov    %r15,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef9(%rip),%rdi
call   1030 <puts@plt>
add    $0x1,%rbp
add    $0x9,%rbx
cmp    %r14,%rbp
je     12b8 <mostrar+0x198>
lea    0xe9e(%rip),%rdi
mov    %r15,%rsi
mov    %rbp,(%rsp)
mov    %ebp,%edx
mov    %r15,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %r13d,%r13d
lea    0xe76(%rip),%rbp
jmp    11c9 <mostrar+0xa9>
nopl   (%rax)
add    $0x1,%r13
cmp    %r13,%r14
je     1160 <mostrar+0x40>
movzbl (%rbx,%r13,1),%eax
cmp    $0x2e,%al
je     11f0 <mostrar+0xd0>
cmp    $0x59,%al
je     120e <mostrar+0xee>
cmp    $0x47,%al
je     1230 <mostrar+0x110>
cmp    $0x42,%al
je     1252 <mostrar+0x132>
cmp    $0x52,%al
je     1278 <mostrar+0x158>
cmp    $0x50,%al
jne    11c0 <mostrar+0xa0>
jmp    129e <mostrar+0x17e>
nop
mov    %r12,%rdi
mov    %r15,%rsi
mov    $0x2e,%edx
mov    %r15,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
movzbl (%rbx,%r13,1),%eax
cmp    $0x59,%al
jne    11d6 <mostrar+0xb6>
mov    %r12,%rdi
lea    0xdf3(%rip),%rcx
mov    %rcx,%rsi
mov    $0x59,%edx
xor    %eax,%eax
call   1040 <printf@plt>
movzbl (%rbx,%r13,1),%eax
cmp    $0x47,%al
jne    11da <mostrar+0xba>
mov    %r12,%rdi
lea    0xdc6(%rip),%rcx
mov    %rcx,%rsi
mov    $0x47,%edx
xor    %eax,%eax
call   1040 <printf@plt>
movzbl (%rbx,%r13,1),%eax
cmp    $0x42,%al
jne    11de <mostrar+0xbe>
mov    %r12,%rdi
lea    0xdc5(%rip),%rcx
mov    %rcx,%rsi
mov    $0x42,%edx
xor    %eax,%eax
call   1040 <printf@plt>
movzbl (%rbx,%r13,1),%eax
cmp    $0x52,%al
jne    11e6 <mostrar+0xc6>
mov    %r12,%rdi
lea    0xd94(%rip),%rcx
mov    %rcx,%rsi
mov    $0x52,%edx
xor    %eax,%eax
call   1040 <printf@plt>
movzbl (%rbx,%r13,1),%eax
cmp    $0x50,%al
jne    11c0 <mostrar+0xa0>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    $0x50,%edx
mov    %rbp,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11c0 <mostrar+0xa0>
lea    0xd86(%rip),%rdi
lea    0xd66(%rip),%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"\1B[0;40;32m\00"
@.str.1 = [11 x i8] c"\1B[0;40;33m\00"
@.str.2 = [11 x i8] c"\1B[0;40;31m\00"
@.str.3 = [11 x i8] c"\1B[0;40;34m\00"
@.str.4 = [5 x i8] c"\1B[0m\00"
@.str.5 = [11 x i8] c"\1B[0;40;35m\00"
@.str.6 = [35 x i8] c"\09\09 0 1 2 3 4 5 6 7 8\0A\0A\00"
@.str.7 = [12 x i8] c"\09\09%s%d %s\00"
@.str.8 = [9 x i8] c"%s %c %s\00"
@.str.9 = [9 x i8] c"%s %d%s\00"
@.str.10 = [3 x i8] c"\0A\0A\00"
@.str.11 = [3 x i8] c"%s\00"
define void @mostrar([9 x i8]* %0, i32 %1) {
%3 = alloca [9 x i8]*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
store [9 x i8]* %0, [9 x i8]** %3
store i32 %1, i32* %4
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8** %5
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8** %6
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8** %7
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8** %8
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8** %9
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8** %10
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %11
br label %14
14: ; preds = %165, %2
%15 = load i32, i32* %11
%16 = load i32, i32* %4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %168
18: ; preds = %14
%19 = load i32, i32* %11
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i32 %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0))
store i32 0, i32* %12
br label %21
21: ; preds = %158, %18
%22 = load i32, i32* %12
%23 = load i32, i32* %4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %161
25: ; preds = %21
%26 = load [9 x i8]*, [9 x i8]** %3
%27 = load i32, i32* %11
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [9 x i8], [9 x i8]* %26, i64 %28
%30 = load i32, i32* %12
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [9 x i8], [9 x i8]* %29, i64 0, i64 %31
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 46
br i1 %35, label %36, label %47
36: ; preds = %25
%37 = load [9 x i8]*, [9 x i8]** %3
%38 = load i32, i32* %11
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [9 x i8], [9 x i8]* %37, i64 %39
%41 = load i32, i32* %12
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [9 x i8], [9 x i8]* %40, i64 0, i64 %42
%44 = load i8, i8* %43
%45 = sext i8 %44 to i32
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i32 %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0))
br label %47
47: ; preds = %36, %25
%48 = load [9 x i8]*, [9 x i8]** %3
%49 = load i32, i32* %11
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [9 x i8], [9 x i8]* %48, i64 %50
%52 = load i32, i32* %12
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [9 x i8], [9 x i8]* %51, i64 0, i64 %53
%55 = load i8, i8* %54
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 89
br i1 %57, label %58, label %69
58: ; preds = %47
%59 = load [9 x i8]*, [9 x i8]** %3
%60 = load i32, i32* %11
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [9 x i8], [9 x i8]* %59, i64 %61
%63 = load i32, i32* %12
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [9 x i8], [9 x i8]* %62, i64 0, i64 %64
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i32 0, i32 0), i32 %67, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i32 0, i32 0))
br label %69
69: ; preds = %58, %47
%70 = load [9 x i8]*, [9 x i8]** %3
%71 = load i32, i32* %11
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [9 x i8], [9 x i8]* %70, i64 %72
%74 = load i32, i32* %12
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [9 x i8], [9 x i8]* %73, i64 0, i64 %75
%77 = load i8, i8* %76
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 71
br i1 %79, label %80, label %91
80: ; preds = %69
%81 = load [9 x i8]*, [9 x i8]** %3
%82 = load i32, i32* %11
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [9 x i8], [9 x i8]* %81, i64 %83
%85 = load i32, i32* %12
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [9 x i8], [9 x i8]* %84, i64 0, i64 %86
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 %89, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0))
br label %91
91: ; preds = %80, %69
%92 = load [9 x i8]*, [9 x i8]** %3
%93 = load i32, i32* %11
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [9 x i8], [9 x i8]* %92, i64 %94
%96 = load i32, i32* %12
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [9 x i8], [9 x i8]* %95, i64 0, i64 %97
%99 = load i8, i8* %98
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 66
br i1 %101, label %102, label %113
102: ; preds = %91
%103 = load [9 x i8]*, [9 x i8]** %3
%104 = load i32, i32* %11
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [9 x i8], [9 x i8]* %103, i64 %105
%107 = load i32, i32* %12
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [9 x i8], [9 x i8]* %106, i64 0, i64 %108
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i32 0, i32 0), i32 %111, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i32 0, i32 0))
br label %113
113: ; preds = %102, %91
%114 = load [9 x i8]*, [9 x i8]** %3
%115 = load i32, i32* %11
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [9 x i8], [9 x i8]* %114, i64 %116
%118 = load i32, i32* %12
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [9 x i8], [9 x i8]* %117, i64 0, i64 %119
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp eq i32 %122, 82
br i1 %123, label %124, label %135
124: ; preds = %113
%125 = load [9 x i8]*, [9 x i8]** %3
%126 = load i32, i32* %11
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [9 x i8], [9 x i8]* %125, i64 %127
%129 = load i32, i32* %12
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [9 x i8], [9 x i8]* %128, i64 0, i64 %130
%132 = load i8, i8* %131
%133 = sext i8 %132 to i32
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i32 0, i32 0), i32 %133, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i32 0, i32 0))
br label %135
135: ; preds = %124, %113
%136 = load [9 x i8]*, [9 x i8]** %3
%137 = load i32, i32* %11
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [9 x i8], [9 x i8]* %136, i64 %138
%140 = load i32, i32* %12
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds [9 x i8], [9 x i8]* %139, i64 0, i64 %141
%143 = load i8, i8* %142
%144 = sext i8 %143 to i32
%145 = icmp eq i32 %144, 80
br i1 %145, label %146, label %157
146: ; preds = %135
%147 = load [9 x i8]*, [9 x i8]** %3
%148 = load i32, i32* %11
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds [9 x i8], [9 x i8]* %147, i64 %149
%151 = load i32, i32* %12
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [9 x i8], [9 x i8]* %150, i64 0, i64 %152
%154 = load i8, i8* %153
%155 = sext i8 %154 to i32
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i32 0, i32 0), i32 %155, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i32 0, i32 0))
br label %157
157: ; preds = %146, %135
br label %158
158: ; preds = %157
%159 = load i32, i32* %12
%160 = add nsw i32 %159, 1
store i32 %160, i32* %12
br label %21
161: ; preds = %21
%162 = load i32, i32* %11
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i32 %162, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0))
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
br label %165
165: ; preds = %161
%166 = load i32, i32* %11
%167 = add nsw i32 %166, 1
store i32 %167, i32* %11
br label %14
168: ; preds = %14
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0))
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"\1B[0;40;32m\00"
@.str.1 = [11 x i8] c"\1B[0;40;33m\00"
@.str.2 = [11 x i8] c"\1B[0;40;31m\00"
@.str.3 = [11 x i8] c"\1B[0;40;34m\00"
@.str.4 = [5 x i8] c"\1B[0m\00"
@.str.5 = [11 x i8] c"\1B[0;40;35m\00"
@.str.7 = [12 x i8] c"\09\09%s%d %s\00"
@.str.8 = [9 x i8] c"%s %c %s\00"
@.str.9 = [9 x i8] c"%s %d%s\00"
@.str.11 = [3 x i8] c"%s\00"
@str = [34 x i8] c"\09\09 0 1 2 3 4 5 6 7 8\0A\00"
@str.12 = [2 x i8] c"\0A\00"
define void @mostrar([9 x i8]* nocapture %0, i32 %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %56
5: ; preds = %2
%6 = zext i32 %1 to i64
br label %7
7: ; preds = %51, %5
%8 = phi i64 [ 0, %5 ], [ %54, %51 ]
%9 = trunc i64 %8 to i32
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %11
11: ; preds = %7, %48
%12 = phi i64 [ 0, %7 ], [ %49, %48 ]
%13 = getelementptr inbounds [9 x i8], [9 x i8]* %0, i64 %8, i64 %12
%14 = load i8, i8* %13
%15 = icmp eq i8 %14, 46
br i1 %15, label %16, label %19
16: ; preds = %11
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 46, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%18 = load i8, i8* %13
br label %19
19: ; preds = %16, %11
%20 = phi i8 [ %18, %16 ], [ %14, %11 ]
%21 = icmp eq i8 %20, 89
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 89, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%24 = load i8, i8* %13
br label %25
25: ; preds = %22, %19
%26 = phi i8 [ %24, %22 ], [ %20, %19 ]
%27 = icmp eq i8 %26, 71
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 71, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%30 = load i8, i8* %13
br label %31
31: ; preds = %28, %25
%32 = phi i8 [ %30, %28 ], [ %26, %25 ]
%33 = icmp eq i8 %32, 66
br i1 %33, label %34, label %37
34: ; preds = %31
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 66, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%36 = load i8, i8* %13
br label %37
37: ; preds = %34, %31
%38 = phi i8 [ %36, %34 ], [ %32, %31 ]
%39 = icmp eq i8 %38, 82
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 82, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%42 = load i8, i8* %13
br label %43
43: ; preds = %40, %37
%44 = phi i8 [ %42, %40 ], [ %38, %37 ]
%45 = icmp eq i8 %44, 80
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 80, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %48
48: ; preds = %43, %46
%49 = add nuw nsw i64 %12, 1
%50 = icmp eq i64 %49, %6
br i1 %50, label %51, label %11
51: ; preds = %48
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.12, i64 0, i64 0))
%54 = add nuw nsw i64 %8, 1
%55 = icmp eq i64 %54, %6
br i1 %55, label %56, label %7
56: ; preds = %51, %2
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
ret void
}