#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 *);
int U_PMF_NODETYPE_print(int Type) {
  if (Type == 0x00000001) {
    printf("And");
  } else if (Type == 0x00000002) {
    printf("Or");
  } else if (Type == 0x00000003) {
    printf("Xor");
  } else if (Type == 0x00000004) {
    printf("Exclude");
  } else if (Type == 0x00000005) {
    printf("Complement");
  } else if (Type == 0x10000000) {
    printf("Rect");
  } else if (Type == 0x10000001) {
    printf("Path");
  } else if (Type == 0x10000002) {
    printf("Empty");
  } else if (Type == 0x10000003) {
    printf("Infinite");
  } else {
    printf("Undefined");
    return (0);
  }
  return (1);
}


x86 assembly (clang, -O0):
<U_PMF_NODETYPE_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1136 <U_PMF_NODETYPE_print+0x26>
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
jmp    125a <U_PMF_NODETYPE_print+0x14a>
cmpl   $0x2,-0x8(%rbp)
jne    1151 <U_PMF_NODETYPE_print+0x41>
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
jmp    1255 <U_PMF_NODETYPE_print+0x145>
cmpl   $0x3,-0x8(%rbp)
jne    116c <U_PMF_NODETYPE_print+0x5c>
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
jmp    1250 <U_PMF_NODETYPE_print+0x140>
cmpl   $0x4,-0x8(%rbp)
jne    1187 <U_PMF_NODETYPE_print+0x77>
lea    0xe8e(%rip),%rdi
call   1030 <printf@plt>
jmp    124b <U_PMF_NODETYPE_print+0x13b>
cmpl   $0x5,-0x8(%rbp)
jne    11a2 <U_PMF_NODETYPE_print+0x92>
lea    0xe7b(%rip),%rdi
call   1030 <printf@plt>
jmp    1246 <U_PMF_NODETYPE_print+0x136>
cmpl   $0x10000000,-0x8(%rbp)
jne    11c0 <U_PMF_NODETYPE_print+0xb0>
lea    0xe68(%rip),%rdi
call   1030 <printf@plt>
jmp    1241 <U_PMF_NODETYPE_print+0x131>
cmpl   $0x10000001,-0x8(%rbp)
jne    11de <U_PMF_NODETYPE_print+0xce>
lea    0xe4f(%rip),%rdi
call   1030 <printf@plt>
jmp    123c <U_PMF_NODETYPE_print+0x12c>
cmpl   $0x10000002,-0x8(%rbp)
jne    11fc <U_PMF_NODETYPE_print+0xec>
lea    0xe36(%rip),%rdi
call   1030 <printf@plt>
jmp    1237 <U_PMF_NODETYPE_print+0x127>
cmpl   $0x10000003,-0x8(%rbp)
jne    121a <U_PMF_NODETYPE_print+0x10a>
lea    0xe1e(%rip),%rdi
call   1030 <printf@plt>
jmp    1232 <U_PMF_NODETYPE_print+0x122>
lea    0xe16(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1261 <U_PMF_NODETYPE_print+0x151>
jmp    1237 <U_PMF_NODETYPE_print+0x127>
jmp    123c <U_PMF_NODETYPE_print+0x12c>
jmp    1241 <U_PMF_NODETYPE_print+0x131>
jmp    1246 <U_PMF_NODETYPE_print+0x136>
jmp    124b <U_PMF_NODETYPE_print+0x13b>
jmp    1250 <U_PMF_NODETYPE_print+0x140>
jmp    1255 <U_PMF_NODETYPE_print+0x145>
jmp    125a <U_PMF_NODETYPE_print+0x14a>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<U_PMF_NODETYPE_print>:
push   %rbx
mov    %edi,%ebx
lea    -0x1(%rbx),%eax
cmp    $0x4,%eax
ja     1143 <U_PMF_NODETYPE_print+0x33>
lea    0xf02(%rip),%rdi
lea    0xed7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x1,%ebx
lea    0xeea(%rip),%rdi
jmp    11c9 <U_PMF_NODETYPE_print+0xb9>
add    $0xf0000000,%ebx
cmp    $0x3,%ebx
ja     1196 <U_PMF_NODETYPE_print+0x86>
lea    0xebf(%rip),%rax
movslq (%rax,%rbx,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    $0x1,%ebx
lea    0xed8(%rip),%rdi
jmp    11c9 <U_PMF_NODETYPE_print+0xb9>
mov    $0x1,%ebx
lea    0xeb3(%rip),%rdi
jmp    11c9 <U_PMF_NODETYPE_print+0xb9>
mov    $0x1,%ebx
lea    0xea9(%rip),%rdi
jmp    11c9 <U_PMF_NODETYPE_print+0xb9>
mov    $0x1,%ebx
lea    0xea3(%rip),%rdi
jmp    11c9 <U_PMF_NODETYPE_print+0xb9>
xor    %ebx,%ebx
lea    0xebc(%rip),%rdi
jmp    11c9 <U_PMF_NODETYPE_print+0xb9>
mov    $0x1,%ebx
lea    0xe9a(%rip),%rdi
jmp    11c9 <U_PMF_NODETYPE_print+0xb9>
mov    $0x1,%ebx
lea    0xe91(%rip),%rdi
jmp    11c9 <U_PMF_NODETYPE_print+0xb9>
mov    $0x1,%ebx
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"And\00"
@.str.1 = [3 x i8] c"Or\00"
@.str.2 = [4 x i8] c"Xor\00"
@.str.3 = [8 x i8] c"Exclude\00"
@.str.4 = [11 x i8] c"Complement\00"
@.str.5 = [5 x i8] c"Rect\00"
@.str.6 = [5 x i8] c"Path\00"
@.str.7 = [6 x i8] c"Empty\00"
@.str.8 = [9 x i8] c"Infinite\00"
@.str.9 = [10 x i8] c"Undefined\00"
define i32 @U_PMF_NODETYPE_print(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %58
8: ; preds = %1
%9 = load i32, i32* %3
%10 = icmp eq i32 %9, 2
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %57
13: ; preds = %8
%14 = load i32, i32* %3
%15 = icmp eq i32 %14, 3
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
br label %56
18: ; preds = %13
%19 = load i32, i32* %3
%20 = icmp eq i32 %19, 4
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %55
23: ; preds = %18
%24 = load i32, i32* %3
%25 = icmp eq i32 %24, 5
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
br label %54
28: ; preds = %23
%29 = load i32, i32* %3
%30 = icmp eq i32 %29, 268435456
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %53
33: ; preds = %28
%34 = load i32, i32* %3
%35 = icmp eq i32 %34, 268435457
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %52
38: ; preds = %33
%39 = load i32, i32* %3
%40 = icmp eq i32 %39, 268435458
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %51
43: ; preds = %38
%44 = load i32, i32* %3
%45 = icmp eq i32 %44, 268435459
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
br label %50
48: ; preds = %43
%49 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %2
br label %59
50: ; preds = %46
br label %51
51: ; preds = %50, %41
br label %52
52: ; preds = %51, %36
br label %53
53: ; preds = %52, %31
br label %54
54: ; preds = %53, %26
br label %55
55: ; preds = %54, %21
br label %56
56: ; preds = %55, %16
br label %57
57: ; preds = %56, %11
br label %58
58: ; preds = %57, %6
store i32 1, i32* %2
br label %59
59: ; preds = %58, %48
%60 = load i32, i32* %2
ret i32 %60
}

LLVM IR (-O2):
@.str = [4 x i8] c"And\00"
@.str.1 = [3 x i8] c"Or\00"
@.str.2 = [4 x i8] c"Xor\00"
@.str.3 = [8 x i8] c"Exclude\00"
@.str.4 = [11 x i8] c"Complement\00"
@.str.5 = [5 x i8] c"Rect\00"
@.str.6 = [5 x i8] c"Path\00"
@.str.7 = [6 x i8] c"Empty\00"
@.str.8 = [9 x i8] c"Infinite\00"
@.str.9 = [10 x i8] c"Undefined\00"
define i32 @U_PMF_NODETYPE_print(i32 %0) {
switch i32 %0, label %10 [
i32 1, label %11
i32 2, label %2
i32 3, label %3
i32 4, label %4
i32 5, label %5
i32 268435456, label %6
i32 268435457, label %7
i32 268435458, label %8
i32 268435459, label %9
]
2: ; preds = %1
br label %11
3: ; preds = %1
br label %11
4: ; preds = %1
br label %11
5: ; preds = %1
br label %11
6: ; preds = %1
br label %11
7: ; preds = %1
br label %11
8: ; preds = %1
br label %11
9: ; preds = %1
br label %11
10: ; preds = %1
br label %11
11: ; preds = %1, %3, %5, %7, %9, %8, %6, %4, %2, %10
%12 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), %10 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), %1 ]
%13 = phi i32 [ 1, %3 ], [ 1, %5 ], [ 1, %7 ], [ 1, %9 ], [ 1, %8 ], [ 1, %6 ], [ 1, %4 ], [ 1, %2 ], [ 0, %10 ], [ %0, %1 ]
%14 = tail call i32 @printf(i8* dereferenceable(1) %12)
ret i32 %13
}