#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 */
typedef int /*<<< orphan*/ arreglo_mult;
typedef int /*<<< orphan*/ arreglo;

/* Variables and functions */
int /*<<< orphan*/ imprime_direcciones(int *, int, int);
int /*<<< orphan*/ imprime_valores(int *, int, int);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int i, j;
  int arreglo[] = {-1, -2, -3, -4, -5, -6, -7, -8, -9, -10};
  int arreglo_mult[][3] = {{-1, -2, -3}, {-4, -5, -6}};
  printf("\n Imprimimos el arreglo\n");
  int longitud_arreglo = sizeof(arreglo) / sizeof(arreglo[0]);
  for (i = 0; i < longitud_arreglo; i++) {
    printf("arreglo[%d]=%d\n", i, arreglo[i]);
  }
  printf("\n Mostramos los valores pares del arreglo\n");
  imprime_valores(arreglo, longitud_arreglo, 0);
  printf("\n Imprimimos las direcciones del arreglo\n");
  for (i = 0; i < longitud_arreglo; i++) {
    printf("arreglo[%d]=%p\n", i, &arreglo[i]);
  }
  printf("\n Mostramos las direcciones de memoria pares del arreglo\n");
  imprime_direcciones(arreglo, longitud_arreglo, 0);
  printf("\n Imprimios el arreglo multidimensional\n");
  int longitud_arreglo_mult = sizeof(arreglo_mult) / sizeof(arreglo_mult[0]);
  int num_columnas = sizeof(arreglo_mult[0]) / sizeof(arreglo_mult[0][0]);
  for (i = 0; i < longitud_arreglo_mult; i++) {
    for (j = 0; j < num_columnas; j++)
      printf("arreglo_mult[%d][%d] = %d\t", i, j, arreglo_mult[i][j]);
    printf("\n");
  }
  printf("\n Mostramos los valores pares del arreglo multidimensional\n");
  imprime_valores(&arreglo_mult[0][0], longitud_arreglo_mult, num_columnas);
  printf("\n Imprimimos las direcciones de memora del arrreglo "
         "multidimensional\n");
  for (i = 0; i < longitud_arreglo_mult; i++) {
    for (j = 0; j < num_columnas; j++)
      printf("arreglo_mult[%d][%d] = %p\t", i, j, &arreglo_mult[i][j]);
    printf("\n");
  }
  printf("\n Mostramos las direcciones de memoria pares del arreglo "
         "multidimensional\n");
  imprime_direcciones(&arreglo_mult[0][0], longitud_arreglo_mult, num_columnas);
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xea6(%rip),%rsi
mov    $0x28,%edx
call   1060 <memcpy@plt>
mov    0xec5(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xec2(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xebf(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0xa,-0x64(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x64(%rbp),%eax
jge    11d4 <main+0x94>
mov    -0x8(%rbp),%esi
movslq -0x8(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edx
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11a1 <main+0x61>
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x40(%rbp),%rdi
mov    -0x64(%rbp),%esi
xor    %edx,%edx
call   1050 <imprime_valores@plt>
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x64(%rbp),%eax
jge    123f <main+0xff>
mov    -0x8(%rbp),%esi
movslq -0x8(%rbp),%rax
lea    -0x40(%rbp),%rdx
shl    $0x2,%rax
add    %rax,%rdx
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1205 <main+0xc5>
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x40(%rbp),%rdi
mov    -0x64(%rbp),%esi
xor    %edx,%edx
call   1040 <imprime_direcciones@plt>
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x2,-0x68(%rbp)
movl   $0x3,-0x6c(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x68(%rbp),%eax
jge    12f1 <main+0x1b1>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x6c(%rbp),%eax
jge    12d5 <main+0x195>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
movslq -0x8(%rbp),%rcx
lea    -0x60(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
lea    0xe79(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1291 <main+0x151>
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    127e <main+0x13e>
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x60(%rbp),%rdi
mov    -0x68(%rbp),%esi
mov    -0x6c(%rbp),%edx
call   1050 <imprime_valores@plt>
lea    0xe7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x68(%rbp),%eax
jge    139a <main+0x25a>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x6c(%rbp),%eax
jge    137e <main+0x23e>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
movslq -0x8(%rbp),%rax
lea    -0x60(%rbp),%rcx
imul   $0xc,%rax,%rax
add    %rax,%rcx
movslq -0xc(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1336 <main+0x1f6>
lea    0xcea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1323 <main+0x1e3>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x60(%rbp),%rdi
mov    -0x68(%rbp),%esi
mov    -0x6c(%rbp),%edx
call   1040 <imprime_direcciones@plt>
lea    0xcb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    0xebb(%rip),%rax
mov    %rax,0x40(%rsp)
movaps 0xe9f(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe83(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
mov    0xeb7(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0xe9b(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xefe(%rip),%rdi
call   1040 <puts@plt>
lea    0xe9c(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0xffffffff,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0xfffffffe,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0xfffffffd,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0xfffffffc,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0xfffffffb,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x34(%rsp),%r14
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0xfffffffa,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x38(%rsp),%r15
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0xfffffff9,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x3c(%rsp),%r12
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0xfffffff8,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0xfffffff7,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x44(%rsp),%r13
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0xfffffff6,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe2a(%rip),%rdi
call   1040 <puts@plt>
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %edx,%edx
call   1070 <imprime_valores@plt>
lea    0xe34(%rip),%rdi
call   1040 <puts@plt>
lea    0xda0(%rip),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
lea    0x24(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x2,%esi
lea    0x28(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x3,%esi
lea    0x2c(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x4,%esi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x5,%esi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x6,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x7,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x8,%esi
lea    0x40(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x9,%esi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd8f(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %edx,%edx
call   1060 <imprime_direcciones@plt>
lea    0xdad(%rip),%rdi
call   1040 <puts@plt>
lea    0xcc7(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
mov    $0xffffffff,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x4(%rsp),%r14
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0xfffffffe,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8(%rsp),%r15
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x2,%edx
mov    $0xfffffffd,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xc(%rsp),%r12
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %edx,%edx
mov    $0xfffffffc,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0xfffffffb,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x14(%rsp),%r13
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0xfffffffa,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd13(%rip),%rdi
call   1040 <puts@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x3,%edx
call   1070 <imprime_valores@plt>
lea    0xd2d(%rip),%rdi
call   1040 <puts@plt>
lea    0xbff(%rip),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
xor    %edx,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    %r14,%rcx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x2,%edx
mov    %r15,%rcx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
xor    %edx,%edx
mov    %r12,%rcx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
lea    0x10(%rsp),%rcx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    %r13,%rcx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xcce(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x3,%edx
call   1060 <imprime_direcciones@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.arreglo = [10 x i32] [i32 -1, i32 -2, i32 -3, i32 -4, i32 -5, i32 -6, i32 -7, i32 -8, i32 -9, i32 -10]
@__const.main.arreglo_mult = [2 x [3 x i32]] [[3 x i32] [i32 -1, i32 -2, i32 -3], [3 x i32] [i32 -4, i32 -5, i32 -6]]
@.str = [25 x i8] c"\0A Imprimimos el arreglo\0A\00"
@.str.1 = [16 x i8] c"arreglo[%d]=%d\0A\00"
@.str.2 = [43 x i8] c"\0A Mostramos los valores pares del arreglo\0A\00"
@.str.3 = [42 x i8] c"\0A Imprimimos las direcciones del arreglo\0A\00"
@.str.4 = [16 x i8] c"arreglo[%d]=%p\0A\00"
@.str.5 = [58 x i8] c"\0A Mostramos las direcciones de memoria pares del arreglo\0A\00"
@.str.6 = [41 x i8] c"\0A Imprimios el arreglo multidimensional\0A\00"
@.str.7 = [27 x i8] c"arreglo_mult[%d][%d] = %d\09\00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [60 x i8] c"\0A Mostramos los valores pares del arreglo multidimensional\0A\00"
@.str.10 = [70 x i8] c"\0A Imprimimos las direcciones de memora del arrreglo multidimensional\0A\00"
@.str.11 = [27 x i8] c"arreglo_mult[%d][%d] = %p\09\00"
@.str.12 = [75 x i8] c"\0A Mostramos las direcciones de memoria pares del arreglo multidimensional\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [10 x i32]
%5 = alloca [2 x [3 x i32]]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
%9 = bitcast [10 x i32]* %4 to i8*
%10 = bitcast [2 x [3 x i32]]* %5 to i8*
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
store i32 10, i32* %6
store i32 0, i32* %2
br label %12
12: ; preds = %23, %0
%13 = load i32, i32* %2
%14 = load i32, i32* %6
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %26
16: ; preds = %12
%17 = load i32, i32* %2
%18 = load i32, i32* %2
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %19
%21 = load i32, i32* %20
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %17, i32 %21)
br label %23
23: ; preds = %16
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 1
store i32 %25, i32* %2
br label %12
26: ; preds = %12
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%28 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 0
%29 = load i32, i32* %6
%30 = call i32 @imprime_valores(i32* %28, i32 %29, i32 0)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %2
br label %32
32: ; preds = %42, %26
%33 = load i32, i32* %2
%34 = load i32, i32* %6
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %45
36: ; preds = %32
%37 = load i32, i32* %2
%38 = load i32, i32* %2
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %39
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %37, i32* %40)
br label %42
42: ; preds = %36
%43 = load i32, i32* %2
%44 = add nsw i32 %43, 1
store i32 %44, i32* %2
br label %32
45: ; preds = %32
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0))
%47 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 0
%48 = load i32, i32* %6
%49 = call i32 @imprime_direcciones(i32* %47, i32 %48, i32 0)
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
store i32 2, i32* %7
store i32 3, i32* %8
store i32 0, i32* %2
br label %51
51: ; preds = %76, %45
%52 = load i32, i32* %2
%53 = load i32, i32* %7
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %79
55: ; preds = %51
store i32 0, i32* %3
br label %56
56: ; preds = %71, %55
%57 = load i32, i32* %3
%58 = load i32, i32* %8
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %74
60: ; preds = %56
%61 = load i32, i32* %2
%62 = load i32, i32* %3
%63 = load i32, i32* %2
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 %64
%66 = load i32, i32* %3
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [3 x i32], [3 x i32]* %65, i64 0, i64 %67
%69 = load i32, i32* %68
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 %61, i32 %62, i32 %69)
br label %71
71: ; preds = %60
%72 = load i32, i32* %3
%73 = add nsw i32 %72, 1
store i32 %73, i32* %3
br label %56
74: ; preds = %56
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %76
76: ; preds = %74
%77 = load i32, i32* %2
%78 = add nsw i32 %77, 1
store i32 %78, i32* %2
br label %51
79: ; preds = %51
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0))
%81 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 0
%82 = getelementptr inbounds [3 x i32], [3 x i32]* %81, i64 0, i64 0
%83 = load i32, i32* %7
%84 = load i32, i32* %8
%85 = call i32 @imprime_valores(i32* %82, i32 %83, i32 %84)
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %2
br label %87
87: ; preds = %111, %79
%88 = load i32, i32* %2
%89 = load i32, i32* %7
%90 = icmp slt i32 %88, %89
br i1 %90, label %91, label %114
91: ; preds = %87
store i32 0, i32* %3
br label %92
92: ; preds = %106, %91
%93 = load i32, i32* %3
%94 = load i32, i32* %8
%95 = icmp slt i32 %93, %94
br i1 %95, label %96, label %109
96: ; preds = %92
%97 = load i32, i32* %2
%98 = load i32, i32* %3
%99 = load i32, i32* %2
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 %100
%102 = load i32, i32* %3
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [3 x i32], [3 x i32]* %101, i64 0, i64 %103
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i32 %97, i32 %98, i32* %104)
br label %106
106: ; preds = %96
%107 = load i32, i32* %3
%108 = add nsw i32 %107, 1
store i32 %108, i32* %3
br label %92
109: ; preds = %92
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %111
111: ; preds = %109
%112 = load i32, i32* %2
%113 = add nsw i32 %112, 1
store i32 %113, i32* %2
br label %87
114: ; preds = %87
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.12, i64 0, i64 0))
%116 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %5, i64 0, i64 0
%117 = getelementptr inbounds [3 x i32], [3 x i32]* %116, i64 0, i64 0
%118 = load i32, i32* %7
%119 = load i32, i32* %8
%120 = call i32 @imprime_direcciones(i32* %117, i32 %118, i32 %119)
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@__const.main.arreglo = [10 x i32] [i32 -1, i32 -2, i32 -3, i32 -4, i32 -5, i32 -6, i32 -7, i32 -8, i32 -9, i32 -10]
@__const.main.arreglo_mult = [2 x [3 x i32]] [[3 x i32] [i32 -1, i32 -2, i32 -3], [3 x i32] [i32 -4, i32 -5, i32 -6]]
@.str.1 = [16 x i8] c"arreglo[%d]=%d\0A\00"
@.str.4 = [16 x i8] c"arreglo[%d]=%p\0A\00"
@.str.7 = [27 x i8] c"arreglo_mult[%d][%d] = %d\09\00"
@.str.11 = [27 x i8] c"arreglo_mult[%d][%d] = %p\09\00"
@str = [24 x i8] c"\0A Imprimimos el arreglo\00"
@str.13 = [42 x i8] c"\0A Mostramos los valores pares del arreglo\00"
@str.14 = [41 x i8] c"\0A Imprimimos las direcciones del arreglo\00"
@str.15 = [57 x i8] c"\0A Mostramos las direcciones de memoria pares del arreglo\00"
@str.16 = [40 x i8] c"\0A Imprimios el arreglo multidimensional\00"
@str.17 = [59 x i8] c"\0A Mostramos los valores pares del arreglo multidimensional\00"
@str.18 = [69 x i8] c"\0A Imprimimos las direcciones de memora del arrreglo multidimensional\00"
@str.19 = [74 x i8] c"\0A Mostramos las direcciones de memoria pares del arreglo multidimensional\00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = alloca [2 x [3 x i32]]
%3 = bitcast [10 x i32]* %1 to i8*
%4 = bitcast [2 x [3 x i32]]* %2 to i8*
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%6 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 -1)
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 -2)
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 -3)
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 3, i32 -4)
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 4, i32 -5)
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 5, i32 -6)
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 6, i32 -7)
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 7, i32 -8)
%22 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 8, i32 -9)
%24 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 9, i32 -10)
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.13, i64 0, i64 0))
%27 = call i32 @imprime_valores(i32* %6, i32 10, i32 0)
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.14, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 0, i32* %6)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 1, i32* %8)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 2, i32* %10)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 3, i32* %12)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 4, i32* %14)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 5, i32* %16)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 6, i32* %18)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 7, i32* %20)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 8, i32* %22)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 9, i32* %24)
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.15, i64 0, i64 0))
%40 = call i32 @imprime_direcciones(i32* %6, i32 10, i32 0)
%41 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.16, i64 0, i64 0))
%42 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 0, i64 0
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 0, i32 0, i32 -1)
%44 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 0, i64 1
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 0, i32 1, i32 -2)
%46 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 0, i64 2
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 0, i32 2, i32 -3)
%48 = call i32 @putchar(i32 10)
%49 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 1, i64 0
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 1, i32 0, i32 -4)
%51 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 1, i64 1
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 1, i32 1, i32 -5)
%53 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 1, i64 2
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 1, i32 2, i32 -6)
%55 = call i32 @putchar(i32 10)
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.17, i64 0, i64 0))
%57 = call i32 @imprime_valores(i32* %42, i32 2, i32 3)
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.18, i64 0, i64 0))
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i32 0, i32 0, i32* %42)
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i32 0, i32 1, i32* %44)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i32 0, i32 2, i32* %46)
%62 = call i32 @putchar(i32 10)
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i32 1, i32 0, i32* %49)
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i32 1, i32 1, i32* %51)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i32 1, i32 2, i32* %53)
%66 = call i32 @putchar(i32 10)
%67 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.19, i64 0, i64 0))
%68 = call i32 @imprime_direcciones(i32* %42, i32 2, i32 3)
%69 = call i32 @putchar(i32 10)
ret i32 0
}