#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 Help(void) {
  printf("\nMovement:\n");
  printf("  F - Forward (F:fast, f:slow)\n");
  printf("  B - Backward (B:fast, b:slow)\n");
  printf("  L - Left (L:tight turn, l:wide turn)\n");
  printf("  R - Right (R:tight turn, r:wide turn)\n");
  printf("\nControls:\n");
  printf("  Y - Led (Y:on/off, y:solid)\n");
  printf("  Z - Buzzer (Z:on/off, z:continuous)\n");
  printf("\nSensors (upper case is continuous read):\n");
  printf("  A - Accelerometer\n");
  printf("  O - Obstacle\n");
  printf("  S - Light Sensor\n");
  printf("  T - Temperature\n");
  printf("  H - History Report File (H:collect, h:display)\n");
  printf("\n");
  printf("  ?- Help\n");
  printf("  Q- Quit\n");
}


x86 assembly (clang, -O0):
<Help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf47(%rip),%rdi
call   1030 <printf@plt>
lea    0xf47(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf75(%rip),%rdi
call   1030 <printf@plt>
lea    0xf94(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9d(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa9(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb0(%rip),%rdi
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
call   1030 <printf@plt>
lea    0xfca(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc9(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xed7(%rip),%rdi
call   1040 <puts@plt>
lea    0xeea(%rip),%rdi
call   1040 <puts@plt>
lea    0xefe(%rip),%rdi
call   1040 <puts@plt>
lea    0xf19(%rip),%rdi
call   1040 <puts@plt>
lea    0xf35(%rip),%rdi
call   1040 <puts@plt>
lea    0xf34(%rip),%rdi
call   1040 <puts@plt>
lea    0xf46(%rip),%rdi
call   1040 <puts@plt>
lea    0xf60(%rip),%rdi
call   1040 <puts@plt>
lea    0xf7e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf86(%rip),%rdi
call   1040 <puts@plt>
lea    0xf89(%rip),%rdi
call   1040 <puts@plt>
lea    0xf90(%rip),%rdi
call   1040 <puts@plt>
lea    0xf96(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfb1(%rip),%rdi
call   1040 <puts@plt>
lea    0xfaf(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"\0AMovement:\0A\00"
@.str.1 = [32 x i8] c" F - Forward (F:fast, f:slow)\0A\00"
@.str.2 = [33 x i8] c" B - Backward (B:fast, b:slow)\0A\00"
@.str.3 = [40 x i8] c" L - Left (L:tight turn, l:wide turn)\0A\00"
@.str.4 = [41 x i8] c" R - Right (R:tight turn, r:wide turn)\0A\00"
@.str.5 = [12 x i8] c"\0AControls:\0A\00"
@.str.6 = [31 x i8] c" Y - Led (Y:on/off, y:solid)\0A\00"
@.str.7 = [39 x i8] c" Z - Buzzer (Z:on/off, z:continuous)\0A\00"
@.str.8 = [43 x i8] c"\0ASensors (upper case is continuous read):\0A\00"
@.str.9 = [21 x i8] c" A - Accelerometer\0A\00"
@.str.10 = [16 x i8] c" O - Obstacle\0A\00"
@.str.11 = [20 x i8] c" S - Light Sensor\0A\00"
@.str.12 = [19 x i8] c" T - Temperature\0A\00"
@.str.13 = [50 x i8] c" H - History Report File (H:collect, h:display)\0A\00"
@.str.14 = [2 x i8] c"\0A\00"
@.str.15 = [11 x i8] c" ?- Help\0A\00"
@.str.16 = [11 x i8] c" Q- Quit\0A\00"
define void @Help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [11 x i8] c"\0AMovement:\00"
@str.17 = [31 x i8] c" F - Forward (F:fast, f:slow)\00"
@str.18 = [32 x i8] c" B - Backward (B:fast, b:slow)\00"
@str.19 = [39 x i8] c" L - Left (L:tight turn, l:wide turn)\00"
@str.20 = [40 x i8] c" R - Right (R:tight turn, r:wide turn)\00"
@str.21 = [11 x i8] c"\0AControls:\00"
@str.22 = [30 x i8] c" Y - Led (Y:on/off, y:solid)\00"
@str.23 = [38 x i8] c" Z - Buzzer (Z:on/off, z:continuous)\00"
@str.24 = [42 x i8] c"\0ASensors (upper case is continuous read):\00"
@str.25 = [20 x i8] c" A - Accelerometer\00"
@str.26 = [15 x i8] c" O - Obstacle\00"
@str.27 = [19 x i8] c" S - Light Sensor\00"
@str.28 = [18 x i8] c" T - Temperature\00"
@str.29 = [49 x i8] c" H - History Report File (H:collect, h:display)\00"
@str.30 = [10 x i8] c" ?- Help\00"
@str.31 = [10 x i8] c" Q- Quit\00"
define void @Help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.17, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.30, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.31, i64 0, i64 0))
ret void
}