#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*/ box(int /*<<< orphan*/ *, char, char);
int /*<<< orphan*/ getmaxyx(int /*<<< orphan*/ *, int, int);
int /*<<< orphan*/ mvwaddstr(int /*<<< orphan*/ *, int /*<<< orphan*/, int,
                             char *);
int /*<<< orphan*/ mvwprintw(int /*<<< orphan*/ *, int, int, char *);
int /*<<< orphan*/ mvwvline(int /*<<< orphan*/ *, int /*<<< orphan*/, int,
                            int /*<<< orphan*/, int);
int /*<<< orphan*/ refresh();
int /*<<< orphan*/ *stdscr;
int /*<<< orphan*/ wclear(int /*<<< orphan*/ *);
int /*<<< orphan*/ wrefresh(int /*<<< orphan*/ *);
void redraw(WINDOW *in, WINDOW *w) {
  int yy, xx;
  getmaxyx(stdscr, yy, xx);
  wclear(in);
  wclear(w);
  box(stdscr, '|', '=');
  refresh();
  mvwvline(in, 0, xx / 2, 0, 4);
  box(in, 0, 0);
  mvwaddstr(in, 0, 2, "<Input Handle>");
  mvwprintw(in, 1, xx / 2 + 3, "Ultima Entrada Std [ %c ]");
  wrefresh(in);
  wrefresh(w);
}


x86 assembly (clang, -O0):
<redraw>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e51(%rip),%rax
mov    (%rax),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1040 <getmaxyx@plt>
mov    -0x8(%rbp),%rdi
call   1070 <wclear@plt>
mov    -0x10(%rbp),%rdi
call   1070 <wclear@plt>
mov    0x2e2a(%rip),%rax
mov    (%rax),%rdi
mov    $0x7c,%esi
mov    $0x3d,%edx
call   1050 <box@plt>
mov    $0x0,%al
call   1060 <refresh@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
xor    %ecx,%ecx
mov    $0x4,%r8d
mov    %ecx,%esi
call   1090 <mvwvline@plt>
mov    -0x8(%rbp),%rdi
xor    %edx,%edx
mov    %edx,%esi
call   1050 <box@plt>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0x2,%edx
lea    0xdea(%rip),%rcx
call   10a0 <mvwaddstr@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
add    $0x3,%edx
mov    $0x1,%esi
lea    0xdd4(%rip),%rcx
call   1080 <mvwprintw@plt>
mov    -0x8(%rbp),%rdi
call   1030 <wrefresh@plt>
mov    -0x10(%rbp),%rdi
call   1030 <wrefresh@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<redraw>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
mov    0x2e56(%rip),%r15
mov    (%r15),%rdi
call   1040 <getmaxyx@plt>
mov    %rbx,%rdi
call   1070 <wclear@plt>
mov    %r14,%rdi
call   1070 <wclear@plt>
mov    (%r15),%rdi
mov    $0x7c,%esi
mov    $0x3d,%edx
call   1050 <box@plt>
xor    %eax,%eax
call   1060 <refresh@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0x4,%r8d
call   1090 <mvwvline@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <box@plt>
lea    0xe16(%rip),%rcx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x2,%edx
call   10a0 <mvwaddstr@plt>
lea    0xe0f(%rip),%rcx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x3,%edx
call   1080 <mvwprintw@plt>
mov    %rbx,%rdi
call   1030 <wrefresh@plt>
mov    %r14,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <wrefresh@plt>

LLVM IR (-O0):
@stdscr = global i32* null
@.str = [15 x i8] c"<Input Handle>\00"
@.str.1 = [26 x i8] c"Ultima Entrada Std [ %c ]\00"
define void @redraw(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
%7 = load i32*, i32** @stdscr
%8 = load i32, i32* %5
%9 = load i32, i32* %6
%10 = call i32 @getmaxyx(i32* %7, i32 %8, i32 %9)
%11 = load i32*, i32** %3
%12 = call i32 @wclear(i32* %11)
%13 = load i32*, i32** %4
%14 = call i32 @wclear(i32* %13)
%15 = load i32*, i32** @stdscr
%16 = call i32 @box(i32* %15, i8 signext 124, i8 signext 61)
%17 = call i32 (...) @refresh()
%18 = load i32*, i32** %3
%19 = load i32, i32* %6
%20 = sdiv i32 %19, 2
%21 = call i32 @mvwvline(i32* %18, i32 0, i32 %20, i32 0, i32 4)
%22 = load i32*, i32** %3
%23 = call i32 @box(i32* %22, i8 signext 0, i8 signext 0)
%24 = load i32*, i32** %3
%25 = call i32 @mvwaddstr(i32* %24, i32 0, i32 2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%26 = load i32*, i32** %3
%27 = load i32, i32* %6
%28 = sdiv i32 %27, 2
%29 = add nsw i32 %28, 3
%30 = call i32 @mvwprintw(i32* %26, i32 1, i32 %29, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%31 = load i32*, i32** %3
%32 = call i32 @wrefresh(i32* %31)
%33 = load i32*, i32** %4
%34 = call i32 @wrefresh(i32* %33)
ret void
}

LLVM IR (-O2):
@stdscr = global i32* null
@.str = [15 x i8] c"<Input Handle>\00"
@.str.1 = [26 x i8] c"Ultima Entrada Std [ %c ]\00"
define void @redraw(i32* %0, i32* %1) {
%3 = load i32*, i32** @stdscr
%4 = tail call i32 @getmaxyx(i32* %3, i32 undef, i32 undef)
%5 = tail call i32 @wclear(i32* %0)
%6 = tail call i32 @wclear(i32* %1)
%7 = load i32*, i32** @stdscr
%8 = tail call i32 @box(i32* %7, i8 signext 124, i8 signext 61)
%9 = tail call i32 (...) @refresh()
%10 = tail call i32 @mvwvline(i32* %0, i32 0, i32 0, i32 0, i32 4)
%11 = tail call i32 @box(i32* %0, i8 signext 0, i8 signext 0)
%12 = tail call i32 @mvwaddstr(i32* %0, i32 0, i32 2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%13 = tail call i32 @mvwprintw(i32* %0, i32 1, i32 3, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%14 = tail call i32 @wrefresh(i32* %0)
%15 = tail call i32 @wrefresh(i32* %1)
ret void
}