#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*/ exibeMatriz(int, int, char **);
int /*<<< orphan*/ imprimePontos();
int /*<<< orphan*/ limpaMatriz(int, int, char **);
int /*<<< orphan*/ matrizA(int, int, char **);
int /*<<< orphan*/ matrizB(int, int, char **);
int /*<<< orphan*/ matrizC(int, int, char **);
int /*<<< orphan*/ matrizD(int, int, char **);
int /*<<< orphan*/ matrizE(int, int, char **);
int /*<<< orphan*/ printf(char *);
int main() {
  int l = 3;
  int c = 3;
  char matriz[l][c];
  imprimePontos();
  printf("\nMatriz A\n\n");
  limpaMatriz(l, c, matriz);
  matrizA(l, c, matriz);
  exibeMatriz(l, c, matriz);
  printf("\nMatriz B\n\n");
  limpaMatriz(l, c, matriz);
  matrizB(l, c, matriz);
  exibeMatriz(l, c, matriz);
  printf("\nMatriz C\n\n");
  limpaMatriz(l, c, matriz);
  matrizC(l, c, matriz);
  exibeMatriz(l, c, matriz);
  printf("\nMatriz D\n\n");
  limpaMatriz(l, c, matriz);
  matrizD(l, c, matriz);
  exibeMatriz(l, c, matriz);
  printf("\nMatriz E\n\n");
  limpaMatriz(l, c, matriz);
  matrizE(l, c, matriz);
  exibeMatriz(l, c, matriz);
  printf("\nMatriz F\n\n");
  limpaMatriz(l, c, matriz);
  matrizA(l, c, matriz);
  exibeMatriz(l, c, matriz);
  limpaMatriz(l, c, matriz);
  matrizB(l, c, matriz);
  exibeMatriz(l, c, matriz);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x3,-0x8(%rbp)
movl   $0x3,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
mov    %rsp,%rdx
mov    %rdx,-0x18(%rbp)
mov    %rcx,%rsi
imul   %rax,%rsi
add    $0xf,%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x30(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x20(%rbp)
mov    %rax,-0x28(%rbp)
mov    $0x0,%al
call   1070 <imprimePontos@plt>
lea    0xe12(%rip),%rdi
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <limpaMatriz@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1090 <matrizA@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10a0 <exibeMatriz@plt>
lea    0xde5(%rip),%rdi
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <limpaMatriz@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10b0 <matrizB@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10a0 <exibeMatriz@plt>
lea    0xdb8(%rip),%rdi
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <limpaMatriz@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1060 <matrizC@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10a0 <exibeMatriz@plt>
lea    0xd8b(%rip),%rdi
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <limpaMatriz@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <matrizD@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10a0 <exibeMatriz@plt>
lea    0xd5e(%rip),%rdi
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <limpaMatriz@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1080 <matrizE@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10a0 <exibeMatriz@plt>
lea    0xd31(%rip),%rdi
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <limpaMatriz@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1090 <matrizA@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10a0 <exibeMatriz@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <limpaMatriz@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10b0 <matrizB@plt>
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10a0 <exibeMatriz@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
xor    %eax,%eax
call   1070 <imprimePontos@plt>
lea    0xe5d(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%rbx
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1050 <limpaMatriz@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1090 <matrizA@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   10a0 <exibeMatriz@plt>
lea    0xe23(%rip),%rdi
call   1030 <puts@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1050 <limpaMatriz@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   10b0 <matrizB@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   10a0 <exibeMatriz@plt>
lea    0xdec(%rip),%rdi
call   1030 <puts@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1050 <limpaMatriz@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1060 <matrizC@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   10a0 <exibeMatriz@plt>
lea    0xdb5(%rip),%rdi
call   1030 <puts@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1050 <limpaMatriz@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1040 <matrizD@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   10a0 <exibeMatriz@plt>
lea    0xd7e(%rip),%rdi
call   1030 <puts@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1050 <limpaMatriz@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1080 <matrizE@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   10a0 <exibeMatriz@plt>
lea    0xd47(%rip),%rdi
call   1030 <puts@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1050 <limpaMatriz@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1090 <matrizA@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   10a0 <exibeMatriz@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   1050 <limpaMatriz@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   10b0 <matrizB@plt>
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rdx
call   10a0 <exibeMatriz@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"\0AMatriz A\0A\0A\00"
@.str.1 = [12 x i8] c"\0AMatriz B\0A\0A\00"
@.str.2 = [12 x i8] c"\0AMatriz C\0A\0A\00"
@.str.3 = [12 x i8] c"\0AMatriz D\0A\0A\00"
@.str.4 = [12 x i8] c"\0AMatriz E\0A\0A\00"
@.str.5 = [12 x i8] c"\0AMatriz F\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i64
store i32 0, i32* %1
store i32 3, i32* %2
store i32 3, i32* %3
%7 = load i32, i32* %2
%8 = zext i32 %7 to i64
%9 = load i32, i32* %3
%10 = zext i32 %9 to i64
%11 = call i8* @llvm.stacksave()
store i8* %11, i8** %4
%12 = mul nuw i64 %8, %10
%13 = alloca i8, i64 %12
store i64 %8, i64* %5
store i64 %10, i64* %6
%14 = call i32 (...) @imprimePontos()
%15 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%16 = load i32, i32* %2
%17 = load i32, i32* %3
%18 = bitcast i8* %13 to i8**
%19 = call i32 @limpaMatriz(i32 %16, i32 %17, i8** %18)
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = bitcast i8* %13 to i8**
%23 = call i32 @matrizA(i32 %20, i32 %21, i8** %22)
%24 = load i32, i32* %2
%25 = load i32, i32* %3
%26 = bitcast i8* %13 to i8**
%27 = call i32 @exibeMatriz(i32 %24, i32 %25, i8** %26)
%28 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%29 = load i32, i32* %2
%30 = load i32, i32* %3
%31 = bitcast i8* %13 to i8**
%32 = call i32 @limpaMatriz(i32 %29, i32 %30, i8** %31)
%33 = load i32, i32* %2
%34 = load i32, i32* %3
%35 = bitcast i8* %13 to i8**
%36 = call i32 @matrizB(i32 %33, i32 %34, i8** %35)
%37 = load i32, i32* %2
%38 = load i32, i32* %3
%39 = bitcast i8* %13 to i8**
%40 = call i32 @exibeMatriz(i32 %37, i32 %38, i8** %39)
%41 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%42 = load i32, i32* %2
%43 = load i32, i32* %3
%44 = bitcast i8* %13 to i8**
%45 = call i32 @limpaMatriz(i32 %42, i32 %43, i8** %44)
%46 = load i32, i32* %2
%47 = load i32, i32* %3
%48 = bitcast i8* %13 to i8**
%49 = call i32 @matrizC(i32 %46, i32 %47, i8** %48)
%50 = load i32, i32* %2
%51 = load i32, i32* %3
%52 = bitcast i8* %13 to i8**
%53 = call i32 @exibeMatriz(i32 %50, i32 %51, i8** %52)
%54 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%55 = load i32, i32* %2
%56 = load i32, i32* %3
%57 = bitcast i8* %13 to i8**
%58 = call i32 @limpaMatriz(i32 %55, i32 %56, i8** %57)
%59 = load i32, i32* %2
%60 = load i32, i32* %3
%61 = bitcast i8* %13 to i8**
%62 = call i32 @matrizD(i32 %59, i32 %60, i8** %61)
%63 = load i32, i32* %2
%64 = load i32, i32* %3
%65 = bitcast i8* %13 to i8**
%66 = call i32 @exibeMatriz(i32 %63, i32 %64, i8** %65)
%67 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%68 = load i32, i32* %2
%69 = load i32, i32* %3
%70 = bitcast i8* %13 to i8**
%71 = call i32 @limpaMatriz(i32 %68, i32 %69, i8** %70)
%72 = load i32, i32* %2
%73 = load i32, i32* %3
%74 = bitcast i8* %13 to i8**
%75 = call i32 @matrizE(i32 %72, i32 %73, i8** %74)
%76 = load i32, i32* %2
%77 = load i32, i32* %3
%78 = bitcast i8* %13 to i8**
%79 = call i32 @exibeMatriz(i32 %76, i32 %77, i8** %78)
%80 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%81 = load i32, i32* %2
%82 = load i32, i32* %3
%83 = bitcast i8* %13 to i8**
%84 = call i32 @limpaMatriz(i32 %81, i32 %82, i8** %83)
%85 = load i32, i32* %2
%86 = load i32, i32* %3
%87 = bitcast i8* %13 to i8**
%88 = call i32 @matrizA(i32 %85, i32 %86, i8** %87)
%89 = load i32, i32* %2
%90 = load i32, i32* %3
%91 = bitcast i8* %13 to i8**
%92 = call i32 @exibeMatriz(i32 %89, i32 %90, i8** %91)
%93 = load i32, i32* %2
%94 = load i32, i32* %3
%95 = bitcast i8* %13 to i8**
%96 = call i32 @limpaMatriz(i32 %93, i32 %94, i8** %95)
%97 = load i32, i32* %2
%98 = load i32, i32* %3
%99 = bitcast i8* %13 to i8**
%100 = call i32 @matrizB(i32 %97, i32 %98, i8** %99)
%101 = load i32, i32* %2
%102 = load i32, i32* %3
%103 = bitcast i8* %13 to i8**
%104 = call i32 @exibeMatriz(i32 %101, i32 %102, i8** %103)
store i32 0, i32* %1
%105 = load i8*, i8** %4
%106 = load i32, i32* %1
ret i32 %106
}

LLVM IR (-O2):
@str = [11 x i8] c"\0AMatriz A\0A\00"
@str.6 = [11 x i8] c"\0AMatriz B\0A\00"
@str.7 = [11 x i8] c"\0AMatriz C\0A\00"
@str.8 = [11 x i8] c"\0AMatriz D\0A\00"
@str.9 = [11 x i8] c"\0AMatriz E\0A\00"
@str.10 = [11 x i8] c"\0AMatriz F\0A\00"
define i32 @main() {
%1 = alloca [9 x i8]
%2 = tail call i32 (...) @imprimePontos()
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%4 = bitcast [9 x i8]* %1 to i8**
%5 = call i32 @limpaMatriz(i32 3, i32 3, i8** %4)
%6 = call i32 @matrizA(i32 3, i32 3, i8** %4)
%7 = call i32 @exibeMatriz(i32 3, i32 3, i8** %4)
%8 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.6, i64 0, i64 0))
%9 = call i32 @limpaMatriz(i32 3, i32 3, i8** %4)
%10 = call i32 @matrizB(i32 3, i32 3, i8** %4)
%11 = call i32 @exibeMatriz(i32 3, i32 3, i8** %4)
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.7, i64 0, i64 0))
%13 = call i32 @limpaMatriz(i32 3, i32 3, i8** %4)
%14 = call i32 @matrizC(i32 3, i32 3, i8** %4)
%15 = call i32 @exibeMatriz(i32 3, i32 3, i8** %4)
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.8, i64 0, i64 0))
%17 = call i32 @limpaMatriz(i32 3, i32 3, i8** %4)
%18 = call i32 @matrizD(i32 3, i32 3, i8** %4)
%19 = call i32 @exibeMatriz(i32 3, i32 3, i8** %4)
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.9, i64 0, i64 0))
%21 = call i32 @limpaMatriz(i32 3, i32 3, i8** %4)
%22 = call i32 @matrizE(i32 3, i32 3, i8** %4)
%23 = call i32 @exibeMatriz(i32 3, i32 3, i8** %4)
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.10, i64 0, i64 0))
%25 = call i32 @limpaMatriz(i32 3, i32 3, i8** %4)
%26 = call i32 @matrizA(i32 3, i32 3, i8** %4)
%27 = call i32 @exibeMatriz(i32 3, i32 3, i8** %4)
%28 = call i32 @limpaMatriz(i32 3, i32 3, i8** %4)
%29 = call i32 @matrizB(i32 3, i32 3, i8** %4)
%30 = call i32 @exibeMatriz(i32 3, i32 3, i8** %4)
ret i32 0
}