#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*/ printf(char *, char *);
void displayHelp() {
  printf("%s", "This is a computer version of the game Yum, similar to games "
               "known as Yahtzee,\n");
  printf("%s", "Yacht and Generala. Each player rolls five dice up to three "
               "times and then\n");
  printf("%s", "applies the dice toward a category to claim points. The game "
               "has 12 rounds\n");
  printf("%s", "during which each player attempts to claim the most points in "
               "each category.\n\n");
  printf("%s", "The winner is the person scoring the most points at the end of "
               "the game.\n\n");
  printf("%s", "This version supports up to three players of which any can be "
               "human or\n");
  printf("%s", "computer players.\n\n");
  printf("%s", "Categories are as follows:\n");
  printf("%s", "1'S through 6'S - dice of same type\n");
  printf("%s", "Low Straight (15) - 1 2 3 4 5\n");
  printf("%s", "High Straight (20) - 2 3 4 5 6\n");
  printf("%s", "Low Score - total 21 or more\n");
  printf("%s", "High Score - total 22 or more\n");
  printf("%s", "Full House (25) - 3 of a kind and pair\n");
  printf("%s", "Yum (30) - 5 dice the same\n");
  printf("%s", "Bonus of 25 points if upper section is 63 or more.\n\n");
}


x86 assembly (clang, -O0):
<displayHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee1(%rip),%rsi
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
lea    0xf1e(%rip),%rsi
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
lea    0xf57(%rip),%rsi
call   1030 <printf@plt>
lea    0xeac(%rip),%rdi
lea    0xf90(%rip),%rsi
call   1030 <printf@plt>
lea    0xe99(%rip),%rdi
lea    0xfcc(%rip),%rsi
call   1030 <printf@plt>
lea    0xe86(%rip),%rdi
lea    0x1004(%rip),%rsi
call   1030 <printf@plt>
lea    0xe73(%rip),%rdi
lea    0x1039(%rip),%rsi
call   1030 <printf@plt>
lea    0xe60(%rip),%rdi
lea    0x103a(%rip),%rsi
call   1030 <printf@plt>
lea    0xe4d(%rip),%rdi
lea    0x1043(%rip),%rsi
call   1030 <printf@plt>
lea    0xe3a(%rip),%rdi
lea    0x1055(%rip),%rsi
call   1030 <printf@plt>
lea    0xe27(%rip),%rdi
lea    0x1061(%rip),%rsi
call   1030 <printf@plt>
lea    0xe14(%rip),%rdi
lea    0x106e(%rip),%rsi
call   1030 <printf@plt>
lea    0xe01(%rip),%rdi
lea    0x1079(%rip),%rsi
call   1030 <printf@plt>
lea    0xdee(%rip),%rdi
lea    0x1085(%rip),%rsi
call   1030 <printf@plt>
lea    0xddb(%rip),%rdi
lea    0x109a(%rip),%rsi
call   1030 <printf@plt>
lea    0xdc8(%rip),%rdi
lea    0x10a3(%rip),%rsi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<displayHelp>:
push   %rbx
lea    0xee8(%rip),%rbx
lea    0xee4(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf25(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf62(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf9f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xfdf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x101b(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x1054(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x1059(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x1066(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x107c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x108c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x109d(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x10ac(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x10bc(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x10d5(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x10e2(%rip),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [80 x i8] c"This is a computer version of the game Yum, similar to games known as Yahtzee,\0A\00"
@.str.2 = [76 x i8] c"Yacht and Generala. Each player rolls five dice up to three times and then\0A\00"
@.str.3 = [76 x i8] c"applies the dice toward a category to claim points. The game has 12 rounds\0A\00"
@.str.4 = [79 x i8] c"during which each player attempts to claim the most points in each category.\0A\0A\00"
@.str.5 = [75 x i8] c"The winner is the person scoring the most points at the end of the game.\0A\0A\00"
@.str.6 = [72 x i8] c"This version supports up to three players of which any can be human or\0A\00"
@.str.7 = [20 x i8] c"computer players.\0A\0A\00"
@.str.8 = [28 x i8] c"Categories are as follows:\0A\00"
@.str.9 = [37 x i8] c"1'S through 6'S - dice of same type\0A\00"
@.str.10 = [31 x i8] c"Low Straight (15) - 1 2 3 4 5\0A\00"
@.str.11 = [32 x i8] c"High Straight (20) - 2 3 4 5 6\0A\00"
@.str.12 = [30 x i8] c"Low Score - total 21 or more\0A\00"
@.str.13 = [31 x i8] c"High Score - total 22 or more\0A\00"
@.str.14 = [40 x i8] c"Full House (25) - 3 of a kind and pair\0A\00"
@.str.15 = [28 x i8] c"Yum (30) - 5 dice the same\0A\00"
@.str.16 = [53 x i8] c"Bonus of 25 points if upper section is 63 or more.\0A\0A\00"
define void @displayHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [80 x i8] c"This is a computer version of the game Yum, similar to games known as Yahtzee,\0A\00"
@.str.2 = [76 x i8] c"Yacht and Generala. Each player rolls five dice up to three times and then\0A\00"
@.str.3 = [76 x i8] c"applies the dice toward a category to claim points. The game has 12 rounds\0A\00"
@.str.4 = [79 x i8] c"during which each player attempts to claim the most points in each category.\0A\0A\00"
@.str.5 = [75 x i8] c"The winner is the person scoring the most points at the end of the game.\0A\0A\00"
@.str.6 = [72 x i8] c"This version supports up to three players of which any can be human or\0A\00"
@.str.7 = [20 x i8] c"computer players.\0A\0A\00"
@.str.8 = [28 x i8] c"Categories are as follows:\0A\00"
@.str.9 = [37 x i8] c"1'S through 6'S - dice of same type\0A\00"
@.str.10 = [31 x i8] c"Low Straight (15) - 1 2 3 4 5\0A\00"
@.str.11 = [32 x i8] c"High Straight (20) - 2 3 4 5 6\0A\00"
@.str.12 = [30 x i8] c"Low Score - total 21 or more\0A\00"
@.str.13 = [31 x i8] c"High Score - total 22 or more\0A\00"
@.str.14 = [40 x i8] c"Full House (25) - 3 of a kind and pair\0A\00"
@.str.15 = [28 x i8] c"Yum (30) - 5 dice the same\0A\00"
@.str.16 = [53 x i8] c"Bonus of 25 points if upper section is 63 or more.\0A\0A\00"
define void @displayHelp() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.6, i64 0, i64 0))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%8 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%9 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0))
%10 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0))
%11 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%12 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0))
%13 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0))
%14 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0))
%15 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0))
%16 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.16, i64 0, i64 0))
ret void
}