#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_PAIR(int);
int /*<<< orphan*/ COLOR_RED;
int /*<<< orphan*/ COLOR_WHITE;
int /*<<< orphan*/ box(int /*<<< orphan*/ *, int /*<<< orphan*/,
                       int /*<<< orphan*/);
int /*<<< orphan*/ init_pair(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ wattroff(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ wattron(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ wbkgd(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ wrefresh(int /*<<< orphan*/ *);
void dibujarSeleccionada(WINDOW *ventana) {
  init_pair(1, COLOR_BLACK, COLOR_RED);
  init_pair(3, COLOR_WHITE, COLOR_BLACK);
  wbkgd(ventana, COLOR_PAIR(3));
  wattron(ventana, COLOR_PAIR(1));
  box(ventana, 0, 0);
  wattroff(ventana, COLOR_PAIR(1));
  wrefresh(ventana);
}


x86 assembly (clang, -O0):
<dibujarSeleccionada>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2e65(%rip),%rax
mov    (%rax),%esi
mov    0x2e44(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    0x2e39(%rip),%rax
mov    (%rax),%esi
mov    0x2e40(%rip),%rax
mov    (%rax),%edx
mov    $0x3,%edi
call   1030 <init_pair@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    $0x3,%edi
call   1070 <COLOR_PAIR@plt>
mov    -0x20(%rbp),%rdi
mov    %eax,%esi
call   1040 <wbkgd@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    $0x1,%edi
call   1070 <COLOR_PAIR@plt>
mov    -0x18(%rbp),%rdi
mov    %eax,%esi
call   1090 <wattron@plt>
mov    -0x8(%rbp),%rdi
xor    %edx,%edx
mov    %edx,%esi
call   1060 <box@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    $0x1,%edi
call   1070 <COLOR_PAIR@plt>
mov    -0x10(%rbp),%rdi
mov    %eax,%esi
call   1080 <wattroff@plt>
mov    -0x8(%rbp),%rdi
call   1050 <wrefresh@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dibujarSeleccionada>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x2e6a(%rip),%r14
mov    (%r14),%esi
mov    0x2e48(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%esi
mov    (%r14),%edx
mov    $0x3,%edi
call   1030 <init_pair@plt>
mov    $0x3,%edi
call   1070 <COLOR_PAIR@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <wbkgd@plt>
mov    $0x1,%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
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <wrefresh@plt>

LLVM IR (-O0):
@COLOR_BLACK = global i32 0
@COLOR_RED = global i32 0
@COLOR_WHITE = global i32 0
define void @dibujarSeleccionada(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32, i32* @COLOR_BLACK
%4 = load i32, i32* @COLOR_RED
%5 = call i32 @init_pair(i32 1, i32 %3, i32 %4)
%6 = load i32, i32* @COLOR_WHITE
%7 = load i32, i32* @COLOR_BLACK
%8 = call i32 @init_pair(i32 3, i32 %6, i32 %7)
%9 = load i32*, i32** %2
%10 = call i32 @COLOR_PAIR(i32 3)
%11 = call i32 @wbkgd(i32* %9, i32 %10)
%12 = load i32*, i32** %2
%13 = call i32 @COLOR_PAIR(i32 1)
%14 = call i32 @wattron(i32* %12, i32 %13)
%15 = load i32*, i32** %2
%16 = call i32 @box(i32* %15, i32 0, i32 0)
%17 = load i32*, i32** %2
%18 = call i32 @COLOR_PAIR(i32 1)
%19 = call i32 @wattroff(i32* %17, i32 %18)
%20 = load i32*, i32** %2
%21 = call i32 @wrefresh(i32* %20)
ret void
}

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