#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 *);
void instructions(void) {
  printf("To play backgammon, type the numbers of the points\n");
  printf("from which pieces are to be moved. Thus, if the\n");
  printf("roll is '3,5', typing '2 6' will move a piece\n");
  printf("from point 2 three spaces to point 5,\n");
  printf("and a piece from point 6 forward to\n");
  printf("point 11.  If the moves must be made in the\n");
  printf("opposite order, the first character typed must\n");
  printf("be a minus ('-'). Thus, typing\n");
  printf("'-2 6' moves the piece on point 2\n");
  printf("by 5, and the piece on point 6 by 3.\n");
  printf("If you want to move a single piece several times,\n");
  printf("the sequence of points from which it is to be\n");
  printf("moved must be typed. Thus '14 17' will move\n");
  printf("a piece from point 14 to point 17 and thence to\n");
  printf("to point 22.\n");
  printf("If a double is rolled, you should type four numbers.\n");
  printf("Red pieces that have been removed from the board by\n");
  printf("being hit by white are on point 0 and\n");
  printf("must be brought in before any other move can be made.\n");
  printf("White pieces that are hit are removed to point 25.\n");
  printf("You will not be allowed to make an illegal move, or\n");
  printf("to make too many moves. However, if you make too\n");
  printf("few moves, the program does not care. In particular\n");
  printf("you may skip your turn by typing a 'new-line'\n");
  printf("all by itself.\n\n");
}


