#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(int, char **);
int /*<<< orphan*/ del(int, char **);
int /*<<< orphan*/ edit(int, char **);
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ verify(int, char **, int);
void menu() {
  printf("Password database control\n");
  printf("1. Add a user\n");
  printf("2. Delete a user\n");
  printf("3. Edit a user\n");
  printf("4. Verify a user\n");
  printf("5. Quit\n");
  char option[50];
  char array[3][50];
  char *input[10];
  input[2] = array[0];
  input[3] = array[1];
  input[4] = array[2];
  char buffer;
  while (option[0] != '5') {
    printf("Input an option: ");
    scanf("%s", option);
    getchar();
    switch (option[0]) {
    case '1':
      printf("Input username: ");
      scanf("%s", array[0]);
      getchar();
      printf("Input password: ");
      scanf("%s", array[1]);
      getchar();
      printf("Input type: ");
      scanf("%s", array[2]);
      getchar();
      add(5, input);
      continue;
    case '2':
      printf("Input username to delete: ");
      scanf("%s", array[0]);
      getchar();
      del(3, input);
      continue;
    case '3':
      printf("Input username: ");
      scanf("%s", array[0]);
      getchar();
      printf("Input new password: ");
      scanf("%s", array[1]);
      getchar();
      printf("Input new type: ");
      scanf("%s", array[2]);
      getchar();
      edit(5, input);
      continue;
    case '4':
      printf("Input username: ");
      scanf("%s", array[0]);
      getchar();
      printf("Input password: ");
      scanf("%s", array[1]);
      getchar();
      verify(4, input, 1);
      continue;
    case '5':
      break;
    default:
      printf("Error: Invalid option\n");
    }
  }
}


