#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 show_help() {
  printf("This is Help Page!\n");
  printf("Type \"q\", Quit \n");
  printf("Type \"i\", Insert Data of Device \n");
  printf("Type \"d\", Delete Data \n");
  printf("Type \"m\", Modify Data \n");
  printf("\n");
  printf("Type \"l\", Show All Data, default order by time\n");
  printf("Type \"lid\", Show Data order by Id\n");
  printf("Type \"lname\", Show Data order by Name\n");
  printf("Type \"ltype\", Show Data order by Type\n");
  printf("Type \"lprice\", Show Data order by Price\n");
  printf("Type \"lnumber\", Show Data order by Number\n");
  printf("Type \"lcompany\", Show Data order by Company\n");
  printf("Type \"lcomment\", Show Data order by Comment\n");
  printf("\n");
  printf("Type \"s\", Search Data, default support fuzzy search\n");
  printf("Type \"sid\", Search Data by Id\n");
  printf("Type \"sname\", Search Data by Name\n");
  printf("Type \"stype\", Search Data by Type\n");
  printf("Type \"sprice\", Search Data by Price\n");
  printf("Type \"snumber\", Search Data by Number\n");
  printf("Type \"scompany\", Search Data by Company\n");
  printf("Type \"scomment\", Search Data by Comment\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf85(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe2(%rip),%rdi
call   1030 <printf@plt>
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
lea    0xff7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1020(%rip),%rdi
call   1030 <printf@plt>
lea    0x1033(%rip),%rdi
call   1030 <printf@plt>
lea    0x104a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1061(%rip),%rdi
call   1030 <printf@plt>
lea    0x107a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1095(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b2(%rip),%rdi
call   1030 <printf@plt>
lea    0xe2e(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xedf(%rip),%rdi
call   1040 <puts@plt>
lea    0xee3(%rip),%rdi
call   1040 <puts@plt>
lea    0xef8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf03(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf04(%rip),%rdi
call   1040 <puts@plt>
lea    0xf27(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3d(%rip),%rdi
call   1040 <puts@plt>
lea    0xf57(%rip),%rdi
call   1040 <puts@plt>
lea    0xf71(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8d(%rip),%rdi
call   1040 <puts@plt>
lea    0xfab(%rip),%rdi
call   1040 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfe1(%rip),%rdi
call   1040 <puts@plt>
lea    0x1009(%rip),%rdi
call   1040 <puts@plt>
lea    0x101b(%rip),%rdi
call   1040 <puts@plt>
lea    0x1031(%rip),%rdi
call   1040 <puts@plt>
lea    0x1047(%rip),%rdi
call   1040 <puts@plt>
lea    0x105f(%rip),%rdi
call   1040 <puts@plt>
lea    0x1079(%rip),%rdi
call   1040 <puts@plt>
lea    0x1095(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"This is Help Page!\0A\00"
@.str.1 = [17 x i8] c"Type \22q\22, Quit \0A\00"
@.str.2 = [34 x i8] c"Type \22i\22, Insert Data of Device \0A\00"
@.str.3 = [24 x i8] c"Type \22d\22, Delete Data \0A\00"
@.str.4 = [24 x i8] c"Type \22m\22, Modify Data \0A\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [48 x i8] c"Type \22l\22, Show All Data, default order by time\0A\00"
@.str.7 = [35 x i8] c"Type \22lid\22, Show Data order by Id\0A\00"
@.str.8 = [39 x i8] c"Type \22lname\22, Show Data order by Name\0A\00"
@.str.9 = [39 x i8] c"Type \22ltype\22, Show Data order by Type\0A\00"
@.str.10 = [41 x i8] c"Type \22lprice\22, Show Data order by Price\0A\00"
@.str.11 = [43 x i8] c"Type \22lnumber\22, Show Data order by Number\0A\00"
@.str.12 = [45 x i8] c"Type \22lcompany\22, Show Data order by Company\0A\00"
@.str.13 = [45 x i8] c"Type \22lcomment\22, Show Data order by Comment\0A\00"
@.str.14 = [53 x i8] c"Type \22s\22, Search Data, default support fuzzy search\0A\00"
@.str.15 = [31 x i8] c"Type \22sid\22, Search Data by Id\0A\00"
@.str.16 = [35 x i8] c"Type \22sname\22, Search Data by Name\0A\00"
@.str.17 = [35 x i8] c"Type \22stype\22, Search Data by Type\0A\00"
@.str.18 = [37 x i8] c"Type \22sprice\22, Search Data by Price\0A\00"
@.str.19 = [39 x i8] c"Type \22snumber\22, Search Data by Number\0A\00"
@.str.20 = [41 x i8] c"Type \22scompany\22, Search Data by Company\0A\00"
@.str.21 = [41 x i8] c"Type \22scomment\22, Search Data by Comment\0A\00"
define void @show_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.16, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.17, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.19, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.20, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.21, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [19 x i8] c"This is Help Page!\00"
@str.22 = [16 x i8] c"Type \22q\22, Quit \00"
@str.23 = [33 x i8] c"Type \22i\22, Insert Data of Device \00"
@str.24 = [23 x i8] c"Type \22d\22, Delete Data \00"
@str.25 = [23 x i8] c"Type \22m\22, Modify Data \00"
@str.26 = [47 x i8] c"Type \22l\22, Show All Data, default order by time\00"
@str.27 = [34 x i8] c"Type \22lid\22, Show Data order by Id\00"
@str.28 = [38 x i8] c"Type \22lname\22, Show Data order by Name\00"
@str.29 = [38 x i8] c"Type \22ltype\22, Show Data order by Type\00"
@str.30 = [40 x i8] c"Type \22lprice\22, Show Data order by Price\00"
@str.31 = [42 x i8] c"Type \22lnumber\22, Show Data order by Number\00"
@str.32 = [44 x i8] c"Type \22lcompany\22, Show Data order by Company\00"
@str.33 = [44 x i8] c"Type \22lcomment\22, Show Data order by Comment\00"
@str.34 = [52 x i8] c"Type \22s\22, Search Data, default support fuzzy search\00"
@str.35 = [30 x i8] c"Type \22sid\22, Search Data by Id\00"
@str.36 = [34 x i8] c"Type \22sname\22, Search Data by Name\00"
@str.37 = [34 x i8] c"Type \22stype\22, Search Data by Type\00"
@str.38 = [36 x i8] c"Type \22sprice\22, Search Data by Price\00"
@str.39 = [38 x i8] c"Type \22snumber\22, Search Data by Number\00"
@str.40 = [40 x i8] c"Type \22scompany\22, Search Data by Company\00"
@str.41 = [40 x i8] c"Type \22scomment\22, Search Data by Comment\00"
define void @show_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.22, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.23, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.24, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.25, i64 0, i64 0))
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.34, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.35, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.36, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.37, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.38, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.39, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.40, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.41, i64 0, i64 0))
%24 = tail call i32 @putchar(i32 10)
ret void
}