#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 *, char *, char *, char *, char *, char *,
                          char *, char *);
void printMenu() {
  printf("\n%s\n%s\n%s\n%s\n%s\n%s\n%s",
         "**************Command menu**************", "1) Turn on red LED",
         "2) Turn on yellow LED", "3) Turn on green LED",
         "4) Read the luminosity", "5) Send text", "\nEnter the command: ");
}


x86 assembly (clang, -O0):
<printMenu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
lea    0xef0(%rip),%rsi
lea    0xf12(%rip),%rdx
lea    0xf1e(%rip),%rcx
lea    0xf2d(%rip),%r8
lea    0xf3b(%rip),%r9
lea    0xf4b(%rip),%r10
lea    0xf51(%rip),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printMenu>:
push   %rax
lea    0xf89(%rip),%rax
lea    0xf75(%rip),%r10
lea    0xeda(%rip),%rdi
lea    0xee9(%rip),%rsi
lea    0xf0b(%rip),%rdx
lea    0xf17(%rip),%rcx
lea    0xf26(%rip),%r8
lea    0xf34(%rip),%r9
push   %rax
push   %r10
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rax
ret

LLVM IR (-O0):
@.str = [22 x i8] c"\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\00"
@.str.1 = [41 x i8] c"**************Command menu**************\00"
@.str.2 = [19 x i8] c"1) Turn on red LED\00"
@.str.3 = [22 x i8] c"2) Turn on yellow LED\00"
@.str.4 = [21 x i8] c"3) Turn on green LED\00"
@.str.5 = [23 x i8] c"4) Read the luminosity\00"
@.str.6 = [13 x i8] c"5) Send text\00"
@.str.7 = [21 x i8] c"\0AEnter the command: \00"
define void @printMenu() {
%1 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\00"
@.str.1 = [41 x i8] c"**************Command menu**************\00"
@.str.2 = [19 x i8] c"1) Turn on red LED\00"
@.str.3 = [22 x i8] c"2) Turn on yellow LED\00"
@.str.4 = [21 x i8] c"3) Turn on green LED\00"
@.str.5 = [23 x i8] c"4) Read the luminosity\00"
@.str.6 = [13 x i8] c"5) Send text\00"
@.str.7 = [21 x i8] c"\0AEnter the command: \00"
define void @printMenu() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
ret void
}