#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*/ gets(char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ system(char *);
main() {
  char nom[30], comida[20], pelicula[20];
  printf("ingresa nombre completo:");
  gets(nom);
  printf("cual es tu comida favorita:");
  gets(comida);
  printf("cual es tu pelicula favorita:");
  gets(pelicula);
  system("clear");
  printf("tu nombre es: ");
  puts(nom);
  printf("tu comida favorita es: ");
  puts(comida);
  printf("tu pelicula favorita es: ");
  puts(pelicula);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
lea    0xeb1(%rip),%rdi
call   1050 <printf@plt>
lea    -0x20(%rbp),%rdi
call   1060 <gets@plt>
lea    0xeb5(%rip),%rdi
call   1050 <printf@plt>
lea    -0x40(%rbp),%rdi
call   1060 <gets@plt>
lea    0xebc(%rip),%rdi
call   1050 <printf@plt>
lea    -0x60(%rbp),%rdi
call   1060 <gets@plt>
lea    0xec5(%rip),%rdi
call   1040 <system@plt>
lea    0xebf(%rip),%rdi
call   1050 <printf@plt>
lea    -0x20(%rbp),%rdi
call   1030 <puts@plt>
lea    0xeb9(%rip),%rdi
call   1050 <printf@plt>
lea    -0x40(%rbp),%rdi
call   1030 <puts@plt>
lea    0xebc(%rip),%rdi
call   1050 <printf@plt>
lea    -0x60(%rbp),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x60,%rsp
lea    0xeb0(%rip),%rdi
call   1050 <printf@plt>
lea    0x40(%rsp),%r14
mov    %r14,%rdi
call   1060 <gets@plt>
lea    0xeb0(%rip),%rdi
call   1050 <printf@plt>
lea    0x20(%rsp),%r15
mov    %r15,%rdi
call   1060 <gets@plt>
lea    0xeb3(%rip),%rdi
call   1050 <printf@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1060 <gets@plt>
lea    0xeba(%rip),%rdi
call   1040 <system@plt>
lea    0xeb4(%rip),%rdi
call   1050 <printf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xeaf(%rip),%rdi
call   1050 <printf@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
lea    0xeb3(%rip),%rdi
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [25 x i8] c"ingresa nombre completo:\00"
@.str.1 = [28 x i8] c"cual es tu comida favorita:\00"
@.str.2 = [30 x i8] c"cual es tu pelicula favorita:\00"
@.str.3 = [6 x i8] c"clear\00"
@.str.4 = [15 x i8] c"tu nombre es: \00"
@.str.5 = [24 x i8] c"tu comida favorita es: \00"
@.str.6 = [26 x i8] c"tu pelicula favorita es: \00"
define i32 @main() {
%1 = alloca [30 x i8]
%2 = alloca [20 x i8]
%3 = alloca [20 x i8]
%4 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%5 = getelementptr inbounds [30 x i8], [30 x i8]* %1, i64 0, i64 0
%6 = call i32 @gets(i8* %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%8 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%9 = call i32 @gets(i8* %8)
%10 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%11 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%12 = call i32 @gets(i8* %11)
%13 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%15 = getelementptr inbounds [30 x i8], [30 x i8]* %1, i64 0, i64 0
%16 = call i32 @puts(i8* %15)
%17 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%18 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%19 = call i32 @puts(i8* %18)
%20 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%21 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%22 = call i32 @puts(i8* %21)
ret i32 0
}

LLVM IR (-O2):
@.str = [25 x i8] c"ingresa nombre completo:\00"
@.str.1 = [28 x i8] c"cual es tu comida favorita:\00"
@.str.2 = [30 x i8] c"cual es tu pelicula favorita:\00"
@.str.3 = [6 x i8] c"clear\00"
@.str.4 = [15 x i8] c"tu nombre es: \00"
@.str.5 = [24 x i8] c"tu comida favorita es: \00"
@.str.6 = [26 x i8] c"tu pelicula favorita es: \00"
define i32 @main() {
%1 = alloca [30 x i8]
%2 = alloca [20 x i8]
%3 = alloca [20 x i8]
%4 = getelementptr inbounds [30 x i8], [30 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @gets(i8* %4)
%9 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @gets(i8* %5)
%11 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 @gets(i8* %6)
%13 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 @puts(i8* %4)
%16 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%17 = call i32 @puts(i8* %5)
%18 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%19 = call i32 @puts(i8* %6)
ret i32 0
}