#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*/ UART_OutString(char *);
void term_help(void) {
  UART_OutString("\n\n\rTerminal Commands List:\n\r");
  UART_OutString("h:   print this Help screen.\n\r");
  UART_OutString("RC:  Read the Clock\n\r");
  UART_OutString("CC:  Clear the CLock\n\r");
  UART_OutString("JM:  print Maximum Jitter\n\r");
  UART_OutString("JH:  print Jitter Histogram\n\r");
  UART_OutString("OS:  print Os Statistics data\n\r");
  UART_OutString("OP:  print Os Profile data\n\r");
  UART_OutString("OPC: Clear Os Profile data\n\r");
  UART_OutString("ML:  set Motor Left\n\r");
  UART_OutString("MR:  set Motor Right\n\r");
  UART_OutString("q:   Quit\n\r");
}


x86 assembly (clang, -O0):
<term_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xef6(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf09(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf13(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf1e(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf2e(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf40(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf54(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf65(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf76(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf80(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf8b(%rip),%rdi
call   1030 <UART_OutString@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<term_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xef9(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf0c(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf16(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf21(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf31(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf43(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf57(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf68(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf79(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf83(%rip),%rdi
call   1030 <UART_OutString@plt>
lea    0xf8e(%rip),%rdi
pop    %rax
jmp    1030 <UART_OutString@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"\0A\0A\0DTerminal Commands List:\0A\0D\00"
@.str.1 = [31 x i8] c"h: print this Help screen.\0A\0D\00"
@.str.2 = [22 x i8] c"RC: Read the Clock\0A\0D\00"
@.str.3 = [23 x i8] c"CC: Clear the CLock\0A\0D\00"
@.str.4 = [28 x i8] c"JM: print Maximum Jitter\0A\0D\00"
@.str.5 = [30 x i8] c"JH: print Jitter Histogram\0A\0D\00"
@.str.6 = [32 x i8] c"OS: print Os Statistics data\0A\0D\00"
@.str.7 = [29 x i8] c"OP: print Os Profile data\0A\0D\00"
@.str.8 = [29 x i8] c"OPC: Clear Os Profile data\0A\0D\00"
@.str.9 = [22 x i8] c"ML: set Motor Left\0A\0D\00"
@.str.10 = [23 x i8] c"MR: set Motor Right\0A\0D\00"
@.str.11 = [12 x i8] c"q: Quit\0A\0D\00"
define void @term_help() {
%1 = call i32 @UART_OutString(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @UART_OutString(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @UART_OutString(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @UART_OutString(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @UART_OutString(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @UART_OutString(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @UART_OutString(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @UART_OutString(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @UART_OutString(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @UART_OutString(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @UART_OutString(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @UART_OutString(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"\0A\0A\0DTerminal Commands List:\0A\0D\00"
@.str.1 = [31 x i8] c"h: print this Help screen.\0A\0D\00"
@.str.2 = [22 x i8] c"RC: Read the Clock\0A\0D\00"
@.str.3 = [23 x i8] c"CC: Clear the CLock\0A\0D\00"
@.str.4 = [28 x i8] c"JM: print Maximum Jitter\0A\0D\00"
@.str.5 = [30 x i8] c"JH: print Jitter Histogram\0A\0D\00"
@.str.6 = [32 x i8] c"OS: print Os Statistics data\0A\0D\00"
@.str.7 = [29 x i8] c"OP: print Os Profile data\0A\0D\00"
@.str.8 = [29 x i8] c"OPC: Clear Os Profile data\0A\0D\00"
@.str.9 = [22 x i8] c"ML: set Motor Left\0A\0D\00"
@.str.10 = [23 x i8] c"MR: set Motor Right\0A\0D\00"
@.str.11 = [12 x i8] c"q: Quit\0A\0D\00"
define void @term_help() {
%1 = tail call i32 @UART_OutString(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @UART_OutString(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @UART_OutString(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @UART_OutString(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @UART_OutString(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @UART_OutString(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @UART_OutString(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @UART_OutString(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @UART_OutString(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @UART_OutString(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @UART_OutString(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @UART_OutString(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0))
ret void
}