#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*/ ion_set_bold(int);
int /*<<< orphan*/ printw(char *);
void ion_cmd_print_top() {
  ion_set_bold(1);
  printw("\n\r\n\rCommands:\n\r");
  printw("----------\n\r\n\r");
  ion_set_bold(0);
  printw("copy\t\tCopy files to/from virtual image slots\n\r");
  printw("exit\t\tLogout of the system\n\r");
  printw("help\t\tDisplay help information\n\r");
  printw("ls\t\tList files in virtual image slots\n\r");
  printw("mode\t\tSwitch user authentication mode\n\r");
  printw("ping\t\tSend icmp echo packets\n\r");
  printw("restart\t\tReboot the system\n\r");
  printw("set\t\tConfigure the system\n\r");
  printw("show\t\tShow system information\n\r");
  printw("ssh\t\tEstablish a secure shell connection\n\r");
  printw("stats\t\tDisplay or clear real-time stats\n\r");
  printw("telnet\t\tEstablish a telnet connection\n\r");
  printw("traceroute\tTraceroute to destination\n\r");
  printw("who\t\tDisplay who is logged into this device\n\r");
  printw("write\t\tSave and apply any pending configuration\n\r");
}


x86 assembly (clang, -O0):
<ion_cmd_print_top>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1040 <ion_set_bold@plt>
lea    0xecb(%rip),%rdi
call   1030 <printw@plt>
lea    0xecf(%rip),%rdi
call   1030 <printw@plt>
xor    %edi,%edi
call   1040 <ion_set_bold@plt>
lea    0xecb(%rip),%rdi
call   1030 <printw@plt>
lea    0xeee(%rip),%rdi
call   1030 <printw@plt>
lea    0xeff(%rip),%rdi
call   1030 <printw@plt>
lea    0xf14(%rip),%rdi
call   1030 <printw@plt>
lea    0xf30(%rip),%rdi
call   1030 <printw@plt>
lea    0xf4c(%rip),%rdi
call   1030 <printw@plt>
lea    0xf5f(%rip),%rdi
call   1030 <printw@plt>
lea    0xf70(%rip),%rdi
call   1030 <printw@plt>
lea    0xf80(%rip),%rdi
call   1030 <printw@plt>
lea    0xf94(%rip),%rdi
call   1030 <printw@plt>
lea    0xfb3(%rip),%rdi
call   1030 <printw@plt>
lea    0xfd1(%rip),%rdi
call   1030 <printw@plt>
lea    0xfed(%rip),%rdi
call   1030 <printw@plt>
lea    0x1008(%rip),%rdi
call   1030 <printw@plt>
lea    0x102a(%rip),%rdi
call   1030 <printw@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ion_cmd_print_top>:
push   %rax
mov    $0x1,%edi
call   1040 <ion_set_bold@plt>
lea    0xece(%rip),%rdi
call   1030 <printw@plt>
lea    0xed2(%rip),%rdi
call   1030 <printw@plt>
xor    %edi,%edi
call   1040 <ion_set_bold@plt>
lea    0xece(%rip),%rdi
call   1030 <printw@plt>
lea    0xef1(%rip),%rdi
call   1030 <printw@plt>
lea    0xf02(%rip),%rdi
call   1030 <printw@plt>
lea    0xf17(%rip),%rdi
call   1030 <printw@plt>
lea    0xf33(%rip),%rdi
call   1030 <printw@plt>
lea    0xf4f(%rip),%rdi
call   1030 <printw@plt>
lea    0xf62(%rip),%rdi
call   1030 <printw@plt>
lea    0xf73(%rip),%rdi
call   1030 <printw@plt>
lea    0xf83(%rip),%rdi
call   1030 <printw@plt>
lea    0xf97(%rip),%rdi
call   1030 <printw@plt>
lea    0xfb6(%rip),%rdi
call   1030 <printw@plt>
lea    0xfd4(%rip),%rdi
call   1030 <printw@plt>
lea    0xff0(%rip),%rdi
call   1030 <printw@plt>
lea    0x100b(%rip),%rdi
call   1030 <printw@plt>
lea    0x102d(%rip),%rdi
pop    %rax
jmp    1030 <printw@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"\0A\0D\0A\0DCommands:\0A\0D\00"
@.str.1 = [15 x i8] c"----------\0A\0D\0A\0D\00"
@.str.2 = [47 x i8] c"copy\09\09Copy files to/from virtual image slots\0A\0D\00"
@.str.3 = [29 x i8] c"exit\09\09Logout of the system\0A\0D\00"
@.str.4 = [33 x i8] c"help\09\09Display help information\0A\0D\00"
@.str.5 = [40 x i8] c"ls\09\09List files in virtual image slots\0A\0D\00"
@.str.6 = [40 x i8] c"mode\09\09Switch user authentication mode\0A\0D\00"
@.str.7 = [31 x i8] c"ping\09\09Send icmp echo packets\0A\0D\00"
@.str.8 = [29 x i8] c"restart\09\09Reboot the system\0A\0D\00"
@.str.9 = [28 x i8] c"set\09\09Configure the system\0A\0D\00"
@.str.10 = [32 x i8] c"show\09\09Show system information\0A\0D\00"
@.str.11 = [43 x i8] c"ssh\09\09Establish a secure shell connection\0A\0D\00"
@.str.12 = [42 x i8] c"stats\09\09Display or clear real-time stats\0A\0D\00"
@.str.13 = [40 x i8] c"telnet\09\09Establish a telnet connection\0A\0D\00"
@.str.14 = [39 x i8] c"traceroute\09Traceroute to destination\0A\0D\00"
@.str.15 = [46 x i8] c"who\09\09Display who is logged into this device\0A\0D\00"
@.str.16 = [50 x i8] c"write\09\09Save and apply any pending configuration\0A\0D\00"
define void @ion_cmd_print_top() {
%1 = call i32 @ion_set_bold(i32 1)
%2 = call i32 @printw(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @ion_set_bold(i32 0)
%5 = call i32 @printw(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printw(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printw(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @printw(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @printw(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @printw(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @printw(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 @printw(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @printw(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 @printw(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 @printw(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 @printw(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.15, i64 0, i64 0))
%19 = call i32 @printw(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"\0A\0D\0A\0DCommands:\0A\0D\00"
@.str.1 = [15 x i8] c"----------\0A\0D\0A\0D\00"
@.str.2 = [47 x i8] c"copy\09\09Copy files to/from virtual image slots\0A\0D\00"
@.str.3 = [29 x i8] c"exit\09\09Logout of the system\0A\0D\00"
@.str.4 = [33 x i8] c"help\09\09Display help information\0A\0D\00"
@.str.5 = [40 x i8] c"ls\09\09List files in virtual image slots\0A\0D\00"
@.str.6 = [40 x i8] c"mode\09\09Switch user authentication mode\0A\0D\00"
@.str.7 = [31 x i8] c"ping\09\09Send icmp echo packets\0A\0D\00"
@.str.8 = [29 x i8] c"restart\09\09Reboot the system\0A\0D\00"
@.str.9 = [28 x i8] c"set\09\09Configure the system\0A\0D\00"
@.str.10 = [32 x i8] c"show\09\09Show system information\0A\0D\00"
@.str.11 = [43 x i8] c"ssh\09\09Establish a secure shell connection\0A\0D\00"
@.str.12 = [42 x i8] c"stats\09\09Display or clear real-time stats\0A\0D\00"
@.str.13 = [40 x i8] c"telnet\09\09Establish a telnet connection\0A\0D\00"
@.str.14 = [39 x i8] c"traceroute\09Traceroute to destination\0A\0D\00"
@.str.15 = [46 x i8] c"who\09\09Display who is logged into this device\0A\0D\00"
@.str.16 = [50 x i8] c"write\09\09Save and apply any pending configuration\0A\0D\00"
define void @ion_cmd_print_top() {
%1 = tail call i32 @ion_set_bold(i32 1)
%2 = tail call i32 @printw(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @printw(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @ion_set_bold(i32 0)
%5 = tail call i32 @printw(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @printw(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @printw(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @printw(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 @printw(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 @printw(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 @printw(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%12 = tail call i32 @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0))
%13 = tail call i32 @printw(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.10, i64 0, i64 0))
%14 = tail call i32 @printw(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%15 = tail call i32 @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.12, i64 0, i64 0))
%16 = tail call i32 @printw(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.13, i64 0, i64 0))
%17 = tail call i32 @printw(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.14, i64 0, i64 0))
%18 = tail call i32 @printw(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.15, i64 0, i64 0))
%19 = tail call i32 @printw(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.16, i64 0, i64 0))
ret void
}