#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 xcommand_print_help() {
  printf("\nUsage: xcommand <-?|v|q> command argument"
         "\n               <-s=device> <-b=baud> <-i=server:port>"
         "\n               <-n=nodeid> <-g=group> <-#=seq_no>"
         "\n   -? = display help [help]"
         "\n   -q = quiet mode (suppress headers)"
         "\n   -v = show version of all modules"
         "\n   -b = set the baudrate [baud=#|mica2|mica2dot]"
         "\n   -s = set serial port device [device=com1]"
         "\n   -i = internet serial forwarder [inet=host:port]"
         "\n   -n = nodeid to send command to [node=nodeid]"
         "\n   -g = group to send command over [group=groupid]"
         "\n   -# = sequence number of command [#=seq_no]"
         "\n"
         "\n   XCommand list:"
         "\n      wake, sleep, reset"
         "\n      set_rate  <interval in millisec>"
         "\n      set_leds  <number from 0-7>"
         "\n      set_sound <0=off|1=on>"
         "\n      red_on,   red_off,   red_toggle"
         "\n      green_on, green_off, green_toggle"
         "\n      yellow_on, yellow_off, yellow_toggle"
         "\n\n");
}


x86 assembly (clang, -O0):
<xcommand_print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<xcommand_print_help>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [808 x i8] c"\0AUsage: xcommand <-?|v|q> command argument\0A <-s=device> <-b=baud> <-i=server:port>\0A <-n=nodeid> <-g=group> <-#=seq_no>\0A -? = display help [help]\0A -q = quiet mode (suppress headers)\0A -v = show version of all modules\0A -b = set the baudrate [baud=#|mica2|mica2dot]\0A -s = set serial port device [device=com1]\0A -i = internet serial forwarder [inet=host:port]\0A -n = nodeid to send command to [node=nodeid]\0A -g = group to send command over [group=groupid]\0A -# = sequence number of command [#=seq_no]\0A\0A XCommand list:\0A wake, sleep, reset\0A set_rate <interval in millisec>\0A set_leds <number from 0-7>\0A set_sound <0=off|1=on>\0A red_on, red_off, red_toggle\0A green_on, green_off, green_toggle\0A yellow_on, yellow_off, yellow_toggle\0A\0A\00"
define void @xcommand_print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([808 x i8], [808 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [807 x i8] c"\0AUsage: xcommand <-?|v|q> command argument\0A <-s=device> <-b=baud> <-i=server:port>\0A <-n=nodeid> <-g=group> <-#=seq_no>\0A -? = display help [help]\0A -q = quiet mode (suppress headers)\0A -v = show version of all modules\0A -b = set the baudrate [baud=#|mica2|mica2dot]\0A -s = set serial port device [device=com1]\0A -i = internet serial forwarder [inet=host:port]\0A -n = nodeid to send command to [node=nodeid]\0A -g = group to send command over [group=groupid]\0A -# = sequence number of command [#=seq_no]\0A\0A XCommand list:\0A wake, sleep, reset\0A set_rate <interval in millisec>\0A set_leds <number from 0-7>\0A set_sound <0=off|1=on>\0A red_on, red_off, red_toggle\0A green_on, green_off, green_toggle\0A yellow_on, yellow_off, yellow_toggle\0A\00"
define void @xcommand_print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([807 x i8], [807 x i8]* @str, i64 0, i64 0))
ret void
}