#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 *, ...);
void imprimeMatriz(int iMapaGeografico[][11]) {
  int iContador1 = 0;
  int iContador2 = 0;
  for (iContador1 = 0; iContador1 < 6; iContador1++) {
    printf("\n\t");
    for (iContador2 = 0; iContador2 < 11; iContador2++) {
      printf("%3d %s", iMapaGeografico[iContador1][iContador2], " ");
    }
    printf("\n\t");
  }
}


x86 assembly (clang, -O0):
<imprimeMatriz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x6,-0xc(%rbp)
jge    11af <imprimeMatriz+0x9f>
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0xb,-0x10(%rbp)
jge    1193 <imprimeMatriz+0x83>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   $0x2c,%rcx,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe8c(%rip),%rdi
lea    0xe8c(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1150 <imprimeMatriz+0x40>
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1131 <imprimeMatriz+0x21>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<imprimeMatriz>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdi,%r13
mov    $0x28,%ebx
lea    0xed8(%rip),%r14
lea    0xed4(%rip),%r15
lea    0xed4(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x28(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x24(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x20(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x1c(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x18(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x14(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x10(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0xc(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x8(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    -0x4(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x0(%r13,%rbx,1),%esi
mov    %r15,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x2c,%rbx
cmp    $0x130,%rbx
jne    1140 <imprimeMatriz+0x30>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"\0A\09\00"
@.str.1 = [7 x i8] c"%3d %s\00"
@.str.2 = [2 x i8] c" \00"
define void @imprimeMatriz([11 x i32]* %0) {
%2 = alloca [11 x i32]*
%3 = alloca i32
%4 = alloca i32
store [11 x i32]* %0, [11 x i32]** %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %3
br label %5
5: ; preds = %28, %1
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 6
br i1 %7, label %8, label %31
8: ; preds = %5
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %4
br label %10
10: ; preds = %23, %8
%11 = load i32, i32* %4
%12 = icmp slt i32 %11, 11
br i1 %12, label %13, label %26
13: ; preds = %10
%14 = load [11 x i32]*, [11 x i32]** %2
%15 = load i32, i32* %3
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [11 x i32], [11 x i32]* %14, i64 %16
%18 = load i32, i32* %4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [11 x i32], [11 x i32]* %17, i64 0, i64 %19
%21 = load i32, i32* %20
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %23
23: ; preds = %13
%24 = load i32, i32* %4
%25 = add nsw i32 %24, 1
store i32 %25, i32* %4
br label %10
26: ; preds = %10
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %28
28: ; preds = %26
%29 = load i32, i32* %3
%30 = add nsw i32 %29, 1
store i32 %30, i32* %3
br label %5
31: ; preds = %5
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"\0A\09\00"
@.str.1 = [7 x i8] c"%3d %s\00"
@.str.2 = [2 x i8] c" \00"
define void @imprimeMatriz([11 x i32]* nocapture %0) {
br label %2
2: ; preds = %1, %2
%3 = phi i64 [ 0, %1 ], [ %39, %2 ]
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = getelementptr inbounds [11 x i32], [11 x i32]* %0, i64 %3, i64 0
%6 = load i32, i32* %5
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%8 = getelementptr inbounds [11 x i32], [11 x i32]* %0, i64 %3, i64 1
%9 = load i32, i32* %8
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%11 = getelementptr inbounds [11 x i32], [11 x i32]* %0, i64 %3, i64 2
%12 = load i32, i32* %11
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%14 = getelementptr inbounds [11 x i32], [11 x i32]* %0, i64 %3, i64 3
%15 = load i32, i32* %14
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%17 = getelementptr inbounds [11 x i32], [11 x i32]* %0, i64 %3, i64 4
%18 = load i32, i32* %17
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%20 = getelementptr inbounds [11 x i32], [11 x i32]* %0, i64 %3, i64 5
%21 = load i32, i32* %20
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%23 = getelementptr inbounds [11 x i32], [11 x i32]* %0, i64 %3, i64 6
%24 = load i32, i32* %23
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%26 = getelementptr inbounds [11 x i32], [11 x i32]* %0, i64 %3, i64 7
%27 = load i32, i32* %26
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%29 = getelementptr inbounds [11 x i32], [11 x i32]* %0, i64 %3, i64 8
%30 = load i32, i32* %29
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%32 = getelementptr inbounds [11 x i32], [11 x i32]* %0, i64 %3, i64 9
%33 = load i32, i32* %32
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%35 = getelementptr inbounds [11 x i32], [11 x i32]* %0, i64 %3, i64 10
%36 = load i32, i32* %35
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%39 = add nuw nsw i64 %3, 1
%40 = icmp eq i64 %39, 6
br i1 %40, label %41, label %2
41: ; preds = %2
ret void
}