#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 *);
int showHelp() {
  printf("\nUsage: <subcommand> [options]\n");
  printf("A user interface that can be used to properly configure the router "
         "parameters.\n\n");
  printf("Subcommands:\n");
  printf("  help      show this message\n");
  printf("  quit      stop this router and quit\n");
  printf("  showlsdb  show link state database\n");
  printf("  showrt    show routing table\n");
  printf("  showcfg   show router configuration\n");
  printf("  enablelink <ethx> \n");
  printf("            to enable the specified link by setting "
         "ethx[ethx].link_availability = 1\n");
  printf("            <ethx> could be 0, 1, ... e.g.: 'enablelink 1' will "
         "enable eth1\n");
  printf("  disablelink <ethx> \n");
  printf("            to disable the specified link by setting "
         "ethx[ethx].link_availability = 0\n");
  printf("            <ethx> could be 0, 1, ... e.g.: 'disablelink 1' will "
         "disable eth1\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<showHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf40(%rip),%rdi
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf88(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9c(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb7(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
call   1030 <printf@plt>
lea    0x100b(%rip),%rdi
call   1030 <printf@plt>
lea    0x104c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1057(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<showHelp>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xefb(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf40(%rip),%rdi
call   1030 <puts@plt>
lea    0xf52(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf85(%rip),%rdi
call   1030 <puts@plt>
lea    0xf98(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbb(%rip),%rdi
call   1030 <puts@plt>
lea    0x1004(%rip),%rdi
call   1030 <puts@plt>
lea    0x1044(%rip),%rdi
call   1030 <puts@plt>
lea    0x104e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1098(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [32 x i8] c"\0AUsage: <subcommand> [options]\0A\00"
@.str.1 = [81 x i8] c"A user interface that can be used to properly configure the router parameters.\0A\0A\00"
@.str.2 = [14 x i8] c"Subcommands:\0A\00"
@.str.3 = [31 x i8] c" help show this message\0A\00"
@.str.4 = [39 x i8] c" quit stop this router and quit\0A\00"
@.str.5 = [38 x i8] c" showlsdb show link state database\0A\00"
@.str.6 = [32 x i8] c" showrt show routing table\0A\00"
@.str.7 = [39 x i8] c" showcfg show router configuration\0A\00"
@.str.8 = [22 x i8] c" enablelink <ethx> \0A\00"
@.str.9 = [86 x i8] c" to enable the specified link by setting ethx[ethx].link_availability = 1\0A\00"
@.str.10 = [77 x i8] c" <ethx> could be 0, 1, ... e.g.: 'enablelink 1' will enable eth1\0A\00"
@.str.11 = [23 x i8] c" disablelink <ethx> \0A\00"
@.str.12 = [87 x i8] c" to disable the specified link by setting ethx[ethx].link_availability = 0\0A\00"
@.str.13 = [80 x i8] c" <ethx> could be 0, 1, ... e.g.: 'disablelink 1' will disable eth1\0A\0A\00"
define i32 @showHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.13, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [31 x i8] c"\0AUsage: <subcommand> [options]\00"
@str.14 = [80 x i8] c"A user interface that can be used to properly configure the router parameters.\0A\00"
@str.15 = [13 x i8] c"Subcommands:\00"
@str.16 = [30 x i8] c" help show this message\00"
@str.17 = [38 x i8] c" quit stop this router and quit\00"
@str.18 = [37 x i8] c" showlsdb show link state database\00"
@str.19 = [31 x i8] c" showrt show routing table\00"
@str.20 = [38 x i8] c" showcfg show router configuration\00"
@str.21 = [21 x i8] c" enablelink <ethx> \00"
@str.22 = [85 x i8] c" to enable the specified link by setting ethx[ethx].link_availability = 1\00"
@str.23 = [76 x i8] c" <ethx> could be 0, 1, ... e.g.: 'enablelink 1' will enable eth1\00"
@str.24 = [22 x i8] c" disablelink <ethx> \00"
@str.25 = [86 x i8] c" to disable the specified link by setting ethx[ethx].link_availability = 0\00"
@str.26 = [79 x i8] c" <ethx> could be 0, 1, ... e.g.: 'disablelink 1' will disable eth1\0A\00"
define i32 @showHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.14, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.15, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.16, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.17, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.18, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.26, i64 0, i64 0))
ret i32 0
}