#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*/ getmaxyx(int /*<<< orphan*/ *, int, int);
int /*<<< orphan*/ mvwprintw(int /*<<< orphan*/ *, int, int, char *);
int /*<<< orphan*/ wrefresh(int /*<<< orphan*/ *);
void dibujarCartaTapada(WINDOW *ventana) {
  int row, col;
  getmaxyx(ventana, row, col);
  int x, y;
  for (y = 2; y + 2 < row; y++) {
    for (x = 2; x + 2 < col; x++) {
      mvwprintw(ventana, y, x, ".");
    }
  }
  wrefresh(ventana);
}


x86 assembly (clang, -O0):
<dibujarCartaTapada>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1040 <getmaxyx@plt>
movl   $0x2,-0x18(%rbp)
mov    -0x18(%rbp),%eax
add    $0x2,%eax
cmp    -0xc(%rbp),%eax
jge    11ae <dibujarCartaTapada+0x7e>
movl   $0x2,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x2,%eax
cmp    -0x10(%rbp),%eax
jge    119b <dibujarCartaTapada+0x6b>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xe78(%rip),%rcx
call   1050 <mvwprintw@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1168 <dibujarCartaTapada+0x38>
jmp    11a0 <dibujarCartaTapada+0x70>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1152 <dibujarCartaTapada+0x22>
mov    -0x8(%rbp),%rdi
call   1030 <wrefresh@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dibujarCartaTapada>:
push   %rbx
mov    %rdi,%rbx
call   1040 <getmaxyx@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <wrefresh@plt>

LLVM IR (-O0):
@.str = [2 x i8] c".\00"
define void @dibujarCartaTapada(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %2
%7 = load i32*, i32** %2
%8 = load i32, i32* %3
%9 = load i32, i32* %4
%10 = call i32 @getmaxyx(i32* %7, i32 %8, i32 %9)
store i32 2, i32* %6
br label %11
11: ; preds = %31, %1
%12 = load i32, i32* %6
%13 = add nsw i32 %12, 2
%14 = load i32, i32* %3
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %34
16: ; preds = %11
store i32 2, i32* %5
br label %17
17: ; preds = %27, %16
%18 = load i32, i32* %5
%19 = add nsw i32 %18, 2
%20 = load i32, i32* %4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %30
22: ; preds = %17
%23 = load i32*, i32** %2
%24 = load i32, i32* %6
%25 = load i32, i32* %5
%26 = call i32 @mvwprintw(i32* %23, i32 %24, i32 %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %27
27: ; preds = %22
%28 = load i32, i32* %5
%29 = add nsw i32 %28, 1
store i32 %29, i32* %5
br label %17
30: ; preds = %17
br label %31
31: ; preds = %30
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
store i32 %33, i32* %6
br label %11
34: ; preds = %11
%35 = load i32*, i32** %2
%36 = call i32 @wrefresh(i32* %35)
ret void
}

LLVM IR (-O2):
define void @dibujarCartaTapada(i32* %0) {
%2 = tail call i32 @getmaxyx(i32* %0, i32 undef, i32 undef)
%3 = tail call i32 @wrefresh(i32* %0)
ret void
}