int main() {
  int d1array[10] = {-1, -2, -3, -4, -5, -6, -7, -8, -9, -10};
  int d2array[2][3] = {{-1, -2, -3}, {-4, -5, -6}};
  int size_d1 = sizeof(d1array) / sizeof(d1array[0]);
  int size_d2 = sizeof(d2array) / sizeof(d2array[0][0]);
  int *d1_pointer = &d1array;
  int *d2_pointer = &d2array;
  printf("El argumento es un arreglo es de tamaño %d \n \n", size_d1);
  printf(" |-------- VALORES --------- | \n\n");
  funcion_uno(d1_pointer, size_d1);
  printf(" |-------- DIRECCIONES --------- | \n\n");
  funcion_dos(d1_pointer, size_d1);
  printf(" |-------- --------- --------- | \n\n");
  printf("El argumento es un arreglo es de tamaño %d \n \n", size_d2);
  printf(" |-------- VALORES --------- | \n\n");
  funcion_uno(d2_pointer, size_d2);
  printf(" |-------- DIRECCIONES --------- | \n\n");
  funcion_dos(d2_pointer, size_d2);
  printf(" |-------- --------- --------- | \n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xea6(%rip),%rsi
mov    $0x28,%edx
call   1060 <memcpy@plt>
mov    0xec5(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xec2(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xebf(%rip),%rax
mov    %rax,-0x40(%rbp)
movl   $0xa,-0x54(%rbp)
movl   $0x6,-0x58(%rbp)
lea    -0x30(%rbp),%rax
mov    %rax,-0x60(%rbp)
lea    -0x50(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x54(%rbp),%esi
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x60(%rbp),%rdi
mov    -0x54(%rbp),%esi
mov    $0x0,%al
call   1040 <funcion_uno@plt>
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x60(%rbp),%rdi
mov    -0x54(%rbp),%esi
mov    $0x0,%al
call   1050 <funcion_dos@plt>
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%esi
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x68(%rbp),%rdi
mov    -0x58(%rbp),%esi
mov    $0x0,%al
call   1040 <funcion_uno@plt>
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x68(%rbp),%rdi
mov    -0x58(%rbp),%esi
mov    $0x0,%al
call   1050 <funcion_dos@plt>
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x50,%rsp
mov    0xecc(%rip),%rax
mov    %rax,0x40(%rsp)
movaps 0xeb0(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe94(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
mov    0xec8(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0xeac(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xeb9(%rip),%r14
mov    %r14,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed3(%rip),%r15
mov    %r15,%rdi
call   1030 <puts@plt>
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1050 <funcion_uno@plt>
lea    0xed1(%rip),%r12
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1060 <funcion_dos@plt>
lea    0xed8(%rip),%r13
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <funcion_uno@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1060 <funcion_dos@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.d1array = [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.d2array = [2 x [3 x i32]] [[3 x i32] [i32 -1, i32 -2, i32 -3], [3 x i32] [i32 -4, i32 -5, i32 -6]]
@.str = [48 x i8] c"El argumento es un arreglo es de tama\C3\B1o %d \0A \0A\00"
@.str.1 = [34 x i8] c" |-------- VALORES --------- | \0A\0A\00"
@.str.2 = [38 x i8] c" |-------- DIRECCIONES --------- | \0A\0A\00"
@.str.3 = [36 x i8] c" |-------- --------- --------- | \0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca [2 x [3 x i32]]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32*
store i32 0, i32* %1
%8 = bitcast [10 x i32]* %2 to i8*
%9 = bitcast [2 x [3 x i32]]* %3 to i8*
store i32 10, i32* %4
store i32 6, i32* %5
%10 = bitcast [10 x i32]* %2 to i32*
store i32* %10, i32** %6
%11 = bitcast [2 x [3 x i32]]* %3 to i32*
store i32* %11, i32** %7
%12 = load i32, i32* %4
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%15 = load i32*, i32** %6
%16 = load i32, i32* %4
%17 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @funcion_uno to i32 (i32*, i32, ...)*)(i32* %15, i32 %16)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%19 = load i32*, i32** %6
%20 = load i32, i32* %4
%21 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @funcion_dos to i32 (i32*, i32, ...)*)(i32* %19, i32 %20)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%23 = load i32, i32* %5
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 %23)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%26 = load i32*, i32** %7
%27 = load i32, i32* %5
%28 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @funcion_uno to i32 (i32*, i32, ...)*)(i32* %26, i32 %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%30 = load i32*, i32** %7
%31 = load i32, i32* %5
%32 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @funcion_dos to i32 (i32*, i32, ...)*)(i32* %30, i32 %31)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@__const.main.d1array = [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.d2array = [2 x [3 x i32]] [[3 x i32] [i32 -1, i32 -2, i32 -3], [3 x i32] [i32 -4, i32 -5, i32 -6]]
@.str = [48 x i8] c"El argumento es un arreglo es de tama\C3\B1o %d \0A \0A\00"
@str.6 = [33 x i8] c" |-------- VALORES --------- | \0A\00"
@str.7 = [37 x i8] c" |-------- DIRECCIONES --------- | \0A\00"
@str.8 = [35 x i8] c" |-------- --------- --------- | \0A\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 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%6 = getelementptr inbounds [2 x [3 x i32]], [2 x [3 x i32]]* %2, i64 0, i64 0, i64 0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 10)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.6, i64 0, i64 0))
%9 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @funcion_uno to i32 (i32*, i32, ...)*)(i32* %5, i32 10)
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.7, i64 0, i64 0))
%11 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @funcion_dos to i32 (i32*, i32, ...)*)(i32* %5, i32 10)
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 6)
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.6, i64 0, i64 0))
%15 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @funcion_uno to i32 (i32*, i32, ...)*)(i32* %6, i32 6)
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.7, i64 0, i64 0))
%17 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @funcion_dos to i32 (i32*, i32, ...)*)(i32* %6, i32 6)
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.8, i64 0, i64 0))
ret i32 0
}