#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 *, ...);
int /*<<< orphan*/ system(char *);
void imprimir(int mapa[15][15], int d) {
  int i, j;
  system("CLS");
  for (i = 0; i < 15; i++) {
    printf("\n\t\t");
    for (j = 0; j < 15; j++) {
      printf("%c", mapa[i][j]);
    }
  }
  printf("\n\n\t Direccion = %d", d);
}


x86 assembly (clang, -O0):
<imprimir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <system@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0xf,-0x10(%rbp)
jge    11b0 <imprimir+0x90>
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0xf,-0x14(%rbp)
jge    119d <imprimir+0x7d>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
imul   $0x3c,%rcx,%rcx
add    %rcx,%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1161 <imprimir+0x41>
jmp    11a2 <imprimir+0x82>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1142 <imprimir+0x22>
mov    -0xc(%rbp),%esi
lea    0xe51(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<imprimir>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %rdi,%rbx
lea    0xebc(%rip),%rdi
call   1040 <system@plt>
mov    $0x38,%ebp
lea    0xeaf(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x38(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    -0x34(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    -0x30(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    -0x2c(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    -0x28(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    -0x24(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    -0x20(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    -0x1c(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    -0x18(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    -0x14(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    -0x10(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    -0xc(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    -0x8(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    -0x4(%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
mov    (%rbx,%rbp,1),%edi
call   1030 <putchar@plt>
add    $0x3c,%rbp
cmp    $0x3bc,%rbp
jne    1160 <imprimir+0x30>
lea    0xe00(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>

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

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