#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 */
typedef int /*<<< orphan*/ WINDOW;

/* Variables and functions */
int /*<<< orphan*/ COLOR_BLACK;
int /*<<< orphan*/ COLOR_BLUE;
int /*<<< orphan*/ COLOR_PAIR(int);
int /*<<< orphan*/ box(int /*<<< orphan*/ *, int /*<<< orphan*/,
                       int /*<<< orphan*/);
int /*<<< orphan*/ init_pair(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ *newwin(int, int, int, int);
int /*<<< orphan*/ wattroff(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ wattron(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ wrefresh(int /*<<< orphan*/ *);
WINDOW *nuevaVentana(int alto, int ancho, int y0, int x0) {
  WINDOW *w = newwin(alto, ancho, y0, x0);
  init_pair(2, COLOR_BLACK, COLOR_BLUE);
  wattron(w, COLOR_PAIR(2));
  box(w, 0, 0);
  wattroff(w, COLOR_PAIR(1));
  wrefresh(w);
  return w;
}


x86 assembly (clang, -O0):
<nuevaVentana>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
call   1050 <newwin@plt>
mov    %rax,-0x18(%rbp)
mov    0x2e48(%rip),%rax
mov    (%rax),%esi
mov    0x2e2f(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%edi
call   1030 <init_pair@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    $0x2,%edi
call   1070 <COLOR_PAIR@plt>
mov    -0x28(%rbp),%rdi
mov    %eax,%esi
call   1090 <wattron@plt>
mov    -0x18(%rbp),%rdi
xor    %edx,%edx
mov    %edx,%esi
call   1060 <box@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    $0x1,%edi
call   1070 <COLOR_PAIR@plt>
mov    -0x20(%rbp),%rdi
mov    %eax,%esi
call   1080 <wattroff@plt>
mov    -0x18(%rbp),%rdi
call   1040 <wrefresh@plt>
mov    -0x18(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nuevaVentana>:
push   %rbx
call   1050 <newwin@plt>
mov    %rax,%rbx
mov    0x2e68(%rip),%rax
mov    (%rax),%esi
mov    0x2e4f(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%edi
call   1030 <init_pair@plt>
mov    $0x2,%edi
call   1070 <COLOR_PAIR@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1090 <wattron@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1060 <box@plt>
mov    $0x1,%edi
call   1070 <COLOR_PAIR@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1080 <wattroff@plt>
mov    %rbx,%rdi
call   1040 <wrefresh@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@COLOR_BLACK = global i32 0
@COLOR_BLUE = global i32 0
define i32* @nuevaVentana(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%10 = load i32, i32* %5
%11 = load i32, i32* %6
%12 = load i32, i32* %7
%13 = load i32, i32* %8
%14 = call i32* @newwin(i32 %10, i32 %11, i32 %12, i32 %13)
store i32* %14, i32** %9
%15 = load i32, i32* @COLOR_BLACK
%16 = load i32, i32* @COLOR_BLUE
%17 = call i32 @init_pair(i32 2, i32 %15, i32 %16)
%18 = load i32*, i32** %9
%19 = call i32 @COLOR_PAIR(i32 2)
%20 = call i32 @wattron(i32* %18, i32 %19)
%21 = load i32*, i32** %9
%22 = call i32 @box(i32* %21, i32 0, i32 0)
%23 = load i32*, i32** %9
%24 = call i32 @COLOR_PAIR(i32 1)
%25 = call i32 @wattroff(i32* %23, i32 %24)
%26 = load i32*, i32** %9
%27 = call i32 @wrefresh(i32* %26)
%28 = load i32*, i32** %9
ret i32* %28
}

LLVM IR (-O2):
@COLOR_BLACK = global i32 0
@COLOR_BLUE = global i32 0
define i32* @nuevaVentana(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32* @newwin(i32 %0, i32 %1, i32 %2, i32 %3)
%6 = load i32, i32* @COLOR_BLACK
%7 = load i32, i32* @COLOR_BLUE
%8 = tail call i32 @init_pair(i32 2, i32 %6, i32 %7)
%9 = tail call i32 @COLOR_PAIR(i32 2)
%10 = tail call i32 @wattron(i32* %5, i32 %9)
%11 = tail call i32 @box(i32* %5, i32 0, i32 0)
%12 = tail call i32 @COLOR_PAIR(i32 1)
%13 = tail call i32 @wattroff(i32* %5, i32 %12)
%14 = tail call i32 @wrefresh(i32* %5)
ret i32* %5
}