#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*/ ordena(char **);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, char *);
int main(void) {
  char nombres[4][50];
  int i;
  for (i = 0; i < 4; i++) {
    printf("Ingrese Nombre_:");
    scanf("%s", nombres[i]);
  }
  ordena(nombres);
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xd4(%rbp)
cmpl   $0x4,-0xd4(%rbp)
jge    119a <main+0x6a>
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
movslq -0xd4(%rbp),%rax
lea    -0xd0(%rbp),%rsi
imul   $0x32,%rax,%rax
add    %rax,%rsi
lea    0xe90(%rip),%rdi
call   1050 <scanf@plt>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    114c <main+0x1c>
lea    -0xd0(%rbp),%rdi
call   1040 <ordena@plt>
mov    $0x1,%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0xd0,%rsp
lea    0xebd(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xebf(%rip),%r15
mov    %rsp,%r14
mov    %r15,%rdi
mov    %r14,%rsi
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x32(%rsp),%rsi
mov    %r15,%rdi
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x64(%rsp),%rsi
mov    %r15,%rdi
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x96(%rsp),%rsi
mov    %r15,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
call   1040 <ordena@plt>
mov    $0x1,%eax
add    $0xd0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [17 x i8] c"Ingrese Nombre_:\00"
@.str.1 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x [50 x i8]]
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
br label %4
4: ; preds = %14, %0
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 4
br i1 %6, label %7, label %17
7: ; preds = %4
%8 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [4 x [50 x i8]], [4 x [50 x i8]]* %2, i64 0, i64 %10
%12 = getelementptr inbounds [50 x i8], [50 x i8]* %11, i64 0, i64 0
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %12)
br label %14
14: ; preds = %7
%15 = load i32, i32* %3
%16 = add nsw i32 %15, 1
store i32 %16, i32* %3
br label %4
17: ; preds = %4
%18 = getelementptr inbounds [4 x [50 x i8]], [4 x [50 x i8]]* %2, i64 0, i64 0
%19 = bitcast [50 x i8]* %18 to i8**
%20 = call i32 @ordena(i8** %19)
ret i32 1
}

LLVM IR (-O2):
@.str = [17 x i8] c"Ingrese Nombre_:\00"
@.str.1 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca [4 x [50 x i8]]
%2 = getelementptr inbounds [4 x [50 x i8]], [4 x [50 x i8]]* %1, i64 0, i64 0, i64 0
%3 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%5 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%6 = getelementptr inbounds [4 x [50 x i8]], [4 x [50 x i8]]* %1, i64 0, i64 1, i64 0
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%8 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%9 = getelementptr inbounds [4 x [50 x i8]], [4 x [50 x i8]]* %1, i64 0, i64 2, i64 0
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %9)
%11 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%12 = getelementptr inbounds [4 x [50 x i8]], [4 x [50 x i8]]* %1, i64 0, i64 3, i64 0
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = bitcast [4 x [50 x i8]]* %1 to i8**
%15 = call i32 @ordena(i8** %14)
ret i32 1
}