#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 */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, float);
void main() {
  register int i, j;
  float a[3][2] = {{1.0, 5.0}, {3.0, 4.0}, {10.0, 9.0}};
  for (i = 0; i <= 2; i++) {
    for (j = 0; j <= 1; j++) {
      printf("fila %i y colu. %i. Los elementos son: %3.1f\n", i + 1, j + 1,
             a[i][j]);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0xee1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xede(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xedb(%rip),%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x4(%rbp)
cmpl   $0x2,-0x4(%rbp)
jg     11ac <main+0x9c>
movl   $0x0,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jg     1199 <main+0x89>
mov    -0x4(%rbp),%esi
add    $0x1,%esi
mov    -0x8(%rbp),%edx
add    $0x1,%edx
movslq -0x4(%rbp),%rcx
lea    -0x20(%rbp),%rax
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1151 <main+0x41>
jmp    119e <main+0x8e>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1140 <main+0x30>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf00(%rip),%rbx
movss  0xee0(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1030 <printf@plt>
movss  0xeca(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
call   1030 <printf@plt>
movss  0xeb4(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x1,%edx
call   1030 <printf@plt>
movss  0xe9e(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x2,%edx
call   1030 <printf@plt>
movss  0xe88(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x1,%edx
call   1030 <printf@plt>
movss  0xe72(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x2,%edx
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@__const.main.a = [3 x [2 x float]] [[2 x float] [float 1.000000e+00, float 5.000000e+00], [2 x float] [float 3.000000e+00, float 4.000000e+00], [2 x float] [float 1.000000e+01, float 9.000000e+00]]
@.str = [46 x i8] c"fila %i y colu. %i. Los elementos son: %3.1f\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [3 x [2 x float]]
%4 = bitcast [3 x [2 x float]]* %3 to i8*
store i32 0, i32* %1
br label %5
5: ; preds = %29, %0
%6 = load i32, i32* %1
%7 = icmp sle i32 %6, 2
br i1 %7, label %8, label %32
8: ; preds = %5
store i32 0, i32* %2
br label %9
9: ; preds = %25, %8
%10 = load i32, i32* %2
%11 = icmp sle i32 %10, 1
br i1 %11, label %12, label %28
12: ; preds = %9
%13 = load i32, i32* %1
%14 = add nsw i32 %13, 1
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
%17 = load i32, i32* %1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [3 x [2 x float]], [3 x [2 x float]]* %3, i64 0, i64 %18
%20 = load i32, i32* %2
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [2 x float], [2 x float]* %19, i64 0, i64 %21
%23 = load float, float* %22
%24 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %16, float %23)
br label %25
25: ; preds = %12
%26 = load i32, i32* %2
%27 = add nsw i32 %26, 1
store i32 %27, i32* %2
br label %9
28: ; preds = %9
br label %29
29: ; preds = %28
%30 = load i32, i32* %1
%31 = add nsw i32 %30, 1
store i32 %31, i32* %1
br label %5
32: ; preds = %5
ret void
}

LLVM IR (-O2):
@.str = [46 x i8] c"fila %i y colu. %i. Los elementos son: %3.1f\0A\00"
define void @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 1, i32 1, float 1.000000e+00)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 1, i32 2, float 5.000000e+00)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 2, i32 1, float 3.000000e+00)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 2, i32 2, float 4.000000e+00)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 3, i32 1, float 1.000000e+01)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 3, i32 2, float 9.000000e+00)
ret void
}