#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*/ print_banner(char *);
int /*<<< orphan*/ printf(char *, ...);
void print_syntax(char *prog) {
  print_banner(prog);
  printf("Usage: %s [arguments]\n", prog);
  printf(" -h 	\t\t print this message\n");
  printf(" -a     \t\t print all available keys\n");
  printf(" -i <nick> \t\t Create a fresh RSA key pair and store it in\n");
  printf("           \t\t $HOME/.chatstore under the given nickname\n\n");
  printf(" -c <host> <port> \t Open secure connection to <host> on <port>\n");
  printf("                  \t Example: -c 'localhost 3300' \n\n");
  printf(" -n <nick> \t\t Set nickname when connecting to server\n\n");
  printf(" -l <port>        \t Listen on all local interfaces on the given\n");
  printf("               \t\t port and wait for secure connections.\n\n");
  printf(" -r <nick>  \t\t Change user's nick to the given one\n");
  printf("             \t\t without changing the public key\n\n");
  printf(" -v          \t\t Print version\n");
}


x86 assembly (clang, -O0):
<print_syntax>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <print_banner@plt>
mov    -0x8(%rbp),%rsi
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf47(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf79(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1027(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x104d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1071(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_syntax>:
push   %rbx
mov    %rdi,%rbx
call   1050 <print_banner@plt>
lea    0xec0(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec6(%rip),%rdi
call   1030 <puts@plt>
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
lea    0xeed(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf48(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7b(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcc(%rip),%rdi
call   1030 <puts@plt>
lea    0x1000(%rip),%rdi
call   1030 <puts@plt>
lea    0x102d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1054(%rip),%rdi
call   1030 <puts@plt>
lea    0x1079(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"Usage: %s [arguments]\0A\00"
@.str.1 = [28 x i8] c" -h \09\09\09 print this message\0A\00"
@.str.2 = [37 x i8] c" -a \09\09 print all available keys\0A\00"
@.str.3 = [59 x i8] c" -i <nick> \09\09 Create a fresh RSA key pair and store it in\0A\00"
@.str.4 = [58 x i8] c" \09\09 $HOME/.chatstore under the given nickname\0A\0A\00"
@.str.5 = [64 x i8] c" -c <host> <port> \09 Open secure connection to <host> on <port>\0A\00"
@.str.6 = [52 x i8] c" \09 Example: -c 'localhost 3300' \0A\0A\00"
@.str.7 = [55 x i8] c" -n <nick> \09\09 Set nickname when connecting to server\0A\0A\00"
@.str.8 = [65 x i8] c" -l <port> \09 Listen on all local interfaces on the given\0A\00"
@.str.9 = [58 x i8] c" \09\09 port and wait for secure connections.\0A\0A\00"
@.str.10 = [52 x i8] c" -r <nick> \09\09 Change user's nick to the given one\0A\00"
@.str.11 = [50 x i8] c" \09\09 without changing the public key\0A\0A\00"
@.str.12 = [31 x i8] c" -v \09\09 Print version\0A\00"
define void @print_syntax(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @print_banner(i8* %3)
%5 = load i8*, i8** %2
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.9, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"Usage: %s [arguments]\0A\00"
@str = [27 x i8] c" -h \09\09\09 print this message\00"
@str.13 = [36 x i8] c" -a \09\09 print all available keys\00"
@str.14 = [58 x i8] c" -i <nick> \09\09 Create a fresh RSA key pair and store it in\00"
@str.15 = [57 x i8] c" \09\09 $HOME/.chatstore under the given nickname\0A\00"
@str.16 = [63 x i8] c" -c <host> <port> \09 Open secure connection to <host> on <port>\00"
@str.17 = [51 x i8] c" \09 Example: -c 'localhost 3300' \0A\00"
@str.18 = [54 x i8] c" -n <nick> \09\09 Set nickname when connecting to server\0A\00"
@str.19 = [64 x i8] c" -l <port> \09 Listen on all local interfaces on the given\00"
@str.20 = [57 x i8] c" \09\09 port and wait for secure connections.\0A\00"
@str.21 = [51 x i8] c" -r <nick> \09\09 Change user's nick to the given one\00"
@str.22 = [49 x i8] c" \09\09 without changing the public key\0A\00"
@str.23 = [30 x i8] c" -v \09\09 Print version\00"
define void @print_syntax(i8* %0) {
%2 = tail call i32 @print_banner(i8* %0)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.13, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.21, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.22, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.23, i64 0, i64 0))
ret void
}