#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*/ error_print(char *);
int /*<<< orphan*/ help_back();
int /*<<< orphan*/ help_bill();
int /*<<< orphan*/ help_book();
int /*<<< orphan*/ help_checkout();
int /*<<< orphan*/ help_create_service();
int /*<<< orphan*/ help_drop();
int /*<<< orphan*/ help_help();
int /*<<< orphan*/ help_init();
int /*<<< orphan*/ help_list();
int /*<<< orphan*/ help_ls();
int /*<<< orphan*/ help_prompt();
int /*<<< orphan*/ help_service();
int /*<<< orphan*/ help_switch();
int /*<<< orphan*/ strcmp(char *, char *);
void help(char *command) {
  if (!command)
    help_ls();
  else if (!strcmp(command, "help"))
    help_help();
  else if (!strcmp(command, "prompt"))
    help_prompt();
  else if (!strcmp(command, "init"))
    help_init();
  else if (!strcmp(command, "drop"))
    help_drop();
  else if (!strcmp(command, "create-service"))
    help_create_service();
  else if (!strcmp(command, "list"))
    help_list();
  else if (!strcmp(command, "switch"))
    help_switch();
  else if (!strcmp(command, "back"))
    help_back();
  else if (!strcmp(command, "book"))
    help_book();
  else if (!strcmp(command, "service"))
    help_service();
  else if (!strcmp(command, "bill"))
    help_bill();
  else if (!strcmp(command, "checkout"))
    help_checkout();
  else
    error_print("Unknown command!");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1213 <help+0x23>
mov    $0x0,%al
call   10c0 <help_ls@plt>
jmp    1417 <help+0x227>
mov    -0x8(%rbp),%rdi
lea    0xde2(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1238 <help+0x48>
mov    $0x0,%al
call   1060 <help_help@plt>
jmp    1412 <help+0x222>
mov    -0x8(%rbp),%rdi
lea    0xdc2(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    125d <help+0x6d>
mov    $0x0,%al
call   10f0 <help_prompt@plt>
jmp    140d <help+0x21d>
mov    -0x8(%rbp),%rdi
lea    0xda4(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1282 <help+0x92>
mov    $0x0,%al
call   1030 <help_init@plt>
jmp    1408 <help+0x218>
mov    -0x8(%rbp),%rdi
lea    0xd84(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    12a7 <help+0xb7>
mov    $0x0,%al
call   1050 <help_drop@plt>
jmp    1403 <help+0x213>
mov    -0x8(%rbp),%rdi
lea    0xd64(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    12cc <help+0xdc>
mov    $0x0,%al
call   10e0 <help_create_service@plt>
jmp    13fe <help+0x20e>
mov    -0x8(%rbp),%rdi
lea    0xd4e(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    12f1 <help+0x101>
mov    $0x0,%al
call   10b0 <help_list@plt>
jmp    13f9 <help+0x209>
mov    -0x8(%rbp),%rdi
lea    0xd2e(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1316 <help+0x126>
mov    $0x0,%al
call   1090 <help_switch@plt>
jmp    13f4 <help+0x204>
mov    -0x8(%rbp),%rdi
lea    0xd10(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    133b <help+0x14b>
mov    $0x0,%al
call   1080 <help_back@plt>
jmp    13ef <help+0x1ff>
mov    -0x8(%rbp),%rdi
lea    0xcf0(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1360 <help+0x170>
mov    $0x0,%al
call   10a0 <help_book@plt>
jmp    13ea <help+0x1fa>
mov    -0x8(%rbp),%rdi
lea    0xcb2(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1385 <help+0x195>
mov    $0x0,%al
call   1100 <help_service@plt>
jmp    13e5 <help+0x1f5>
mov    -0x8(%rbp),%rdi
lea    0xcab(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    13aa <help+0x1ba>
mov    $0x0,%al
call   1040 <help_bill@plt>
jmp    13e0 <help+0x1f0>
mov    -0x8(%rbp),%rdi
lea    0xc8b(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    13cf <help+0x1df>
mov    $0x0,%al
call   1110 <help_checkout@plt>
jmp    13db <help+0x1eb>
lea    0xc73(%rip),%rdi
call   10d0 <error_print@plt>
jmp    13e0 <help+0x1f0>
jmp    13e5 <help+0x1f5>
jmp    13ea <help+0x1fa>
jmp    13ef <help+0x1ff>
jmp    13f4 <help+0x204>
jmp    13f9 <help+0x209>
jmp    13fe <help+0x20e>
jmp    1403 <help+0x213>
jmp    1408 <help+0x218>
jmp    140d <help+0x21d>
jmp    1412 <help+0x222>
jmp    1417 <help+0x227>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rbx
test   %rdi,%rdi
je     1313 <help+0x123>
mov    %rdi,%rbx
lea    0xdfc(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
je     131b <help+0x12b>
lea    0xded(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1323 <help+0x133>
lea    0xddd(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     132b <help+0x13b>
lea    0xdcb(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1333 <help+0x143>
lea    0xdb9(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     133b <help+0x14b>
lea    0xdb1(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1343 <help+0x153>
lea    0xd9f(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     134b <help+0x15b>
lea    0xd8f(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1353 <help+0x163>
lea    0xd7d(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     135b <help+0x16b>
lea    0xd4d(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1363 <help+0x173>
lea    0xd54(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     136b <help+0x17b>
lea    0xd46(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     1373 <help+0x183>
lea    0xd3c(%rip),%rdi
pop    %rbx
jmp    10d0 <error_print@plt>
xor    %eax,%eax
pop    %rbx
jmp    10c0 <help_ls@plt>
xor    %eax,%eax
pop    %rbx
jmp    1060 <help_help@plt>
xor    %eax,%eax
pop    %rbx
jmp    10f0 <help_prompt@plt>
xor    %eax,%eax
pop    %rbx
jmp    1030 <help_init@plt>
xor    %eax,%eax
pop    %rbx
jmp    1050 <help_drop@plt>
xor    %eax,%eax
pop    %rbx
jmp    10e0 <help_create_service@plt>
xor    %eax,%eax
pop    %rbx
jmp    10b0 <help_list@plt>
xor    %eax,%eax
pop    %rbx
jmp    1090 <help_switch@plt>
xor    %eax,%eax
pop    %rbx
jmp    1080 <help_back@plt>
xor    %eax,%eax
pop    %rbx
jmp    10a0 <help_book@plt>
xor    %eax,%eax
pop    %rbx
jmp    1100 <help_service@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <help_bill@plt>
xor    %eax,%eax
pop    %rbx
jmp    1110 <help_checkout@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"help\00"
@.str.1 = [7 x i8] c"prompt\00"
@.str.2 = [5 x i8] c"init\00"
@.str.3 = [5 x i8] c"drop\00"
@.str.4 = [15 x i8] c"create-service\00"
@.str.5 = [5 x i8] c"list\00"
@.str.6 = [7 x i8] c"switch\00"
@.str.7 = [5 x i8] c"back\00"
@.str.8 = [5 x i8] c"book\00"
@.str.9 = [8 x i8] c"service\00"
@.str.10 = [5 x i8] c"bill\00"
@.str.11 = [9 x i8] c"checkout\00"
@.str.12 = [17 x i8] c"Unknown command!\00"
define void @help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = call i32 (...) @help_ls()
br label %93
7: ; preds = %1
%8 = load i8*, i8** %2
%9 = call i32 @strcmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%10 = icmp ne i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %7
%12 = call i32 (...) @help_help()
br label %92
13: ; preds = %7
%14 = load i8*, i8** %2
%15 = call i32 @strcmp(i8* %14, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp ne i32 %15, 0
br i1 %16, label %19, label %17
17: ; preds = %13
%18 = call i32 (...) @help_prompt()
br label %91
19: ; preds = %13
%20 = load i8*, i8** %2
%21 = call i32 @strcmp(i8* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%22 = icmp ne i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %19
%24 = call i32 (...) @help_init()
br label %90
25: ; preds = %19
%26 = load i8*, i8** %2
%27 = call i32 @strcmp(i8* %26, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%28 = icmp ne i32 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %25
%30 = call i32 (...) @help_drop()
br label %89
31: ; preds = %25
%32 = load i8*, i8** %2
%33 = call i32 @strcmp(i8* %32, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%34 = icmp ne i32 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %31
%36 = call i32 (...) @help_create_service()
br label %88
37: ; preds = %31
%38 = load i8*, i8** %2
%39 = call i32 @strcmp(i8* %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%40 = icmp ne i32 %39, 0
br i1 %40, label %43, label %41
41: ; preds = %37
%42 = call i32 (...) @help_list()
br label %87
43: ; preds = %37
%44 = load i8*, i8** %2
%45 = call i32 @strcmp(i8* %44, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%46 = icmp ne i32 %45, 0
br i1 %46, label %49, label %47
47: ; preds = %43
%48 = call i32 (...) @help_switch()
br label %86
49: ; preds = %43
%50 = load i8*, i8** %2
%51 = call i32 @strcmp(i8* %50, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%52 = icmp ne i32 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %49
%54 = call i32 (...) @help_back()
br label %85
55: ; preds = %49
%56 = load i8*, i8** %2
%57 = call i32 @strcmp(i8* %56, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%58 = icmp ne i32 %57, 0
br i1 %58, label %61, label %59
59: ; preds = %55
%60 = call i32 (...) @help_book()
br label %84
61: ; preds = %55
%62 = load i8*, i8** %2
%63 = call i32 @strcmp(i8* %62, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%64 = icmp ne i32 %63, 0
br i1 %64, label %67, label %65
65: ; preds = %61
%66 = call i32 (...) @help_service()
br label %83
67: ; preds = %61
%68 = load i8*, i8** %2
%69 = call i32 @strcmp(i8* %68, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%70 = icmp ne i32 %69, 0
br i1 %70, label %73, label %71
71: ; preds = %67
%72 = call i32 (...) @help_bill()
br label %82
73: ; preds = %67
%74 = load i8*, i8** %2
%75 = call i32 @strcmp(i8* %74, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%76 = icmp ne i32 %75, 0
br i1 %76, label %79, label %77
77: ; preds = %73
%78 = call i32 (...) @help_checkout()
br label %81
79: ; preds = %73
%80 = call i32 @error_print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0))
br label %81
81: ; preds = %79, %77
br label %82
82: ; preds = %81, %71
br label %83
83: ; preds = %82, %65
br label %84
84: ; preds = %83, %59
br label %85
85: ; preds = %84, %53
br label %86
86: ; preds = %85, %47
br label %87
87: ; preds = %86, %41
br label %88
88: ; preds = %87, %35
br label %89
89: ; preds = %88, %29
br label %90
90: ; preds = %89, %23
br label %91
91: ; preds = %90, %17
br label %92
92: ; preds = %91, %11
br label %93
93: ; preds = %92, %5
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"help\00"
@.str.1 = [7 x i8] c"prompt\00"
@.str.2 = [5 x i8] c"init\00"
@.str.3 = [5 x i8] c"drop\00"
@.str.4 = [15 x i8] c"create-service\00"
@.str.5 = [5 x i8] c"list\00"
@.str.6 = [7 x i8] c"switch\00"
@.str.7 = [5 x i8] c"back\00"
@.str.8 = [5 x i8] c"book\00"
@.str.9 = [8 x i8] c"service\00"
@.str.10 = [5 x i8] c"bill\00"
@.str.11 = [9 x i8] c"checkout\00"
@.str.12 = [17 x i8] c"Unknown command!\00"
define void @help(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 (...) @help_ls()
br label %67
5: ; preds = %1
%6 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i32 (...) @help_help()
br label %67
10: ; preds = %5
%11 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = tail call i32 (...) @help_prompt()
br label %67
15: ; preds = %10
%16 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = tail call i32 (...) @help_init()
br label %67
20: ; preds = %15
%21 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = tail call i32 (...) @help_drop()
br label %67
25: ; preds = %20
%26 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(15) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = tail call i32 (...) @help_create_service()
br label %67
30: ; preds = %25
%31 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = tail call i32 (...) @help_list()
br label %67
35: ; preds = %30
%36 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = tail call i32 (...) @help_switch()
br label %67
40: ; preds = %35
%41 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = tail call i32 (...) @help_back()
br label %67
45: ; preds = %40
%46 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = tail call i32 (...) @help_book()
br label %67
50: ; preds = %45
%51 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = tail call i32 (...) @help_service()
br label %67
55: ; preds = %50
%56 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = tail call i32 (...) @help_bill()
br label %67
60: ; preds = %55
%61 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = tail call i32 (...) @help_checkout()
br label %67
65: ; preds = %60
%66 = tail call i32 @error_print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0))
br label %67
67: ; preds = %8, %18, %28, %38, %48, %58, %65, %63, %53, %43, %33, %23, %13, %3
ret void
}