#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, scalar_t__);
int /*<<< orphan*/ printw(char *);
void printtopinstructions() {
  move(2, (0 + 31));
  printw("*--------------------------------");
  move(2 + 1, (0 + 31));
  printw("|         MOVES                  ");
  move(2 + 2, (0 + 31));
  printw("|s# = stock to tableau           ");
  move(2 + 3, (0 + 31));
  printw("|sf = stock to foundation        ");
  move(2 + 4, (0 + 31));
  printw("|t# = talon to tableau           ");
  move(2 + 5, (0 + 31));
  printw("|tf = talon to foundation        ");
  move(2 + 6, (0 + 31));
  printw("|## = tableau to tableau         ");
  move(2 + 7, (0 + 31));
  printw("|#f = tableau to foundation      ");
  move(2 + 8, (0 + 31));
  printw("|ht = hand to talon              ");
  move(2 + 9, (0 + 31));
  printw("|c = toggle card counting        ");
  move(2 + 10, (0 + 31));
  printw("|b = present betting information ");
  move(2 + 11, (0 + 31));
  printw("|q = quit to end the game        ");
  move(2 + 12, (0 + 31));
  printw("|================================");
}


x86 assembly (clang, -O0):
<printtopinstructions>:
push   %rbp
mov    %rsp,%rbp
mov    $0x2,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xec6(%rip),%rdi
call   1030 <printw@plt>
mov    $0x3,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xecd(%rip),%rdi
call   1030 <printw@plt>
mov    $0x4,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xed4(%rip),%rdi
call   1030 <printw@plt>
mov    $0x5,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xedb(%rip),%rdi
call   1030 <printw@plt>
mov    $0x6,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xee2(%rip),%rdi
call   1030 <printw@plt>
mov    $0x7,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xee9(%rip),%rdi
call   1030 <printw@plt>
mov    $0x8,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xef0(%rip),%rdi
call   1030 <printw@plt>
mov    $0x9,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xef7(%rip),%rdi
call   1030 <printw@plt>
mov    $0xa,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xefe(%rip),%rdi
call   1030 <printw@plt>
mov    $0xb,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xf05(%rip),%rdi
call   1030 <printw@plt>
mov    $0xc,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xf0c(%rip),%rdi
call   1030 <printw@plt>
mov    $0xd,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xf13(%rip),%rdi
call   1030 <printw@plt>
mov    $0xe,%edi
mov    $0x1f,%esi
call   1040 <move@plt>
lea    0xf1a(%rip),%rdi
call   1030 <printw@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printtopinstructions>:
push   %rax
mov    $0x1f,%esi
mov    $0x2,%edi
call   1040 <move@plt>
lea    0xec9(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x3,%edi
call   1040 <move@plt>
lea    0xed0(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x4,%edi
call   1040 <move@plt>
lea    0xed7(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x5,%edi
call   1040 <move@plt>
lea    0xede(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x6,%edi
call   1040 <move@plt>
lea    0xee5(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x7,%edi
call   1040 <move@plt>
lea    0xeec(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x8,%edi
call   1040 <move@plt>
lea    0xef3(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0x9,%edi
call   1040 <move@plt>
lea    0xefa(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0xa,%edi
call   1040 <move@plt>
lea    0xf01(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0xb,%edi
call   1040 <move@plt>
lea    0xf08(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0xc,%edi
call   1040 <move@plt>
lea    0xf0f(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0xd,%edi
call   1040 <move@plt>
lea    0xf16(%rip),%rdi
call   1030 <printw@plt>
mov    $0x1f,%esi
mov    $0xe,%edi
call   1040 <move@plt>
lea    0xf1d(%rip),%rdi
pop    %rax
jmp    1030 <printw@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"*--------------------------------\00"
@.str.1 = [34 x i8] c"| MOVES \00"
@.str.2 = [34 x i8] c"|s# = stock to tableau \00"
@.str.3 = [34 x i8] c"|sf = stock to foundation \00"
@.str.4 = [34 x i8] c"|t# = talon to tableau \00"
@.str.5 = [34 x i8] c"|tf = talon to foundation \00"
@.str.6 = [34 x i8] c"|## = tableau to tableau \00"
@.str.7 = [34 x i8] c"|#f = tableau to foundation \00"
@.str.8 = [34 x i8] c"|ht = hand to talon \00"
@.str.9 = [34 x i8] c"|c = toggle card counting \00"
@.str.10 = [34 x i8] c"|b = present betting information \00"
@.str.11 = [34 x i8] c"|q = quit to end the game \00"
@.str.12 = [34 x i8] c"|================================\00"
define void @printtopinstructions() {
%1 = call i32 @move(i32 2, i64 31)
%2 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @move(i32 3, i64 31)
%4 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @move(i32 4, i64 31)
%6 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @move(i32 5, i64 31)
%8 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @move(i32 6, i64 31)
%10 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @move(i32 7, i64 31)
%12 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 @move(i32 8, i64 31)
%14 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 @move(i32 9, i64 31)
%16 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 @move(i32 10, i64 31)
%18 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0))
%19 = call i32 @move(i32 11, i64 31)
%20 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%21 = call i32 @move(i32 12, i64 31)
%22 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
%23 = call i32 @move(i32 13, i64 31)
%24 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0))
%25 = call i32 @move(i32 14, i64 31)
%26 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c"*--------------------------------\00"
@.str.1 = [34 x i8] c"| MOVES \00"
@.str.2 = [34 x i8] c"|s# = stock to tableau \00"
@.str.3 = [34 x i8] c"|sf = stock to foundation \00"
@.str.4 = [34 x i8] c"|t# = talon to tableau \00"
@.str.5 = [34 x i8] c"|tf = talon to foundation \00"
@.str.6 = [34 x i8] c"|## = tableau to tableau \00"
@.str.7 = [34 x i8] c"|#f = tableau to foundation \00"
@.str.8 = [34 x i8] c"|ht = hand to talon \00"
@.str.9 = [34 x i8] c"|c = toggle card counting \00"
@.str.10 = [34 x i8] c"|b = present betting information \00"
@.str.11 = [34 x i8] c"|q = quit to end the game \00"
@.str.12 = [34 x i8] c"|================================\00"
define void @printtopinstructions() {
%1 = tail call i32 @move(i32 2, i64 31)
%2 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @move(i32 3, i64 31)
%4 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @move(i32 4, i64 31)
%6 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @move(i32 5, i64 31)
%8 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @move(i32 6, i64 31)
%10 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%11 = tail call i32 @move(i32 7, i64 31)
%12 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%13 = tail call i32 @move(i32 8, i64 31)
%14 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%15 = tail call i32 @move(i32 9, i64 31)
%16 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
%17 = tail call i32 @move(i32 10, i64 31)
%18 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0))
%19 = tail call i32 @move(i32 11, i64 31)
%20 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%21 = tail call i32 @move(i32 12, i64 31)
%22 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
%23 = tail call i32 @move(i32 13, i64 31)
%24 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0))
%25 = tail call i32 @move(i32 14, i64 31)
%26 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0))
ret void
}