#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 get_menu_choice();
int /*<<< orphan*/ oper1();
int /*<<< orphan*/ oper2();
int /*<<< orphan*/ oper3();
int /*<<< orphan*/ oper4();
int /*<<< orphan*/ printf(char *);
int main(int argv, char *argc[]) {
  int choice = 0;
  while (choice != 5) {
    choice = get_menu_choice();
    if (choice == 1)
      oper1();
    else if (choice == 2)
      oper2();
    else if (choice == 3)
      oper3();
    else if (choice == 4)
      oper4();
    else if (choice == 5)
      printf("\a\n\033[40;34;01;05mBye for now. Any questions,comments forward "
             "them to SeeDX@disinfo.net!\n");
    printf("\033[40;47;00m");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
je     1224 <main+0xc4>
mov    $0x0,%al
call   1040 <get_menu_choice@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    11a7 <main+0x47>
mov    $0x0,%al
call   1030 <oper1@plt>
jmp    1213 <main+0xb3>
cmpl   $0x2,-0x14(%rbp)
jne    11bd <main+0x5d>
mov    $0x0,%al
call   1070 <oper2@plt>
jmp    120e <main+0xae>
cmpl   $0x3,-0x14(%rbp)
jne    11d3 <main+0x73>
mov    $0x0,%al
call   1080 <oper3@plt>
jmp    1209 <main+0xa9>
cmpl   $0x4,-0x14(%rbp)
jne    11e9 <main+0x89>
mov    $0x0,%al
call   1060 <oper4@plt>
jmp    1204 <main+0xa4>
cmpl   $0x5,-0x14(%rbp)
jne    11ff <main+0x9f>
lea    0xe06(%rip),%rdi
call   1050 <printf@plt>
jmp    1204 <main+0xa4>
jmp    1209 <main+0xa9>
jmp    120e <main+0xae>
jmp    1213 <main+0xb3>
lea    0xe3e(%rip),%rdi
call   1050 <printf@plt>
jmp    117d <main+0x1d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xe99(%rip),%r14
lea    0xe7e(%rip),%rbx
jmp    1198 <main+0x28>
xor    %eax,%eax
call   1070 <oper4@plt>
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1060 <printf@plt>
xor    %eax,%eax
call   1050 <get_menu_choice@plt>
add    $0xffffffff,%eax
cmp    $0x4,%eax
ja     1190 <main+0x20>
movslq (%rbx,%rax,4),%rax
add    %rbx,%rax
jmp    *%rax
xor    %eax,%eax
call   1030 <oper1@plt>
jmp    1190 <main+0x20>
xor    %eax,%eax
call   1080 <oper2@plt>
jmp    1190 <main+0x20>
xor    %eax,%eax
call   1090 <oper3@plt>
jmp    1190 <main+0x20>
lea    0xe4e(%rip),%rdi
call   1040 <puts@plt>
lea    0xe36(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [88 x i8] c"\07\0A\1B[40;34;01;05mBye for now. Any questions,comments forward them to SeeDX@disinfo.net!\0A\00"
@.str.1 = [12 x i8] c"\1B[40;47;00m\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %7
7: ; preds = %40, %2
%8 = load i32, i32* %6
%9 = icmp ne i32 %8, 5
br i1 %9, label %10, label %42
10: ; preds = %7
%11 = call i32 (...) @get_menu_choice()
store i32 %11, i32* %6
%12 = load i32, i32* %6
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 (...) @oper1()
br label %40
16: ; preds = %10
%17 = load i32, i32* %6
%18 = icmp eq i32 %17, 2
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 (...) @oper2()
br label %39
21: ; preds = %16
%22 = load i32, i32* %6
%23 = icmp eq i32 %22, 3
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 (...) @oper3()
br label %38
26: ; preds = %21
%27 = load i32, i32* %6
%28 = icmp eq i32 %27, 4
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 (...) @oper4()
br label %37
31: ; preds = %26
%32 = load i32, i32* %6
%33 = icmp eq i32 %32, 5
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str, i64 0, i64 0))
br label %36
36: ; preds = %34, %31
br label %37
37: ; preds = %36, %29
br label %38
38: ; preds = %37, %24
br label %39
39: ; preds = %38, %19
br label %40
40: ; preds = %39, %14
%41 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %7
42: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [12 x i8] c"\1B[40;47;00m\00"
@str = [87 x i8] c"\07\0A\1B[40;34;01;05mBye for now. Any questions,comments forward them to SeeDX@disinfo.net!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %13, %2
%4 = tail call i32 (...) @get_menu_choice()
switch i32 %4, label %13 [
i32 1, label %5
i32 2, label %7
i32 3, label %9
i32 4, label %11
i32 5, label %15
]
5: ; preds = %3
%6 = tail call i32 (...) @oper1()
br label %13
7: ; preds = %3
%8 = tail call i32 (...) @oper2()
br label %13
9: ; preds = %3
%10 = tail call i32 (...) @oper3()
br label %13
11: ; preds = %3
%12 = tail call i32 (...) @oper4()
br label %13
13: ; preds = %3, %7, %11, %9, %5
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %3
15: ; preds = %3
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str, i64 0, i64 0))
%17 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}