#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_PATHPOINTTYPE_ENUM_print(int Type) {
  switch (Type & 0x0F) {
  case 0x00:
    printf("Start");
    break;
  case 0x01:
    printf("Line");
    break;
  case 0x03:
    printf("Bezier");
    break;
  default:
    printf("INVALID(%d)", Type);
    break;
  }
  return (1);
}


x86 assembly (clang, -O0):
<U_PMF_PATHPOINTTYPE_ENUM_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xf,%eax
mov    %eax,-0x8(%rbp)
je     1151 <U_PMF_PATHPOINTTYPE_ENUM_print+0x41>
jmp    112f <U_PMF_PATHPOINTTYPE_ENUM_print+0x1f>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
je     1164 <U_PMF_PATHPOINTTYPE_ENUM_print+0x54>
jmp    1140 <U_PMF_PATHPOINTTYPE_ENUM_print+0x30>
mov    -0x8(%rbp),%eax
sub    $0x3,%eax
je     1177 <U_PMF_PATHPOINTTYPE_ENUM_print+0x67>
jmp    118a <U_PMF_PATHPOINTTYPE_ENUM_print+0x7a>
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    119b <U_PMF_PATHPOINTTYPE_ENUM_print+0x8b>
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    119b <U_PMF_PATHPOINTTYPE_ENUM_print+0x8b>
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    119b <U_PMF_PATHPOINTTYPE_ENUM_print+0x8b>
mov    -0x4(%rbp),%esi
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<U_PMF_PATHPOINTTYPE_ENUM_print>:
push   %rax
mov    %edi,%eax
and    $0xf,%eax
cmp    $0x3,%eax
je     112d <U_PMF_PATHPOINTTYPE_ENUM_print+0x1d>
cmp    $0x1,%eax
je     1136 <U_PMF_PATHPOINTTYPE_ENUM_print+0x26>
test   %eax,%eax
jne    1146 <U_PMF_PATHPOINTTYPE_ENUM_print+0x36>
lea    0xed5(%rip),%rdi
jmp    113d <U_PMF_PATHPOINTTYPE_ENUM_print+0x2d>
lea    0xed7(%rip),%rdi
jmp    113d <U_PMF_PATHPOINTTYPE_ENUM_print+0x2d>
lea    0xec9(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1156 <U_PMF_PATHPOINTTYPE_ENUM_print+0x46>
mov    %edi,%esi
lea    0xec3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Start\00"
@.str.1 = [5 x i8] c"Line\00"
@.str.2 = [7 x i8] c"Bezier\00"
@.str.3 = [12 x i8] c"INVALID(%d)\00"
define i32 @U_PMF_PATHPOINTTYPE_ENUM_print(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 15
switch i32 %4, label %11 [
i32 0, label %5
i32 1, label %7
i32 3, label %9
]
5: ; preds = %1
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %14
7: ; preds = %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %14
9: ; preds = %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %14
11: ; preds = %1
%12 = load i32, i32* %2
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %12)
br label %14
14: ; preds = %11, %9, %7, %5
ret i32 1
}

LLVM IR (-O2):
@.str = [6 x i8] c"Start\00"
@.str.1 = [5 x i8] c"Line\00"
@.str.2 = [7 x i8] c"Bezier\00"
@.str.3 = [12 x i8] c"INVALID(%d)\00"
define i32 @U_PMF_PATHPOINTTYPE_ENUM_print(i32 %0) {
%2 = and i32 %0, 15
switch i32 %2, label %9 [
i32 0, label %3
i32 1, label %5
i32 3, label %7
]
3: ; preds = %1
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %11
5: ; preds = %1
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %11
7: ; preds = %1
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %11
9: ; preds = %1
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %0)
br label %11
11: ; preds = %9, %7, %5, %3
ret i32 1
}