int get_edge_index(int bound_index, int vert_index) {
  int edge_index;
  switch (bound_index) {
  case 0:
    switch (vert_index) {
    case 200:
      edge_index = 0;
      break;
    case 201:
      edge_index = 1;
      break;
    case 202:
      edge_index = 2;
      break;
    case 203:
      edge_index = 3;
      break;
    }
    break;
  case 1:
    switch (vert_index) {
    case 201:
      edge_index = 9;
      break;
    case 205:
      edge_index = 5;
      break;
    case 206:
      edge_index = 11;
      break;
    case 202:
      edge_index = 1;
      break;
    }
    break;
  case 2:
    switch (vert_index) {
    case 205:
      edge_index = 4;
      break;
    case 204:
      edge_index = 7;
      break;
    case 207:
      edge_index = 6;
      break;
    case 206:
      edge_index = 5;
      break;
    }
    break;
  case 3:
    switch (vert_index) {
    case 204:
      edge_index = 8;
      break;
    case 200:
      edge_index = 3;
      break;
    case 203:
      edge_index = 10;
      break;
    case 207:
      edge_index = 7;
      break;
    }
    break;
  case 4:
    switch (vert_index) {
    case 203:
      edge_index = 2;
      break;
    case 202:
      edge_index = 11;
      break;
    case 206:
      edge_index = 6;
      break;
    case 207:
      edge_index = 10;
      break;
    }
    break;
  case 5:
    switch (vert_index) {
    case 204:
      edge_index = 4;
      break;
    case 205:
      edge_index = 9;
      break;
    case 201:
      edge_index = 0;
      break;
    case 200:
      edge_index = 8;
      break;
    }
    break;
  }
  return edge_index;
}


