#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*/ getchar();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ system(char *);
int main(int argc, char **argv) {
  printf("A continuacion se imprimira la lista de alumnos actualmente en LSC "
         "\n [Press Enter To Continue]");
  getchar();
  system("ls -l /externos/home/alumnos/ | cut -d' ' -f4 | sort -u | sed -e "
         "86,147d | tee al.lst");
  printf("Se a Creado el listado: al.lst  \n [Press Enter To Continue]");
  getchar();
  system("./re.sh");
  printf("A continuacion una lista de nombres de alumnos con nombres mas "
         "largos que el promedio \n  [Press Enter To Continue]");
  getchar();
  system("./re.sh | cut -d ' ' -f5 | sed 1,3d | sed 3~3d | awk '{if($1 ~ "
         "/[[:alpha:]].*/ && length($1) >= 8 ) print}'");
  printf("y ahora; lista de nombres de alumnos con nombres mas cortos que el "
         "promedio: \n [Press Enter To Continue] ");
  getchar();
  system("./re.sh | cut -d ' ' -f5 | sed 1,3d | sed 3~3d | awk '{if($1 ~ "
         "/[[:alpha:]].*/ && length($1) < 8 ) print}'");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb3(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
lea    0xeff(%rip),%rdi
call   1030 <system@plt>
lea    0xf49(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
lea    0xf72(%rip),%rdi
call   1030 <system@plt>
lea    0xf6e(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
lea    0xfce(%rip),%rdi
call   1030 <system@plt>
lea    0x102e(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
lea    0x1085(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
lea    0xf14(%rip),%rdi
call   1030 <system@plt>
lea    0xf5e(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
lea    0xf87(%rip),%rdi
call   1030 <system@plt>
lea    0xf83(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
lea    0xfe3(%rip),%rdi
call   1030 <system@plt>
lea    0x1043(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
lea    0x109a(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [95 x i8] c"A continuacion se imprimira la lista de alumnos actualmente en LSC \0A [Press Enter To Continue]\00"
@.str.1 = [86 x i8] c"ls -l /externos/home/alumnos/ | cut -d' ' -f4 | sort -u | sed -e 86,147d | tee al.lst\00"
@.str.2 = [60 x i8] c"Se a Creado el listado: al.lst \0A [Press Enter To Continue]\00"
@.str.3 = [8 x i8] c"./re.sh\00"
@.str.4 = [115 x i8] c"A continuacion una lista de nombres de alumnos con nombres mas largos que el promedio \0A [Press Enter To Continue]\00"
@.str.5 = [108 x i8] c"./re.sh | cut -d ' ' -f5 | sed 1,3d | sed 3~3d | awk '{if($1 ~ /[[:alpha:]].*/ && length($1) >= 8 ) print}'\00"
@.str.6 = [106 x i8] c"y ahora; lista de nombres de alumnos con nombres mas cortos que el promedio: \0A [Press Enter To Continue] \00"
@.str.7 = [107 x i8] c"./re.sh | cut -d ' ' -f5 | sed 1,3d | sed 3~3d | awk '{if($1 ~ /[[:alpha:]].*/ && length($1) < 8 ) print}'\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (...) @getchar()
%8 = call i32 @system(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (...) @getchar()
%11 = call i32 @system(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 (...) @getchar()
%14 = call i32 @system(i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([106 x i8], [106 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 (...) @getchar()
%17 = call i32 @system(i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [95 x i8] c"A continuacion se imprimira la lista de alumnos actualmente en LSC \0A [Press Enter To Continue]\00"
@.str.1 = [86 x i8] c"ls -l /externos/home/alumnos/ | cut -d' ' -f4 | sort -u | sed -e 86,147d | tee al.lst\00"
@.str.2 = [60 x i8] c"Se a Creado el listado: al.lst \0A [Press Enter To Continue]\00"
@.str.3 = [8 x i8] c"./re.sh\00"
@.str.4 = [115 x i8] c"A continuacion una lista de nombres de alumnos con nombres mas largos que el promedio \0A [Press Enter To Continue]\00"
@.str.5 = [108 x i8] c"./re.sh | cut -d ' ' -f5 | sed 1,3d | sed 3~3d | awk '{if($1 ~ /[[:alpha:]].*/ && length($1) >= 8 ) print}'\00"
@.str.6 = [106 x i8] c"y ahora; lista de nombres de alumnos con nombres mas cortos que el promedio: \0A [Press Enter To Continue] \00"
@.str.7 = [107 x i8] c"./re.sh | cut -d ' ' -f5 | sed 1,3d | sed 3~3d | awk '{if($1 ~ /[[:alpha:]].*/ && length($1) < 8 ) print}'\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 (...) @getchar()
%5 = tail call i32 @system(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 (...) @getchar()
%8 = tail call i32 @system(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([115 x i8], [115 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 (...) @getchar()
%11 = tail call i32 @system(i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([106 x i8], [106 x i8]* @.str.6, i64 0, i64 0))
%13 = tail call i32 (...) @getchar()
%14 = tail call i32 @system(i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}