#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*/ add_Information();
int /*<<< orphan*/ delete_Information();
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ modify_Information();
int /*<<< orphan*/ print_Information();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ search_Information();
scalar_t__ strcmp(char *, char *);
int enter_Choice(void) {
  char choice[3];
  printf("\nEnter your choice\n"
         "'V+'-Add a VIP client \n"
         "'V/'-Modify a VIP client's information\n"
         "'V-'-Delete a VIP client\n"
         "'V*'-Search a VIP client's information\n"
         "'E'-Exit\n");
  scanf("%s", choice);
  getchar();
  if (strcmp(choice, "V+") == 0) {
    add_Information();
    print_Information();
    return 1;
  } else {
    if (strcmp(choice, "V/") == 0) {
      modify_Information();
      print_Information();
      return 1;
    } else {
      if (strcmp(choice, "V-") == 0) {
        delete_Information();
        print_Information();
        return 1;
      } else {
        if (strcmp(choice, "V*") == 0) {
          search_Information();
          return 1;
        } else {
          if (strcmp(choice, "E") == 0) {
            return 0;
          } else {
            printf("misinput");
            return 1;
          }
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<enter_Choice>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xe61(%rip),%rdi
call   1040 <printf@plt>
lea    -0x7(%rbp),%rsi
lea    0xeec(%rip),%rdi
call   10a0 <scanf@plt>
mov    $0x0,%al
call   1070 <getchar@plt>
lea    -0x7(%rbp),%rdi
lea    0xed8(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    11ef <enter_Choice+0x5f>
mov    $0x0,%al
call   10b0 <add_Information@plt>
mov    $0x0,%al
call   1090 <print_Information@plt>
movl   $0x1,-0x4(%rbp)
jmp    12bd <enter_Choice+0x12d>
lea    -0x7(%rbp),%rdi
lea    0xea7(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1223 <enter_Choice+0x93>
mov    $0x0,%al
call   1080 <modify_Information@plt>
mov    $0x0,%al
call   1090 <print_Information@plt>
movl   $0x1,-0x4(%rbp)
jmp    12bd <enter_Choice+0x12d>
lea    -0x7(%rbp),%rdi
lea    0xe76(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1257 <enter_Choice+0xc7>
mov    $0x0,%al
call   1050 <delete_Information@plt>
mov    $0x0,%al
call   1090 <print_Information@plt>
movl   $0x1,-0x4(%rbp)
jmp    12bd <enter_Choice+0x12d>
lea    -0x7(%rbp),%rdi
lea    0xe45(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1284 <enter_Choice+0xf4>
mov    $0x0,%al
call   1030 <search_Information@plt>
movl   $0x1,-0x4(%rbp)
jmp    12bd <enter_Choice+0x12d>
lea    -0x7(%rbp),%rdi
lea    0xe1b(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12aa <enter_Choice+0x11a>
movl   $0x0,-0x4(%rbp)
jmp    12bd <enter_Choice+0x12d>
lea    0xdfb(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<enter_Choice>:
push   %rbx
sub    $0x10,%rsp
lea    0xe6e(%rip),%rdi
call   1030 <puts@plt>
lea    0xe48(%rip),%rdi
lea    0xd(%rsp),%rbx
mov    %rbx,%rsi
call   10b0 <scanf@plt>
xor    %eax,%eax
call   1080 <getchar@plt>
lea    0xe30(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1246 <enter_Choice+0xa6>
lea    0xe1f(%rip),%rsi
lea    0xd(%rsp),%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     124f <enter_Choice+0xaf>
lea    0xe0c(%rip),%rsi
lea    0xd(%rsp),%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1258 <enter_Choice+0xb8>
lea    0xdf9(%rip),%rsi
lea    0xd(%rsp),%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1271 <enter_Choice+0xd1>
lea    0xde6(%rip),%rsi
lea    0xd(%rsp),%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     127a <enter_Choice+0xda>
lea    0xdd2(%rip),%rdi
call   1050 <printf@plt>
jmp    1266 <enter_Choice+0xc6>
xor    %eax,%eax
call   10c0 <add_Information@plt>
jmp    125f <enter_Choice+0xbf>
xor    %eax,%eax
call   1090 <modify_Information@plt>
jmp    125f <enter_Choice+0xbf>
xor    %eax,%eax
call   1060 <delete_Information@plt>
xor    %eax,%eax
call   10a0 <print_Information@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbx
ret
xor    %eax,%eax
call   1040 <search_Information@plt>
jmp    1266 <enter_Choice+0xc6>
xor    %eax,%eax
jmp    126b <enter_Choice+0xcb>

LLVM IR (-O0):
@.str = [155 x i8] c"\0AEnter your choice\0A'V+'-Add a VIP client \0A'V/'-Modify a VIP client's information\0A'V-'-Delete a VIP client\0A'V*'-Search a VIP client's information\0A'E'-Exit\0A\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [3 x i8] c"V+\00"
@.str.3 = [3 x i8] c"V/\00"
@.str.4 = [3 x i8] c"V-\00"
@.str.5 = [3 x i8] c"V*\00"
@.str.6 = [2 x i8] c"E\00"
@.str.7 = [9 x i8] c"misinput\00"
define i32 @enter_Choice() {
%1 = alloca i32
%2 = alloca [3 x i8]
%3 = call i32 @printf(i8* getelementptr inbounds ([155 x i8], [155 x i8]* @.str, i64 0, i64 0))
%4 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = call i32 (...) @getchar()
%7 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%8 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %0
%11 = call i32 (...) @add_Information()
%12 = call i32 (...) @print_Information()
store i32 1, i32* %1
br label %40
13: ; preds = %0
%14 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%15 = call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = call i32 (...) @modify_Information()
%19 = call i32 (...) @print_Information()
store i32 1, i32* %1
br label %40
20: ; preds = %13
%21 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%22 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = call i32 (...) @delete_Information()
%26 = call i32 (...) @print_Information()
store i32 1, i32* %1
br label %40
27: ; preds = %20
%28 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%29 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 (...) @search_Information()
store i32 1, i32* %1
br label %40
33: ; preds = %27
%34 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 0, i32* %1
br label %40
38: ; preds = %33
%39 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
store i32 1, i32* %1
br label %40
40: ; preds = %38, %37, %31, %24, %17, %10
%41 = load i32, i32* %1
ret i32 %41
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [3 x i8] c"V+\00"
@.str.3 = [3 x i8] c"V/\00"
@.str.4 = [3 x i8] c"V-\00"
@.str.5 = [3 x i8] c"V*\00"
@.str.6 = [2 x i8] c"E\00"
@.str.7 = [9 x i8] c"misinput\00"
@str = [154 x i8] c"\0AEnter your choice\0A'V+'-Add a VIP client \0A'V/'-Modify a VIP client's information\0A'V-'-Delete a VIP client\0A'V*'-Search a VIP client's information\0A'E'-Exit\00"
define i32 @enter_Choice() {
%1 = alloca [3 x i8]
%2 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([154 x i8], [154 x i8]* @str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%5 = call i32 (...) @getchar()
%6 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = call i32 (...) @add_Information()
%10 = call i32 (...) @print_Information()
br label %33
11: ; preds = %0
%12 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = call i32 (...) @modify_Information()
%16 = call i32 (...) @print_Information()
br label %33
17: ; preds = %11
%18 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %17
%21 = call i32 (...) @delete_Information()
%22 = call i32 (...) @print_Information()
br label %33
23: ; preds = %17
%24 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 (...) @search_Information()
br label %33
28: ; preds = %23
%29 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %33, label %31
31: ; preds = %28
%32 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %33
33: ; preds = %28, %31, %26, %20, %14, %8
%34 = phi i32 [ 1, %8 ], [ 1, %14 ], [ 1, %20 ], [ 1, %26 ], [ 1, %31 ], [ 0, %28 ]
ret i32 %34
}