#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 */
typedef struct TYPE_6__ TYPE_3__;
typedef struct TYPE_5__ TYPE_2__;
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ arreglo;
struct TYPE_6__ {
  int member_0;
  int member_1;
  int member_2;
};
struct TYPE_5__ {
  int member_0;
  int member_1;
  int member_2;
};
struct TYPE_4__ {
  int member_0;
  int member_1;
  int member_2;
};

/* Variables and functions */
int /*<<< orphan*/ printAdress(int *, int);
int /*<<< orphan*/ printValue(int *, int);
int /*<<< orphan*/ printf(char *, int **);
int main() {
  int arreglo[] = {-1, -2, -3, -4, -5, -6, -7, -8, -9, -10};
  int arreglo2[][3][3] = {{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}},
                          {{10, 11, 12}, {13, 14, 15}, {16, 17, 18}}};
  printValue(&arreglo[0], sizeof(arreglo) / sizeof(arreglo[0]));
  printAdress(&arreglo[0], sizeof(arreglo) / sizeof(arreglo[0]));
  printValue(&arreglo2[0][0][0], 18);
  printAdress(&arreglo2[0][0][0], 18);
  printf("apuntador %p", arreglo2[0]);
  printf("apuntador %p", arreglo2[1]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xea3(%rip),%rsi
mov    $0x28,%edx
call   1040 <memcpy@plt>
lea    -0x80(%rbp),%rdi
lea    0xebe(%rip),%rsi
mov    $0x48,%edx
call   1040 <memcpy@plt>
lea    -0x30(%rbp),%rdi
mov    $0xa,%esi
call   1050 <printValue@plt>
lea    -0x30(%rbp),%rdi
mov    $0xa,%esi
call   1060 <printAdress@plt>
lea    -0x80(%rbp),%rdi
mov    $0x12,%esi
call   1050 <printValue@plt>
lea    -0x80(%rbp),%rdi
mov    $0x12,%esi
call   1060 <printAdress@plt>
lea    -0x80(%rbp),%rsi
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
lea    -0x80(%rbp),%rsi
add    $0x24,%rsi
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x78,%rsp
mov    0xee2(%rip),%rax
mov    %rax,0x20(%rsp)
movaps 0xec6(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeaa(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    0xf0f(%rip),%rax
mov    %rax,0x70(%rsp)
movaps 0xef3(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xed7(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xebb(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe9f(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
call   1040 <printValue@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1050 <printAdress@plt>
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x12,%esi
call   1040 <printValue@plt>
mov    %rbx,%rdi
mov    $0x12,%esi
call   1050 <printAdress@plt>
lea    0xe9f(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0x54(%rsp),%rsi
mov    %r14,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r14
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.arreglo2 = [2 x [3 x [3 x i32]]] [[3 x [3 x i32]] [[3 x i32] [i32 1, i32 2, i32 3], [3 x i32] [i32 4, i32 5, i32 6], [3 x i32] [i32 7, i32 8, i32 9]], [3 x [3 x i32]] [[3 x i32] [i32 10, i32 11, i32 12], [3 x i32] [i32 13, i32 14, i32 15], [3 x i32] [i32 16, i32 17, i32 18]]]
@.str = [13 x i8] c"apuntador %p\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca [2 x [3 x [3 x i32]]]
store i32 0, i32* %1
%4 = bitcast [10 x i32]* %2 to i8*
%5 = bitcast [2 x [3 x [3 x i32]]]* %3 to i8*
%6 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%7 = call i32 @printValue(i32* %6, i32 10)
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%9 = call i32 @printAdress(i32* %8, i32 10)
%10 = getelementptr inbounds [2 x [3 x [3 x i32]]], [2 x [3 x [3 x i32]]]* %3, i64 0, i64 0
%11 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %10, i64 0, i64 0
%12 = getelementptr inbounds [3 x i32], [3 x i32]* %11, i64 0, i64 0
%13 = call i32 @printValue(i32* %12, i32 18)
%14 = getelementptr inbounds [2 x [3 x [3 x i32]]], [2 x [3 x [3 x i32]]]* %3, i64 0, i64 0
%15 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %14, i64 0, i64 0
%16 = getelementptr inbounds [3 x i32], [3 x i32]* %15, i64 0, i64 0
%17 = call i32 @printAdress(i32* %16, i32 18)
%18 = getelementptr inbounds [2 x [3 x [3 x i32]]], [2 x [3 x [3 x i32]]]* %3, i64 0, i64 0
%19 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %18, i64 0, i64 0
%20 = bitcast [3 x i32]* %19 to i32**
%21 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32** %20)
%22 = getelementptr inbounds [2 x [3 x [3 x i32]]], [2 x [3 x [3 x i32]]]* %3, i64 0, i64 1
%23 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %22, i64 0, i64 0
%24 = bitcast [3 x i32]* %23 to i32**
%25 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32** %24)
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.arreglo2 = [2 x [3 x [3 x i32]]] [[3 x [3 x i32]] [[3 x i32] [i32 1, i32 2, i32 3], [3 x i32] [i32 4, i32 5, i32 6], [3 x i32] [i32 7, i32 8, i32 9]], [3 x [3 x i32]] [[3 x i32] [i32 10, i32 11, i32 12], [3 x i32] [i32 13, i32 14, i32 15], [3 x i32] [i32 16, i32 17, i32 18]]]
@.str = [13 x i8] c"apuntador %p\00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = alloca [2 x [3 x [3 x i32]]]
%3 = bitcast [10 x i32]* %1 to i8*
%4 = bitcast [2 x [3 x [3 x i32]]]* %2 to i8*
%5 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%6 = call i32 @printValue(i32* %5, i32 10)
%7 = call i32 @printAdress(i32* %5, i32 10)
%8 = getelementptr inbounds [2 x [3 x [3 x i32]]], [2 x [3 x [3 x i32]]]* %2, i64 0, i64 0, i64 0, i64 0
%9 = call i32 @printValue(i32* %8, i32 18)
%10 = call i32 @printAdress(i32* %8, i32 18)
%11 = bitcast [2 x [3 x [3 x i32]]]* %2 to i32**
%12 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32** %11)
%13 = getelementptr inbounds [2 x [3 x [3 x i32]]], [2 x [3 x [3 x i32]]]* %2, i64 0, i64 1, i64 0
%14 = bitcast [3 x i32]* %13 to i32**
%15 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32** %14)
ret i32 0
}