#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*/ printf(char *);
void anacond(unsigned long condcode) {
  switch (condcode) {
  case 1:
    printf("SS$_NORMAL\n");
    break;
  case 2392592:
    printf("STR$_INVDELIM\n");
    break;
  case 2392600:
    printf("STR$_NOELEM\n");
    break;
  case 2392576:
    printf("STR$_TRU\n");
    break;
  default:
    printf("Unknown condition code");
  }
}


x86 assembly (clang, -O0):
<anacond>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
sub    $0x1,%rax
je     1172 <anacond+0x62>
jmp    1133 <anacond+0x23>
mov    -0x10(%rbp),%rax
sub    $0x248200,%rax
je     11a5 <anacond+0x95>
jmp    1148 <anacond+0x38>
mov    -0x10(%rbp),%rax
sub    $0x248210,%rax
je     1183 <anacond+0x73>
jmp    115d <anacond+0x4d>
mov    -0x10(%rbp),%rax
sub    $0x248218,%rax
je     1194 <anacond+0x84>
jmp    11b6 <anacond+0xa6>
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
jmp    11c2 <anacond+0xb2>
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
jmp    11c2 <anacond+0xb2>
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
jmp    11c2 <anacond+0xb2>
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
jmp    11c2 <anacond+0xb2>
lea    0xe75(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<anacond>:
cmp    $0x24820f,%rdi
jg     1144 <anacond+0x24>
cmp    $0x1,%rdi
je     116e <anacond+0x4e>
cmp    $0x248200,%rdi
jne    1162 <anacond+0x42>
lea    0xed8(%rip),%rdi
jmp    1030 <puts@plt>
cmp    $0x248210,%rdi
je     117a <anacond+0x5a>
cmp    $0x248218,%rdi
jne    1162 <anacond+0x42>
lea    0xec3(%rip),%rdi
jmp    1030 <puts@plt>
lea    0xe97(%rip),%rdi
jmp    1040 <printf@plt>
lea    0xec5(%rip),%rdi
jmp    1030 <puts@plt>
lea    0xeab(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"SS$_NORMAL\0A\00"
@.str.1 = [15 x i8] c"STR$_INVDELIM\0A\00"
@.str.2 = [13 x i8] c"STR$_NOELEM\0A\00"
@.str.3 = [10 x i8] c"STR$_TRU\0A\00"
@.str.4 = [23 x i8] c"Unknown condition code\00"
define void @anacond(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
switch i64 %3, label %12 [
i64 1, label %4
i64 2392592, label %6
i64 2392600, label %8
i64 2392576, label %10
]
4: ; preds = %1
%5 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %14
6: ; preds = %1
%7 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %14
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %14
10: ; preds = %1
%11 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %14
12: ; preds = %1
%13 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
br label %14
14: ; preds = %12, %10, %8, %6, %4
ret void
}

LLVM IR (-O2):
@.str.4 = [23 x i8] c"Unknown condition code\00"
@str = [9 x i8] c"STR$_TRU\00"
@str.5 = [12 x i8] c"STR$_NOELEM\00"
@str.6 = [14 x i8] c"STR$_INVDELIM\00"
@str.7 = [11 x i8] c"SS$_NORMAL\00"
define void @anacond(i64 %0) {
switch i64 %0, label %10 [
i64 1, label %2
i64 2392592, label %4
i64 2392600, label %6
i64 2392576, label %8
]
2: ; preds = %1
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.7, i64 0, i64 0))
br label %12
4: ; preds = %1
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.6, i64 0, i64 0))
br label %12
6: ; preds = %1
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.5, i64 0, i64 0))
br label %12
8: ; preds = %1
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
br label %12
10: ; preds = %1
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
br label %12
12: ; preds = %10, %8, %6, %4, %2
ret void
}