char *returnTypeString(int TYPE) {
  if (TYPE == 31)
    return "integer";
  else if (TYPE == 32)
    return "boolean";
  else if (TYPE == 48)
    return "integer address";
  else if (TYPE == 49)
    return "boolean address";
}


x86 assembly (clang, -O0):
<returnTypeString>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
cmpl   $0x1f,-0xc(%rbp)
jne    1121 <returnTypeString+0x21>
lea    0xee8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    117e <returnTypeString+0x7e>
cmpl   $0x20,-0xc(%rbp)
jne    113b <returnTypeString+0x3b>
lea    0xed6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    117e <returnTypeString+0x7e>
cmpl   $0x30,-0xc(%rbp)
jne    1155 <returnTypeString+0x55>
lea    0xec4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    117e <returnTypeString+0x7e>
cmpl   $0x31,-0xc(%rbp)
jne    116f <returnTypeString+0x6f>
lea    0xeba(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    117e <returnTypeString+0x7e>
jmp    1174 <returnTypeString+0x74>
jmp    1179 <returnTypeString+0x79>
jmp    117e <returnTypeString+0x7e>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<returnTypeString>:
cmp    $0x31,%edi
je     1117 <returnTypeString+0x17>
cmp    $0x30,%edi
je     111f <returnTypeString+0x1f>
cmp    $0x20,%edi
jne    1127 <returnTypeString+0x27>
lea    0xef2(%rip),%rax
ret
lea    0xf02(%rip),%rax
ret
lea    0xeea(%rip),%rax
ret
lea    0xed2(%rip),%rax
ret

LLVM IR (-O0):
@.str = [8 x i8] c"integer\00"
@.str.1 = [8 x i8] c"boolean\00"
@.str.2 = [16 x i8] c"integer address\00"
@.str.3 = [16 x i8] c"boolean address\00"
define i8* @returnTypeString(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, 31
br i1 %5, label %6, label %7
6: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %2
br label %22
7: ; preds = %1
%8 = load i32, i32* %3
%9 = icmp eq i32 %8, 32
br i1 %9, label %10, label %11
10: ; preds = %7
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %22
11: ; preds = %7
%12 = load i32, i32* %3
%13 = icmp eq i32 %12, 48
br i1 %13, label %14, label %15
14: ; preds = %11
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %22
15: ; preds = %11
%16 = load i32, i32* %3
%17 = icmp eq i32 %16, 49
br i1 %17, label %18, label %19
18: ; preds = %15
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %22
19: ; preds = %15
br label %20
20: ; preds = %19
br label %21
21: ; preds = %20
br label %22
22: ; preds = %6, %10, %14, %18, %21
%23 = load i8*, i8** %2
ret i8* %23
}

LLVM IR (-O2):
@.str = [8 x i8] c"integer\00"
@.str.1 = [8 x i8] c"boolean\00"
@.str.2 = [16 x i8] c"integer address\00"
@.str.3 = [16 x i8] c"boolean address\00"
define i8* @returnTypeString(i32 %0) {
switch i32 %0, label %5 [
i32 49, label %4
i32 32, label %2
i32 48, label %3
]
2: ; preds = %1
br label %5
3: ; preds = %1
br label %5
4: ; preds = %1
br label %5
5: ; preds = %1, %2, %3, %4
%6 = phi i8* [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %6
}