#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*/ getch();
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ move(int, int);
int /*<<< orphan*/ printw(char *, char);
int /*<<< orphan*/ refresh();
int /*<<< orphan*/ salir();
int main(void) {
  int i;
  char c;
  initscr();
  c = 61;
  for (i = 1; i <= 82; i++) {
    move(1, i);
    printw("%c", c);
    move(21, i);
    printw("%c", c);
  }
  c = 58;
  for (i = 2; i <= 20; i++) {
    move(i, 1);
    printw("%c", c);
    move(i, 82);
    printw("%c", c);
  }
  refresh();
  getch();
  salir();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <initscr@plt>
movb   $0x3d,-0x9(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x52,-0x8(%rbp)
jg     11d3 <main+0x73>
mov    -0x8(%rbp),%esi
mov    $0x1,%edi
call   1080 <move@plt>
lea    0xe61(%rip),%rdi
movsbl -0x9(%rbp),%esi
call   1050 <printw@plt>
mov    -0x8(%rbp),%esi
mov    $0x15,%edi
call   1080 <move@plt>
lea    0xe44(%rip),%rdi
movsbl -0x9(%rbp),%esi
call   1050 <printw@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1181 <main+0x21>
movb   $0x3a,-0x9(%rbp)
movl   $0x2,-0x8(%rbp)
cmpl   $0x14,-0x8(%rbp)
jg     1230 <main+0xd0>
mov    -0x8(%rbp),%edi
mov    $0x1,%esi
call   1080 <move@plt>
lea    0xe04(%rip),%rdi
movsbl -0x9(%rbp),%esi
call   1050 <printw@plt>
mov    -0x8(%rbp),%edi
mov    $0x52,%esi
call   1080 <move@plt>
lea    0xde7(%rip),%rdi
movsbl -0x9(%rbp),%esi
call   1050 <printw@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11de <main+0x7e>
mov    $0x0,%al
call   1060 <refresh@plt>
mov    $0x0,%al
call   1070 <getch@plt>
mov    $0x0,%al
call   1040 <salir@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <initscr@plt>
mov    $0x1,%ebx
lea    0xe89(%rip),%r14
nopw   0x0(%rax,%rax,1)
mov    $0x1,%edi
mov    %ebx,%esi
call   1080 <move@plt>
mov    %r14,%rdi
mov    $0x3d,%esi
call   1050 <printw@plt>
mov    $0x15,%edi
mov    %ebx,%esi
call   1080 <move@plt>
mov    %r14,%rdi
mov    $0x3d,%esi
call   1050 <printw@plt>
add    $0x1,%ebx
cmp    $0x53,%ebx
jne    1180 <main+0x20>
mov    $0x2,%ebx
lea    0xe3a(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
mov    %ebx,%edi
mov    $0x1,%esi
call   1080 <move@plt>
mov    %r14,%rdi
mov    $0x3a,%esi
call   1050 <printw@plt>
mov    %ebx,%edi
mov    $0x52,%esi
call   1080 <move@plt>
mov    %r14,%rdi
mov    $0x3a,%esi
call   1050 <printw@plt>
add    $0x1,%ebx
cmp    $0x15,%ebx
jne    11d0 <main+0x70>
xor    %eax,%eax
call   1060 <refresh@plt>
xor    %eax,%eax
call   1070 <getch@plt>
xor    %eax,%eax
call   1040 <salir@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
store i32 0, i32* %1
%4 = call i32 (...) @initscr()
store i8 61, i8* %3
store i32 1, i32* %2
br label %5
5: ; preds = %17, %0
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 82
br i1 %7, label %8, label %20
8: ; preds = %5
%9 = load i32, i32* %2
%10 = call i32 @move(i32 1, i32 %9)
%11 = load i8, i8* %3
%12 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %11)
%13 = load i32, i32* %2
%14 = call i32 @move(i32 21, i32 %13)
%15 = load i8, i8* %3
%16 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %15)
br label %17
17: ; preds = %8
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 1
store i32 %19, i32* %2
br label %5
20: ; preds = %5
store i8 58, i8* %3
store i32 2, i32* %2
br label %21
21: ; preds = %33, %20
%22 = load i32, i32* %2
%23 = icmp sle i32 %22, 20
br i1 %23, label %24, label %36
24: ; preds = %21
%25 = load i32, i32* %2
%26 = call i32 @move(i32 %25, i32 1)
%27 = load i8, i8* %3
%28 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %27)
%29 = load i32, i32* %2
%30 = call i32 @move(i32 %29, i32 82)
%31 = load i8, i8* %3
%32 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %31)
br label %33
33: ; preds = %24
%34 = load i32, i32* %2
%35 = add nsw i32 %34, 1
store i32 %35, i32* %2
br label %21
36: ; preds = %21
%37 = call i32 (...) @refresh()
%38 = call i32 (...) @getch()
%39 = call i32 (...) @salir()
%40 = load i32, i32* %1
ret i32 %40
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = tail call i32 (...) @initscr()
br label %2
2: ; preds = %0, %2
%3 = phi i32 [ 1, %0 ], [ %8, %2 ]
%4 = tail call i32 @move(i32 1, i32 %3)
%5 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 61)
%6 = tail call i32 @move(i32 21, i32 %3)
%7 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 61)
%8 = add nuw nsw i32 %3, 1
%9 = icmp eq i32 %8, 83
br i1 %9, label %10, label %2
10: ; preds = %2, %10
%11 = phi i32 [ %16, %10 ], [ 2, %2 ]
%12 = tail call i32 @move(i32 %11, i32 1)
%13 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 58)
%14 = tail call i32 @move(i32 %11, i32 82)
%15 = tail call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 58)
%16 = add nuw nsw i32 %11, 1
%17 = icmp eq i32 %16, 21
br i1 %17, label %18, label %10
18: ; preds = %10
%19 = tail call i32 (...) @refresh()
%20 = tail call i32 (...) @getch()
%21 = tail call i32 (...) @salir()
ret i32 0
}