x86 assembly (clang, -O0):
<get_edge_index>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %rax,-0x18(%rbp)
sub    $0x5,%rax
ja     1351 <get_edge_index+0x251>
mov    -0x18(%rbp),%rax
lea    0xeda(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%eax
add    $0xffffff38,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x3,%eax
ja     1185 <get_edge_index+0x85>
mov    -0x20(%rbp),%rax
lea    0xf3f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x0,-0xc(%rbp)
jmp    1185 <get_edge_index+0x85>
movl   $0x1,-0xc(%rbp)
jmp    1185 <get_edge_index+0x85>
movl   $0x2,-0xc(%rbp)
jmp    1185 <get_edge_index+0x85>
movl   $0x3,-0xc(%rbp)
jmp    1351 <get_edge_index+0x251>
mov    -0x8(%rbp),%eax
add    $0xffffff37,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x5,%eax
ja     11e0 <get_edge_index+0xe0>
mov    -0x28(%rbp),%rax
lea    0xecc(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x9,-0xc(%rbp)
jmp    11e0 <get_edge_index+0xe0>
movl   $0x5,-0xc(%rbp)
jmp    11e0 <get_edge_index+0xe0>
movl   $0xb,-0xc(%rbp)
jmp    11e0 <get_edge_index+0xe0>
movl   $0x1,-0xc(%rbp)
jmp    1351 <get_edge_index+0x251>
mov    -0x8(%rbp),%eax
add    $0xffffff34,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x3,%eax
ja     123b <get_edge_index+0x13b>
mov    -0x30(%rbp),%rax
lea    0xe61(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x4,-0xc(%rbp)
jmp    123b <get_edge_index+0x13b>
movl   $0x7,-0xc(%rbp)
jmp    123b <get_edge_index+0x13b>
movl   $0x6,-0xc(%rbp)
jmp    123b <get_edge_index+0x13b>
movl   $0x5,-0xc(%rbp)
jmp    1351 <get_edge_index+0x251>
mov    -0x8(%rbp),%eax
add    $0xffffff38,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x7,%eax
ja     1296 <get_edge_index+0x196>
mov    -0x38(%rbp),%rax
lea    0xde6(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x8,-0xc(%rbp)
jmp    1296 <get_edge_index+0x196>
movl   $0x3,-0xc(%rbp)
jmp    1296 <get_edge_index+0x196>
movl   $0xa,-0xc(%rbp)
jmp    1296 <get_edge_index+0x196>
movl   $0x7,-0xc(%rbp)
jmp    1351 <get_edge_index+0x251>
mov    -0x8(%rbp),%eax
add    $0xffffff36,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x5,%eax
ja     12f1 <get_edge_index+0x1f1>
mov    -0x40(%rbp),%rax
lea    0xd73(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x2,-0xc(%rbp)
jmp    12f1 <get_edge_index+0x1f1>
movl   $0xb,-0xc(%rbp)
jmp    12f1 <get_edge_index+0x1f1>
movl   $0x6,-0xc(%rbp)
jmp    12f1 <get_edge_index+0x1f1>
movl   $0xa,-0xc(%rbp)
jmp    1351 <get_edge_index+0x251>
mov    -0x8(%rbp),%eax
add    $0xffffff38,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x5,%eax
ja     134c <get_edge_index+0x24c>
mov    -0x48(%rbp),%rax
lea    0xd00(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x4,-0xc(%rbp)
jmp    134c <get_edge_index+0x24c>
movl   $0x9,-0xc(%rbp)
jmp    134c <get_edge_index+0x24c>
movl   $0x0,-0xc(%rbp)
jmp    134c <get_edge_index+0x24c>
movl   $0x8,-0xc(%rbp)
jmp    1351 <get_edge_index+0x251>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_edge_index>:
cmp    $0x5,%edi
ja     11ab <get_edge_index+0xab>
mov    %edi,%eax
lea    0xeee(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    -0xc9(%rsi),%ecx
add    $0xffffff38,%esi
xor    %eax,%eax
cmp    $0x3,%ecx
cmovb  %esi,%eax
ret
add    $0xffffff36,%esi
mov    $0x9,%eax
cmp    $0x5,%esi
jae    11c9 <get_edge_index+0xc9>
movslq %esi,%rax
lea    0xeca(%rip),%rcx
jmp    11c6 <get_edge_index+0xc6>
add    $0xffffff34,%esi
mov    $0x4,%eax
cmp    $0x4,%esi
jae    11c9 <get_edge_index+0xc9>
movslq %esi,%rax
lea    0xef2(%rip),%rcx
jmp    11c6 <get_edge_index+0xc6>
cmp    $0xcf,%esi
je     11ca <get_edge_index+0xca>
cmp    $0xcb,%esi
je     11d0 <get_edge_index+0xd0>
mov    $0x8,%eax
cmp    $0xc8,%esi
jne    11c9 <get_edge_index+0xc9>
mov    $0x3,%eax
ret
add    $0xffffff36,%esi
mov    $0x2,%eax
cmp    $0x6,%esi
jae    11c9 <get_edge_index+0xc9>
movslq %esi,%rax
lea    0xe83(%rip),%rcx
jmp    11c6 <get_edge_index+0xc6>
ret
add    $0xffffff38,%esi
mov    $0x4,%eax
cmp    $0x6,%esi
jae    11c9 <get_edge_index+0xc9>
movslq %esi,%rax
lea    0xe7e(%rip),%rcx
mov    (%rcx,%rax,4),%eax
ret
mov    $0x7,%eax
ret
mov    $0xa,%eax
ret

LLVM IR (-O0):
define i32 @get_edge_index(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
switch i32 %6, label %49 [
i32 0, label %7
i32 1, label %14
i32 2, label %21
i32 3, label %28
i32 4, label %35
i32 5, label %42
]
7: ; preds = %2
%8 = load i32, i32* %4
switch i32 %8, label %13 [
i32 200, label %9
i32 201, label %10
i32 202, label %11
i32 203, label %12
]
9: ; preds = %7
store i32 0, i32* %5
br label %13
10: ; preds = %7
store i32 1, i32* %5
br label %13
11: ; preds = %7
store i32 2, i32* %5
br label %13
12: ; preds = %7
store i32 3, i32* %5
br label %13
13: ; preds = %7, %12, %11, %10, %9
br label %49
14: ; preds = %2
%15 = load i32, i32* %4
switch i32 %15, label %20 [
i32 201, label %16
i32 205, label %17
i32 206, label %18
i32 202, label %19
]
16: ; preds = %14
store i32 9, i32* %5
br label %20
17: ; preds = %14
store i32 5, i32* %5
br label %20
18: ; preds = %14
store i32 11, i32* %5
br label %20
19: ; preds = %14
store i32 1, i32* %5
br label %20
20: ; preds = %14, %19, %18, %17, %16
br label %49
21: ; preds = %2
%22 = load i32, i32* %4
switch i32 %22, label %27 [
i32 205, label %23
i32 204, label %24
i32 207, label %25
i32 206, label %26
]
23: ; preds = %21
store i32 4, i32* %5
br label %27
24: ; preds = %21
store i32 7, i32* %5
br label %27
25: ; preds = %21
store i32 6, i32* %5
br label %27
26: ; preds = %21
store i32 5, i32* %5
br label %27
27: ; preds = %21, %26, %25, %24, %23
br label %49
28: ; preds = %2
%29 = load i32, i32* %4
switch i32 %29, label %34 [
i32 204, label %30
i32 200, label %31
i32 203, label %32
i32 207, label %33
]
30: ; preds = %28
store i32 8, i32* %5
br label %34
31: ; preds = %28
store i32 3, i32* %5
br label %34
32: ; preds = %28
store i32 10, i32* %5
br label %34
33: ; preds = %28
store i32 7, i32* %5
br label %34
34: ; preds = %28, %33, %32, %31, %30
br label %49
35: ; preds = %2
%36 = load i32, i32* %4
switch i32 %36, label %41 [
i32 203, label %37
i32 202, label %38
i32 206, label %39
i32 207, label %40
]
37: ; preds = %35
store i32 2, i32* %5
br label %41
38: ; preds = %35
store i32 11, i32* %5
br label %41
39: ; preds = %35
store i32 6, i32* %5
br label %41
40: ; preds = %35
store i32 10, i32* %5
br label %41
41: ; preds = %35, %40, %39, %38, %37
br label %49
42: ; preds = %2
%43 = load i32, i32* %4
switch i32 %43, label %48 [
i32 204, label %44
i32 205, label %45
i32 201, label %46
i32 200, label %47
]
44: ; preds = %42
store i32 4, i32* %5
br label %48
45: ; preds = %42
store i32 9, i32* %5
br label %48
46: ; preds = %42
store i32 0, i32* %5
br label %48
47: ; preds = %42
store i32 8, i32* %5
br label %48
48: ; preds = %42, %47, %46, %45, %44
br label %49
49: ; preds = %2, %48, %41, %34, %27, %20, %13
%50 = load i32, i32* %5
ret i32 %50
}

LLVM IR (-O2):
@switch.table.get_edge_index = [5 x i32] [i32 1, i32 9, i32 9, i32 5, i32 11]
@switch.table.get_edge_index.1 = [4 x i32] [i32 7, i32 4, i32 5, i32 6]
@switch.table.get_edge_index.2 = [6 x i32] [i32 11, i32 2, i32 2, i32 2, i32 6, i32 10]
@switch.table.get_edge_index.3 = [6 x i32] [i32 8, i32 0, i32 4, i32 4, i32 4, i32 9]
define i32 @get_edge_index(i32 %0, i32 %1) {
switch i32 %0, label %40 [
i32 0, label %3
i32 1, label %8
i32 2, label %11
i32 3, label %14
i32 4, label %18
i32 5, label %21
]
3: ; preds = %2
%4 = add i32 %1, -201
%5 = icmp ult i32 %4, 3
%6 = add i32 %1, -200
%7 = select i1 %5, i32 %6, i32 0
br label %40
8: ; preds = %2
%9 = add i32 %1, -202
%10 = icmp ult i32 %9, 5
br i1 %10, label %24, label %40
11: ; preds = %2
%12 = add i32 %1, -204
%13 = icmp ult i32 %12, 4
br i1 %13, label %28, label %40
14: ; preds = %2
switch i32 %1, label %40 [
i32 207, label %17
i32 200, label %15
i32 203, label %16
]
15: ; preds = %14
br label %40
16: ; preds = %14
br label %40
17: ; preds = %14
br label %40
18: ; preds = %2
%19 = add i32 %1, -202
%20 = icmp ult i32 %19, 6
br i1 %20, label %32, label %40
21: ; preds = %2
%22 = add i32 %1, -200
%23 = icmp ult i32 %22, 6
br i1 %23, label %36, label %40
24: ; preds = %8
%25 = sext i32 %9 to i64
%26 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.get_edge_index, i64 0, i64 %25
%27 = load i32, i32* %26
br label %40
28: ; preds = %11
%29 = sext i32 %12 to i64
%30 = getelementptr inbounds [4 x i32], [4 x i32]* @switch.table.get_edge_index.1, i64 0, i64 %29
%31 = load i32, i32* %30
br label %40
32: ; preds = %18
%33 = sext i32 %19 to i64
%34 = getelementptr inbounds [6 x i32], [6 x i32]* @switch.table.get_edge_index.2, i64 0, i64 %33
%35 = load i32, i32* %34
br label %40
36: ; preds = %21
%37 = sext i32 %22 to i64
%38 = getelementptr inbounds [6 x i32], [6 x i32]* @switch.table.get_edge_index.3, i64 0, i64 %37
%39 = load i32, i32* %38
br label %40
40: ; preds = %3, %36, %21, %32, %18, %28, %11, %24, %8, %15, %16, %17, %14, %2
%41 = phi i32 [ undef, %2 ], [ 7, %17 ], [ 10, %16 ], [ 3, %15 ], [ 9, %8 ], [ 4, %11 ], [ 8, %14 ], [ 2, %18 ], [ 4, %21 ], [ %27, %24 ], [ %31, %28 ], [ %35, %32 ], [ %39, %36 ], [ %7, %3 ]
ret i32 %41
}