#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_write(char *);
void show_motors_help() {
  uart_write("\tE - get end-switches\n");
  uart_write("\tL - move CCW\n");
  uart_write("\tM - get motor state\n");
  uart_write("\tN - go for N st./get rest\n");
  uart_write("\tO - pull off the switch\n");
  uart_write("\tP - get current position\n");
  uart_write("\tR - move CW\n");
  uart_write("\tS - get/set speed\n");
  uart_write("\tX - stop motor\n");
  uart_write("\tZ - stop and zero position\n");
}


x86 assembly (clang, -O0):
<show_motors_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xef0(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xef3(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xefd(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xf0d(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xf1b(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xf2a(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xf2c(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xf34(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xf39(%rip),%rdi
call   1030 <uart_write@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_motors_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xef3(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xef6(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xf00(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xf10(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xf1e(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xf2d(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xf2f(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xf37(%rip),%rdi
call   1030 <uart_write@plt>
lea    0xf3c(%rip),%rdi
pop    %rax
jmp    1030 <uart_write@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"\09E - get end-switches\0A\00"
@.str.1 = [15 x i8] c"\09L - move CCW\0A\00"
@.str.2 = [22 x i8] c"\09M - get motor state\0A\00"
@.str.3 = [28 x i8] c"\09N - go for N st./get rest\0A\00"
@.str.4 = [26 x i8] c"\09O - pull off the switch\0A\00"
@.str.5 = [27 x i8] c"\09P - get current position\0A\00"
@.str.6 = [14 x i8] c"\09R - move CW\0A\00"
@.str.7 = [20 x i8] c"\09S - get/set speed\0A\00"
@.str.8 = [17 x i8] c"\09X - stop motor\0A\00"
@.str.9 = [29 x i8] c"\09Z - stop and zero position\0A\00"
define void @show_motors_help() {
%1 = call i32 @uart_write(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @uart_write(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @uart_write(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @uart_write(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @uart_write(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @uart_write(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @uart_write(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @uart_write(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @uart_write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @uart_write(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"\09E - get end-switches\0A\00"
@.str.1 = [15 x i8] c"\09L - move CCW\0A\00"
@.str.2 = [22 x i8] c"\09M - get motor state\0A\00"
@.str.3 = [28 x i8] c"\09N - go for N st./get rest\0A\00"
@.str.4 = [26 x i8] c"\09O - pull off the switch\0A\00"
@.str.5 = [27 x i8] c"\09P - get current position\0A\00"
@.str.6 = [14 x i8] c"\09R - move CW\0A\00"
@.str.7 = [20 x i8] c"\09S - get/set speed\0A\00"
@.str.8 = [17 x i8] c"\09X - stop motor\0A\00"
@.str.9 = [29 x i8] c"\09Z - stop and zero position\0A\00"
define void @show_motors_help() {
%1 = tail call i32 @uart_write(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @uart_write(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @uart_write(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @uart_write(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @uart_write(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @uart_write(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @uart_write(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @uart_write(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @uart_write(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @uart_write(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0))
ret void
}