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

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void main() {
  int arreglo[10] = {-1, -2, -3, -4, -5, -6, -7, -8, -9, -10};
  int i, j;
  int arreglom[2][3] = {{-1, -2, -3}, {-4, -5, -6}};
  printf("----todas las entradas----\n");
  for (i = 0; i < sizeof(arreglo) / sizeof(arreglo[0]); i++)
    printf("arreglo[%d]=%d\n", i, arreglo[i]);
  printf("----direccion de memoria----\n");
  for (i = 0; i < sizeof(arreglo) / sizeof(arreglo[0]); i++)
    printf("posicion arreglo %d, memoria: %p\n", i, arreglo + i);
  printf("----solo entradas impares----\n");
  for (i = 0; i < sizeof(arreglo) / sizeof(arreglo[0]); i++) {
    if (i % 2 != 0)
      printf("arreglo[%d]=%d\n", i, arreglo[i]);
  }
  printf("----solo posiciones impares----\n");
  for (i = 0; i < sizeof(arreglo) / sizeof(arreglo[0]); i++) {
    if (i % 2 != 0)
      printf("posicion %d, memoria: %p\n", i, arreglo + i);
  }
  printf("----todas las entradas dos dim----\n");
  for (i = 0; i < sizeof(arreglom) / sizeof(arreglom[0]); i++) {
    for (j = 0; j < sizeof(arreglom[0]) / sizeof(arreglom[0][0]); j++)
      printf("arreglom[%d][%d] = %d\n", i, j, arreglom[i][j]);
  }
  printf("----direccion de memoria dos dim----\n");
  for (i = 0; i < sizeof(arreglom) / sizeof(arreglom[0][0]); i++)
    printf("posicion arreglo dos dim %d, memoria: %p\n", i, arreglom + i);
  printf("----solo entradas impares dos dim----\n");
  for (i = 0; i < sizeof(arreglom) / sizeof(arreglom[0]); i++) {
    for (j = 0; j < sizeof(arreglom[0]) / sizeof(arreglom[0][0]); j++) {
      if ((i + j) % 2 == 1) {
        printf("arreglom[%d][%d] = %d\n", i, j, arreglom[i][j]);
      }
    }
  }
  printf("----solo posiciones impares dos dim----\n");
  for (i = 0; i < sizeof(arreglom) / sizeof(arreglom[0][0]); i++) {
    if (i % 2 != 0)
      printf("posicion %d, memoria: %p\n", i, arreglom + i);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    -0x30(%rbp),%rdi
lea    0xecd(%rip),%rsi
mov    $0x28,%edx
call   1040 <memcpy@plt>
mov    0xeec(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xee9(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xee6(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xee3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movslq -0x34(%rbp),%rax
cmp    $0xa,%rax
jae    11a8 <main+0x88>
mov    -0x34(%rbp),%esi
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edx
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1173 <main+0x53>
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movslq -0x34(%rbp),%rax
cmp    $0xa,%rax
jae    11f9 <main+0xd9>
mov    -0x34(%rbp),%esi
lea    -0x30(%rbp),%rdx
movslq -0x34(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11bd <main+0x9d>
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movslq -0x34(%rbp),%rax
cmp    $0xa,%rax
jae    125c <main+0x13c>
mov    -0x34(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1249 <main+0x129>
mov    -0x34(%rbp),%esi
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edx
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    124e <main+0x12e>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    120e <main+0xee>
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movslq -0x34(%rbp),%rax
cmp    $0xa,%rax
jae    12c6 <main+0x1a6>
mov    -0x34(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     12b3 <main+0x193>
mov    -0x34(%rbp),%esi
lea    -0x30(%rbp),%rdx
movslq -0x34(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12b8 <main+0x198>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1271 <main+0x151>
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movslq -0x34(%rbp),%rax
cmp    $0x2,%rax
jae    1349 <main+0x229>
movl   $0x0,-0x38(%rbp)
movslq -0x38(%rbp),%rax
cmp    $0x3,%rax
jae    1336 <main+0x216>
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%edx
movslq -0x34(%rbp),%rcx
lea    -0x50(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12f0 <main+0x1d0>
jmp    133b <main+0x21b>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12db <main+0x1bb>
lea    0xdf9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movslq -0x34(%rbp),%rax
cmp    $0x6,%rax
jae    139a <main+0x27a>
mov    -0x34(%rbp),%esi
lea    -0x50(%rbp),%rdx
movslq -0x34(%rbp),%rax
imul   $0xc,%rax,%rax
add    %rax,%rdx
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    135e <main+0x23e>
lea    0xdf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movslq -0x34(%rbp),%rax
cmp    $0x2,%rax
jae    1439 <main+0x319>
movl   $0x0,-0x38(%rbp)
movslq -0x38(%rbp),%rax
cmp    $0x3,%rax
jae    1426 <main+0x306>
mov    -0x34(%rbp),%eax
add    -0x38(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
jne    1413 <main+0x2f3>
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%edx
movslq -0x34(%rbp),%rcx
lea    -0x50(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
lea    0xd26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1418 <main+0x2f8>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    13c4 <main+0x2a4>
jmp    142b <main+0x30b>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    13af <main+0x28f>
lea    0xd80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movslq -0x34(%rbp),%rax
cmp    $0x6,%rax
jae    14a3 <main+0x383>
mov    -0x34(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1490 <main+0x370>
mov    -0x34(%rbp),%esi
lea    -0x50(%rbp),%rdx
movslq -0x34(%rbp),%rax
imul   $0xc,%rax,%rax
add    %rax,%rdx
lea    0xc6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1495 <main+0x375>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    144e <main+0x32e>
add    $0x50,%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    0xeeb(%rip),%rax
mov    %rax,0x40(%rsp)
movaps 0xecf(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeb3(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
mov    0xee7(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0xecb(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xf65(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0xffffffff,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x24(%rsp),%r13
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0xfffffffe,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0xfffffffd,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x2c(%rsp),%r15
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0xfffffffc,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0xfffffffb,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x34(%rsp),%r14
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0xfffffffa,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0xfffffff9,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x3c(%rsp),%rbp
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0xfffffff8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0xfffffff7,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0xfffffff6,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe94(%rip),%rdi
call   1030 <puts@plt>
lea    0xdf0(%rip),%r12
lea    0x20(%rsp),%rdx
mov    %r12,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x1,%esi
mov    %r13,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x2,%esi
lea    0x28(%rsp),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x3,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x4,%esi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x5,%esi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x6,%esi
lea    0x38(%rsp),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x7,%esi
mov    %rbp,%rdx
mov    %rbp,%r15
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x8,%esi
lea    0x40(%rsp),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x9,%esi
lea    0x44(%rsp),%rbp
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xddb(%rip),%rdi
call   1030 <puts@plt>
mov    0x24(%rsp),%edx
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2c(%rsp),%edx
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x34(%rsp),%edx
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x3c(%rsp),%edx
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x44(%rsp),%edx
mov    %rbx,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd8e(%rip),%rdi
call   1030 <puts@plt>
lea    0xcd1(%rip),%r13
mov    %r13,%rdi
mov    $0x1,%esi
lea    0x24(%rsp),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x3,%esi
lea    0x2c(%rsp),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x5,%esi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x7,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x9,%esi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd3d(%rip),%rdi
call   1030 <puts@plt>
mov    (%rsp),%ecx
lea    0xc77(%rip),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%ecx
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%ecx
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc(%rsp),%r14
mov    0xc(%rsp),%ecx
mov    %rbp,%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%ecx
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%ecx
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcc8(%rip),%rdi
call   1030 <puts@plt>
lea    0xbf9(%rip),%rbx
mov    %rsp,%rdx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x18(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x24(%rsp),%r15
mov    %rbx,%rdi
mov    $0x3,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x30(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x3c(%rsp),%r12
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc63(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%ecx
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%ecx
mov    %rbp,%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%ecx
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc3b(%rip),%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
mov    $0x1,%esi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x3,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x5,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
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.arreglom = [2 x [3 x i32]] [[3 x i32] [i32 -1, i32 -2, i32 -3], [3 x i32] [i32 -4, i32 -5, i32 -6]]
@.str = [28 x i8] c"----todas las entradas----\0A\00"
@.str.1 = [16 x i8] c"arreglo[%d]=%d\0A\00"
@.str.2 = [30 x i8] c"----direccion de memoria----\0A\00"
@.str.3 = [34 x i8] c"posicion arreglo %d, memoria: %p\0A\00"
@.str.4 = [31 x i8] c"----solo entradas impares----\0A\00"
@.str.5 = [33 x i8] c"----solo posiciones impares----\0A\00"
@.str.6 = [26 x i8] c"posicion %d, memoria: %p\0A\00"
@.str.7 = [36 x i8] c"----todas las entradas dos dim----\0A\00"
@.str.8 = [23 x i8] c"arreglom[%d][%d] = %d\0A\00"
@.str.9 = [38 x i8] c"----direccion de memoria dos dim----\0A\00"
@.str.10 = [42 x i8] c"posicion arreglo dos dim %d, memoria: %p\0A\00"
@.str.11 = [39 x i8] c"----solo entradas impares dos dim----\0A\00"
@.str.12 = [41 x i8] c"----solo posiciones impares dos dim----\0A\00"
define void @main() {
%1 = alloca [10 x i32]
%2 = alloca i32
%3 = alloca i32
%4 = alloca [2 x [3 x i32]]
%5 = bitcast [10 x i32]* %1 to i8*
%6 = bitcast [2 x [3 x i32]]* %4 to i8*
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %8
8: ; preds = %19, %0
%9 = load i32, i32* %2
%10 = sext i32 %9 to i64
%11 = icmp ult i64 %10, 10
br i1 %11, label %12, label %22
12: ; preds = %8
%13 = load i32, i32* %2
%14 = load i32, i32* %2
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %15
%17 = load i32, i32* %16
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %13, i32 %17)
br label %19
19: ; preds = %12
%20 = load i32, i32* %2
%21 = add nsw i32 %20, 1
store i32 %21, i32* %2
br label %8
22: ; preds = %8
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %2
br label %24
24: ; preds = %35, %22
%25 = load i32, i32* %2
%26 = sext i32 %25 to i64
%27 = icmp ult i64 %26, 10
br i1 %27, label %28, label %38
28: ; preds = %24
%29 = load i32, i32* %2
%30 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%31 = load i32, i32* %2
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, i32* %30, i64 %32
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 %29, i32* %33)
br label %35
35: ; preds = %28
%36 = load i32, i32* %2
%37 = add nsw i32 %36, 1
store i32 %37, i32* %2
br label %24
38: ; preds = %24
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %2
br label %40
40: ; preds = %56, %38
%41 = load i32, i32* %2
%42 = sext i32 %41 to i64
%43 = icmp ult i64 %42, 10
br i1 %43, label %44, label %59
44: ; preds = %40
%45 = load i32, i32* %2
%46 = srem i32 %45, 2
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %55
48: ; preds = %44
%49 = load i32, i32* %2
%50 = load i32, i32* %2
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %51
%53 = load i32, i32* %52
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %49, i32 %53)
br label %55
55: ; preds = %48, %44
br label %56
56: ; preds = %55
%57 = load i32, i32* %2
%58 = add nsw i32 %57, 1
store i32 %58, i32* %2
br label %40
59: ; preds = %40
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %2
br label %61
61: ; preds = %77, %59
%62 = load i32, i32* %2
%63 = sext i32 %62 to i64
%64 = icmp ult i64 %63, 10
br i1 %64, label %65, label %80
65: ; preds = %61
%66 = load i32, i32* %2
%67 = srem i32 %66, 2
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %76
69: ; preds = %65
%70 = load i32, i32* %2
%71 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%72 = load i32, i32* %2
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, i32* %71, i64 %73
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 %70, i32* %74)
br label %76
76: ; preds = %69, %65
br label %77
77: ; preds = %76
%78 = load i32, i32* %2
%79 = add nsw i32 %78, 1
store i32 %79, i32* %2
br label %61
80: ; preds = %61
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %2
br label %82
82: ; preds = %106, %80
%83 = load i32, i32* %2
%84 = sext i32 %83 to i64
%85 = icmp ult i64 %84, 2
br i1 %85, label %86, label %109
86: ; preds = %82
store i32 0, i32* %3
br label %87
87: ; preds = %102, %86
%88 = load i32, i32* %3
%89 = sext i32 %88 to i64
%90 = icmp ult i64 %89, 3
br i1 %90, label %91, label %105
91: ; preds = %87
%92 = load i32, i32* %2
%93 = load i32, i32* %3
%94 = load i32, i32* %2
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %4, i64 0, i64 %95
%97 = load i32, i32* %3
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [3 x i32], [3 x i32]* %96, i64 0, i64 %98
%100 = load i32, i32* %99
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 %92, i32 %93, i32 %100)
br label %102
102: ; preds = %91
%103 = load i32, i32* %3
%104 = add nsw i32 %103, 1
store i32 %104, i32* %3
br label %87
105: ; preds = %87
br label %106
106: ; preds = %105
%107 = load i32, i32* %2
%108 = add nsw i32 %107, 1
store i32 %108, i32* %2
br label %82
109: ; preds = %82
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %2
br label %111
111: ; preds = %122, %109
%112 = load i32, i32* %2
%113 = sext i32 %112 to i64
%114 = icmp ult i64 %113, 6
br i1 %114, label %115, label %125
115: ; preds = %111
%116 = load i32, i32* %2
%117 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %4, i64 0, i64 0
%118 = load i32, i32* %2
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [3 x i32], [3 x i32]* %117, i64 %119
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i32 %116, [3 x i32]* %120)
br label %122
122: ; preds = %115
%123 = load i32, i32* %2
%124 = add nsw i32 %123, 1
store i32 %124, i32* %2
br label %111
125: ; preds = %111
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %2
br label %127
127: ; preds = %158, %125
%128 = load i32, i32* %2
%129 = sext i32 %128 to i64
%130 = icmp ult i64 %129, 2
br i1 %130, label %131, label %161
131: ; preds = %127
store i32 0, i32* %3
br label %132
132: ; preds = %154, %131
%133 = load i32, i32* %3
%134 = sext i32 %133 to i64
%135 = icmp ult i64 %134, 3
br i1 %135, label %136, label %157
136: ; preds = %132
%137 = load i32, i32* %2
%138 = load i32, i32* %3
%139 = add nsw i32 %137, %138
%140 = srem i32 %139, 2
%141 = icmp eq i32 %140, 1
br i1 %141, label %142, label %153
142: ; preds = %136
%143 = load i32, i32* %2
%144 = load i32, i32* %3
%145 = load i32, i32* %2
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %4, i64 0, i64 %146
%148 = load i32, i32* %3
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds [3 x i32], [3 x i32]* %147, i64 0, i64 %149
%151 = load i32, i32* %150
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 %143, i32 %144, i32 %151)
br label %153
153: ; preds = %142, %136
br label %154
154: ; preds = %153
%155 = load i32, i32* %3
%156 = add nsw i32 %155, 1
store i32 %156, i32* %3
br label %132
157: ; preds = %132
br label %158
158: ; preds = %157
%159 = load i32, i32* %2
%160 = add nsw i32 %159, 1
store i32 %160, i32* %2
br label %127
161: ; preds = %127
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %2
br label %163
163: ; preds = %179, %161
%164 = load i32, i32* %2
%165 = sext i32 %164 to i64
%166 = icmp ult i64 %165, 6
br i1 %166, label %167, label %182
167: ; preds = %163
%168 = load i32, i32* %2
%169 = srem i32 %168, 2
%170 = icmp ne i32 %169, 0
br i1 %170, label %171, label %178
171: ; preds = %167
%172 = load i32, i32* %2
%173 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %4, i64 0, i64 0
%174 = load i32, i32* %2
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds [3 x i32], [3 x i32]* %173, i64 %175
%177 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 %172, [3 x i32]* %176)
br label %178
178: ; preds = %171, %167
br label %179
179: ; preds = %178
%180 = load i32, i32* %2
%181 = add nsw i32 %180, 1
store i32 %181, i32* %2
br label %163
182: ; preds = %163
ret void
}

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.arreglom = [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.3 = [34 x i8] c"posicion arreglo %d, memoria: %p\0A\00"
@.str.6 = [26 x i8] c"posicion %d, memoria: %p\0A\00"
@.str.8 = [23 x i8] c"arreglom[%d][%d] = %d\0A\00"
@.str.10 = [42 x i8] c"posicion arreglo dos dim %d, memoria: %p\0A\00"
@str = [27 x i8] c"----todas las entradas----\00"
@str.13 = [29 x i8] c"----direccion de memoria----\00"
@str.14 = [30 x i8] c"----solo entradas impares----\00"
@str.15 = [32 x i8] c"----solo posiciones impares----\00"
@str.16 = [35 x i8] c"----todas las entradas dos dim----\00"
@str.17 = [37 x i8] c"----direccion de memoria dos dim----\00"
@str.18 = [38 x i8] c"----solo entradas impares dos dim----\00"
@str.19 = [40 x i8] c"----solo posiciones impares dos dim----\00"
define void @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 ([27 x i8], [27 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 ([29 x i8], [29 x i8]* @str.13, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 0, i32* %6)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 1, i32* %8)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 2, i32* %10)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 3, i32* %12)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 4, i32* %14)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 5, i32* %16)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 6, i32* %18)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 7, i32* %20)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 8, i32* %22)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 9, i32* %24)
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.14, i64 0, i64 0))
%38 = load i32, i32* %8
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 %38)
%40 = load i32, i32* %12
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 3, i32 %40)
%42 = load i32, i32* %16
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 5, i32 %42)
%44 = load i32, i32* %20
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 7, i32 %44)
%46 = load i32, i32* %24
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 9, i32 %46)
%48 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.15, i64 0, i64 0))
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 1, i32* %8)
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 3, i32* %12)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 5, i32* %16)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 7, i32* %20)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 9, i32* %24)
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.16, i64 0, i64 0))
%55 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 0, i64 0
%56 = load i32, i32* %55
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 0, i32 0, i32 %56)
%58 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 0, i64 1
%59 = load i32, i32* %58
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 0, i32 1, i32 %59)
%61 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 0, i64 2
%62 = load i32, i32* %61
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 0, i32 2, i32 %62)
%64 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 1, i64 0
%65 = load i32, i32* %64
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 1, i32 0, i32 %65)
%67 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 1, i64 1
%68 = load i32, i32* %67
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 1, i32 1, i32 %68)
%70 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 1, i64 2
%71 = load i32, i32* %70
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 1, i32 2, i32 %71)
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.17, i64 0, i64 0))
%74 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 0
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i32 0, [3 x i32]* %74)
%76 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 1
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i32 1, [3 x i32]* %76)
%78 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 2
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i32 2, [3 x i32]* %78)
%80 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 3
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i32 3, [3 x i32]* %80)
%82 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 4
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i32 4, [3 x i32]* %82)
%84 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 5
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0), i32 5, [3 x i32]* %84)
%86 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.18, i64 0, i64 0))
%87 = load i32, i32* %58
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 0, i32 1, i32 %87)
%89 = load i32, i32* %64
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 1, i32 0, i32 %89)
%91 = load i32, i32* %70
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 1, i32 2, i32 %91)
%93 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.19, i64 0, i64 0))
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 1, [3 x i32]* %76)
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 3, [3 x i32]* %80)
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 5, [3 x i32]* %84)
ret void
}