#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 delete_email(char **, int);
int export_email(char **, int);
int help();
int import_email(char **, int);
int list();
int ping(char **, int);
int remove_mailing_list(char **, int);
int search(char **, int);
scalar_t__ strcmp(char *, char *);
int update(char **, int);
int execute_command(int _argc, char **_args) {
  if (strcmp(_args[0], "help") == 0)
    return help();
  else if (strcmp(_args[0], "list") == 0)
    return list();
  else if (strcmp(_args[0], "import") == 0)
    return import_email(_args, _argc);
  else if (strcmp(_args[0], "export") == 0)
    return export_email(_args, _argc);
  else if (strcmp(_args[0], "search") == 0)
    return search(_args, _argc);
  else if (strcmp(_args[0], "delete") == 0)
    return delete_email(_args, _argc);
  else if (strcmp(_args[0], "remove") == 0)
    return remove_mailing_list(_args, _argc);
  else if (strcmp(_args[0], "update") == 0)
    return update(_args, _argc);
  else if (strcmp(_args[0], "ping") == 0)
    return ping(_args, _argc);
  return 0;
}


x86 assembly (clang, -O0):
<execute_command>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xe43(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    11db <execute_command+0x3b>
mov    $0x0,%al
call   10c0 <help@plt>
mov    %eax,-0x4(%rbp)
jmp    138d <execute_command+0x1ed>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xe1c(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1207 <execute_command+0x67>
mov    $0x0,%al
call   1090 <list@plt>
mov    %eax,-0x4(%rbp)
jmp    138d <execute_command+0x1ed>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xdf5(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1238 <execute_command+0x98>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1070 <import_email@plt>
mov    %eax,-0x4(%rbp)
jmp    138d <execute_command+0x1ed>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xdcb(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1269 <execute_command+0xc9>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   10b0 <export_email@plt>
mov    %eax,-0x4(%rbp)
jmp    138d <execute_command+0x1ed>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xda1(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    129a <execute_command+0xfa>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1060 <search@plt>
mov    %eax,-0x4(%rbp)
jmp    138d <execute_command+0x1ed>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd77(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    12cb <execute_command+0x12b>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1040 <delete_email@plt>
mov    %eax,-0x4(%rbp)
jmp    138d <execute_command+0x1ed>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd4d(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    12fc <execute_command+0x15c>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1050 <remove_mailing_list@plt>
mov    %eax,-0x4(%rbp)
jmp    138d <execute_command+0x1ed>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd23(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    132d <execute_command+0x18d>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1030 <update@plt>
mov    %eax,-0x4(%rbp)
jmp    138d <execute_command+0x1ed>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xcf9(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    135e <execute_command+0x1be>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   10a0 <ping@plt>
mov    %eax,-0x4(%rbp)
jmp    138d <execute_command+0x1ed>
jmp    1363 <execute_command+0x1c3>
jmp    1368 <execute_command+0x1c8>
jmp    136d <execute_command+0x1cd>
jmp    1372 <execute_command+0x1d2>
jmp    1377 <execute_command+0x1d7>
jmp    137c <execute_command+0x1dc>
jmp    1381 <execute_command+0x1e1>
jmp    1386 <execute_command+0x1e6>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<execute_command>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
mov    (%rsi),%rdi
lea    0xe4e(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1289 <execute_command+0xe9>
mov    (%rbx),%rdi
lea    0xe3b(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1296 <execute_command+0xf6>
mov    (%rbx),%rdi
lea    0xe28(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12a3 <execute_command+0x103>
mov    (%rbx),%rdi
lea    0xe17(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12b3 <execute_command+0x113>
mov    (%rbx),%rdi
lea    0xe06(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12c3 <execute_command+0x123>
mov    (%rbx),%rdi
lea    0xdf5(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12d3 <execute_command+0x133>
mov    (%rbx),%rdi
lea    0xde4(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12e3 <execute_command+0x143>
mov    (%rbx),%rdi
lea    0xdd3(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12f3 <execute_command+0x153>
mov    (%rbx),%rdi
lea    0xdc2(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1303 <execute_command+0x163>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    10c0 <help@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1090 <list@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1070 <import_email@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    10b0 <export_email@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1060 <search@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <delete_email@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1050 <remove_mailing_list@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <update@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    10a0 <ping@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"help\00"
@.str.1 = [5 x i8] c"list\00"
@.str.2 = [7 x i8] c"import\00"
@.str.3 = [7 x i8] c"export\00"
@.str.4 = [7 x i8] c"search\00"
@.str.5 = [7 x i8] c"delete\00"
@.str.6 = [7 x i8] c"remove\00"
@.str.7 = [7 x i8] c"update\00"
@.str.8 = [5 x i8] c"ping\00"
define i32 @execute_command(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i8**, i8*** %5
%7 = getelementptr inbounds i8*, i8** %6, i64 0
%8 = load i8*, i8** %7
%9 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (...) @help()
store i32 %12, i32* %3
br label %100
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 0
%16 = load i8*, i8** %15
%17 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = call i32 (...) @list()
store i32 %20, i32* %3
br label %100
21: ; preds = %13
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 0
%24 = load i8*, i8** %23
%25 = call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %21
%28 = load i8**, i8*** %5
%29 = load i32, i32* %4
%30 = call i32 @import_email(i8** %28, i32 %29)
store i32 %30, i32* %3
br label %100
31: ; preds = %21
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i64 0
%34 = load i8*, i8** %33
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %31
%38 = load i8**, i8*** %5
%39 = load i32, i32* %4
%40 = call i32 @export_email(i8** %38, i32 %39)
store i32 %40, i32* %3
br label %100
41: ; preds = %31
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 0
%44 = load i8*, i8** %43
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %41
%48 = load i8**, i8*** %5
%49 = load i32, i32* %4
%50 = call i32 @search(i8** %48, i32 %49)
store i32 %50, i32* %3
br label %100
51: ; preds = %41
%52 = load i8**, i8*** %5
%53 = getelementptr inbounds i8*, i8** %52, i64 0
%54 = load i8*, i8** %53
%55 = call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %61
57: ; preds = %51
%58 = load i8**, i8*** %5
%59 = load i32, i32* %4
%60 = call i32 @delete_email(i8** %58, i32 %59)
store i32 %60, i32* %3
br label %100
61: ; preds = %51
%62 = load i8**, i8*** %5
%63 = getelementptr inbounds i8*, i8** %62, i64 0
%64 = load i8*, i8** %63
%65 = call i64 @strcmp(i8* %64, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %71
67: ; preds = %61
%68 = load i8**, i8*** %5
%69 = load i32, i32* %4
%70 = call i32 @remove_mailing_list(i8** %68, i32 %69)
store i32 %70, i32* %3
br label %100
71: ; preds = %61
%72 = load i8**, i8*** %5
%73 = getelementptr inbounds i8*, i8** %72, i64 0
%74 = load i8*, i8** %73
%75 = call i64 @strcmp(i8* %74, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %81
77: ; preds = %71
%78 = load i8**, i8*** %5
%79 = load i32, i32* %4
%80 = call i32 @update(i8** %78, i32 %79)
store i32 %80, i32* %3
br label %100
81: ; preds = %71
%82 = load i8**, i8*** %5
%83 = getelementptr inbounds i8*, i8** %82, i64 0
%84 = load i8*, i8** %83
%85 = call i64 @strcmp(i8* %84, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %87, label %91
87: ; preds = %81
%88 = load i8**, i8*** %5
%89 = load i32, i32* %4
%90 = call i32 @ping(i8** %88, i32 %89)
store i32 %90, i32* %3
br label %100
91: ; preds = %81
br label %92
92: ; preds = %91
br label %93
93: ; preds = %92
br label %94
94: ; preds = %93
br label %95
95: ; preds = %94
br label %96
96: ; preds = %95
br label %97
97: ; preds = %96
br label %98
98: ; preds = %97
br label %99
99: ; preds = %98
store i32 0, i32* %3
br label %100
100: ; preds = %99, %87, %77, %67, %57, %47, %37, %27, %19, %11
%101 = load i32, i32* %3
ret i32 %101
}

LLVM IR (-O2):
@.str = [5 x i8] c"help\00"
@.str.1 = [5 x i8] c"list\00"
@.str.2 = [7 x i8] c"import\00"
@.str.3 = [7 x i8] c"export\00"
@.str.4 = [7 x i8] c"search\00"
@.str.5 = [7 x i8] c"delete\00"
@.str.6 = [7 x i8] c"remove\00"
@.str.7 = [7 x i8] c"update\00"
@.str.8 = [5 x i8] c"ping\00"
define i32 @execute_command(i32 %0, i8** %1) {
%3 = load i8*, i8** %1
%4 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 (...) @help()
br label %56
8: ; preds = %2
%9 = load i8*, i8** %1
%10 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = tail call i32 (...) @list()
br label %56
14: ; preds = %8
%15 = load i8*, i8** %1
%16 = tail call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = tail call i32 @import_email(i8** %1, i32 %0)
br label %56
20: ; preds = %14
%21 = load i8*, i8** %1
%22 = tail call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = tail call i32 @export_email(i8** %1, i32 %0)
br label %56
26: ; preds = %20
%27 = load i8*, i8** %1
%28 = tail call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = tail call i32 @search(i8** %1, i32 %0)
br label %56
32: ; preds = %26
%33 = load i8*, i8** %1
%34 = tail call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = tail call i32 @delete_email(i8** %1, i32 %0)
br label %56
38: ; preds = %32
%39 = load i8*, i8** %1
%40 = tail call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = tail call i32 @remove_mailing_list(i8** %1, i32 %0)
br label %56
44: ; preds = %38
%45 = load i8*, i8** %1
%46 = tail call i64 @strcmp(i8* %45, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = tail call i32 @update(i8** %1, i32 %0)
br label %56
50: ; preds = %44
%51 = load i8*, i8** %1
%52 = tail call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = tail call i32 @ping(i8** %1, i32 %0)
br label %56
56: ; preds = %50, %54, %48, %42, %36, %30, %24, %18, %12, %6
%57 = phi i32 [ %7, %6 ], [ %13, %12 ], [ %19, %18 ], [ %25, %24 ], [ %31, %30 ], [ %37, %36 ], [ %43, %42 ], [ %49, %48 ], [ %55, %54 ], [ 0, %50 ]
ret i32 %57
}