#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*/ puts(char *);
void do_help(void) {
  puts("All meta-commands must be entered in upper case.");
  puts("HELP          This message");
  puts("HELP VERBOSE  Complete man pages for xdict");
  puts("QUIT, EXIT    (Save and) exit, the same as Ctrl-D");
  puts("SAVE          Save the word list into "
       "xdict.save.txt");
  puts("SORT          Sort the dictionary");
  puts("STAT          Display some statistical details");
  puts("ch0rtl*       Display matching word(s)");
  puts("SET ch_rtl*   Display set of crossing letters");
  puts("ADD chortle   Add a word to the dictionary");
  puts("REM ch0rtl*   Remove word(s) from the dictionary");
  puts("");
  puts("set           Matches the word \"set\" only");
  puts("b0g           Vowel: matches bag, beg, big,... but not bfg");
  puts("do1           Consonant: matches doc, dog, don,... but not doe");
  puts("do?           Single letter: matches doc, doe, dog,...");
  puts("do*t          Any string: matches dot, doubt, donut,...");
}


x86 assembly (clang, -O0):
<do_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xf38(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf87(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9d(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc0(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdb(%rip),%rdi
call   1030 <puts@plt>
lea    0xffd(%rip),%rdi
call   1030 <puts@plt>
lea    0x101c(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1035(%rip),%rdi
call   1030 <puts@plt>
lea    0x1053(%rip),%rdi
call   1030 <puts@plt>
lea    0x1082(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b5(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e0(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xefd(%rip),%rdi
call   1040 <puts@plt>
lea    0xf0c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf2b(%rip),%rdi
call   1040 <puts@plt>
lea    0xf51(%rip),%rdi
call   1040 <puts@plt>
lea    0xf7a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf90(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb3(%rip),%rdi
call   1040 <puts@plt>
lea    0xfce(%rip),%rdi
call   1040 <puts@plt>
lea    0xff0(%rip),%rdi
call   1040 <puts@plt>
lea    0x100f(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x102a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1048(%rip),%rdi
call   1040 <puts@plt>
lea    0x1077(%rip),%rdi
call   1040 <puts@plt>
lea    0x10aa(%rip),%rdi
call   1040 <puts@plt>
lea    0x10d5(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [49 x i8] c"All meta-commands must be entered in upper case.\00"
@.str.1 = [27 x i8] c"HELP This message\00"
@.str.2 = [43 x i8] c"HELP VERBOSE Complete man pages for xdict\00"
@.str.3 = [50 x i8] c"QUIT, EXIT (Save and) exit, the same as Ctrl-D\00"
@.str.4 = [53 x i8] c"SAVE Save the word list into xdict.save.txt\00"
@.str.5 = [34 x i8] c"SORT Sort the dictionary\00"
@.str.6 = [47 x i8] c"STAT Display some statistical details\00"
@.str.7 = [39 x i8] c"ch0rtl* Display matching word(s)\00"
@.str.8 = [46 x i8] c"SET ch_rtl* Display set of crossing letters\00"
@.str.9 = [43 x i8] c"ADD chortle Add a word to the dictionary\00"
@.str.10 = [49 x i8] c"REM ch0rtl* Remove word(s) from the dictionary\00"
@.str.11 = [1 x i8] zeroinitializer
@.str.12 = [42 x i8] c"set Matches the word \22set\22 only\00"
@.str.13 = [59 x i8] c"b0g Vowel: matches bag, beg, big,... but not bfg\00"
@.str.14 = [63 x i8] c"do1 Consonant: matches doc, dog, don,... but not doe\00"
@.str.15 = [55 x i8] c"do? Single letter: matches doc, doe, dog,...\00"
@.str.16 = [56 x i8] c"do*t Any string: matches dot, doubt, donut,...\00"
define void @do_help() {
%1 = call i32 @puts(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @puts(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [49 x i8] c"All meta-commands must be entered in upper case.\00"
@.str.1 = [27 x i8] c"HELP This message\00"
@.str.2 = [43 x i8] c"HELP VERBOSE Complete man pages for xdict\00"
@.str.3 = [50 x i8] c"QUIT, EXIT (Save and) exit, the same as Ctrl-D\00"
@.str.4 = [53 x i8] c"SAVE Save the word list into xdict.save.txt\00"
@.str.5 = [34 x i8] c"SORT Sort the dictionary\00"
@.str.6 = [47 x i8] c"STAT Display some statistical details\00"
@.str.7 = [39 x i8] c"ch0rtl* Display matching word(s)\00"
@.str.8 = [46 x i8] c"SET ch_rtl* Display set of crossing letters\00"
@.str.9 = [43 x i8] c"ADD chortle Add a word to the dictionary\00"
@.str.10 = [49 x i8] c"REM ch0rtl* Remove word(s) from the dictionary\00"
@.str.12 = [42 x i8] c"set Matches the word \22set\22 only\00"
@.str.13 = [59 x i8] c"b0g Vowel: matches bag, beg, big,... but not bfg\00"
@.str.14 = [63 x i8] c"do1 Consonant: matches doc, dog, don,... but not doe\00"
@.str.15 = [55 x i8] c"do? Single letter: matches doc, doe, dog,...\00"
@.str.16 = [56 x i8] c"do*t Any string: matches dot, doubt, donut,...\00"
define void @do_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.16, i64 0, i64 0))
ret void
}