#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*/ imprimeMaior05(int **, int);
int /*<<< orphan*/ preencher05(int **, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main(int argc, const char *argv[]) {
  int A[100][100];
  int m, n;
  printf("Digite o tamanho da matriz MXN:\n");
  scanf("%d", &n);
  preencher05(A, n);
  imprimeMaior05(A, n);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x9c60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xea0(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb5(%rip),%rdi
lea    -0x9c58(%rbp),%rsi
call   1060 <scanf@plt>
lea    -0x9c50(%rbp),%rdi
mov    -0x9c58(%rbp),%esi
call   1030 <preencher05@plt>
lea    -0x9c50(%rbp),%rdi
mov    -0x9c58(%rbp),%esi
call   1050 <imprimeMaior05@plt>
xor    %eax,%eax
add    $0x9c60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x9c50,%rsp
lea    0xeb4(%rip),%rdi
call   1030 <puts@plt>
lea    0xea5(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1060 <scanf@plt>
mov    0xc(%rsp),%esi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <preencher05@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
call   1050 <imprimeMaior05@plt>
xor    %eax,%eax
add    $0x9c50,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [33 x i8] c"Digite o tamanho da matriz MXN:\0A\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [100 x [100 x i32]]
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%11 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %6, i64 0, i64 0
%12 = bitcast [100 x i32]* %11 to i32**
%13 = load i32, i32* %8
%14 = call i32 @preencher05(i32** %12, i32 %13)
%15 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %6, i64 0, i64 0
%16 = bitcast [100 x i32]* %15 to i32**
%17 = load i32, i32* %8
%18 = call i32 @imprimeMaior05(i32** %16, i32 %17)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@str = [32 x i8] c"Digite o tamanho da matriz MXN:\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [100 x [100 x i32]]
%4 = alloca i32
%5 = bitcast [100 x [100 x i32]]* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%9 = bitcast [100 x [100 x i32]]* %3 to i32**
%10 = load i32, i32* %4
%11 = call i32 @preencher05(i32** %9, i32 %10)
%12 = load i32, i32* %4
%13 = call i32 @imprimeMaior05(i32** %9, i32 %12)
ret i32 0
}