int main() {
  float a[10];
  float b[3][4];
  float c;
  printf("%s\n", funciondoble(5));
  noretornanada(3, 9);
  c = 0;
  porreferencia(&c);
  printf("%f\n", c);
  recibevector(a);
  recibematriz(b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x5,%edi
mov    $0x0,%al
call   1040 <funciondoble@plt>
mov    %eax,%esi
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x3,%edi
mov    $0x9,%esi
mov    $0x0,%al
call   1080 <noretornanada@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x64(%rbp)
lea    -0x64(%rbp),%rdi
mov    $0x0,%al
call   1050 <porreferencia@plt>
movss  -0x64(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe45(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x0,%al
call   1060 <recibevector@plt>
lea    -0x60(%rbp),%rdi
mov    $0x0,%al
call   1070 <recibematriz@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x78,%rsp
mov    $0x5,%edi
xor    %eax,%eax
call   1040 <funciondoble@plt>
lea    0xe89(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x3,%edi
mov    $0x9,%esi
xor    %eax,%eax
call   1080 <noretornanada@plt>
movl   $0x0,0xc(%rsp)
lea    0xc(%rsp),%rdi
xor    %eax,%eax
call   1050 <porreferencia@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe4e(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0x10(%rsp),%rdi
xor    %eax,%eax
call   1060 <recibevector@plt>
lea    0x40(%rsp),%rdi
xor    %eax,%eax
call   1070 <recibematriz@plt>
xor    %eax,%eax
add    $0x78,%rsp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x float]
%3 = alloca [3 x [4 x float]]
%4 = alloca float
store i32 0, i32* %1
%5 = call i32 (i32, ...) bitcast (i32 (...)* @funciondoble to i32 (i32, ...)*)(i32 5)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = call i32 (i32, i32, ...) bitcast (i32 (...)* @noretornanada to i32 (i32, i32, ...)*)(i32 3, i32 9)
store float 0.000000e+00, float* %4
%8 = call i32 (float*, ...) bitcast (i32 (...)* @porreferencia to i32 (float*, ...)*)(float* %4)
%9 = load float, float* %4
%10 = fpext float %9 to double
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %10)
%12 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 0
%13 = call i32 (float*, ...) bitcast (i32 (...)* @recibevector to i32 (float*, ...)*)(float* %12)
%14 = getelementptr inbounds [3 x [4 x float]], [3 x [4 x float]]* %3, i64 0, i64 0
%15 = call i32 ([4 x float]*, ...) bitcast (i32 (...)* @recibematriz to i32 ([4 x float]*, ...)*)([4 x float]* %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca [10 x float]
%2 = alloca [3 x [4 x float]]
%3 = alloca float
%4 = bitcast [10 x float]* %1 to i8*
%5 = bitcast [3 x [4 x float]]* %2 to i8*
%6 = bitcast float* %3 to i8*
%7 = tail call i32 (i32, ...) bitcast (i32 (...)* @funciondoble to i32 (i32, ...)*)(i32 5)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @noretornanada to i32 (i32, i32, ...)*)(i32 3, i32 9)
store float 0.000000e+00, float* %3
%10 = call i32 (float*, ...) bitcast (i32 (...)* @porreferencia to i32 (float*, ...)*)(float* %3)
%11 = load float, float* %3
%12 = fpext float %11 to double
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %12)
%14 = getelementptr inbounds [10 x float], [10 x float]* %1, i64 0, i64 0
%15 = call i32 (float*, ...) bitcast (i32 (...)* @recibevector to i32 (float*, ...)*)(float* %14)
%16 = getelementptr inbounds [3 x [4 x float]], [3 x [4 x float]]* %2, i64 0, i64 0
%17 = call i32 ([4 x float]*, ...) bitcast (i32 (...)* @recibematriz to i32 ([4 x float]*, ...)*)([4 x float]* %16)
ret i32 0
}