x86 assembly (clang, -O0):
<menu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
lea    0xe92(%rip),%rdi
call   1050 <printf@plt>
lea    0xea1(%rip),%rdi
call   1050 <printf@plt>
lea    0xea4(%rip),%rdi
call   1050 <printf@plt>
lea    0xeaa(%rip),%rdi
call   1050 <printf@plt>
lea    0xeae(%rip),%rdi
call   1050 <printf@plt>
lea    0xeb4(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe0(%rbp),%rax
mov    %rax,-0x120(%rbp)
lea    -0xe0(%rbp),%rax
add    $0x32,%rax
mov    %rax,-0x118(%rbp)
lea    -0xe0(%rbp),%rax
add    $0x64,%rax
mov    %rax,-0x110(%rbp)
movsbl -0x40(%rbp),%eax
cmp    $0x35,%eax
je     1432 <menu+0x2c2>
lea    0xe72(%rip),%rdi
call   1050 <printf@plt>
lea    0xe78(%rip),%rdi
lea    -0x40(%rbp),%rsi
call   1070 <scanf@plt>
xor    %eax,%eax
call   1060 <getchar@plt>
movsbl -0x40(%rbp),%eax
add    $0xffffffcf,%eax
mov    %eax,%ecx
mov    %rcx,-0x140(%rbp)
sub    $0x4,%eax
ja     1421 <menu+0x2b1>
mov    -0x140(%rbp),%rax
lea    0xdb4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe34(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe0(%rbp),%rsi
lea    0xe1e(%rip),%rdi
call   1070 <scanf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
lea    0xe1f(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe0(%rbp),%rsi
add    $0x32,%rsi
lea    0xdf4(%rip),%rdi
call   1070 <scanf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
lea    0xe06(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe0(%rbp),%rsi
add    $0x64,%rsi
lea    0xdca(%rip),%rdi
call   1070 <scanf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
lea    -0x130(%rbp),%rsi
mov    $0x5,%edi
call   1030 <add@plt>
jmp    11f5 <menu+0x85>
lea    0xdd3(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe0(%rbp),%rsi
lea    0xd8e(%rip),%rdi
call   1070 <scanf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
lea    -0x130(%rbp),%rsi
mov    $0x3,%edi
call   1090 <del@plt>
jmp    11f5 <menu+0x85>
lea    0xd68(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe0(%rbp),%rsi
lea    0xd52(%rip),%rdi
call   1070 <scanf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
lea    0xd8c(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe0(%rbp),%rsi
add    $0x32,%rsi
lea    0xd28(%rip),%rdi
call   1070 <scanf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
lea    0xd77(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe0(%rbp),%rsi
add    $0x64,%rsi
lea    0xcfe(%rip),%rdi
call   1070 <scanf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
lea    -0x130(%rbp),%rsi
mov    $0x5,%edi
call   1040 <edit@plt>
jmp    11f5 <menu+0x85>
lea    0xcd8(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe0(%rbp),%rsi
lea    0xcc2(%rip),%rdi
call   1070 <scanf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
lea    0xcc3(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe0(%rbp),%rsi
add    $0x32,%rsi
lea    0xc98(%rip),%rdi
call   1070 <scanf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
lea    -0x130(%rbp),%rsi
mov    $0x4,%edi
mov    $0x1,%edx
call   1080 <verify@plt>
jmp    11f5 <menu+0x85>
jmp    142d <menu+0x2bd>
lea    0xcd8(%rip),%rdi
call   1050 <printf@plt>
jmp    11f5 <menu+0x85>
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<menu>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
lea    0xf01(%rip),%rdi
call   1040 <puts@plt>
lea    0xf0f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf11(%rip),%rdi
call   1040 <puts@plt>
lea    0xf16(%rip),%rdi
call   1040 <puts@plt>
lea    0xf19(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1e(%rip),%rdi
call   1040 <puts@plt>
lea    0x40(%rsp),%r12
mov    %r12,0xf0(%rsp)
lea    0x72(%rsp),%rax
mov    %rax,0xf8(%rsp)
lea    0xa4(%rsp),%rax
mov    %rax,0x100(%rsp)
lea    0xe0a(%rip),%r13
lea    0xe15(%rip),%rbx
mov    %rsp,%rbp
lea    0xde5(%rip),%r14
lea    0xe0(%rsp),%r15
jmp    12ac <menu+0x12c>
lea    0xdfa(%rip),%rdi
call   1060 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1080 <scanf@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
lea    0xded(%rip),%rdi
call   1060 <printf@plt>
mov    %rbx,%rdi
lea    0x72(%rsp),%rsi
call   1080 <scanf@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
lea    0xdde(%rip),%rdi
call   1060 <printf@plt>
mov    %rbx,%rdi
lea    0xa4(%rsp),%rsi
call   1080 <scanf@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
mov    $0x5,%edi
mov    %r15,%rsi
call   1030 <add@plt>
cs nopw 0x0(%rax,%rax,1)
movzbl (%rsp),%eax
cmp    $0x35,%al
je     13de <menu+0x25e>
mov    %r13,%rdi
call   1060 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1080 <scanf@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
movsbl (%rsp),%eax
lea    -0x31(%rax),%ecx
cmp    $0x4,%ecx
ja     1308 <menu+0x188>
movslq (%r14,%rcx,4),%rcx
add    %r14,%rcx
jmp    *%rcx
lea    0xd76(%rip),%rdi
call   1060 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1080 <scanf@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
mov    $0x3,%edi
mov    %r15,%rsi
call   10a0 <del@plt>
jmp    12a0 <menu+0x120>
lea    0xdeb(%rip),%rdi
call   1040 <puts@plt>
jmp    12a0 <menu+0x120>
lea    0xd0c(%rip),%rdi
call   1060 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1080 <scanf@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
lea    0xd38(%rip),%rdi
call   1060 <printf@plt>
mov    %rbx,%rdi
lea    0x72(%rsp),%rsi
call   1080 <scanf@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
lea    0xd2d(%rip),%rdi
call   1060 <printf@plt>
mov    %rbx,%rdi
lea    0xa4(%rsp),%rsi
call   1080 <scanf@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
mov    $0x5,%edi
mov    %r15,%rsi
call   1050 <edit@plt>
jmp    12a0 <menu+0x120>
lea    0xc99(%rip),%rdi
call   1060 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1080 <scanf@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
lea    0xc8c(%rip),%rdi
call   1060 <printf@plt>
mov    %rbx,%rdi
lea    0x72(%rsp),%rsi
call   1080 <scanf@plt>
xor    %eax,%eax
call   1070 <getchar@plt>
mov    $0x4,%edi
mov    %r15,%rsi
mov    $0x1,%edx
call   1090 <verify@plt>
jmp    12a0 <menu+0x120>
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [27 x i8] c"Password database control\0A\00"
@.str.1 = [15 x i8] c"1. Add a user\0A\00"
@.str.2 = [18 x i8] c"2. Delete a user\0A\00"
@.str.3 = [16 x i8] c"3. Edit a user\0A\00"
@.str.4 = [18 x i8] c"4. Verify a user\0A\00"
@.str.5 = [9 x i8] c"5. Quit\0A\00"
@.str.6 = [18 x i8] c"Input an option: \00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [17 x i8] c"Input username: \00"
@.str.9 = [17 x i8] c"Input password: \00"
@.str.10 = [13 x i8] c"Input type: \00"
@.str.11 = [27 x i8] c"Input username to delete: \00"
@.str.12 = [21 x i8] c"Input new password: \00"
@.str.13 = [17 x i8] c"Input new type: \00"
@.str.14 = [23 x i8] c"Error: Invalid option\0A\00"
define void @menu() {
%1 = alloca [50 x i8]
%2 = alloca [3 x [50 x i8]]
%3 = alloca [10 x i8*]
%4 = alloca i8
%5 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%11 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 0
%12 = getelementptr inbounds [50 x i8], [50 x i8]* %11, i64 0, i64 0
%13 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 2
store i8* %12, i8** %13
%14 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 1
%15 = getelementptr inbounds [50 x i8], [50 x i8]* %14, i64 0, i64 0
%16 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 3
store i8* %15, i8** %16
%17 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 2
%18 = getelementptr inbounds [50 x i8], [50 x i8]* %17, i64 0, i64 0
%19 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 4
store i8* %18, i8** %19
br label %20
20: ; preds = %93, %77, %59, %51, %33, %0
%21 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 53
br i1 %24, label %25, label %94
25: ; preds = %20
%26 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%27 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %27)
%29 = call i32 (...) @getchar()
%30 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
switch i32 %32, label %91 [
i32 49, label %33
i32 50, label %51
i32 51, label %59
i32 52, label %77
i32 53, label %90
]
33: ; preds = %25
%34 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%35 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 0
%36 = getelementptr inbounds [50 x i8], [50 x i8]* %35, i64 0, i64 0
%37 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %36)
%38 = call i32 (...) @getchar()
%39 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%40 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 1
%41 = getelementptr inbounds [50 x i8], [50 x i8]* %40, i64 0, i64 0
%42 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %41)
%43 = call i32 (...) @getchar()
%44 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%45 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 2
%46 = getelementptr inbounds [50 x i8], [50 x i8]* %45, i64 0, i64 0
%47 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %46)
%48 = call i32 (...) @getchar()
%49 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 0
%50 = call i32 @add(i32 5, i8** %49)
br label %20
51: ; preds = %25
%52 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0))
%53 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 0
%54 = getelementptr inbounds [50 x i8], [50 x i8]* %53, i64 0, i64 0
%55 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %54)
%56 = call i32 (...) @getchar()
%57 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 0
%58 = call i32 @del(i32 3, i8** %57)
br label %20
59: ; preds = %25
%60 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%61 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 0
%62 = getelementptr inbounds [50 x i8], [50 x i8]* %61, i64 0, i64 0
%63 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %62)
%64 = call i32 (...) @getchar()
%65 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%66 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 1
%67 = getelementptr inbounds [50 x i8], [50 x i8]* %66, i64 0, i64 0
%68 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %67)
%69 = call i32 (...) @getchar()
%70 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%71 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 2
%72 = getelementptr inbounds [50 x i8], [50 x i8]* %71, i64 0, i64 0
%73 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %72)
%74 = call i32 (...) @getchar()
%75 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 0
%76 = call i32 @edit(i32 5, i8** %75)
br label %20
77: ; preds = %25
%78 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%79 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 0
%80 = getelementptr inbounds [50 x i8], [50 x i8]* %79, i64 0, i64 0
%81 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %80)
%82 = call i32 (...) @getchar()
%83 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%84 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 1
%85 = getelementptr inbounds [50 x i8], [50 x i8]* %84, i64 0, i64 0
%86 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %85)
%87 = call i32 (...) @getchar()
%88 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 0
%89 = call i32 @verify(i32 4, i8** %88, i32 1)
br label %20
90: ; preds = %25
br label %93
91: ; preds = %25
%92 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0))
br label %93
93: ; preds = %91, %90
br label %20
94: ; preds = %20
ret void
}

