#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*/ UART1_OutString(char *);
void term1_help(void) {
  UART1_OutString("\n\n\rTerminal Commands List:\n\r");
  UART1_OutString("h:   print this Help screen.\n\r");
  UART1_OutString("ML:  set Motor Left\n\r");
  UART1_OutString("MR:  set Motor Right\n\r");
  UART1_OutString("ED:  Enter Debug-stream mode (DOES NOT RETURN!)\n\r");
  UART1_OutString("q:   Quit\n\r");
}


x86 assembly (clang, -O0):
<term1_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <UART1_OutString@plt>
lea    0xef6(%rip),%rdi
call   1030 <UART1_OutString@plt>
lea    0xf09(%rip),%rdi
call   1030 <UART1_OutString@plt>
lea    0xf13(%rip),%rdi
call   1030 <UART1_OutString@plt>
lea    0xf1e(%rip),%rdi
call   1030 <UART1_OutString@plt>
lea    0xf44(%rip),%rdi
call   1030 <UART1_OutString@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<term1_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <UART1_OutString@plt>
lea    0xef9(%rip),%rdi
call   1030 <UART1_OutString@plt>
lea    0xf0c(%rip),%rdi
call   1030 <UART1_OutString@plt>
lea    0xf16(%rip),%rdi
call   1030 <UART1_OutString@plt>
lea    0xf21(%rip),%rdi
call   1030 <UART1_OutString@plt>
lea    0xf47(%rip),%rdi
pop    %rax
jmp    1030 <UART1_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"ML: set Motor Left\0A\0D\00"
@.str.3 = [23 x i8] c"MR: set Motor Right\0A\0D\00"
@.str.4 = [50 x i8] c"ED: Enter Debug-stream mode (DOES NOT RETURN!)\0A\0D\00"
@.str.5 = [12 x i8] c"q: Quit\0A\0D\00"
define void @term1_help() {
%1 = call i32 @UART1_OutString(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @UART1_OutString(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @UART1_OutString(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @UART1_OutString(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @UART1_OutString(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @UART1_OutString(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, 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"ML: set Motor Left\0A\0D\00"
@.str.3 = [23 x i8] c"MR: set Motor Right\0A\0D\00"
@.str.4 = [50 x i8] c"ED: Enter Debug-stream mode (DOES NOT RETURN!)\0A\0D\00"
@.str.5 = [12 x i8] c"q: Quit\0A\0D\00"
define void @term1_help() {
%1 = tail call i32 @UART1_OutString(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @UART1_OutString(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @UART1_OutString(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @UART1_OutString(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @UART1_OutString(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @UART1_OutString(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
ret void
}