#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*/ fprintRTF(char *);
int /*<<< orphan*/ ignoreBraceParam();
int /*<<< orphan*/ ignoreBracketParam();
void CmdHarvard(int code) {
  switch (code) {
  case 32:
    ignoreBracketParam();
    ignoreBraceParam();
    ignoreBraceParam();
    ignoreBraceParam();
    break;
  case 33:
    fprintRTF("(");
    break;
  case 34:
    fprintRTF(")");
    break;
  case 36:
    fprintRTF("&");
  default:
    break;
  }
}


x86 assembly (clang, -O0):
<CmdHarvard>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffe0,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x4,%eax
ja     11b3 <CmdHarvard+0x83>
mov    -0x10(%rbp),%rax
lea    0xea5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1040 <ignoreBracketParam@plt>
mov    $0x0,%al
call   1030 <ignoreBraceParam@plt>
mov    $0x0,%al
call   1030 <ignoreBraceParam@plt>
mov    $0x0,%al
call   1030 <ignoreBraceParam@plt>
jmp    11b8 <CmdHarvard+0x88>
lea    0xe88(%rip),%rdi
call   1050 <fprintRTF@plt>
jmp    11b8 <CmdHarvard+0x88>
lea    0xe79(%rip),%rdi
call   1050 <fprintRTF@plt>
jmp    11b8 <CmdHarvard+0x88>
lea    0xe6a(%rip),%rdi
call   1050 <fprintRTF@plt>
jmp    11b8 <CmdHarvard+0x88>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CmdHarvard>:
push   %rax
add    $0xffffffe0,%edi
cmp    $0x4,%edi
ja     1180 <CmdHarvard+0x50>
lea    0xec0(%rip),%rax
movslq (%rax,%rdi,4),%rcx
add    %rax,%rcx
jmp    *%rcx
xor    %eax,%eax
call   1040 <ignoreBracketParam@plt>
xor    %eax,%eax
call   1030 <ignoreBraceParam@plt>
xor    %eax,%eax
call   1030 <ignoreBraceParam@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <ignoreBraceParam@plt>
lea    0xea7(%rip),%rdi
pop    %rax
jmp    1050 <fprintRTF@plt>
lea    0xe9c(%rip),%rdi
pop    %rax
jmp    1050 <fprintRTF@plt>
pop    %rax
ret
lea    0xe8f(%rip),%rdi
pop    %rax
jmp    1050 <fprintRTF@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"(\00"
@.str.1 = [2 x i8] c")\00"
@.str.2 = [2 x i8] c"&\00"
define void @CmdHarvard(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %15 [
i32 32, label %4
i32 33, label %9
i32 34, label %11
i32 36, label %13
]
4: ; preds = %1
%5 = call i32 (...) @ignoreBracketParam()
%6 = call i32 (...) @ignoreBraceParam()
%7 = call i32 (...) @ignoreBraceParam()
%8 = call i32 (...) @ignoreBraceParam()
br label %16
9: ; preds = %1
%10 = call i32 @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %16
11: ; preds = %1
%12 = call i32 @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %16
13: ; preds = %1
%14 = call i32 @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %15
15: ; preds = %1, %13
br label %16
16: ; preds = %15, %11, %9, %4
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"(\00"
@.str.1 = [2 x i8] c")\00"
@.str.2 = [2 x i8] c"&\00"
define void @CmdHarvard(i32 %0) {
switch i32 %0, label %13 [
i32 32, label %2
i32 33, label %7
i32 34, label %9
i32 36, label %11
]
2: ; preds = %1
%3 = tail call i32 (...) @ignoreBracketParam()
%4 = tail call i32 (...) @ignoreBraceParam()
%5 = tail call i32 (...) @ignoreBraceParam()
%6 = tail call i32 (...) @ignoreBraceParam()
br label %13
7: ; preds = %1
%8 = tail call i32 @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %13
9: ; preds = %1
%10 = tail call i32 @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %13
11: ; preds = %1
%12 = tail call i32 @fprintRTF(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %13
13: ; preds = %11, %1, %9, %7, %2
ret void
}