#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 COLS;
int /*<<< orphan*/ TRUE;
int /*<<< orphan*/ box(int /*<<< orphan*/ *, int /*<<< orphan*/,
                       int /*<<< orphan*/);
int /*<<< orphan*/ *newwin(int, int, int, int);
int /*<<< orphan*/ scrollok(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ wmove(int /*<<< orphan*/ *, int, int);
int /*<<< orphan*/ wrefresh(int /*<<< orphan*/ *);
int /*<<< orphan*/ wsetscrreg(int /*<<< orphan*/ *, int, int);
int /*<<< orphan*/ wwrite(int /*<<< orphan*/ *, char *);
WINDOW *helpwin() {
  WINDOW *temp;
  int height = 10;
  int width = 25;
  int starty = 0;
  int startx = (COLS - width);
  temp = newwin(height, width, starty, startx);
  box(temp, 0, 0);
  scrollok(temp, TRUE);
  wsetscrreg(temp, 1, height);
  wmove(temp, 1, 1);
  wwrite(temp, "T = triple word score");
  wwrite(temp, "t = triple letter score");
  wwrite(temp, "D = double word score");
  wwrite(temp, "d = double letter score");
  wwrite(temp, "* = center of the board");
  wrefresh(temp);
  return temp;
}


x86 assembly (clang, -O0):
<helpwin>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0xa,-0xc(%rbp)
movl   $0x19,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    0x2e4c(%rip),%rax
mov    (%rax),%eax
sub    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
call   1040 <newwin@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
xor    %edx,%edx
mov    %edx,%esi
call   1060 <box@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e1f(%rip),%rax
mov    (%rax),%esi
call   1070 <scrollok@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    $0x1,%esi
call   1050 <wsetscrreg@plt>
mov    -0x8(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1080 <wmove@plt>
mov    -0x8(%rbp),%rdi
lea    0xe04(%rip),%rsi
call   1090 <wwrite@plt>
mov    -0x8(%rbp),%rdi
lea    0xe0a(%rip),%rsi
call   1090 <wwrite@plt>
mov    -0x8(%rbp),%rdi
lea    0xe12(%rip),%rsi
call   1090 <wwrite@plt>
mov    -0x8(%rbp),%rdi
lea    0xe18(%rip),%rsi
call   1090 <wwrite@plt>
mov    -0x8(%rbp),%rdi
lea    0xe20(%rip),%rsi
call   1090 <wwrite@plt>
mov    -0x8(%rbp),%rdi
call   1030 <wrefresh@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<helpwin>:
push   %rbx
mov    0x2e68(%rip),%rax
mov    (%rax),%ecx
add    $0xffffffe7,%ecx
mov    $0xa,%edi
mov    $0x19,%esi
xor    %edx,%edx
call   1040 <newwin@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1060 <box@plt>
mov    0x2e44(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1070 <scrollok@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0xa,%edx
call   1050 <wsetscrreg@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1080 <wmove@plt>
lea    0xe27(%rip),%rsi
mov    %rbx,%rdi
call   1090 <wwrite@plt>
lea    0xe2e(%rip),%rsi
mov    %rbx,%rdi
call   1090 <wwrite@plt>
lea    0xe37(%rip),%rsi
mov    %rbx,%rdi
call   1090 <wwrite@plt>
lea    0xe3e(%rip),%rsi
mov    %rbx,%rdi
call   1090 <wwrite@plt>
lea    0xe47(%rip),%rsi
mov    %rbx,%rdi
call   1090 <wwrite@plt>
mov    %rbx,%rdi
call   1030 <wrefresh@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@COLS = global i32 0
@TRUE = global i32 0
@.str = [22 x i8] c"T = triple word score\00"
@.str.1 = [24 x i8] c"t = triple letter score\00"
@.str.2 = [22 x i8] c"D = double word score\00"
@.str.3 = [24 x i8] c"d = double letter score\00"
@.str.4 = [24 x i8] c"* = center of the board\00"
define i32* @helpwin() {
%1 = alloca i32*
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 10, i32* %2
store i32 25, i32* %3
store i32 0, i32* %4
%6 = load i32, i32* @COLS
%7 = load i32, i32* %3
%8 = sub nsw i32 %6, %7
store i32 %8, i32* %5
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = load i32, i32* %5
%13 = call i32* @newwin(i32 %9, i32 %10, i32 %11, i32 %12)
store i32* %13, i32** %1
%14 = load i32*, i32** %1
%15 = call i32 @box(i32* %14, i32 0, i32 0)
%16 = load i32*, i32** %1
%17 = load i32, i32* @TRUE
%18 = call i32 @scrollok(i32* %16, i32 %17)
%19 = load i32*, i32** %1
%20 = load i32, i32* %2
%21 = call i32 @wsetscrreg(i32* %19, i32 1, i32 %20)
%22 = load i32*, i32** %1
%23 = call i32 @wmove(i32* %22, i32 1, i32 1)
%24 = load i32*, i32** %1
%25 = call i32 @wwrite(i32* %24, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%26 = load i32*, i32** %1
%27 = call i32 @wwrite(i32* %26, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%28 = load i32*, i32** %1
%29 = call i32 @wwrite(i32* %28, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%30 = load i32*, i32** %1
%31 = call i32 @wwrite(i32* %30, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%32 = load i32*, i32** %1
%33 = call i32 @wwrite(i32* %32, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%34 = load i32*, i32** %1
%35 = call i32 @wrefresh(i32* %34)
%36 = load i32*, i32** %1
ret i32* %36
}

LLVM IR (-O2):
@COLS = global i32 0
@TRUE = global i32 0
@.str = [22 x i8] c"T = triple word score\00"
@.str.1 = [24 x i8] c"t = triple letter score\00"
@.str.2 = [22 x i8] c"D = double word score\00"
@.str.3 = [24 x i8] c"d = double letter score\00"
@.str.4 = [24 x i8] c"* = center of the board\00"
define i32* @helpwin() {
%1 = load i32, i32* @COLS
%2 = add nsw i32 %1, -25
%3 = tail call i32* @newwin(i32 10, i32 25, i32 0, i32 %2)
%4 = tail call i32 @box(i32* %3, i32 0, i32 0)
%5 = load i32, i32* @TRUE
%6 = tail call i32 @scrollok(i32* %3, i32 %5)
%7 = tail call i32 @wsetscrreg(i32* %3, i32 1, i32 10)
%8 = tail call i32 @wmove(i32* %3, i32 1, i32 1)
%9 = tail call i32 @wwrite(i32* %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%10 = tail call i32 @wwrite(i32* %3, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%11 = tail call i32 @wwrite(i32* %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%12 = tail call i32 @wwrite(i32* %3, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%13 = tail call i32 @wwrite(i32* %3, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%14 = tail call i32 @wrefresh(i32* %3)
ret i32* %3
}