#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*/ BorrarPantalla();
int /*<<< orphan*/ MoverCursor(int, int);
int /*<<< orphan*/ puts(char *);
void Iniciar(void) {
  BorrarPantalla();
  puts("SIMULACION DE EJECUCION DE PROCESOS \"ESCOMIAMOS\" CORRIENDO...");
  MoverCursor(0, 3);
  puts("PROCESO  >>ACTIVIDAD:\nANTERIOR >>       ID:");
  MoverCursor(0, 9);
  puts("PROCESO  >>ACTIVIDAD:\nACTUAL   >>       ID:");
  MoverCursor(0, 15);
  puts("PROCESO  >>ACTIVIDAD:\nSIGUIENTE>>       ID:");
  MoverCursor(12, 2);
  puts("  NOMBRE:");
  MoverCursor(12, 8);
  puts("  NOMBRE:");
  MoverCursor(12, 14);
  puts("  NOMBRE:");
  MoverCursor(12, 5);
  puts(" TIEMPO>>");
  MoverCursor(12, 11);
  puts(" TIEMPO>>");
  MoverCursor(12, 17);
  puts(" TIEMPO>>");
}


x86 assembly (clang, -O0):
<Iniciar>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <BorrarPantalla@plt>
lea    0xebe(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
mov    $0x3,%esi
call   1050 <MoverCursor@plt>
lea    0xee4(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
mov    $0x9,%esi
call   1050 <MoverCursor@plt>
lea    0xef8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
mov    $0xf,%esi
call   1050 <MoverCursor@plt>
lea    0xf0c(%rip),%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    $0x2,%esi
call   1050 <MoverCursor@plt>
lea    0xf1d(%rip),%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    $0x8,%esi
call   1050 <MoverCursor@plt>
lea    0xf02(%rip),%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    $0xe,%esi
call   1050 <MoverCursor@plt>
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    $0x5,%esi
call   1050 <MoverCursor@plt>
lea    0xed6(%rip),%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    $0xb,%esi
call   1050 <MoverCursor@plt>
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    $0x11,%esi
call   1050 <MoverCursor@plt>
lea    0xea0(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Iniciar>:
push   %rbx
xor    %eax,%eax
call   1040 <BorrarPantalla@plt>
lea    0xec1(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
mov    $0x3,%esi
call   1050 <MoverCursor@plt>
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
mov    $0x9,%esi
call   1050 <MoverCursor@plt>
lea    0xefb(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
mov    $0xf,%esi
call   1050 <MoverCursor@plt>
lea    0xf0f(%rip),%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    $0x2,%esi
call   1050 <MoverCursor@plt>
lea    0xf20(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    $0x8,%esi
call   1050 <MoverCursor@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    $0xe,%esi
call   1050 <MoverCursor@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    $0x5,%esi
call   1050 <MoverCursor@plt>
lea    0xede(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    $0xb,%esi
call   1050 <MoverCursor@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    $0x11,%esi
call   1050 <MoverCursor@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [62 x i8] c"SIMULACION DE EJECUCION DE PROCESOS \22ESCOMIAMOS\22 CORRIENDO...\00"
@.str.1 = [44 x i8] c"PROCESO >>ACTIVIDAD:\0AANTERIOR >> ID:\00"
@.str.2 = [44 x i8] c"PROCESO >>ACTIVIDAD:\0AACTUAL >> ID:\00"
@.str.3 = [44 x i8] c"PROCESO >>ACTIVIDAD:\0ASIGUIENTE>> ID:\00"
@.str.4 = [10 x i8] c" NOMBRE:\00"
@.str.5 = [10 x i8] c" TIEMPO>>\00"
define void @Iniciar() {
%1 = call i32 (...) @BorrarPantalla()
%2 = call i32 @puts(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @MoverCursor(i32 0, i32 3)
%4 = call i32 @puts(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @MoverCursor(i32 0, i32 9)
%6 = call i32 @puts(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @MoverCursor(i32 0, i32 15)
%8 = call i32 @puts(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @MoverCursor(i32 12, i32 2)
%10 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @MoverCursor(i32 12, i32 8)
%12 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 @MoverCursor(i32 12, i32 14)
%14 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 @MoverCursor(i32 12, i32 5)
%16 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%17 = call i32 @MoverCursor(i32 12, i32 11)
%18 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%19 = call i32 @MoverCursor(i32 12, i32 17)
%20 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [62 x i8] c"SIMULACION DE EJECUCION DE PROCESOS \22ESCOMIAMOS\22 CORRIENDO...\00"
@.str.1 = [44 x i8] c"PROCESO >>ACTIVIDAD:\0AANTERIOR >> ID:\00"
@.str.2 = [44 x i8] c"PROCESO >>ACTIVIDAD:\0AACTUAL >> ID:\00"
@.str.3 = [44 x i8] c"PROCESO >>ACTIVIDAD:\0ASIGUIENTE>> ID:\00"
@.str.4 = [10 x i8] c" NOMBRE:\00"
@.str.5 = [10 x i8] c" TIEMPO>>\00"
define void @Iniciar() {
%1 = tail call i32 (...) @BorrarPantalla()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @MoverCursor(i32 0, i32 3)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @MoverCursor(i32 0, i32 9)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @MoverCursor(i32 0, i32 15)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @MoverCursor(i32 12, i32 2)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%11 = tail call i32 @MoverCursor(i32 12, i32 8)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%13 = tail call i32 @MoverCursor(i32 12, i32 14)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%15 = tail call i32 @MoverCursor(i32 12, i32 5)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%17 = tail call i32 @MoverCursor(i32 12, i32 11)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%19 = tail call i32 @MoverCursor(i32 12, i32 17)
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
ret void
}