void iniMatriz(double **matriz) {
  int i, j;
  for (i = 0; i < 4; i++) {
    for (j = 0; j < 5; j++) {
      matriz[i][j] = 0;
    }
  }
  matriz[0][0] = 1;
  matriz[1][0] = 3;
  matriz[2][0] = 5;
  matriz[3][0] = 10;
  matriz[0][1] = 1;
  matriz[1][1] = 4.09861;
  matriz[2][1] = 6.60944;
  matriz[3][1] = 12.3026;
}


x86 assembly (clang, -O0):
<iniMatriz>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x4,-0xc(%rbp)
jge    1163 <iniMatriz+0x63>
movl   $0x0,-0x10(%rbp)
cmpl   $0x5,-0x10(%rbp)
jge    1150 <iniMatriz+0x50>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1120 <iniMatriz+0x20>
jmp    1155 <iniMatriz+0x55>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <iniMatriz+0xf>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsd  0xea6(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rax
movsd  0xeaa(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%rax
movsd  0xe8e(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%rax
movsd  0xe72(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsd  0xe57(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rax
movsd  0xe3a(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%rax
movsd  0xe1d(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%rax
movsd  0xe00(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<iniMatriz>:
mov    (%rdi),%rax
xorps  %xmm0,%xmm0
movups %xmm0,0x10(%rax)
movq   $0x0,0x20(%rax)
mov    0x8(%rdi),%rcx
movups %xmm0,0x10(%rcx)
movq   $0x0,0x20(%rcx)
mov    0x10(%rdi),%rdx
movups %xmm0,0x10(%rdx)
movq   $0x0,0x20(%rdx)
mov    0x18(%rdi),%rsi
movups %xmm0,0x10(%rsi)
movq   $0x0,0x20(%rsi)
movabs $0x3ff0000000000000,%r8
mov    %r8,(%rax)
movabs $0x4008000000000000,%rdi
mov    %rdi,(%rcx)
movabs $0x4014000000000000,%rdi
mov    %rdi,(%rdx)
movabs $0x4024000000000000,%rdi
mov    %rdi,(%rsi)
mov    %r8,0x8(%rax)
movabs $0x401064fa05143bf7,%rax
64 10 40
mov    %rax,0x8(%rcx)
movabs $0x401a70110a137f39,%rax
70 1a 40
mov    %rax,0x8(%rdx)
movabs $0x40289aee631f8a09,%rax
9a 28 40
mov    %rax,0x8(%rsi)
ret

LLVM IR (-O0):
define void @iniMatriz(double** %0) {
%2 = alloca double**
%3 = alloca i32
%4 = alloca i32
store double** %0, double*** %2
store i32 0, i32* %3
br label %5
5: ; preds = %25, %1
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 4
br i1 %7, label %8, label %28
8: ; preds = %5
store i32 0, i32* %4
br label %9
9: ; preds = %21, %8
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 5
br i1 %11, label %12, label %24
12: ; preds = %9
%13 = load double**, double*** %2
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds double*, double** %13, i64 %15
%17 = load double*, double** %16
%18 = load i32, i32* %4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds double, double* %17, i64 %19
store double 0.000000e+00, double* %20
br label %21
21: ; preds = %12
%22 = load i32, i32* %4
%23 = add nsw i32 %22, 1
store i32 %23, i32* %4
br label %9
24: ; preds = %9
br label %25
25: ; preds = %24
%26 = load i32, i32* %3
%27 = add nsw i32 %26, 1
store i32 %27, i32* %3
br label %5
28: ; preds = %5
%29 = load double**, double*** %2
%30 = getelementptr inbounds double*, double** %29, i64 0
%31 = load double*, double** %30
%32 = getelementptr inbounds double, double* %31, i64 0
store double 1.000000e+00, double* %32
%33 = load double**, double*** %2
%34 = getelementptr inbounds double*, double** %33, i64 1
%35 = load double*, double** %34
%36 = getelementptr inbounds double, double* %35, i64 0
store double 3.000000e+00, double* %36
%37 = load double**, double*** %2
%38 = getelementptr inbounds double*, double** %37, i64 2
%39 = load double*, double** %38
%40 = getelementptr inbounds double, double* %39, i64 0
store double 5.000000e+00, double* %40
%41 = load double**, double*** %2
%42 = getelementptr inbounds double*, double** %41, i64 3
%43 = load double*, double** %42
%44 = getelementptr inbounds double, double* %43, i64 0
store double 1.000000e+01, double* %44
%45 = load double**, double*** %2
%46 = getelementptr inbounds double*, double** %45, i64 0
%47 = load double*, double** %46
%48 = getelementptr inbounds double, double* %47, i64 1
store double 1.000000e+00, double* %48
%49 = load double**, double*** %2
%50 = getelementptr inbounds double*, double** %49, i64 1
%51 = load double*, double** %50
%52 = getelementptr inbounds double, double* %51, i64 1
store double 4.098610e+00, double* %52
%53 = load double**, double*** %2
%54 = getelementptr inbounds double*, double** %53, i64 2
%55 = load double*, double** %54
%56 = getelementptr inbounds double, double* %55, i64 1
store double 6.609440e+00, double* %56
%57 = load double**, double*** %2
%58 = getelementptr inbounds double*, double** %57, i64 3
%59 = load double*, double** %58
%60 = getelementptr inbounds double, double* %59, i64 1
store double 1.230260e+01, double* %60
ret void
}

LLVM IR (-O2):
define void @iniMatriz(double** nocapture %0) {
%2 = load double*, double** %0
%3 = getelementptr inbounds double, double* %2, i64 2
%4 = bitcast double* %3 to i8*
%5 = getelementptr inbounds double*, double** %0, i64 1
%6 = load double*, double** %5
%7 = getelementptr inbounds double, double* %6, i64 2
%8 = bitcast double* %7 to i8*
%9 = getelementptr inbounds double*, double** %0, i64 2
%10 = load double*, double** %9
%11 = getelementptr inbounds double, double* %10, i64 2
%12 = bitcast double* %11 to i8*
%13 = getelementptr inbounds double*, double** %0, i64 3
%14 = load double*, double** %13
%15 = getelementptr inbounds double, double* %14, i64 2
%16 = bitcast double* %15 to i8*
store double 1.000000e+00, double* %2
store double 3.000000e+00, double* %6
store double 5.000000e+00, double* %10
store double 1.000000e+01, double* %14
%17 = getelementptr inbounds double, double* %2, i64 1
store double 1.000000e+00, double* %17
%18 = getelementptr inbounds double, double* %6, i64 1
store double 4.098610e+00, double* %18
%19 = getelementptr inbounds double, double* %10, i64 1
store double 6.609440e+00, double* %19
%20 = getelementptr inbounds double, double* %14, i64 1
store double 1.230260e+01, double* %20
ret void
}