#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*/ caseSignIn();
int /*<<< orphan*/ forgotPassword();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ settings();
int /*<<< orphan*/ signUp();
void switchCaseMenu(int enter) {
  switch (enter) {
  case 1:
    caseSignIn();
    break;
  case 2:
    signUp();
    break;
  case 3:
    forgotPassword();
    break;
  case 4:
    settings();
    break;
  case 5:
    printf("Thank for your using.\n");
    break;
  }
}


x86 assembly (clang, -O0):
<switchCaseMenu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x4,%eax
ja     11c0 <switchCaseMenu+0x70>
mov    -0x10(%rbp),%rax
lea    0xe85(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1040 <caseSignIn@plt>
jmp    11c0 <switchCaseMenu+0x70>
mov    $0x0,%al
call   1050 <signUp@plt>
jmp    11c0 <switchCaseMenu+0x70>
mov    $0x0,%al
call   1060 <forgotPassword@plt>
jmp    11c0 <switchCaseMenu+0x70>
mov    $0x0,%al
call   1070 <settings@plt>
jmp    11c0 <switchCaseMenu+0x70>
lea    0xe59(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<switchCaseMenu>:
add    $0xffffffff,%edi
cmp    $0x4,%edi
ja     116f <switchCaseMenu+0x1f>
lea    0xea1(%rip),%rax
movslq (%rax,%rdi,4),%rcx
add    %rax,%rcx
jmp    *%rcx
xor    %eax,%eax
jmp    1040 <caseSignIn@plt>
ret
xor    %eax,%eax
jmp    1050 <signUp@plt>
xor    %eax,%eax
jmp    1060 <forgotPassword@plt>
xor    %eax,%eax
jmp    1070 <settings@plt>
lea    0xe88(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"Thank for your using.\0A\00"
define void @switchCaseMenu(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %14 [
i32 1, label %4
i32 2, label %6
i32 3, label %8
i32 4, label %10
i32 5, label %12
]
4: ; preds = %1
%5 = call i32 (...) @caseSignIn()
br label %14
6: ; preds = %1
%7 = call i32 (...) @signUp()
br label %14
8: ; preds = %1
%9 = call i32 (...) @forgotPassword()
br label %14
10: ; preds = %1
%11 = call i32 (...) @settings()
br label %14
12: ; preds = %1
%13 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
br label %14
14: ; preds = %1, %12, %10, %8, %6, %4
ret void
}

LLVM IR (-O2):
@str = [22 x i8] c"Thank for your using.\00"
define void @switchCaseMenu(i32 %0) {
switch i32 %0, label %12 [
i32 1, label %2
i32 2, label %4
i32 3, label %6
i32 4, label %8
i32 5, label %10
]
2: ; preds = %1
%3 = tail call i32 (...) @caseSignIn()
br label %12
4: ; preds = %1
%5 = tail call i32 (...) @signUp()
br label %12
6: ; preds = %1
%7 = tail call i32 (...) @forgotPassword()
br label %12
8: ; preds = %1
%9 = tail call i32 (...) @settings()
br label %12
10: ; preds = %1
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
br label %12
12: ; preds = %1, %10, %8, %6, %4, %2
ret void
}