#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);
int /*<<< orphan*/ scanf(char *, int *);
pideMatriz(int filas, int columnas, int matrizSalida[filas][columnas]) {
  for (int k = 0; k < filas; ++k) {
    printf("Introducazca %d numeros separados por espacio para la fila %d: ",
           columnas, k);
    for (int i = 0; i < columnas; ++i) {
      scanf("%d", &matrizSalida[k][i]);
    }
  }
}


x86 assembly (clang, -O0):
<pideMatriz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11c0 <pideMatriz+0xa0>
mov    -0xc(%rbp),%esi
mov    -0x1c(%rbp),%edx
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11ad <pideMatriz+0x8d>
mov    -0x28(%rbp),%rcx
mov    -0x18(%rbp),%rsi
movslq -0x1c(%rbp),%rax
imul   %rcx,%rax
shl    $0x2,%rax
add    %rax,%rsi
movslq -0x20(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xea6(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1165 <pideMatriz+0x45>
jmp    11b2 <pideMatriz+0x92>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1140 <pideMatriz+0x20>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pideMatriz>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
test   %edi,%edi
jle    11a7 <pideMatriz+0x87>
mov    %rdx,%r12
mov    %esi,%r14d
mov    %esi,%eax
mov    %edi,%ecx
mov    %rcx,0x8(%rsp)
mov    %rax,0x10(%rsp)
lea    0x0(,%rax,4),%rax
mov    %rax,(%rsp)
xor    %r13d,%r13d
lea    0xee4(%rip),%rbx
jmp    116f <pideMatriz+0x4f>
xchg   %ax,%ax
add    $0x1,%r13
add    (%rsp),%r12
cmp    0x8(%rsp),%r13
je     11a7 <pideMatriz+0x87>
lea    0xe8a(%rip),%rdi
mov    %r14d,%esi
mov    %r13d,%edx
call   1030 <printf@plt>
mov    0x10(%rsp),%r15
mov    %r12,%rbp
test   %r14d,%r14d
jle    1160 <pideMatriz+0x40>
xchg   %ax,%ax
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1040 <scanf@plt>
add    $0x4,%rbp
add    $0xffffffffffffffff,%r15
jne    1190 <pideMatriz+0x70>
jmp    1160 <pideMatriz+0x40>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [64 x i8] c"Introducazca %d numeros separados por espacio para la fila %d: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @pideMatriz(i32 %0, i32 %1, i32* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32* %2, i32** %7
%10 = load i32, i32* %5
%11 = zext i32 %10 to i64
%12 = load i32, i32* %6
%13 = zext i32 %12 to i64
store i32 0, i32* %8
br label %14
14: ; preds = %40, %3
%15 = load i32, i32* %8
%16 = load i32, i32* %5
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %43
18: ; preds = %14
%19 = load i32, i32* %6
%20 = load i32, i32* %8
%21 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0), i32 %19, i32 %20)
store i32 0, i32* %9
br label %22
22: ; preds = %36, %18
%23 = load i32, i32* %9
%24 = load i32, i32* %6
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %39
26: ; preds = %22
%27 = load i32*, i32** %7
%28 = load i32, i32* %8
%29 = sext i32 %28 to i64
%30 = mul nsw i64 %29, %13
%31 = getelementptr inbounds i32, i32* %27, i64 %30
%32 = load i32, i32* %9
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, i32* %31, i64 %33
%35 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %34)
br label %36
36: ; preds = %26
%37 = load i32, i32* %9
%38 = add nsw i32 %37, 1
store i32 %38, i32* %9
br label %22
39: ; preds = %22
br label %40
40: ; preds = %39
%41 = load i32, i32* %8
%42 = add nsw i32 %41, 1
store i32 %42, i32* %8
br label %14
43: ; preds = %14
%44 = load i32, i32* %4
ret i32 %44
}

LLVM IR (-O2):
@.str = [64 x i8] c"Introducazca %d numeros separados por espacio para la fila %d: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @pideMatriz(i32 %0, i32 %1, i32* %2) {
%4 = zext i32 %1 to i64
%5 = icmp sgt i32 %0, 0
br i1 %5, label %6, label %9
6: ; preds = %3
%7 = icmp sgt i32 %1, 0
%8 = zext i32 %0 to i64
br label %10
9: ; preds = %17, %3
ret i32 undef
10: ; preds = %6, %17
%11 = phi i64 [ 0, %6 ], [ %18, %17 ]
%12 = trunc i64 %11 to i32
%13 = tail call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %12)
br i1 %7, label %14, label %17
14: ; preds = %10
%15 = mul nuw nsw i64 %11, %4
%16 = getelementptr inbounds i32, i32* %2, i64 %15
br label %20
17: ; preds = %20, %10
%18 = add nuw nsw i64 %11, 1
%19 = icmp eq i64 %18, %8
br i1 %19, label %9, label %10
20: ; preds = %14, %20
%21 = phi i64 [ 0, %14 ], [ %24, %20 ]
%22 = getelementptr inbounds i32, i32* %16, i64 %21
%23 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %22)
%24 = add nuw nsw i64 %21, 1
%25 = icmp eq i64 %24, %4
br i1 %25, label %17, label %20
}