LLVM IR (-O2):
@.str.6 = [18 x i8] c"Input an option: \00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [17 x i8] c"Input username: \00"
@.str.9 = [17 x i8] c"Input password: \00"
@.str.10 = [13 x i8] c"Input type: \00"
@.str.11 = [27 x i8] c"Input username to delete: \00"
@.str.12 = [21 x i8] c"Input new password: \00"
@.str.13 = [17 x i8] c"Input new type: \00"
@str = [26 x i8] c"Password database control\00"
@str.15 = [14 x i8] c"1. Add a user\00"
@str.16 = [17 x i8] c"2. Delete a user\00"
@str.17 = [15 x i8] c"3. Edit a user\00"
@str.18 = [17 x i8] c"4. Verify a user\00"
@str.19 = [8 x i8] c"5. Quit\00"
@str.20 = [22 x i8] c"Error: Invalid option\00"
define void @menu() {
%1 = alloca [50 x i8]
%2 = alloca [3 x [50 x i8]]
%3 = alloca [10 x i8*]
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.19, i64 0, i64 0))
%10 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%11 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 0, i64 0
%12 = bitcast [10 x i8*]* %3 to i8*
%13 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 2
store i8* %11, i8** %13
%14 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 1, i64 0
%15 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 3
store i8* %14, i8** %15
%16 = getelementptr inbounds [3 x [50 x i8]], [3 x [50 x i8]]* %2, i64 0, i64 2, i64 0
%17 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 4
store i8* %16, i8** %17
%18 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 0
br label %19
19: ; preds = %0, %38
%20 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %10)
%22 = call i32 (...) @getchar()
%23 = load i8, i8* %10
%24 = sext i8 %23 to i32
switch i32 %24, label %65 [
i32 49, label %25
i32 50, label %41
i32 51, label %46
i32 52, label %57
i32 53, label %38
]
25: ; preds = %19
%26 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %11)
%28 = call i32 (...) @getchar()
%29 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%30 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %14)
%31 = call i32 (...) @getchar()
%32 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%33 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %16)
%34 = call i32 (...) @getchar()
%35 = call i32 @add(i32 5, i8** %18)
br label %36
36: ; preds = %57, %46, %41, %25, %65
%37 = load i8, i8* %10
br label %38
38: ; preds = %36, %19
%39 = phi i8 [ %37, %36 ], [ %23, %19 ]
%40 = icmp eq i8 %39, 53
br i1 %40, label %67, label %19
41: ; preds = %19
%42 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0))
%43 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %11)
%44 = call i32 (...) @getchar()
%45 = call i32 @del(i32 3, i8** %18)
br label %36
46: ; preds = %19
%47 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%48 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %11)
%49 = call i32 (...) @getchar()
%50 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%51 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %14)
%52 = call i32 (...) @getchar()
%53 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%54 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %16)
%55 = call i32 (...) @getchar()
%56 = call i32 @edit(i32 5, i8** %18)
br label %36
57: ; preds = %19
%58 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%59 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %11)
%60 = call i32 (...) @getchar()
%61 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%62 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %14)
%63 = call i32 (...) @getchar()
%64 = call i32 @verify(i32 4, i8** %18, i32 1)
br label %36
65: ; preds = %19
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.20, i64 0, i64 0))
br label %36
67: ; preds = %38
ret void
}