x86 assembly (clang, -O0):
<instructions>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
call   1030 <printf@plt>
lea    0xf55(%rip),%rdi
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
call   1030 <printf@plt>
lea    0xf89(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xfce(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe2(%rip),%rdi
call   1030 <printf@plt>
lea    0xff9(%rip),%rdi
call   1030 <printf@plt>
lea    0x1013(%rip),%rdi
call   1030 <printf@plt>
lea    0x103a(%rip),%rdi
call   1030 <printf@plt>
lea    0x105d(%rip),%rdi
call   1030 <printf@plt>
lea    0x107e(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a3(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a5(%rip),%rdi
call   1030 <printf@plt>
lea    0x10cf(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1113(%rip),%rdi
call   1030 <printf@plt>
lea    0x113e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1166(%rip),%rdi
call   1030 <printf@plt>
lea    0x118f(%rip),%rdi
call   1030 <printf@plt>
lea    0x11b5(%rip),%rdi
call   1030 <printf@plt>
lea    0x11de(%rip),%rdi
call   1030 <printf@plt>
lea    0x1201(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<instructions>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf33(%rip),%rdi
call   1030 <puts@plt>
lea    0xf55(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf87(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfca(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdd(%rip),%rdi
call   1030 <puts@plt>
lea    0xff3(%rip),%rdi
call   1030 <puts@plt>
lea    0x100c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1032(%rip),%rdi
call   1030 <puts@plt>
lea    0x1054(%rip),%rdi
call   1030 <puts@plt>
lea    0x1074(%rip),%rdi
call   1030 <puts@plt>
lea    0x1098(%rip),%rdi
call   1030 <puts@plt>
lea    0x1099(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c2(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ea(%rip),%rdi
call   1030 <puts@plt>
lea    0x1104(%rip),%rdi
call   1030 <puts@plt>
lea    0x112e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1155(%rip),%rdi
call   1030 <puts@plt>
lea    0x117d(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a2(%rip),%rdi
call   1030 <puts@plt>
lea    0x11ca(%rip),%rdi
call   1030 <puts@plt>
lea    0x11ec(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [52 x i8] c"To play backgammon, type the numbers of the points\0A\00"
@.str.1 = [49 x i8] c"from which pieces are to be moved. Thus, if the\0A\00"
@.str.2 = [47 x i8] c"roll is '3,5', typing '2 6' will move a piece\0A\00"
@.str.3 = [39 x i8] c"from point 2 three spaces to point 5,\0A\00"
@.str.4 = [37 x i8] c"and a piece from point 6 forward to\0A\00"
@.str.5 = [45 x i8] c"point 11. If the moves must be made in the\0A\00"
@.str.6 = [48 x i8] c"opposite order, the first character typed must\0A\00"
@.str.7 = [32 x i8] c"be a minus ('-'). Thus, typing\0A\00"
@.str.8 = [35 x i8] c"'-2 6' moves the piece on point 2\0A\00"
@.str.9 = [38 x i8] c"by 5, and the piece on point 6 by 3.\0A\00"
@.str.10 = [51 x i8] c"If you want to move a single piece several times,\0A\00"
@.str.11 = [47 x i8] c"the sequence of points from which it is to be\0A\00"
@.str.12 = [45 x i8] c"moved must be typed. Thus '14 17' will move\0A\00"
@.str.13 = [49 x i8] c"a piece from point 14 to point 17 and thence to\0A\00"
@.str.14 = [14 x i8] c"to point 22.\0A\00"
@.str.15 = [54 x i8] c"If a double is rolled, you should type four numbers.\0A\00"
@.str.16 = [53 x i8] c"Red pieces that have been removed from the board by\0A\00"
@.str.17 = [39 x i8] c"being hit by white are on point 0 and\0A\00"
@.str.18 = [55 x i8] c"must be brought in before any other move can be made.\0A\00"
@.str.19 = [52 x i8] c"White pieces that are hit are removed to point 25.\0A\00"
@.str.20 = [53 x i8] c"You will not be allowed to make an illegal move, or\0A\00"
@.str.21 = [50 x i8] c"to make too many moves. However, if you make too\0A\00"
@.str.22 = [53 x i8] c"few moves, the program does not care. In particular\0A\00"
@.str.23 = [47 x i8] c"you may skip your turn by typing a 'new-line'\0A\00"
@.str.24 = [17 x i8] c"all by itself.\0A\0A\00"
define void @instructions() {
%1 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.24, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [51 x i8] c"To play backgammon, type the numbers of the points\00"
@str.25 = [48 x i8] c"from which pieces are to be moved. Thus, if the\00"
@str.26 = [46 x i8] c"roll is '3,5', typing '2 6' will move a piece\00"
@str.27 = [38 x i8] c"from point 2 three spaces to point 5,\00"
@str.28 = [36 x i8] c"and a piece from point 6 forward to\00"
@str.29 = [44 x i8] c"point 11. If the moves must be made in the\00"
@str.30 = [47 x i8] c"opposite order, the first character typed must\00"
@str.31 = [31 x i8] c"be a minus ('-'). Thus, typing\00"
@str.32 = [34 x i8] c"'-2 6' moves the piece on point 2\00"
@str.33 = [37 x i8] c"by 5, and the piece on point 6 by 3.\00"
@str.34 = [50 x i8] c"If you want to move a single piece several times,\00"
@str.35 = [46 x i8] c"the sequence of points from which it is to be\00"
@str.36 = [44 x i8] c"moved must be typed. Thus '14 17' will move\00"
@str.37 = [48 x i8] c"a piece from point 14 to point 17 and thence to\00"
@str.38 = [13 x i8] c"to point 22.\00"
@str.39 = [53 x i8] c"If a double is rolled, you should type four numbers.\00"
@str.40 = [52 x i8] c"Red pieces that have been removed from the board by\00"
@str.41 = [38 x i8] c"being hit by white are on point 0 and\00"
@str.42 = [54 x i8] c"must be brought in before any other move can be made.\00"
@str.43 = [51 x i8] c"White pieces that are hit are removed to point 25.\00"
@str.44 = [52 x i8] c"You will not be allowed to make an illegal move, or\00"
@str.45 = [49 x i8] c"to make too many moves. However, if you make too\00"
@str.46 = [52 x i8] c"few moves, the program does not care. In particular\00"
@str.47 = [46 x i8] c"you may skip your turn by typing a 'new-line'\00"
@str.48 = [16 x i8] c"all by itself.\0A\00"
define void @instructions() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.25, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.26, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.27, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.28, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.29, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.30, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.31, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.32, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.33, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.34, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.35, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.36, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.37, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.38, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.39, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.40, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.41, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.42, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.43, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.44, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.45, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.46, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.47, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.48, i64 0, i64 0))
ret void
}