#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 nova_show_help_menu() {
  printf("\033[35m"
         "Commands end with ;\n");
  printf("Allowed regex operations:\n");
  printf("\tOR operator -> |\n");
  printf("\tCLEENE operator -> *\n");
  printf("\033[32m"
         "Example: (a|b)|(c|d)*\n\n");
  printf("vars;\t\t -> shows memory and variables.\n");
  printf("clear;\t\t -> clears the screen.\n");
  printf("print E;\t -> shows expression value.\n");
  printf("leave;\t\t -> leaves the program.\n");
  printf("E;\t\t -> shows expression value.\n");
  printf("x := E;\t\t -> Create/redefine variable x as regex E.\n");
  printf("\033[31m"
         "\t\tVariable name must start with $ (like in PHP).\n");
  printf("\n"
         "\033[0m");
}


x86 assembly (clang, -O0):
<nova_show_help_menu>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
call   1030 <printf@plt>
lea    0xf41(%rip),%rdi
call   1030 <printf@plt>
lea    0xf55(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf84(%rip),%rdi
call   1030 <printf@plt>
lea    0xf99(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfed(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<nova_show_help_menu>:
push   %rax
lea    0xede(%rip),%rdi
call   1030 <puts@plt>
lea    0xeeb(%rip),%rdi
call   1030 <puts@plt>
lea    0xef9(%rip),%rdi
call   1030 <puts@plt>
lea    0xeff(%rip),%rdi
call   1030 <puts@plt>
lea    0xf09(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xf34(%rip),%rdi
call   1030 <puts@plt>
lea    0xf47(%rip),%rdi
call   1030 <puts@plt>
lea    0xf60(%rip),%rdi
call   1030 <puts@plt>
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xf88(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb0(%rip),%rdi
call   1030 <puts@plt>
lea    0xe48(%rip),%rdi
pop    %rax
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"\1B[35mCommands end with ;\0A\00"
@.str.1 = [27 x i8] c"Allowed regex operations:\0A\00"
@.str.2 = [19 x i8] c"\09OR operator -> |\0A\00"
@.str.3 = [23 x i8] c"\09CLEENE operator -> *\0A\00"
@.str.4 = [29 x i8] c"\1B[32mExample: (a|b)|(c|d)*\0A\0A\00"
@.str.5 = [40 x i8] c"vars;\09\09 -> shows memory and variables.\0A\00"
@.str.6 = [32 x i8] c"clear;\09\09 -> clears the screen.\0A\00"
@.str.7 = [38 x i8] c"print E;\09 -> shows expression value.\0A\00"
@.str.8 = [33 x i8] c"leave;\09\09 -> leaves the program.\0A\00"
@.str.9 = [33 x i8] c"E;\09\09 -> shows expression value.\0A\00"
@.str.10 = [53 x i8] c"x := E;\09\09 -> Create/redefine variable x as regex E.\0A\00"
@.str.11 = [55 x i8] c"\1B[31m\09\09Variable name must start with $ (like in PHP).\0A\00"
@.str.12 = [6 x i8] c"\0A\1B[0m\00"
define void @nova_show_help_menu() {
%1 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.12 = [6 x i8] c"\0A\1B[0m\00"
@str = [25 x i8] c"\1B[35mCommands end with ;\00"
@str.13 = [26 x i8] c"Allowed regex operations:\00"
@str.14 = [18 x i8] c"\09OR operator -> |\00"
@str.15 = [22 x i8] c"\09CLEENE operator -> *\00"
@str.16 = [28 x i8] c"\1B[32mExample: (a|b)|(c|d)*\0A\00"
@str.17 = [39 x i8] c"vars;\09\09 -> shows memory and variables.\00"
@str.18 = [31 x i8] c"clear;\09\09 -> clears the screen.\00"
@str.19 = [37 x i8] c"print E;\09 -> shows expression value.\00"
@str.20 = [32 x i8] c"leave;\09\09 -> leaves the program.\00"
@str.21 = [32 x i8] c"E;\09\09 -> shows expression value.\00"
@str.22 = [52 x i8] c"x := E;\09\09 -> Create/redefine variable x as regex E.\00"
@str.23 = [54 x i8] c"\1B[31m\09\09Variable name must start with $ (like in PHP).\00"
define void @nova_show_help_menu() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
ret void
}