#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*/ case_ignore_strcmp(char *, char *);
int /*<<< orphan*/ fatal(char *);
long Parse_Change_Type(char *type) {
  long retval = 0x11100541;
  if (!case_ignore_strcmp(type, "limited")) {
    retval = 0x11070430;
  } else if (!case_ignore_strcmp(type, "toll")) {
    retval = 0x11070470;
  } else if (!case_ignore_strcmp(type, "us")) {
    retval = 0x11070870;
  } else if (!case_ignore_strcmp(type, "state")) {
    retval = 0x11070c10;
  } else if (!case_ignore_strcmp(type, "primary")) {
    retval = 0x11070840;
  } else if (!case_ignore_strcmp(type, "major")) {
    retval = 0x11070c30;
  } else if (!case_ignore_strcmp(type, "local")) {
    retval = 0x11071010;
  } else if (!case_ignore_strcmp(type, "ramp")) {
    retval = 0x11070cb0;
  } else if (!case_ignore_strcmp(type, "ferry")) {
    retval = 0x11070ca0;
  } else if (!case_ignore_strcmp(type, "editable")) {
    retval = 0x11100541;
  } else {
    fatal("an1"
          ": unknown road type for road changes\n");
  }
  return retval;
}


x86 assembly (clang, -O0):
<Parse_Change_Type>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x11100541,-0x10(%rbp)
11
mov    -0x8(%rbp),%rdi
lea    0xec1(%rip),%rsi
call   1030 <case_ignore_strcmp@plt>
cmp    $0x0,%eax
jne    115a <Parse_Change_Type+0x3a>
movq   $0x11070430,-0x10(%rbp)
11
jmp    12e9 <Parse_Change_Type+0x1c9>
mov    -0x8(%rbp),%rdi
lea    0xea3(%rip),%rsi
call   1030 <case_ignore_strcmp@plt>
cmp    $0x0,%eax
jne    1180 <Parse_Change_Type+0x60>
movq   $0x11070470,-0x10(%rbp)
11
jmp    12e4 <Parse_Change_Type+0x1c4>
mov    -0x8(%rbp),%rdi
lea    0xe82(%rip),%rsi
call   1030 <case_ignore_strcmp@plt>
cmp    $0x0,%eax
jne    11a6 <Parse_Change_Type+0x86>
movq   $0x11070870,-0x10(%rbp)
11
jmp    12df <Parse_Change_Type+0x1bf>
mov    -0x8(%rbp),%rdi
lea    0xe5f(%rip),%rsi
call   1030 <case_ignore_strcmp@plt>
cmp    $0x0,%eax
jne    11cc <Parse_Change_Type+0xac>
movq   $0x11070c10,-0x10(%rbp)
11
jmp    12da <Parse_Change_Type+0x1ba>
mov    -0x8(%rbp),%rdi
lea    0xe3f(%rip),%rsi
call   1030 <case_ignore_strcmp@plt>
cmp    $0x0,%eax
jne    11f2 <Parse_Change_Type+0xd2>
movq   $0x11070840,-0x10(%rbp)
11
jmp    12d5 <Parse_Change_Type+0x1b5>
mov    -0x8(%rbp),%rdi
lea    0xe21(%rip),%rsi
call   1030 <case_ignore_strcmp@plt>
cmp    $0x0,%eax
jne    1218 <Parse_Change_Type+0xf8>
movq   $0x11070c30,-0x10(%rbp)
11
jmp    12d0 <Parse_Change_Type+0x1b0>
mov    -0x8(%rbp),%rdi
lea    0xe01(%rip),%rsi
call   1030 <case_ignore_strcmp@plt>
cmp    $0x0,%eax
jne    123e <Parse_Change_Type+0x11e>
movq   $0x11071010,-0x10(%rbp)
11
jmp    12cb <Parse_Change_Type+0x1ab>
mov    -0x8(%rbp),%rdi
lea    0xde1(%rip),%rsi
call   1030 <case_ignore_strcmp@plt>
cmp    $0x0,%eax
jne    1264 <Parse_Change_Type+0x144>
movq   $0x11070cb0,-0x10(%rbp)
11
jmp    12c6 <Parse_Change_Type+0x1a6>
mov    -0x8(%rbp),%rdi
lea    0xdc0(%rip),%rsi
call   1030 <case_ignore_strcmp@plt>
cmp    $0x0,%eax
jne    128a <Parse_Change_Type+0x16a>
movq   $0x11070ca0,-0x10(%rbp)
11
jmp    12c1 <Parse_Change_Type+0x1a1>
mov    -0x8(%rbp),%rdi
lea    0xda0(%rip),%rsi
call   1030 <case_ignore_strcmp@plt>
cmp    $0x0,%eax
jne    12b0 <Parse_Change_Type+0x190>
movq   $0x11100541,-0x10(%rbp)
11
jmp    12bc <Parse_Change_Type+0x19c>
lea    0xd87(%rip),%rdi
call   1040 <fatal@plt>
jmp    12c1 <Parse_Change_Type+0x1a1>
jmp    12c6 <Parse_Change_Type+0x1a6>
jmp    12cb <Parse_Change_Type+0x1ab>
jmp    12d0 <Parse_Change_Type+0x1b0>
jmp    12d5 <Parse_Change_Type+0x1b5>
jmp    12da <Parse_Change_Type+0x1ba>
jmp    12df <Parse_Change_Type+0x1bf>
jmp    12e4 <Parse_Change_Type+0x1c4>
jmp    12e9 <Parse_Change_Type+0x1c9>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Parse_Change_Type>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rsi
call   1030 <case_ignore_strcmp@plt>
test   %eax,%eax
je     120a <Parse_Change_Type+0xea>
lea    0xec9(%rip),%rsi
mov    %rbx,%rdi
call   1030 <case_ignore_strcmp@plt>
test   %eax,%eax
je     1211 <Parse_Change_Type+0xf1>
lea    0xeb7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <case_ignore_strcmp@plt>
test   %eax,%eax
je     1218 <Parse_Change_Type+0xf8>
lea    0xea3(%rip),%rsi
mov    %rbx,%rdi
call   1030 <case_ignore_strcmp@plt>
test   %eax,%eax
je     121f <Parse_Change_Type+0xff>
lea    0xe92(%rip),%rsi
mov    %rbx,%rdi
call   1030 <case_ignore_strcmp@plt>
test   %eax,%eax
je     1226 <Parse_Change_Type+0x106>
lea    0xe83(%rip),%rsi
mov    %rbx,%rdi
call   1030 <case_ignore_strcmp@plt>
test   %eax,%eax
je     122d <Parse_Change_Type+0x10d>
lea    0xe72(%rip),%rsi
mov    %rbx,%rdi
call   1030 <case_ignore_strcmp@plt>
test   %eax,%eax
je     1234 <Parse_Change_Type+0x114>
lea    0xe65(%rip),%rsi
mov    %rbx,%rdi
call   1030 <case_ignore_strcmp@plt>
test   %eax,%eax
je     123b <Parse_Change_Type+0x11b>
lea    0xe57(%rip),%rsi
mov    %rbx,%rdi
call   1030 <case_ignore_strcmp@plt>
test   %eax,%eax
je     1242 <Parse_Change_Type+0x122>
lea    0xe4a(%rip),%rsi
mov    %rbx,%rdi
call   1030 <case_ignore_strcmp@plt>
mov    $0x11100541,%ebx
test   %eax,%eax
je     1247 <Parse_Change_Type+0x127>
lea    0xe3b(%rip),%rdi
call   1040 <fatal@plt>
jmp    1247 <Parse_Change_Type+0x127>
mov    $0x11070430,%ebx
jmp    1247 <Parse_Change_Type+0x127>
mov    $0x11070470,%ebx
jmp    1247 <Parse_Change_Type+0x127>
mov    $0x11070870,%ebx
jmp    1247 <Parse_Change_Type+0x127>
mov    $0x11070c10,%ebx
jmp    1247 <Parse_Change_Type+0x127>
mov    $0x11070840,%ebx
jmp    1247 <Parse_Change_Type+0x127>
mov    $0x11070c30,%ebx
jmp    1247 <Parse_Change_Type+0x127>
mov    $0x11071010,%ebx
jmp    1247 <Parse_Change_Type+0x127>
mov    $0x11070cb0,%ebx
jmp    1247 <Parse_Change_Type+0x127>
mov    $0x11070ca0,%ebx
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"limited\00"
@.str.1 = [5 x i8] c"toll\00"
@.str.2 = [3 x i8] c"us\00"
@.str.3 = [6 x i8] c"state\00"
@.str.4 = [8 x i8] c"primary\00"
@.str.5 = [6 x i8] c"major\00"
@.str.6 = [6 x i8] c"local\00"
@.str.7 = [5 x i8] c"ramp\00"
@.str.8 = [6 x i8] c"ferry\00"
@.str.9 = [9 x i8] c"editable\00"
@.str.10 = [41 x i8] c"an1: unknown road type for road changes\0A\00"
define i64 @Parse_Change_Type(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
store i8* %0, i8** %2
store i64 286262593, i64* %3
%4 = load i8*, i8** %2
%5 = call i32 @case_ignore_strcmp(i8* %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1
store i64 285672496, i64* %3
br label %64
8: ; preds = %1
%9 = load i8*, i8** %2
%10 = call i32 @case_ignore_strcmp(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %8
store i64 285672560, i64* %3
br label %63
13: ; preds = %8
%14 = load i8*, i8** %2
%15 = call i32 @case_ignore_strcmp(i8* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %13
store i64 285673584, i64* %3
br label %62
18: ; preds = %13
%19 = load i8*, i8** %2
%20 = call i32 @case_ignore_strcmp(i8* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %18
store i64 285674512, i64* %3
br label %61
23: ; preds = %18
%24 = load i8*, i8** %2
%25 = call i32 @case_ignore_strcmp(i8* %24, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%26 = icmp ne i32 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %23
store i64 285673536, i64* %3
br label %60
28: ; preds = %23
%29 = load i8*, i8** %2
%30 = call i32 @case_ignore_strcmp(i8* %29, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%31 = icmp ne i32 %30, 0
br i1 %31, label %33, label %32
32: ; preds = %28
store i64 285674544, i64* %3
br label %59
33: ; preds = %28
%34 = load i8*, i8** %2
%35 = call i32 @case_ignore_strcmp(i8* %34, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%36 = icmp ne i32 %35, 0
br i1 %36, label %38, label %37
37: ; preds = %33
store i64 285675536, i64* %3
br label %58
38: ; preds = %33
%39 = load i8*, i8** %2
%40 = call i32 @case_ignore_strcmp(i8* %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%41 = icmp ne i32 %40, 0
br i1 %41, label %43, label %42
42: ; preds = %38
store i64 285674672, i64* %3
br label %57
43: ; preds = %38
%44 = load i8*, i8** %2
%45 = call i32 @case_ignore_strcmp(i8* %44, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%46 = icmp ne i32 %45, 0
br i1 %46, label %48, label %47
47: ; preds = %43
store i64 285674656, i64* %3
br label %56
48: ; preds = %43
%49 = load i8*, i8** %2
%50 = call i32 @case_ignore_strcmp(i8* %49, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%51 = icmp ne i32 %50, 0
br i1 %51, label %53, label %52
52: ; preds = %48
store i64 286262593, i64* %3
br label %55
53: ; preds = %48
%54 = call i32 @fatal(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
br label %55
55: ; preds = %53, %52
br label %56
56: ; preds = %55, %47
br label %57
57: ; preds = %56, %42
br label %58
58: ; preds = %57, %37
br label %59
59: ; preds = %58, %32
br label %60
60: ; preds = %59, %27
br label %61
61: ; preds = %60, %22
br label %62
62: ; preds = %61, %17
br label %63
63: ; preds = %62, %12
br label %64
64: ; preds = %63, %7
%65 = load i64, i64* %3
ret i64 %65
}

LLVM IR (-O2):
@.str = [8 x i8] c"limited\00"
@.str.1 = [5 x i8] c"toll\00"
@.str.2 = [3 x i8] c"us\00"
@.str.3 = [6 x i8] c"state\00"
@.str.4 = [8 x i8] c"primary\00"
@.str.5 = [6 x i8] c"major\00"
@.str.6 = [6 x i8] c"local\00"
@.str.7 = [5 x i8] c"ramp\00"
@.str.8 = [6 x i8] c"ferry\00"
@.str.9 = [9 x i8] c"editable\00"
@.str.10 = [41 x i8] c"an1: unknown road type for road changes\0A\00"
define i64 @Parse_Change_Type(i8* %0) {
%2 = tail call i32 @case_ignore_strcmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
br i1 %3, label %33, label %4
4: ; preds = %1
%5 = tail call i32 @case_ignore_strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i32 %5, 0
br i1 %6, label %33, label %7
7: ; preds = %4
%8 = tail call i32 @case_ignore_strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%9 = icmp eq i32 %8, 0
br i1 %9, label %33, label %10
10: ; preds = %7
%11 = tail call i32 @case_ignore_strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%12 = icmp eq i32 %11, 0
br i1 %12, label %33, label %13
13: ; preds = %10
%14 = tail call i32 @case_ignore_strcmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
br i1 %15, label %33, label %16
16: ; preds = %13
%17 = tail call i32 @case_ignore_strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%18 = icmp eq i32 %17, 0
br i1 %18, label %33, label %19
19: ; preds = %16
%20 = tail call i32 @case_ignore_strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%21 = icmp eq i32 %20, 0
br i1 %21, label %33, label %22
22: ; preds = %19
%23 = tail call i32 @case_ignore_strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%24 = icmp eq i32 %23, 0
br i1 %24, label %33, label %25
25: ; preds = %22
%26 = tail call i32 @case_ignore_strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%27 = icmp eq i32 %26, 0
br i1 %27, label %33, label %28
28: ; preds = %25
%29 = tail call i32 @case_ignore_strcmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
br i1 %30, label %33, label %31
31: ; preds = %28
%32 = tail call i32 @fatal(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
br label %33
33: ; preds = %28, %25, %22, %19, %16, %13, %10, %7, %4, %1, %31
%34 = phi i64 [ 286262593, %31 ], [ 285672496, %1 ], [ 285672560, %4 ], [ 285673584, %7 ], [ 285674512, %10 ], [ 285673536, %13 ], [ 285674544, %16 ], [ 285675536, %19 ], [ 285674672, %22 ], [ 285674656, %25 ], [ 286262593, %28 ]
ret i64 %34
}