#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 input_show_help(char *arg) {
  printf("\nbsflite commands:\n");
  printf("   h............: what you see right now\n");
  printf("   w............: show buddy list\n");
  printf("   ws...........: show buddy list, sorted (default)\n");
  printf("   wf...........: show buddy list, unsorted\n");
  printf("   l<sn>........: show last 20 lines from <sn>\n");
  printf("   L............: show last 20 lines from last buddy\n");
  printf("   m<sn> <msg>..: send msg to sn\n");
  printf("   r<msg>.......: reply to the last msg received/sent\n");
  printf("   p<sn>........: paste to sn\n");
  printf("   a<sn>........: add buddy\n");
  printf("   d<sn>........: delete buddy\n");
  printf("   g<msg>.......: set away message\n");
  printf("   g............: unset away message\n");
  printf("   G............: display pre-defined away messages\n");
  printf("   G<num>.......: set pre-defined away message\n");
  printf("   i<sn>........: get profile and away message\n");
  printf("   A<sn>........: get away message\n");
  printf("   P<sn>........: get profile\n");
  printf("   R![sn].......: manually reconnect [as [sn]]\n");
  printf("   z!...........: reload profile and away messages\n");
  printf("   q!...........: quit\n");
}


x86 assembly (clang, -O0):
<input_show_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
call   1030 <printf@plt>
lea    0xf88(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc8(%rip),%rdi
call   1030 <printf@plt>
lea    0xff3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1006(%rip),%rdi
call   1030 <printf@plt>
lea    0x1017(%rip),%rdi
call   1030 <printf@plt>
lea    0x102b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1043(%rip),%rdi
call   1030 <printf@plt>
lea    0x105d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1086(%rip),%rdi
call   1030 <printf@plt>
lea    0x10aa(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ce(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e6(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f9(%rip),%rdi
call   1030 <printf@plt>
lea    0x111d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1145(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<input_show_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xeef(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf22(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8d(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1030 <puts@plt>
lea    0xff5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1007(%rip),%rdi
call   1030 <puts@plt>
lea    0x1017(%rip),%rdi
call   1030 <puts@plt>
lea    0x102a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1041(%rip),%rdi
call   1030 <puts@plt>
lea    0x105a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1082(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a5(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c8(%rip),%rdi
call   1030 <puts@plt>
lea    0x10df(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f1(%rip),%rdi
call   1030 <puts@plt>
lea    0x1114(%rip),%rdi
call   1030 <puts@plt>
lea    0x113b(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"\0Absflite commands:\0A\00"
@.str.1 = [42 x i8] c" h............: what you see right now\0A\00"
@.str.2 = [35 x i8] c" w............: show buddy list\0A\00"
@.str.3 = [53 x i8] c" ws...........: show buddy list, sorted (default)\0A\00"
@.str.4 = [45 x i8] c" wf...........: show buddy list, unsorted\0A\00"
@.str.5 = [48 x i8] c" l<sn>........: show last 20 lines from <sn>\0A\00"
@.str.6 = [54 x i8] c" L............: show last 20 lines from last buddy\0A\00"
@.str.7 = [34 x i8] c" m<sn> <msg>..: send msg to sn\0A\00"
@.str.8 = [55 x i8] c" r<msg>.......: reply to the last msg received/sent\0A\00"
@.str.9 = [31 x i8] c" p<sn>........: paste to sn\0A\00"
@.str.10 = [29 x i8] c" a<sn>........: add buddy\0A\00"
@.str.11 = [32 x i8] c" d<sn>........: delete buddy\0A\00"
@.str.12 = [36 x i8] c" g<msg>.......: set away message\0A\00"
@.str.13 = [38 x i8] c" g............: unset away message\0A\00"
@.str.14 = [53 x i8] c" G............: display pre-defined away messages\0A\00"
@.str.15 = [48 x i8] c" G<num>.......: set pre-defined away message\0A\00"
@.str.16 = [48 x i8] c" i<sn>........: get profile and away message\0A\00"
@.str.17 = [36 x i8] c" A<sn>........: get away message\0A\00"
@.str.18 = [31 x i8] c" P<sn>........: get profile\0A\00"
@.str.19 = [48 x i8] c" R![sn].......: manually reconnect [as [sn]]\0A\00"
@.str.20 = [52 x i8] c" z!...........: reload profile and away messages\0A\00"
@.str.21 = [24 x i8] c" q!...........: quit\0A\00"
define void @input_show_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.15, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.16, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.18, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.19, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.20, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.21, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [19 x i8] c"\0Absflite commands:\00"
@str.22 = [41 x i8] c" h............: what you see right now\00"
@str.23 = [34 x i8] c" w............: show buddy list\00"
@str.24 = [52 x i8] c" ws...........: show buddy list, sorted (default)\00"
@str.25 = [44 x i8] c" wf...........: show buddy list, unsorted\00"
@str.26 = [47 x i8] c" l<sn>........: show last 20 lines from <sn>\00"
@str.27 = [53 x i8] c" L............: show last 20 lines from last buddy\00"
@str.28 = [33 x i8] c" m<sn> <msg>..: send msg to sn\00"
@str.29 = [54 x i8] c" r<msg>.......: reply to the last msg received/sent\00"
@str.30 = [30 x i8] c" p<sn>........: paste to sn\00"
@str.31 = [28 x i8] c" a<sn>........: add buddy\00"
@str.32 = [31 x i8] c" d<sn>........: delete buddy\00"
@str.33 = [35 x i8] c" g<msg>.......: set away message\00"
@str.34 = [37 x i8] c" g............: unset away message\00"
@str.35 = [52 x i8] c" G............: display pre-defined away messages\00"
@str.36 = [47 x i8] c" G<num>.......: set pre-defined away message\00"
@str.37 = [47 x i8] c" i<sn>........: get profile and away message\00"
@str.38 = [35 x i8] c" A<sn>........: get away message\00"
@str.39 = [30 x i8] c" P<sn>........: get profile\00"
@str.40 = [47 x i8] c" R![sn].......: manually reconnect [as [sn]]\00"
@str.41 = [51 x i8] c" z!...........: reload profile and away messages\00"
@str.42 = [23 x i8] c" q!...........: quit\00"
define void @input_show_help(i8* nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.22, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.24, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.34, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.35, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.36, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.37, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.38, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.39, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.40, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.41, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.42, i64 0, i64 0))
ret void
}