#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*/ move(int, int);
int /*<<< orphan*/ printw(char *);
int /*<<< orphan*/ refresh();
void imprime_menu(void) {
  move(11, 6);
  printw("Torre (1)");
  move(11, 22);
  printw("Torre (2)");
  move(11, 38);
  printw("Torre (3)");
  move(13, 0);
  printw("F1 -> Cancelar Jogada    F2 -> Reiniciar Jogo    ESC -> Sair");
  refresh();
  return;
}


x86 assembly (clang, -O0):
<imprime_menu>:
push   %rbp
mov    %rsp,%rbp
mov    $0xb,%edi
mov    $0x6,%esi
call   1050 <move@plt>
lea    0xeb6(%rip),%rdi
call   1030 <printw@plt>
mov    $0xb,%edi
mov    $0x16,%esi
call   1050 <move@plt>
lea    0xea5(%rip),%rdi
call   1030 <printw@plt>
mov    $0xb,%edi
mov    $0x26,%esi
call   1050 <move@plt>
lea    0xe94(%rip),%rdi
call   1030 <printw@plt>
mov    $0xd,%edi
xor    %esi,%esi
call   1050 <move@plt>
lea    0xe86(%rip),%rdi
call   1030 <printw@plt>
mov    $0x0,%al
call   1040 <refresh@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<imprime_menu>:
push   %rax
mov    $0xb,%edi
mov    $0x6,%esi
call   1050 <move@plt>
lea    0xeb9(%rip),%rdi
call   1030 <printw@plt>
mov    $0xb,%edi
mov    $0x16,%esi
call   1050 <move@plt>
lea    0xea8(%rip),%rdi
call   1030 <printw@plt>
mov    $0xb,%edi
mov    $0x26,%esi
call   1050 <move@plt>
lea    0xe97(%rip),%rdi
call   1030 <printw@plt>
mov    $0xd,%edi
xor    %esi,%esi
call   1050 <move@plt>
lea    0xe89(%rip),%rdi
call   1030 <printw@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <refresh@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"Torre (1)\00"
@.str.1 = [10 x i8] c"Torre (2)\00"
@.str.2 = [10 x i8] c"Torre (3)\00"
@.str.3 = [61 x i8] c"F1 -> Cancelar Jogada F2 -> Reiniciar Jogo ESC -> Sair\00"
define void @imprime_menu() {
%1 = call i32 @move(i32 11, i32 6)
%2 = call i32 @printw(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @move(i32 11, i32 22)
%4 = call i32 @printw(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @move(i32 11, i32 38)
%6 = call i32 @printw(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @move(i32 13, i32 0)
%8 = call i32 @printw(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 (...) @refresh()
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"Torre (1)\00"
@.str.1 = [10 x i8] c"Torre (2)\00"
@.str.2 = [10 x i8] c"Torre (3)\00"
@.str.3 = [61 x i8] c"F1 -> Cancelar Jogada F2 -> Reiniciar Jogo ESC -> Sair\00"
define void @imprime_menu() {
%1 = tail call i32 @move(i32 11, i32 6)
%2 = tail call i32 @printw(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @move(i32 11, i32 22)
%4 = tail call i32 @printw(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @move(i32 11, i32 38)
%6 = tail call i32 @printw(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @move(i32 13, i32 0)
%8 = tail call i32 @printw(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 (...) @refresh()
ret void
}