#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 helpscr(void) {
  printf("---------------------------------------------------------------\r\n");
  printf("   PairPhone v0.1a  Van Gegel, 2016  MailTo: torfone@ukr.net\r\n");
  printf("     P2P private talk over GSM-FR compressed voice channel\r\n");
  printf("---------------------------------------------------------------\r\n");
  printf("<Enter>: SMS (not suported yet), <Tab>: talk/mute, <Del>: clean\r\n");
  printf("F1: show this help screen, more on http://torfone.org/pairphone\r\n");
  printf("F2: pair devices during active call (name must be specified)\r\n");
  printf("F3: search contacts (mask can be specified)\r\n");
  printf("F4: outgoing call (name can be specified, otherwise 'guest')\r\n");
  printf("F5: repeat the last outgoing call\r\n");
  printf("F6: apply pin code access to the book (not released yet)\r\n");
  printf("F7: apply preshared passphrase (1 or 2 words or empty defaults)\r\n");
  printf("F8: terminate active call to iddle state (hang up)\r\n");
  printf("F9: reconnect active call (agreed new keys)\r\n");
  printf("F10: exit\r\n");
  printf("---------------------------------------------------------------\r\n");
}


x86 assembly (clang, -O0):
<helpscr>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4e(%rip),%rdi
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
lea    0xf73(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa9(%rip),%rdi
call   1030 <printf@plt>
lea    0xfdf(%rip),%rdi
call   1030 <printf@plt>
lea    0x1012(%rip),%rdi
call   1030 <printf@plt>
lea    0x1034(%rip),%rdi
call   1030 <printf@plt>
lea    0x1067(%rip),%rdi
call   1030 <printf@plt>
lea    0x107f(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ae(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e4(%rip),%rdi
call   1030 <printf@plt>
lea    0x110d(%rip),%rdi
call   1030 <printf@plt>
lea    0x112f(%rip),%rdi
call   1030 <printf@plt>
lea    0xe31(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<helpscr>:
push   %rbx
lea    0x1197(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xed9(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0b(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xf33(%rip),%rdi
call   1030 <puts@plt>
lea    0xf68(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9d(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcf(%rip),%rdi
call   1030 <puts@plt>
lea    0xff0(%rip),%rdi
call   1030 <puts@plt>
lea    0x1022(%rip),%rdi
call   1030 <puts@plt>
lea    0x1039(%rip),%rdi
call   1030 <puts@plt>
lea    0x1067(%rip),%rdi
call   1030 <puts@plt>
lea    0x109c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c4(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e5(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [66 x i8] c"---------------------------------------------------------------\0D\0A\00"
@.str.1 = [63 x i8] c" PairPhone v0.1a Van Gegel, 2016 MailTo: torfone@ukr.net\0D\0A\00"
@.str.2 = [61 x i8] c" P2P private talk over GSM-FR compressed voice channel\0D\0A\00"
@.str.3 = [66 x i8] c"<Enter>: SMS (not suported yet), <Tab>: talk/mute, <Del>: clean\0D\0A\00"
@.str.4 = [66 x i8] c"F1: show this help screen, more on http://torfone.org/pairphone\0D\0A\00"
@.str.5 = [63 x i8] c"F2: pair devices during active call (name must be specified)\0D\0A\00"
@.str.6 = [46 x i8] c"F3: search contacts (mask can be specified)\0D\0A\00"
@.str.7 = [63 x i8] c"F4: outgoing call (name can be specified, otherwise 'guest')\0D\0A\00"
@.str.8 = [36 x i8] c"F5: repeat the last outgoing call\0D\0A\00"
@.str.9 = [59 x i8] c"F6: apply pin code access to the book (not released yet)\0D\0A\00"
@.str.10 = [66 x i8] c"F7: apply preshared passphrase (1 or 2 words or empty defaults)\0D\0A\00"
@.str.11 = [53 x i8] c"F8: terminate active call to iddle state (hang up)\0D\0A\00"
@.str.12 = [46 x i8] c"F9: reconnect active call (agreed new keys)\0D\0A\00"
@.str.13 = [12 x i8] c"F10: exit\0D\0A\00"
define void @helpscr() {
%1 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str.14 = [62 x i8] c" PairPhone v0.1a Van Gegel, 2016 MailTo: torfone@ukr.net\0D\00"
@str.15 = [60 x i8] c" P2P private talk over GSM-FR compressed voice channel\0D\00"
@str.17 = [65 x i8] c"<Enter>: SMS (not suported yet), <Tab>: talk/mute, <Del>: clean\0D\00"
@str.18 = [65 x i8] c"F1: show this help screen, more on http://torfone.org/pairphone\0D\00"
@str.19 = [62 x i8] c"F2: pair devices during active call (name must be specified)\0D\00"
@str.20 = [45 x i8] c"F3: search contacts (mask can be specified)\0D\00"
@str.21 = [62 x i8] c"F4: outgoing call (name can be specified, otherwise 'guest')\0D\00"
@str.22 = [35 x i8] c"F5: repeat the last outgoing call\0D\00"
@str.23 = [58 x i8] c"F6: apply pin code access to the book (not released yet)\0D\00"
@str.24 = [65 x i8] c"F7: apply preshared passphrase (1 or 2 words or empty defaults)\0D\00"
@str.25 = [52 x i8] c"F8: terminate active call to iddle state (hang up)\0D\00"
@str.26 = [45 x i8] c"F9: reconnect active call (agreed new keys)\0D\00"
@str.27 = [11 x i8] c"F10: exit\0D\00"
@str.28 = [65 x i8] c"---------------------------------------------------------------\0D\00"
define void @helpscr() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.28, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.14, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.15, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.28, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.17, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.18, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.26, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.27, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.28, i64 0, i64 0))
ret void
}