#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*/ EsperarMiliSeg(int);
int /*<<< orphan*/ MoverCursor(int, int);
int /*<<< orphan*/ printf(char *);
int main(void) {
  int fila, columna;
  BorrarPantalla();
  for (columna = 1; columna < 79; columna++) {
    for (fila = 1; fila < 24; fila++) {
      MoverCursor(columna, fila);
      printf("*");
      EsperarMiliSeg(30);
    };
  };
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <BorrarPantalla@plt>
movl   $0x1,-0xc(%rbp)
cmpl   $0x4f,-0xc(%rbp)
jge    11ba <main+0x7a>
movl   $0x1,-0x8(%rbp)
cmpl   $0x18,-0x8(%rbp)
jge    11a7 <main+0x67>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1060 <MoverCursor@plt>
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1e,%edi
call   1050 <EsperarMiliSeg@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    116e <main+0x2e>
jmp    11ac <main+0x6c>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    115d <main+0x1d>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <BorrarPantalla@plt>
mov    $0x1,%ebx
nop
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ebx,%edi
mov    %ebp,%esi
call   1060 <MoverCursor@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x1e,%edi
call   1050 <EsperarMiliSeg@plt>
add    $0x1,%ebp
cmp    $0x18,%ebp
jne    1160 <main+0x20>
add    $0x1,%ebx
cmp    $0x4f,%ebx
jne    1150 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"*\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (...) @BorrarPantalla()
store i32 1, i32* %3
br label %5
5: ; preds = %22, %0
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 79
br i1 %7, label %8, label %25
8: ; preds = %5
store i32 1, i32* %2
br label %9
9: ; preds = %18, %8
%10 = load i32, i32* %2
%11 = icmp slt i32 %10, 24
br i1 %11, label %12, label %21
12: ; preds = %9
%13 = load i32, i32* %3
%14 = load i32, i32* %2
%15 = call i32 @MoverCursor(i32 %13, i32 %14)
%16 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @EsperarMiliSeg(i32 30)
br label %18
18: ; preds = %12
%19 = load i32, i32* %2
%20 = add nsw i32 %19, 1
store i32 %20, i32* %2
br label %9
21: ; preds = %9
br label %22
22: ; preds = %21
%23 = load i32, i32* %3
%24 = add nsw i32 %23, 1
store i32 %24, i32* %3
br label %5
25: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @BorrarPantalla()
br label %2
2: ; preds = %0, %11
%3 = phi i32 [ 1, %0 ], [ %12, %11 ]
br label %4
4: ; preds = %2, %4
%5 = phi i32 [ 1, %2 ], [ %9, %4 ]
%6 = tail call i32 @MoverCursor(i32 %3, i32 %5)
%7 = tail call i32 @putchar(i32 42)
%8 = tail call i32 @EsperarMiliSeg(i32 30)
%9 = add nuw nsw i32 %5, 1
%10 = icmp eq i32 %9, 24
br i1 %10, label %11, label %4
11: ; preds = %4
%12 = add nuw nsw i32 %3, 1
%13 = icmp eq i32 %12, 79
br i1 %13, label %14, label %2
14: ; preds = %11
ret i32 0
}