#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 /*<<< orphan*/ scanf(char *, ...);
int ej14() {
  int m, n, p, i, j, k, cerosf, cerosc;
  printf("Ingrese numero de filas de la primer matriz y de columnas de la "
         "primer matriz (con el formato mxn):\n");
  scanf(" %dx%d", &m, &n);
  printf("Ingrese el numero de columnas de la segunda matriz: \n");
  scanf(" %d", &p);
  float A[m][n], B[n][p], C[m][p];
  printf("La carga de los valores de las matrices se realizara de arriba hacia "
         "abajo y luego izquierda a derecha\n");
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= m; j++) {
      printf("Primer matriz, ingrese el numero correspondiente a la columna %d "
             "y  fila %d: ",
             i, j);
      scanf(" %f", &A[j - 1][i - 1]);
    }
  }
  for (i = 1; i <= p; i++) {
    for (j = 1; j <= n; j++) {
      printf("Segunda matriz,ingrese el numero correspondiente a la columna %d "
             "y  fila %d: ",
             i, j);
      scanf(" %f", &B[j - 1][i - 1]);
    }
  }
  for (cerosc = 1; cerosc <= p; cerosc++) {
    for (cerosf = 1; cerosf <= m; cerosf++) {
      C[cerosf - 1][cerosc - 1] = 0;
    }
  }
  for (i = 1; i <= p; i++) {
    for (j = 1; j <= m; j++) {
      for (k = 1; k <= n; k++) {
        C[j - 1][i - 1] = A[j - 1][k - 1] * B[k - 1][i - 1] + C[j - 1][i - 1];
      }
    }
  }
  printf(" Matriz A: \n");
  for (i = 1; i <= m; i++) {
    for (j = 1; j <= n; j++) {
      printf(" %f ", A[i - 1][j - 1]);
    }
    printf("\n");
  }
  printf("\n Matriz B: \n");
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= p; j++) {
      printf(" %f ", B[i - 1][j - 1]);
    }
    printf("\n");
  }
  printf("\n Matriz C (producto AxB): \n");
  for (i = 1; i <= m; i++) {
    for (j = 1; j <= p; j++) {
      printf(" %f ", C[i - 1][j - 1]);
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<ej14>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
lea    0xece(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x89(%rbp)
call   1030 <printf@plt>
mov    -0x89(%rbp),%al
lea    0xf19(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x89(%rbp),%al
lea    0xf06(%rip),%rdi
call   1030 <printf@plt>
mov    -0x89(%rbp),%al
lea    0xf2a(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x4(%rbp),%eax
mov    %eax,%ecx
mov    -0x8(%rbp),%eax
mov    %rax,-0x88(%rbp)
mov    %rsp,%rdx
mov    %rdx,-0x28(%rbp)
mov    %rcx,%rdx
imul   %rax,%rdx
lea    0xf(,%rdx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x80(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x30(%rbp)
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
mov    %rax,-0x78(%rbp)
mov    %rcx,%rdx
imul   %rax,%rdx
lea    0xf(,%rdx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x70(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x40(%rbp)
mov    %rax,-0x48(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
mov    %rax,-0x68(%rbp)
mov    %rcx,%rdx
imul   %rax,%rdx
lea    0xf(,%rdx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x60(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x50(%rbp)
mov    %rax,-0x58(%rbp)
lea    0xe78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     12cb <ej14+0x1ab>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     12b8 <ej14+0x198>
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x88(%rbp),%rcx
mov    -0x80(%rbp),%rsi
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
cltq
imul   %rcx,%rax
shl    $0x2,%rax
add    %rax,%rsi
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
cltq
shl    $0x2,%rax
add    %rax,%rsi
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    124f <ej14+0x12f>
jmp    12bd <ej14+0x19d>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    123c <ej14+0x11c>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     135e <ej14+0x23e>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     134b <ej14+0x22b>
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x78(%rbp),%rcx
mov    -0x70(%rbp),%rsi
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
cltq
imul   %rcx,%rax
shl    $0x2,%rax
add    %rax,%rsi
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
cltq
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12e5 <ej14+0x1c5>
jmp    1350 <ej14+0x230>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12d2 <ej14+0x1b2>
movl   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     13d2 <ej14+0x2b2>
movl   $0x1,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     13bf <ej14+0x29f>
mov    -0x60(%rbp),%rax
mov    -0x68(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1378 <ej14+0x258>
jmp    13c4 <ej14+0x2a4>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1365 <ej14+0x245>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     14f2 <ej14+0x3d2>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     14df <ej14+0x3bf>
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     14cc <ej14+0x3ac>
mov    -0x60(%rbp),%rax
mov    -0x68(%rbp),%rdx
mov    -0x70(%rbp),%rcx
mov    -0x78(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    -0x88(%rbp),%r9
mov    -0x14(%rbp),%r8d
sub    $0x1,%r8d
movslq %r8d,%r8
imul   %r9,%r8
shl    $0x2,%r8
add    %r8,%rsi
mov    -0x18(%rbp),%r8d
sub    $0x1,%r8d
movslq %r8d,%r8
movss  (%rsi,%r8,4),%xmm0
mov    -0x18(%rbp),%esi
sub    $0x1,%esi
movslq %esi,%rsi
imul   %rdi,%rsi
shl    $0x2,%rsi
add    %rsi,%rcx
mov    -0x10(%rbp),%esi
sub    $0x1,%esi
movslq %esi,%rsi
movss  (%rcx,%rsi,4),%xmm2
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rsi
imul   %rdx,%rsi
shl    $0x2,%rsi
mov    %rax,%rcx
add    %rsi,%rcx
mov    -0x10(%rbp),%esi
sub    $0x1,%esi
movslq %esi,%rsi
movss  (%rcx,%rsi,4),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    -0x10(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13ff <ej14+0x2df>
jmp    14d1 <ej14+0x3b1>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13ec <ej14+0x2cc>
jmp    14e4 <ej14+0x3c4>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    13d9 <ej14+0x2b9>
lea    0xcb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     158f <ej14+0x46f>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1573 <ej14+0x453>
mov    -0x80(%rbp),%rax
mov    -0x88(%rbp),%rdx
mov    -0x10(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc5d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    151a <ej14+0x3fa>
lea    0xc6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1507 <ej14+0x3e7>
lea    0xc2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1629 <ej14+0x509>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     160d <ej14+0x4ed>
mov    -0x70(%rbp),%rax
mov    -0x78(%rbp),%rdx
mov    -0x10(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbc3(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    15b7 <ej14+0x497>
lea    0xbd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    15a4 <ej14+0x484>
lea    0xb9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     16c3 <ej14+0x5a3>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     16a7 <ej14+0x587>
mov    -0x60(%rbp),%rax
mov    -0x68(%rbp),%rdx
mov    -0x10(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
imul   %rdx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb29(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1651 <ej14+0x531>
lea    0xb3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    163e <ej14+0x51e>
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
xor    %eax,%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ej14>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
lea    0xf55(%rip),%rdi
call   1040 <puts@plt>
lea    0xe99(%rip),%rdi
lea    -0x2c(%rbp),%rsi
lea    -0x30(%rbp),%rdx
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xf97(%rip),%rdi
call   1040 <puts@plt>
lea    0xe7e(%rip),%rdi
lea    -0x34(%rbp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %rsp,-0xb0(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x30(%rbp),%r14d
imul   %r14,%rax
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%r13
sub    %rax,%r13
mov    %r13,%rsp
mov    -0x30(%rbp),%eax
mov    -0x34(%rbp),%edx
imul   %rdx,%rax
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
mov    -0x2c(%rbp),%eax
mov    %rdx,-0xa0(%rbp)
imul   %rdx,%rax
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rcx
sub    %rax,%rcx
mov    %rcx,-0x90(%rbp)
mov    %rcx,%rsp
lea    0xf3a(%rip),%rdi
call   1040 <puts@plt>
mov    -0x30(%rbp),%eax
test   %eax,%eax
mov    %r14,-0x78(%rbp)
mov    %r13,-0x80(%rbp)
jle    1299 <ej14+0x159>
mov    -0x2c(%rbp),%ecx
lea    0x0(,%r14,4),%r12
mov    $0x1,%r14d
lea    0xdd0(%rip),%r15
jmp    1253 <ej14+0x113>
nopl   (%rax)
lea    0x1(%r14),%rdx
movslq %eax,%rbx
add    $0x4,%r13
cmp    %rbx,%r14
mov    %rdx,%r14
jge    1299 <ej14+0x159>
test   %ecx,%ecx
jle    1240 <ej14+0x100>
mov    %r13,-0x40(%rbp)
xor    %ebx,%ebx
nopl   (%rax)
add    $0x1,%rbx
mov    %r15,%rdi
mov    %r14d,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xddf(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movslq -0x2c(%rbp),%rcx
add    %r12,%r13
cmp    %rcx,%rbx
jl     1260 <ej14+0x120>
mov    -0x30(%rbp),%eax
mov    -0x40(%rbp),%r13
jmp    1240 <ej14+0x100>
mov    -0x34(%rbp),%r13d
test   %r13d,%r13d
mov    -0xa0(%rbp),%r15
jle    170d <ej14+0x5cd>
lea    0x0(,%r15,4),%rbx
mov    $0x1,%r12d
lea    0xd9b(%rip),%r15
lea    0xd90(%rip),%r14
mov    -0x50(%rbp),%rdi
mov    %rbx,-0x40(%rbp)
jmp    12f4 <ej14+0x1b4>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0x1(%r12),%rcx
movslq %r13d,%rdx
add    $0x4,%rdi
cmp    %rdx,%r12
mov    %rcx,%r12
jge    1347 <ej14+0x207>
test   %eax,%eax
jle    12e0 <ej14+0x1a0>
mov    %rdi,-0x68(%rbp)
mov    %rdi,%r13
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
mov    %r15,%rdi
mov    %r12d,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movslq -0x30(%rbp),%rax
add    -0x40(%rbp),%r13
cmp    %rax,%rbx
jl     1310 <ej14+0x1d0>
mov    -0x34(%rbp),%r13d
mov    -0x68(%rbp),%rdi
jmp    12e0 <ej14+0x1a0>
test   %r13d,%r13d
mov    -0xa0(%rbp),%r15
jle    170d <ej14+0x5cd>
mov    -0x2c(%rbp),%ecx
mov    %rcx,-0x68(%rbp)
lea    0x1(%rcx),%edx
lea    0x1(%r13),%ecx
mov    %rcx,-0xa8(%rbp)
lea    -0x1(%rdx),%rsi
mov    %rdx,-0x60(%rbp)
lea    -0x9(%rdx),%rcx
mov    %rcx,-0x48(%rbp)
mov    %rcx,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
cmp    $0x8,%rsi
setae  %cl
cmp    $0x1,%r15d
sete   %bl
and    %cl,%bl
mov    %bl,-0x70(%rbp)
mov    %rsi,-0x98(%rbp)
and    $0xfffffffffffffff8,%rsi
mov    %rsi,-0x88(%rbp)
lea    0x1(%rsi),%rcx
mov    %rcx,-0xc0(%rbp)
mov    %edx,%ecx
and    $0x3,%ecx
mov    %rcx,-0x58(%rbp)
and    $0xfffffffffffffffc,%rdx
mov    %rdx,-0xb8(%rbp)
mov    %r15,%r12
shl    $0x7,%r12
mov    %r15,%r14
shl    $0x5,%r14
mov    %r15,%r8
shl    $0x4,%r8
xorps  %xmm0,%xmm0
mov    $0x1,%r9d
mov    -0x90(%rbp),%r10
jmp    1415 <ej14+0x2d5>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r9
add    $0x4,%r10
cmp    -0xa8(%rbp),%r9
je     157b <ej14+0x43b>
cmpl   $0x0,-0x68(%rbp)
jle    1400 <ej14+0x2c0>
mov    $0x1,%r11d
cmpb   $0x0,-0x70(%rbp)
je     14cf <ej14+0x38f>
cmpq   $0x18,-0x48(%rbp)
jae    1436 <ej14+0x2f6>
xor    %ecx,%ecx
jmp    148d <ej14+0x34d>
mov    -0xb8(%rbp),%rsi
mov    %r10,%rdi
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movups %xmm0,(%rdi)
movups %xmm0,0x10(%rdi)
lea    (%rdi,%r14,1),%rdx
movups %xmm0,(%rdi,%r14,1)
movups %xmm0,0x10(%rdi,%r14,1)
lea    (%rdx,%r14,1),%rbx
movups %xmm0,(%r14,%rdx,1)
movups %xmm0,0x10(%r14,%rdx,1)
movups %xmm0,(%r14,%rbx,1)
movups %xmm0,0x10(%r14,%rbx,1)
add    $0x20,%rcx
add    %r12,%rdi
add    $0xfffffffffffffffc,%rsi
jne    1450 <ej14+0x310>
cmpq   $0x0,-0x58(%rbp)
je     14b4 <ej14+0x374>
imul   -0x40(%rbp),%rcx
mov    -0x58(%rbp),%rdx
nopl   (%rax)
movups %xmm0,(%r10,%rcx,1)
movups %xmm0,0x10(%r10,%rcx,1)
add    %r14,%rcx
add    $0xffffffffffffffff,%rdx
jne    14a0 <ej14+0x360>
mov    -0xc0(%rbp),%r11
mov    -0x88(%rbp),%rcx
cmp    %rcx,-0x98(%rbp)
je     1400 <ej14+0x2c0>
mov    -0x60(%rbp),%rdx
mov    %edx,%edi
sub    %r11d,%edi
mov    %r11,%rcx
not    %rcx
add    %rdx,%rcx
and    $0x3,%rdi
je     1515 <ej14+0x3d5>
lea    -0x1(%r11),%rdx
imul   %r15,%rdx
lea    (%r10,%rdx,4),%rdx
neg    %rdi
xor    %esi,%esi
mov    -0x40(%rbp),%rbx
nopl   0x0(%rax)
movl   $0x0,(%rdx)
add    $0xffffffffffffffff,%rsi
add    %rbx,%rdx
cmp    %rsi,%rdi
jne    1500 <ej14+0x3c0>
sub    %rsi,%r11
cmp    $0x3,%rcx
jb     1400 <ej14+0x2c0>
mov    -0x60(%rbp),%rdi
sub    %r11,%rdi
lea    0x2(%r11),%rsi
mov    -0x40(%rbp),%rcx
imul   %rcx,%rsi
mov    %rcx,%rdx
imul   %r11,%rdx
lea    -0x1(%r11),%rbx
imul   %rcx,%rbx
add    $0x1,%r11
imul   %rcx,%r11
mov    %r10,%rcx
nopl   0x0(%rax)
movl   $0x0,(%rcx,%rbx,1)
movl   $0x0,(%rcx,%rdx,1)
movl   $0x0,(%rcx,%r11,1)
movl   $0x0,(%rcx,%rsi,1)
add    %r8,%rcx
add    $0xfffffffffffffffc,%rdi
jne    1550 <ej14+0x410>
jmp    1400 <ej14+0x2c0>
test   %r13d,%r13d
jle    170d <ej14+0x5cd>
mov    -0x2c(%rbp),%ecx
lea    0x1(%rax),%edx
mov    %rcx,-0x88(%rbp)
lea    0x1(%rcx),%edi
mov    %rdx,-0x40(%rbp)
lea    -0x1(%rdx),%rbx
mov    -0x78(%rbp),%rcx
lea    0x0(,%rcx,4),%rdx
lea    0x0(,%r15,8),%rcx
mov    %rbx,%rsi
mov    %rbx,-0x68(%rbp)
and    $0xfffffffffffffffe,%rbx
neg    %rbx
mov    $0x1,%esi
mov    %rsi,-0x48(%rbp)
mov    -0x50(%rbp),%rsi
mov    %rsi,-0x60(%rbp)
mov    %rdi,-0x70(%rbp)
mov    %rdx,-0x58(%rbp)
jmp    15fe <ej14+0x4be>
nopl   0x0(%rax)
mov    -0x48(%rbp),%rsi
add    $0x1,%rsi
addq   $0x4,-0x60(%rbp)
mov    %rsi,-0x48(%rbp)
cmp    -0xa8(%rbp),%rsi
je     170d <ej14+0x5cd>
cmpl   $0x0,-0x88(%rbp)
mov    -0x90(%rbp),%rsi
jle    15e0 <ej14+0x4a0>
mov    -0x48(%rbp),%r8
lea    (%rsi,%r8,4),%rsi
add    $0xfffffffffffffffc,%rsi
mov    -0x50(%rbp),%rdi
lea    -0x4(%rdi,%r8,4),%rdx
mov    %rdx,-0x98(%rbp)
mov    -0x58(%rbp),%rdx
mov    -0x70(%rbp),%rdi
mov    $0x1,%r8d
mov    -0x80(%rbp),%r11
jmp    1652 <ej14+0x512>
xchg   %ax,%ax
movss  %xmm0,(%rsi,%r13,4)
add    $0x1,%r8
add    %rdx,%r11
cmp    %rdi,%r8
je     15e0 <ej14+0x4a0>
test   %eax,%eax
jle    1646 <ej14+0x506>
lea    -0x1(%r8),%r9
mov    %r9,%r13
imul   %r15,%r13
movss  (%rsi,%r13,4),%xmm1
mov    $0x1,%r10d
cmpl   $0x2,-0x40(%rbp)
jne    1680 <ej14+0x540>
movaps %xmm1,%xmm0
jmp    16c9 <ej14+0x589>
nopl   0x0(%rax,%rax,1)
mov    $0x1,%r10d
mov    -0x60(%rbp),%r12
nopw   0x0(%rax,%rax,1)
movss  -0x4(%r11,%r10,4),%xmm2
movss  (%r11,%r10,4),%xmm0
mulss  (%r12),%xmm2
addss  %xmm1,%xmm2
mulss  (%r12,%r15,4),%xmm0
addss  %xmm2,%xmm0
add    %rcx,%r12
lea    (%rbx,%r10,1),%r14
add    $0x2,%r14
add    $0x2,%r10
movaps %xmm0,%xmm1
cmp    $0x1,%r14
jne    1690 <ej14+0x550>
testb  $0x1,-0x68(%rbp)
je     1640 <ej14+0x500>
imul   -0x78(%rbp),%r9
mov    -0x80(%rbp),%rdi
lea    (%rdi,%r9,4),%rdi
movss  -0x4(%rdi,%r10,4),%xmm1
mov    -0x70(%rbp),%rdi
add    $0xffffffffffffffff,%r10
imul   %r15,%r10
mov    -0x98(%rbp),%rdx
mulss  (%rdx,%r10,4),%xmm1
mov    -0x58(%rbp),%rdx
addss  %xmm1,%xmm0
jmp    1640 <ej14+0x500>
lea    0xa9c(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,-0x2c(%rbp)
jle    1794 <ej14+0x654>
shlq   $0x2,-0x78(%rbp)
mov    $0x1,%r14d
lea    0x97a(%rip),%r12
jmp    1762 <ej14+0x622>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%r14),%rax
movslq -0x2c(%rbp),%rcx
add    -0x78(%rbp),%r13
mov    %r13,-0x80(%rbp)
cmp    %rcx,%r14
mov    %rax,%r14
jge    1794 <ej14+0x654>
cmpl   $0x0,-0x30(%rbp)
mov    -0x80(%rbp),%r13
jle    1740 <ej14+0x600>
xor    %ebx,%ebx
xchg   %ax,%ax
movss  0x0(%r13,%rbx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movslq -0x30(%rbp),%rax
add    $0x1,%rbx
cmp    %rax,%rbx
jl     1770 <ej14+0x630>
jmp    1740 <ej14+0x600>
lea    0xa21(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,-0x30(%rbp)
jle    1823 <ej14+0x6e3>
lea    0x0(,%r15,4),%rax
mov    %rax,-0x40(%rbp)
mov    $0x1,%r12d
lea    0x8ec(%rip),%r13
jmp    17f3 <ej14+0x6b3>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%r12),%rax
movslq -0x30(%rbp),%rcx
add    -0x40(%rbp),%r14
mov    %r14,-0x50(%rbp)
cmp    %rcx,%r12
mov    %rax,%r12
jge    1823 <ej14+0x6e3>
cmpl   $0x0,-0x34(%rbp)
mov    -0x50(%rbp),%r14
jle    17d0 <ej14+0x690>
xor    %ebx,%ebx
nop
movss  (%r14,%rbx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movslq -0x34(%rbp),%rax
add    $0x1,%rbx
cmp    %rax,%rbx
jl     1800 <ej14+0x6c0>
jmp    17d0 <ej14+0x690>
lea    0x99f(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,-0x2c(%rbp)
mov    -0x90(%rbp),%r13
jle    18a4 <ej14+0x764>
shl    $0x2,%r15
mov    $0x1,%r14d
lea    0x85e(%rip),%r12
jmp    186d <ej14+0x72d>
nop
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%r14),%rax
movslq -0x2c(%rbp),%rcx
add    %r15,%r13
cmp    %rcx,%r14
mov    %rax,%r14
jge    18a4 <ej14+0x764>
cmpl   $0x0,-0x34(%rbp)
jle    1850 <ej14+0x710>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
movss  0x0(%r13,%rbx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movslq -0x34(%rbp),%rax
add    $0x1,%rbx
cmp    %rax,%rbx
jl     1880 <ej14+0x740>
jmp    1850 <ej14+0x710>
mov    -0xb0(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [101 x i8] c"Ingrese numero de filas de la primer matriz y de columnas de la primer matriz (con el formato mxn):\0A\00"
@.str.1 = [7 x i8] c" %dx%d\00"
@.str.2 = [54 x i8] c"Ingrese el numero de columnas de la segunda matriz: \0A\00"
@.str.3 = [4 x i8] c" %d\00"
@.str.4 = [104 x i8] c"La carga de los valores de las matrices se realizara de arriba hacia abajo y luego izquierda a derecha\0A\00"
@.str.5 = [78 x i8] c"Primer matriz, ingrese el numero correspondiente a la columna %d y fila %d: \00"
@.str.6 = [4 x i8] c" %f\00"
@.str.7 = [78 x i8] c"Segunda matriz,ingrese el numero correspondiente a la columna %d y fila %d: \00"
@.str.8 = [13 x i8] c" Matriz A: \0A\00"
@.str.9 = [5 x i8] c" %f \00"
@.str.10 = [2 x i8] c"\0A\00"
@.str.11 = [14 x i8] c"\0A Matriz B: \0A\00"
@.str.12 = [29 x i8] c"\0A Matriz C (producto AxB): \0A\00"
define i32 @ej14() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str, i64 0, i64 0))
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%20 = load i32, i32* %1
%21 = zext i32 %20 to i64
%22 = load i32, i32* %2
%23 = zext i32 %22 to i64
%24 = call i8* @llvm.stacksave()
store i8* %24, i8** %9
%25 = mul nuw i64 %21, %23
%26 = alloca float, i64 %25
store i64 %21, i64* %10
store i64 %23, i64* %11
%27 = load i32, i32* %2
%28 = zext i32 %27 to i64
%29 = load i32, i32* %3
%30 = zext i32 %29 to i64
%31 = mul nuw i64 %28, %30
%32 = alloca float, i64 %31
store i64 %28, i64* %12
store i64 %30, i64* %13
%33 = load i32, i32* %1
%34 = zext i32 %33 to i64
%35 = load i32, i32* %3
%36 = zext i32 %35 to i64
%37 = mul nuw i64 %34, %36
%38 = alloca float, i64 %37
store i64 %34, i64* %14
store i64 %36, i64* %15
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %4
br label %40
40: ; preds = %67, %0
%41 = load i32, i32* %4
%42 = load i32, i32* %2
%43 = icmp sle i32 %41, %42
br i1 %43, label %44, label %70
44: ; preds = %40
store i32 1, i32* %5
br label %45
45: ; preds = %63, %44
%46 = load i32, i32* %5
%47 = load i32, i32* %1
%48 = icmp sle i32 %46, %47
br i1 %48, label %49, label %66
49: ; preds = %45
%50 = load i32, i32* %4
%51 = load i32, i32* %5
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.5, i64 0, i64 0), i32 %50, i32 %51)
%53 = load i32, i32* %5
%54 = sub nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = mul nsw i64 %55, %23
%57 = getelementptr inbounds float, float* %26, i64 %56
%58 = load i32, i32* %4
%59 = sub nsw i32 %58, 1
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds float, float* %57, i64 %60
%62 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), float* %61)
br label %63
63: ; preds = %49
%64 = load i32, i32* %5
%65 = add nsw i32 %64, 1
store i32 %65, i32* %5
br label %45
66: ; preds = %45
br label %67
67: ; preds = %66
%68 = load i32, i32* %4
%69 = add nsw i32 %68, 1
store i32 %69, i32* %4
br label %40
70: ; preds = %40
store i32 1, i32* %4
br label %71
71: ; preds = %98, %70
%72 = load i32, i32* %4
%73 = load i32, i32* %3
%74 = icmp sle i32 %72, %73
br i1 %74, label %75, label %101
75: ; preds = %71
store i32 1, i32* %5
br label %76
76: ; preds = %94, %75
%77 = load i32, i32* %5
%78 = load i32, i32* %2
%79 = icmp sle i32 %77, %78
br i1 %79, label %80, label %97
80: ; preds = %76
%81 = load i32, i32* %4
%82 = load i32, i32* %5
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.7, i64 0, i64 0), i32 %81, i32 %82)
%84 = load i32, i32* %5
%85 = sub nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = mul nsw i64 %86, %30
%88 = getelementptr inbounds float, float* %32, i64 %87
%89 = load i32, i32* %4
%90 = sub nsw i32 %89, 1
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds float, float* %88, i64 %91
%93 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), float* %92)
br label %94
94: ; preds = %80
%95 = load i32, i32* %5
%96 = add nsw i32 %95, 1
store i32 %96, i32* %5
br label %76
97: ; preds = %76
br label %98
98: ; preds = %97
%99 = load i32, i32* %4
%100 = add nsw i32 %99, 1
store i32 %100, i32* %4
br label %71
101: ; preds = %71
store i32 1, i32* %8
br label %102
102: ; preds = %125, %101
%103 = load i32, i32* %8
%104 = load i32, i32* %3
%105 = icmp sle i32 %103, %104
br i1 %105, label %106, label %128
106: ; preds = %102
store i32 1, i32* %7
br label %107
107: ; preds = %121, %106
%108 = load i32, i32* %7
%109 = load i32, i32* %1
%110 = icmp sle i32 %108, %109
br i1 %110, label %111, label %124
111: ; preds = %107
%112 = load i32, i32* %7
%113 = sub nsw i32 %112, 1
%114 = sext i32 %113 to i64
%115 = mul nsw i64 %114, %36
%116 = getelementptr inbounds float, float* %38, i64 %115
%117 = load i32, i32* %8
%118 = sub nsw i32 %117, 1
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds float, float* %116, i64 %119
store float 0.000000e+00, float* %120
br label %121
121: ; preds = %111
%122 = load i32, i32* %7
%123 = add nsw i32 %122, 1
store i32 %123, i32* %7
br label %107
124: ; preds = %107
br label %125
125: ; preds = %124
%126 = load i32, i32* %8
%127 = add nsw i32 %126, 1
store i32 %127, i32* %8
br label %102
128: ; preds = %102
store i32 1, i32* %4
br label %129
129: ; preds = %192, %128
%130 = load i32, i32* %4
%131 = load i32, i32* %3
%132 = icmp sle i32 %130, %131
br i1 %132, label %133, label %195
133: ; preds = %129
store i32 1, i32* %5
br label %134
134: ; preds = %188, %133
%135 = load i32, i32* %5
%136 = load i32, i32* %1
%137 = icmp sle i32 %135, %136
br i1 %137, label %138, label %191
138: ; preds = %134
store i32 1, i32* %6
br label %139
139: ; preds = %184, %138
%140 = load i32, i32* %6
%141 = load i32, i32* %2
%142 = icmp sle i32 %140, %141
br i1 %142, label %143, label %187
143: ; preds = %139
%144 = load i32, i32* %5
%145 = sub nsw i32 %144, 1
%146 = sext i32 %145 to i64
%147 = mul nsw i64 %146, %23
%148 = getelementptr inbounds float, float* %26, i64 %147
%149 = load i32, i32* %6
%150 = sub nsw i32 %149, 1
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds float, float* %148, i64 %151
%153 = load float, float* %152
%154 = load i32, i32* %6
%155 = sub nsw i32 %154, 1
%156 = sext i32 %155 to i64
%157 = mul nsw i64 %156, %30
%158 = getelementptr inbounds float, float* %32, i64 %157
%159 = load i32, i32* %4
%160 = sub nsw i32 %159, 1
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds float, float* %158, i64 %161
%163 = load float, float* %162
%164 = load i32, i32* %5
%165 = sub nsw i32 %164, 1
%166 = sext i32 %165 to i64
%167 = mul nsw i64 %166, %36
%168 = getelementptr inbounds float, float* %38, i64 %167
%169 = load i32, i32* %4
%170 = sub nsw i32 %169, 1
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds float, float* %168, i64 %171
%173 = load float, float* %172
%174 = call float @llvm.fmuladd.f32(float %153, float %163, float %173)
%175 = load i32, i32* %5
%176 = sub nsw i32 %175, 1
%177 = sext i32 %176 to i64
%178 = mul nsw i64 %177, %36
%179 = getelementptr inbounds float, float* %38, i64 %178
%180 = load i32, i32* %4
%181 = sub nsw i32 %180, 1
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds float, float* %179, i64 %182
store float %174, float* %183
br label %184
184: ; preds = %143
%185 = load i32, i32* %6
%186 = add nsw i32 %185, 1
store i32 %186, i32* %6
br label %139
187: ; preds = %139
br label %188
188: ; preds = %187
%189 = load i32, i32* %5
%190 = add nsw i32 %189, 1
store i32 %190, i32* %5
br label %134
191: ; preds = %134
br label %192
192: ; preds = %191
%193 = load i32, i32* %4
%194 = add nsw i32 %193, 1
store i32 %194, i32* %4
br label %129
195: ; preds = %129
%196 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
store i32 1, i32* %4
br label %197
197: ; preds = %224, %195
%198 = load i32, i32* %4
%199 = load i32, i32* %1
%200 = icmp sle i32 %198, %199
br i1 %200, label %201, label %227
201: ; preds = %197
store i32 1, i32* %5
br label %202
202: ; preds = %219, %201
%203 = load i32, i32* %5
%204 = load i32, i32* %2
%205 = icmp sle i32 %203, %204
br i1 %205, label %206, label %222
206: ; preds = %202
%207 = load i32, i32* %4
%208 = sub nsw i32 %207, 1
%209 = sext i32 %208 to i64
%210 = mul nsw i64 %209, %23
%211 = getelementptr inbounds float, float* %26, i64 %210
%212 = load i32, i32* %5
%213 = sub nsw i32 %212, 1
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds float, float* %211, i64 %214
%216 = load float, float* %215
%217 = fpext float %216 to double
%218 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), double %217)
br label %219
219: ; preds = %206
%220 = load i32, i32* %5
%221 = add nsw i32 %220, 1
store i32 %221, i32* %5
br label %202
222: ; preds = %202
%223 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %224
224: ; preds = %222
%225 = load i32, i32* %4
%226 = add nsw i32 %225, 1
store i32 %226, i32* %4
br label %197
227: ; preds = %197
%228 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
store i32 1, i32* %4
br label %229
229: ; preds = %256, %227
%230 = load i32, i32* %4
%231 = load i32, i32* %2
%232 = icmp sle i32 %230, %231
br i1 %232, label %233, label %259
233: ; preds = %229
store i32 1, i32* %5
br label %234
234: ; preds = %251, %233
%235 = load i32, i32* %5
%236 = load i32, i32* %3
%237 = icmp sle i32 %235, %236
br i1 %237, label %238, label %254
238: ; preds = %234
%239 = load i32, i32* %4
%240 = sub nsw i32 %239, 1
%241 = sext i32 %240 to i64
%242 = mul nsw i64 %241, %30
%243 = getelementptr inbounds float, float* %32, i64 %242
%244 = load i32, i32* %5
%245 = sub nsw i32 %244, 1
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds float, float* %243, i64 %246
%248 = load float, float* %247
%249 = fpext float %248 to double
%250 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), double %249)
br label %251
251: ; preds = %238
%252 = load i32, i32* %5
%253 = add nsw i32 %252, 1
store i32 %253, i32* %5
br label %234
254: ; preds = %234
%255 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %256
256: ; preds = %254
%257 = load i32, i32* %4
%258 = add nsw i32 %257, 1
store i32 %258, i32* %4
br label %229
259: ; preds = %229
%260 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0))
store i32 1, i32* %4
br label %261
261: ; preds = %288, %259
%262 = load i32, i32* %4
%263 = load i32, i32* %1
%264 = icmp sle i32 %262, %263
br i1 %264, label %265, label %291
265: ; preds = %261
store i32 1, i32* %5
br label %266
266: ; preds = %283, %265
%267 = load i32, i32* %5
%268 = load i32, i32* %3
%269 = icmp sle i32 %267, %268
br i1 %269, label %270, label %286
270: ; preds = %266
%271 = load i32, i32* %4
%272 = sub nsw i32 %271, 1
%273 = sext i32 %272 to i64
%274 = mul nsw i64 %273, %36
%275 = getelementptr inbounds float, float* %38, i64 %274
%276 = load i32, i32* %5
%277 = sub nsw i32 %276, 1
%278 = sext i32 %277 to i64
%279 = getelementptr inbounds float, float* %275, i64 %278
%280 = load float, float* %279
%281 = fpext float %280 to double
%282 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), double %281)
br label %283
283: ; preds = %270
%284 = load i32, i32* %5
%285 = add nsw i32 %284, 1
store i32 %285, i32* %5
br label %266
286: ; preds = %266
%287 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %288
288: ; preds = %286
%289 = load i32, i32* %4
%290 = add nsw i32 %289, 1
store i32 %290, i32* %4
br label %261
291: ; preds = %261
%292 = load i8*, i8** %9
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [7 x i8] c" %dx%d\00"
@.str.3 = [4 x i8] c" %d\00"
@.str.5 = [78 x i8] c"Primer matriz, ingrese el numero correspondiente a la columna %d y fila %d: \00"
@.str.6 = [4 x i8] c" %f\00"
@.str.7 = [78 x i8] c"Segunda matriz,ingrese el numero correspondiente a la columna %d y fila %d: \00"
@.str.9 = [5 x i8] c" %f \00"
@str = [100 x i8] c"Ingrese numero de filas de la primer matriz y de columnas de la primer matriz (con el formato mxn):\00"
@str.13 = [53 x i8] c"Ingrese el numero de columnas de la segunda matriz: \00"
@str.14 = [103 x i8] c"La carga de los valores de las matrices se realizara de arriba hacia abajo y luego izquierda a derecha\00"
@str.15 = [12 x i8] c" Matriz A: \00"
@str.16 = [13 x i8] c"\0A Matriz B: \00"
@str.17 = [28 x i8] c"\0A Matriz C (producto AxB): \00"
define i32 @ej14() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([100 x i8], [100 x i8]* @str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2)
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.13, i64 0, i64 0))
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%11 = load i32, i32* %1
%12 = zext i32 %11 to i64
%13 = load i32, i32* %2
%14 = zext i32 %13 to i64
%15 = call i8* @llvm.stacksave()
%16 = mul nuw i64 %14, %12
%17 = alloca float, i64 %16
%18 = load i32, i32* %2
%19 = zext i32 %18 to i64
%20 = load i32, i32* %3
%21 = zext i32 %20 to i64
%22 = mul nuw i64 %21, %19
%23 = alloca float, i64 %22
%24 = load i32, i32* %1
%25 = zext i32 %24 to i64
%26 = mul nuw i64 %25, %21
%27 = alloca float, i64 %26
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([103 x i8], [103 x i8]* @str.14, i64 0, i64 0))
%29 = load i32, i32* %2
%30 = icmp slt i32 %29, 1
br i1 %30, label %42, label %31
31: ; preds = %0
%32 = load i32, i32* %1
br label %33
33: ; preds = %31, %60
%34 = phi i32 [ %29, %31 ], [ %61, %60 ]
%35 = phi i32 [ %32, %31 ], [ %62, %60 ]
%36 = phi i64 [ 1, %31 ], [ %63, %60 ]
%37 = icmp slt i32 %35, 1
br i1 %37, label %60, label %38
38: ; preds = %33
%39 = add nsw i64 %36, -1
%40 = trunc i64 %36 to i32
%41 = getelementptr inbounds float, float* %17, i64 %39
br label %46
42: ; preds = %60, %0
%43 = phi i32 [ %29, %0 ], [ %61, %60 ]
%44 = load i32, i32* %3
%45 = icmp slt i32 %44, 1
br i1 %45, label %275, label %66
46: ; preds = %38, %46
%47 = phi i64 [ 1, %38 ], [ %54, %46 ]
%48 = trunc i64 %47 to i32
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str.5, i64 0, i64 0), i32 %40, i32 %48)
%50 = add nsw i64 %47, -1
%51 = mul nuw nsw i64 %50, %14
%52 = getelementptr inbounds float, float* %41, i64 %51
%53 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), float* %52)
%54 = add nuw nsw i64 %47, 1
%55 = load i32, i32* %1
%56 = sext i32 %55 to i64
%57 = icmp slt i64 %47, %56
br i1 %57, label %46, label %58
58: ; preds = %46
%59 = load i32, i32* %2
br label %60
60: ; preds = %58, %33
%61 = phi i32 [ %59, %58 ], [ %34, %33 ]
%62 = phi i32 [ %55, %58 ], [ %35, %33 ]
%63 = add nuw nsw i64 %36, 1
%64 = sext i32 %61 to i64
%65 = icmp slt i64 %36, %64
br i1 %65, label %33, label %42
66: ; preds = %42, %112
%67 = phi i32 [ %113, %112 ], [ %44, %42 ]
%68 = phi i32 [ %114, %112 ], [ %43, %42 ]
%69 = phi i64 [ %115, %112 ], [ 1, %42 ]
%70 = icmp slt i32 %68, 1
br i1 %70, label %112, label %71
71: ; preds = %66
%72 = add nsw i64 %69, -1
%73 = trunc i64 %69 to i32
%74 = getelementptr inbounds float, float* %23, i64 %72
br label %98
75: ; preds = %112
%76 = icmp slt i32 %113, 1
br i1 %76, label %275, label %77
77: ; preds = %75
%78 = load i32, i32* %1
%79 = icmp slt i32 %78, 1
%80 = add i32 %78, 1
%81 = add nuw i32 %113, 1
%82 = zext i32 %81 to i64
%83 = zext i32 %80 to i64
%84 = add nsw i64 %83, -1
%85 = add nsw i64 %83, -9
%86 = lshr i64 %85, 3
%87 = add nuw nsw i64 %86, 1
%88 = icmp ugt i64 %84, 7
%89 = icmp eq i32 %20, 1
%90 = select i1 %88, i1 %89, i1 false
%91 = and i64 %84, -8
%92 = or i64 %91, 1
%93 = and i64 %87, 3
%94 = icmp ult i64 %85, 24
%95 = and i64 %87, 4611686018427387900
%96 = icmp eq i64 %93, 0
%97 = icmp eq i64 %84, %91
br label %118
98: ; preds = %71, %98
%99 = phi i64 [ 1, %71 ], [ %106, %98 ]
%100 = trunc i64 %99 to i32
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str.7, i64 0, i64 0), i32 %73, i32 %100)
%102 = add nsw i64 %99, -1
%103 = mul nuw nsw i64 %102, %21
%104 = getelementptr inbounds float, float* %74, i64 %103
%105 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), float* %104)
%106 = add nuw nsw i64 %99, 1
%107 = load i32, i32* %2
%108 = sext i32 %107 to i64
%109 = icmp slt i64 %99, %108
br i1 %109, label %98, label %110
110: ; preds = %98
%111 = load i32, i32* %3
br label %112
112: ; preds = %110, %66
%113 = phi i32 [ %111, %110 ], [ %67, %66 ]
%114 = phi i32 [ %107, %110 ], [ %68, %66 ]
%115 = add nuw nsw i64 %69, 1
%116 = sext i32 %113 to i64
%117 = icmp slt i64 %69, %116
br i1 %117, label %66, label %75
118: ; preds = %77, %217
%119 = phi i64 [ 1, %77 ], [ %218, %217 ]
br i1 %79, label %217, label %120
120: ; preds = %118
%121 = add nsw i64 %119, -1
%122 = getelementptr inbounds float, float* %27, i64 %121
br i1 %90, label %123, label %167
123: ; preds = %120
br i1 %94, label %153, label %124
124: ; preds = %123, %124
%125 = phi i64 [ %150, %124 ], [ 0, %123 ]
%126 = phi i64 [ %151, %124 ], [ 0, %123 ]
%127 = mul nuw nsw i64 %125, %21
%128 = getelementptr inbounds float, float* %122, i64 %127
%129 = bitcast float* %128 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %129
%130 = getelementptr inbounds float, float* %128, i64 4
%131 = bitcast float* %130 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %131
%132 = or i64 %125, 8
%133 = mul nuw nsw i64 %132, %21
%134 = getelementptr inbounds float, float* %122, i64 %133
%135 = bitcast float* %134 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %135
%136 = getelementptr inbounds float, float* %134, i64 4
%137 = bitcast float* %136 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %137
%138 = or i64 %125, 16
%139 = mul nuw nsw i64 %138, %21
%140 = getelementptr inbounds float, float* %122, i64 %139
%141 = bitcast float* %140 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %141
%142 = getelementptr inbounds float, float* %140, i64 4
%143 = bitcast float* %142 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %143
%144 = or i64 %125, 24
%145 = mul nuw nsw i64 %144, %21
%146 = getelementptr inbounds float, float* %122, i64 %145
%147 = bitcast float* %146 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %147
%148 = getelementptr inbounds float, float* %146, i64 4
%149 = bitcast float* %148 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %149
%150 = add nuw i64 %125, 32
%151 = add i64 %126, 4
%152 = icmp eq i64 %151, %95
br i1 %152, label %153, label %124
153: ; preds = %124, %123
%154 = phi i64 [ 0, %123 ], [ %150, %124 ]
br i1 %96, label %166, label %155
155: ; preds = %153, %155
%156 = phi i64 [ %163, %155 ], [ %154, %153 ]
%157 = phi i64 [ %164, %155 ], [ 0, %153 ]
%158 = mul nuw nsw i64 %156, %21
%159 = getelementptr inbounds float, float* %122, i64 %158
%160 = bitcast float* %159 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %160
%161 = getelementptr inbounds float, float* %159, i64 4
%162 = bitcast float* %161 to <4 x float>*
store <4 x float> zeroinitializer, <4 x float>* %162
%163 = add nuw i64 %156, 8
%164 = add i64 %157, 1
%165 = icmp eq i64 %164, %93
br i1 %165, label %166, label %155
166: ; preds = %155, %153
br i1 %97, label %217, label %167
167: ; preds = %120, %166
%168 = phi i64 [ 1, %120 ], [ %92, %166 ]
%169 = sub nsw i64 %83, %168
%170 = xor i64 %168, -1
%171 = add nsw i64 %170, %83
%172 = and i64 %169, 3
%173 = icmp eq i64 %172, 0
br i1 %173, label %183, label %174
174: ; preds = %167, %174
%175 = phi i64 [ %180, %174 ], [ %168, %167 ]
%176 = phi i64 [ %181, %174 ], [ 0, %167 ]
%177 = add nsw i64 %175, -1
%178 = mul nuw nsw i64 %177, %21
%179 = getelementptr inbounds float, float* %122, i64 %178
store float 0.000000e+00, float* %179
%180 = add nuw nsw i64 %175, 1
%181 = add i64 %176, 1
%182 = icmp eq i64 %181, %172
br i1 %182, label %183, label %174
183: ; preds = %174, %167
%184 = phi i64 [ %168, %167 ], [ %180, %174 ]
%185 = icmp ult i64 %171, 3
br i1 %185, label %217, label %202
186: ; preds = %217
br i1 %76, label %275, label %187
187: ; preds = %186
%188 = load i32, i32* %1
%189 = icmp slt i32 %188, 1
%190 = icmp slt i32 %114, 1
%191 = add i32 %114, 1
%192 = add i32 %188, 1
%193 = add nuw i32 %113, 1
%194 = zext i32 %193 to i64
%195 = zext i32 %192 to i64
%196 = zext i32 %191 to i64
%197 = add nsw i64 %196, -1
%198 = and i64 %197, 1
%199 = icmp eq i32 %191, 2
%200 = and i64 %197, -2
%201 = icmp eq i64 %198, 0
br label %220
202: ; preds = %183, %202
%203 = phi i64 [ %215, %202 ], [ %184, %183 ]
%204 = add nsw i64 %203, -1
%205 = mul nuw nsw i64 %204, %21
%206 = getelementptr inbounds float, float* %122, i64 %205
store float 0.000000e+00, float* %206
%207 = add nuw nsw i64 %203, 1
%208 = mul nuw nsw i64 %203, %21
%209 = getelementptr inbounds float, float* %122, i64 %208
store float 0.000000e+00, float* %209
%210 = add nuw nsw i64 %203, 2
%211 = mul nuw nsw i64 %207, %21
%212 = getelementptr inbounds float, float* %122, i64 %211
store float 0.000000e+00, float* %212
%213 = mul nuw nsw i64 %210, %21
%214 = getelementptr inbounds float, float* %122, i64 %213
store float 0.000000e+00, float* %214
%215 = add nuw nsw i64 %203, 4
%216 = icmp eq i64 %215, %83
br i1 %216, label %217, label %202
217: ; preds = %183, %202, %166, %118
%218 = add nuw nsw i64 %119, 1
%219 = icmp eq i64 %218, %82
br i1 %219, label %186, label %118
220: ; preds = %187, %272
%221 = phi i64 [ 1, %187 ], [ %273, %272 ]
br i1 %189, label %272, label %222
222: ; preds = %220
%223 = add nsw i64 %221, -1
%224 = getelementptr inbounds float, float* %27, i64 %223
%225 = getelementptr inbounds float, float* %23, i64 %223
br label %226
226: ; preds = %222, %269
%227 = phi i64 [ 1, %222 ], [ %270, %269 ]
br i1 %190, label %269, label %228
228: ; preds = %226
%229 = add nsw i64 %227, -1
%230 = mul nuw nsw i64 %229, %14
%231 = getelementptr inbounds float, float* %17, i64 %230
%232 = mul nuw nsw i64 %229, %21
%233 = getelementptr inbounds float, float* %224, i64 %232
%234 = load float, float* %233
br i1 %199, label %255, label %235
235: ; preds = %228, %235
%236 = phi i64 [ %252, %235 ], [ 1, %228 ]
%237 = phi float [ %251, %235 ], [ %234, %228 ]
%238 = phi i64 [ %253, %235 ], [ 0, %228 ]
%239 = add nsw i64 %236, -1
%240 = getelementptr inbounds float, float* %231, i64 %239
%241 = load float, float* %240
%242 = mul nuw nsw i64 %239, %21
%243 = getelementptr inbounds float, float* %225, i64 %242
%244 = load float, float* %243
%245 = call float @llvm.fmuladd.f32(float %241, float %244, float %237)
%246 = getelementptr inbounds float, float* %231, i64 %236
%247 = load float, float* %246
%248 = mul nuw nsw i64 %236, %21
%249 = getelementptr inbounds float, float* %225, i64 %248
%250 = load float, float* %249
%251 = call float @llvm.fmuladd.f32(float %247, float %250, float %245)
%252 = add nuw nsw i64 %236, 2
%253 = add i64 %238, 2
%254 = icmp eq i64 %253, %200
br i1 %254, label %255, label %235
255: ; preds = %235, %228
%256 = phi float [ undef, %228 ], [ %251, %235 ]
%257 = phi i64 [ 1, %228 ], [ %252, %235 ]
%258 = phi float [ %234, %228 ], [ %251, %235 ]
br i1 %201, label %267, label %259
259: ; preds = %255
%260 = add nsw i64 %257, -1
%261 = getelementptr inbounds float, float* %231, i64 %260
%262 = load float, float* %261
%263 = mul nuw nsw i64 %260, %21
%264 = getelementptr inbounds float, float* %225, i64 %263
%265 = load float, float* %264
%266 = call float @llvm.fmuladd.f32(float %262, float %265, float %258)
br label %267
267: ; preds = %255, %259
%268 = phi float [ %256, %255 ], [ %266, %259 ]
store float %268, float* %233
br label %269
269: ; preds = %267, %226
%270 = add nuw nsw i64 %227, 1
%271 = icmp eq i64 %270, %195
br i1 %271, label %272, label %226
272: ; preds = %269, %220
%273 = add nuw nsw i64 %221, 1
%274 = icmp eq i64 %273, %194
br i1 %274, label %275, label %220
275: ; preds = %272, %75, %42, %186
%276 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.15, i64 0, i64 0))
%277 = load i32, i32* %1
%278 = icmp slt i32 %277, 1
br i1 %278, label %304, label %279
279: ; preds = %275, %298
%280 = phi i64 [ %300, %298 ], [ 1, %275 ]
%281 = load i32, i32* %2
%282 = icmp slt i32 %281, 1
br i1 %282, label %298, label %283
283: ; preds = %279
%284 = add nsw i64 %280, -1
%285 = mul nuw nsw i64 %284, %14
%286 = getelementptr inbounds float, float* %17, i64 %285
br label %287
287: ; preds = %283, %287
%288 = phi i64 [ 1, %283 ], [ %294, %287 ]
%289 = add nsw i64 %288, -1
%290 = getelementptr inbounds float, float* %286, i64 %289
%291 = load float, float* %290
%292 = fpext float %291 to double
%293 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), double %292)
%294 = add nuw nsw i64 %288, 1
%295 = load i32, i32* %2
%296 = sext i32 %295 to i64
%297 = icmp slt i64 %288, %296
br i1 %297, label %287, label %298
298: ; preds = %287, %279
%299 = call i32 @putchar(i32 10)
%300 = add nuw nsw i64 %280, 1
%301 = load i32, i32* %1
%302 = sext i32 %301 to i64
%303 = icmp slt i64 %280, %302
br i1 %303, label %279, label %304
304: ; preds = %298, %275
%305 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.16, i64 0, i64 0))
%306 = load i32, i32* %2
%307 = icmp slt i32 %306, 1
br i1 %307, label %333, label %308
308: ; preds = %304, %327
%309 = phi i64 [ %329, %327 ], [ 1, %304 ]
%310 = load i32, i32* %3
%311 = icmp slt i32 %310, 1
br i1 %311, label %327, label %312
312: ; preds = %308
%313 = add nsw i64 %309, -1
%314 = mul nuw nsw i64 %313, %21
%315 = getelementptr inbounds float, float* %23, i64 %314
br label %316
316: ; preds = %312, %316
%317 = phi i64 [ 1, %312 ], [ %323, %316 ]
%318 = add nsw i64 %317, -1
%319 = getelementptr inbounds float, float* %315, i64 %318
%320 = load float, float* %319
%321 = fpext float %320 to double
%322 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), double %321)
%323 = add nuw nsw i64 %317, 1
%324 = load i32, i32* %3
%325 = sext i32 %324 to i64
%326 = icmp slt i64 %317, %325
br i1 %326, label %316, label %327
327: ; preds = %316, %308
%328 = call i32 @putchar(i32 10)
%329 = add nuw nsw i64 %309, 1
%330 = load i32, i32* %2
%331 = sext i32 %330 to i64
%332 = icmp slt i64 %309, %331
br i1 %332, label %308, label %333
333: ; preds = %327, %304
%334 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.17, i64 0, i64 0))
%335 = load i32, i32* %1
%336 = icmp slt i32 %335, 1
br i1 %336, label %362, label %337
337: ; preds = %333, %356
%338 = phi i64 [ %358, %356 ], [ 1, %333 ]
%339 = load i32, i32* %3
%340 = icmp slt i32 %339, 1
br i1 %340, label %356, label %341
341: ; preds = %337
%342 = add nsw i64 %338, -1
%343 = mul nuw nsw i64 %342, %21
%344 = getelementptr inbounds float, float* %27, i64 %343
br label %345
345: ; preds = %341, %345
%346 = phi i64 [ 1, %341 ], [ %352, %345 ]
%347 = add nsw i64 %346, -1
%348 = getelementptr inbounds float, float* %344, i64 %347
%349 = load float, float* %348
%350 = fpext float %349 to double
%351 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), double %350)
%352 = add nuw nsw i64 %346, 1
%353 = load i32, i32* %3
%354 = sext i32 %353 to i64
%355 = icmp slt i64 %346, %354
br i1 %355, label %345, label %356
356: ; preds = %345, %337
%357 = call i32 @putchar(i32 10)
%358 = add nuw nsw i64 %338, 1
%359 = load i32, i32* %1
%360 = sext i32 %359 to i64
%361 = icmp slt i64 %338, %360
br i1 %361, label %337, label %362
362: ; preds = %356, %333
ret i32 0
}