#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*/ e_repete(int, int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void exibe_tabuleiro(char exibicao[10][10], int limite) {
  int i, j;
  printf("\n     ");
  for (i = 0; i < limite; i++)
    printf("%3cC%d", '\0', i + 1);
  printf("\n       ");
  e_repete(196, limite * 5, 0, 0);
  printf("\n");
  for (i = 0; i < limite; i++) {
    if (i < 9)
      printf("%4cL%d%c", '\0', i + 1, 179);
    else
      printf("%3cL%d%c", '\0', i + 1, 179);
    for (j = 0; j < limite; j++) {
      printf(" %c   ", exibicao[i][j]);
    }
    if (i == 9) {
      printf("\n");
    } else if (i == limite - 1) {
      printf("\n\n");
    } else {
      printf("\n%6c%c\n", '\0', 179);
    }
  }
}


x86 assembly (clang, -O0):
<exibe_tabuleiro>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1174 <exibe_tabuleiro+0x54>
mov    -0x10(%rbp),%edx
add    $0x1,%edx
lea    0xeaa(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1144 <exibe_tabuleiro+0x24>
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
imul   $0x5,-0xc(%rbp),%esi
mov    $0xc4,%edi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1040 <e_repete@plt>
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12ae <exibe_tabuleiro+0x18e>
cmpl   $0x9,-0x10(%rbp)
jge    11df <exibe_tabuleiro+0xbf>
mov    -0x10(%rbp),%edx
add    $0x1,%edx
lea    0xe4b(%rip),%rdi
xor    %esi,%esi
mov    $0xb3,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11fa <exibe_tabuleiro+0xda>
mov    -0x10(%rbp),%edx
add    $0x1,%edx
lea    0xe34(%rip),%rdi
xor    %esi,%esi
mov    $0xb3,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1240 <exibe_tabuleiro+0x120>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xdfe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1201 <exibe_tabuleiro+0xe1>
cmpl   $0x9,-0x10(%rbp)
jne    125d <exibe_tabuleiro+0x13d>
lea    0xde0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129b <exibe_tabuleiro+0x17b>
mov    -0x10(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    1281 <exibe_tabuleiro+0x161>
lea    0xdbb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1296 <exibe_tabuleiro+0x176>
lea    0xdab(%rip),%rdi
xor    %esi,%esi
mov    $0xb3,%edx
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129b <exibe_tabuleiro+0x17b>
jmp    12a0 <exibe_tabuleiro+0x180>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11a9 <exibe_tabuleiro+0x89>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exibe_tabuleiro>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %rdi,%rbx
lea    0xea8(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   %r14d,%r14d
jle    12b9 <exibe_tabuleiro+0x179>
mov    %r14d,%ebp
neg    %ebp
mov    $0x1,%r12d
lea    0xe8d(%rip),%r15
nopw   0x0(%rax,%rax,1)
mov    %r15,%rdi
xor    %esi,%esi
mov    %r12d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    (%r12,%rbp,1),%eax
add    $0x1,%eax
mov    %r12d,%ecx
add    $0x1,%ecx
mov    %ecx,%r12d
cmp    $0x1,%eax
jne    1180 <exibe_tabuleiro+0x40>
lea    0xe63(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    (%r14,%r14,4),%esi
mov    $0xc4,%edi
xor    %edx,%edx
xor    %ecx,%ecx
call   1060 <e_repete@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
test   %r14d,%r14d
jle    12aa <exibe_tabuleiro+0x16a>
lea    -0x1(%r14),%eax
mov    %rax,(%rsp)
mov    %r14d,%ebp
lea    0xe37(%rip),%r12
lea    0xe39(%rip),%r14
xor    %r13d,%r13d
jmp    121b <exibe_tabuleiro+0xdb>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r13
add    $0xa,%rbx
cmp    %rbp,%r13
je     12aa <exibe_tabuleiro+0x16a>
lea    0x1(%r13),%edx
cmp    $0x9,%r13
mov    %r12,%rdi
lea    0xdea(%rip),%rax
cmovb  %rax,%rdi
xor    %esi,%esi
mov    $0xb3,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl (%rbx,%r15,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%r15
cmp    %r15,%rbp
jne    1250 <exibe_tabuleiro+0x110>
cmp    $0x9,%r13
je     1200 <exibe_tabuleiro+0xc0>
cmp    (%rsp),%r13
jne    1290 <exibe_tabuleiro+0x150>
lea    0xdbb(%rip),%rdi
call   1040 <puts@plt>
jmp    120a <exibe_tabuleiro+0xca>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xd99(%rip),%rdi
xor    %esi,%esi
mov    $0xb3,%edx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    120a <exibe_tabuleiro+0xca>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd4e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    (%r14,%r14,4),%esi
mov    $0xc4,%edi
xor    %edx,%edx
xor    %ecx,%ecx
call   1060 <e_repete@plt>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"\0A \00"
@.str.1 = [7 x i8] c"%3cC%d\00"
@.str.2 = [9 x i8] c"\0A \00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [9 x i8] c"%4cL%d%c\00"
@.str.5 = [9 x i8] c"%3cL%d%c\00"
@.str.6 = [7 x i8] c" %c \00"
@.str.7 = [3 x i8] c"\0A\0A\00"
@.str.8 = [8 x i8] c"\0A%6c%c\0A\00"
define void @exibe_tabuleiro([10 x i8]* %0, i32 %1) {
%3 = alloca [10 x i8]*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store [10 x i8]* %0, [10 x i8]** %3
store i32 %1, i32* %4
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %5
br label %8
8: ; preds = %16, %2
%9 = load i32, i32* %5
%10 = load i32, i32* %4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %19
12: ; preds = %8
%13 = load i32, i32* %5
%14 = add nsw i32 %13, 1
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 %14)
br label %16
16: ; preds = %12
%17 = load i32, i32* %5
%18 = add nsw i32 %17, 1
store i32 %18, i32* %5
br label %8
19: ; preds = %8
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%21 = load i32, i32* %4
%22 = mul nsw i32 %21, 5
%23 = call i32 @e_repete(i32 196, i32 %22, i32 0, i32 0)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %5
br label %25
25: ; preds = %75, %19
%26 = load i32, i32* %5
%27 = load i32, i32* %4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %78
29: ; preds = %25
%30 = load i32, i32* %5
%31 = icmp slt i32 %30, 9
br i1 %31, label %32, label %36
32: ; preds = %29
%33 = load i32, i32* %5
%34 = add nsw i32 %33, 1
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 %34, i32 179)
br label %40
36: ; preds = %29
%37 = load i32, i32* %5
%38 = add nsw i32 %37, 1
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 0, i32 %38, i32 179)
br label %40
40: ; preds = %36, %32
store i32 0, i32* %6
br label %41
41: ; preds = %56, %40
%42 = load i32, i32* %6
%43 = load i32, i32* %4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %59
45: ; preds = %41
%46 = load [10 x i8]*, [10 x i8]** %3
%47 = load i32, i32* %5
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [10 x i8], [10 x i8]* %46, i64 %48
%50 = load i32, i32* %6
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x i8], [10 x i8]* %49, i64 0, i64 %51
%53 = load i8, i8* %52
%54 = sext i8 %53 to i32
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 %54)
br label %56
56: ; preds = %45
%57 = load i32, i32* %6
%58 = add nsw i32 %57, 1
store i32 %58, i32* %6
br label %41
59: ; preds = %41
%60 = load i32, i32* %5
%61 = icmp eq i32 %60, 9
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %74
64: ; preds = %59
%65 = load i32, i32* %5
%66 = load i32, i32* %4
%67 = sub nsw i32 %66, 1
%68 = icmp eq i32 %65, %67
br i1 %68, label %69, label %71
69: ; preds = %64
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
br label %73
71: ; preds = %64
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 0, i32 179)
br label %73
73: ; preds = %71, %69
br label %74
74: ; preds = %73, %62
br label %75
75: ; preds = %74
%76 = load i32, i32* %5
%77 = add nsw i32 %76, 1
store i32 %77, i32* %5
br label %25
78: ; preds = %25
ret void
}

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