#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 */
scalar_t__ strncmp(char const *, char *, int);
int proto_redistnum(int afi, const char *s) {
  if (!s)
    return -1;
  if (afi == 1) {
    if (strncmp(s, "k", 1) == 0)
      return 1;
    else if (strncmp(s, "c", 1) == 0)
      return 2;
    else if (strncmp(s, "s", 1) == 0)
      return 3;
    else if (strncmp(s, "r", 1) == 0)
      return 4;
    else if (strncmp(s, "o", 1) == 0)
      return 6;
    else if (strncmp(s, "i", 1) == 0)
      return 8;
    else if (strncmp(s, "bg", 2) == 0)
      return 9;
    else if (strncmp(s, "ba", 2) == 0)
      return 12;
  }
  if (afi == 2) {
    if (strncmp(s, "k", 1) == 0)
      return 1;
    else if (strncmp(s, "c", 1) == 0)
      return 2;
    else if (strncmp(s, "s", 1) == 0)
      return 3;
    else if (strncmp(s, "r", 1) == 0)
      return 5;
    else if (strncmp(s, "o", 1) == 0)
      return 7;
    else if (strncmp(s, "i", 1) == 0)
      return 8;
    else if (strncmp(s, "bg", 2) == 0)
      return 9;
    else if (strncmp(s, "ba", 2) == 0)
      return 12;
  }
  return -1;
}


x86 assembly (clang, -O0):
<proto_redistnum>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1136 <proto_redistnum+0x26>
movl   $0xffffffff,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
cmpl   $0x1,-0x8(%rbp)
jne    12c0 <proto_redistnum+0x1b0>
mov    -0x10(%rbp),%rdi
lea    0xeb5(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    116b <proto_redistnum+0x5b>
movl   $0x1,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xe8c(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1196 <proto_redistnum+0x86>
movl   $0x2,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xe63(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    11c1 <proto_redistnum+0xb1>
movl   $0x3,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xe3a(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    11ec <proto_redistnum+0xdc>
movl   $0x4,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xe11(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1217 <proto_redistnum+0x107>
movl   $0x6,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xde8(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1242 <proto_redistnum+0x132>
movl   $0x8,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xdbf(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    126d <proto_redistnum+0x15d>
movl   $0x9,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xd97(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1298 <proto_redistnum+0x188>
movl   $0xc,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
jmp    129d <proto_redistnum+0x18d>
jmp    12a2 <proto_redistnum+0x192>
jmp    12a7 <proto_redistnum+0x197>
jmp    12ac <proto_redistnum+0x19c>
jmp    12b1 <proto_redistnum+0x1a1>
jmp    12b6 <proto_redistnum+0x1a6>
jmp    12bb <proto_redistnum+0x1ab>
jmp    12c0 <proto_redistnum+0x1b0>
cmpl   $0x2,-0x8(%rbp)
jne    144a <proto_redistnum+0x33a>
mov    -0x10(%rbp),%rdi
lea    0xd2b(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    12f5 <proto_redistnum+0x1e5>
movl   $0x1,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xd02(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1320 <proto_redistnum+0x210>
movl   $0x2,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xcd9(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    134b <proto_redistnum+0x23b>
movl   $0x3,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xcb0(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1376 <proto_redistnum+0x266>
movl   $0x5,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xc87(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13a1 <proto_redistnum+0x291>
movl   $0x7,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xc5e(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13cc <proto_redistnum+0x2bc>
movl   $0x8,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xc35(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13f7 <proto_redistnum+0x2e7>
movl   $0x9,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
mov    -0x10(%rbp),%rdi
lea    0xc0d(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1422 <proto_redistnum+0x312>
movl   $0xc,-0x4(%rbp)
jmp    1451 <proto_redistnum+0x341>
jmp    1427 <proto_redistnum+0x317>
jmp    142c <proto_redistnum+0x31c>
jmp    1431 <proto_redistnum+0x321>
jmp    1436 <proto_redistnum+0x326>
jmp    143b <proto_redistnum+0x32b>
jmp    1440 <proto_redistnum+0x330>
jmp    1445 <proto_redistnum+0x335>
jmp    144a <proto_redistnum+0x33a>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<proto_redistnum>:
push   %rbp
push   %rbx
push   %rax
mov    $0xffffffff,%ebp
test   %rsi,%rsi
je     12f0 <proto_redistnum+0x1e0>
mov    %rsi,%rbx
cmp    $0x2,%edi
je     11d6 <proto_redistnum+0xc6>
cmp    $0x1,%edi
jne    12b3 <proto_redistnum+0x1a3>
lea    0xec3(%rip),%rsi
mov    $0x1,%ebp
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12f0 <proto_redistnum+0x1e0>
lea    0xea3(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12ba <proto_redistnum+0x1aa>
lea    0xe88(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12c1 <proto_redistnum+0x1b1>
lea    0xe6d(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12c8 <proto_redistnum+0x1b8>
lea    0xe52(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
jne    1268 <proto_redistnum+0x158>
mov    $0x6,%ebp
jmp    12f0 <proto_redistnum+0x1e0>
lea    0xe23(%rip),%rsi
mov    $0x1,%ebp
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12f0 <proto_redistnum+0x1e0>
lea    0xe03(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12ba <proto_redistnum+0x1aa>
lea    0xde8(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12c1 <proto_redistnum+0x1b1>
lea    0xdcd(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12cf <proto_redistnum+0x1bf>
lea    0xdb2(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12dd <proto_redistnum+0x1cd>
lea    0xd9b(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12d6 <proto_redistnum+0x1c6>
lea    0xd84(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12e4 <proto_redistnum+0x1d4>
lea    0xd6e(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12eb <proto_redistnum+0x1db>
mov    $0xffffffff,%ebp
jmp    12f0 <proto_redistnum+0x1e0>
mov    $0x2,%ebp
jmp    12f0 <proto_redistnum+0x1e0>
mov    $0x3,%ebp
jmp    12f0 <proto_redistnum+0x1e0>
mov    $0x4,%ebp
jmp    12f0 <proto_redistnum+0x1e0>
mov    $0x5,%ebp
jmp    12f0 <proto_redistnum+0x1e0>
mov    $0x8,%ebp
jmp    12f0 <proto_redistnum+0x1e0>
mov    $0x7,%ebp
jmp    12f0 <proto_redistnum+0x1e0>
mov    $0x9,%ebp
jmp    12f0 <proto_redistnum+0x1e0>
mov    $0xc,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"k\00"
@.str.1 = [2 x i8] c"c\00"
@.str.2 = [2 x i8] c"s\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [2 x i8] c"o\00"
@.str.5 = [2 x i8] c"i\00"
@.str.6 = [3 x i8] c"bg\00"
@.str.7 = [3 x i8] c"ba\00"
define i32 @proto_redistnum(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
store i32 %0, i32* %4
store i8* %1, i8** %5
%6 = load i8*, i8** %5
%7 = icmp ne i8* %6, null
br i1 %7, label %9, label %8
8: ; preds = %2
store i32 -1, i32* %3
br label %112
9: ; preds = %2
%10 = load i32, i32* %4
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %60
12: ; preds = %9
%13 = load i8*, i8** %5
%14 = call i64 @strncmp(i8* %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store i32 1, i32* %3
br label %112
17: ; preds = %12
%18 = load i8*, i8** %5
%19 = call i64 @strncmp(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 2, i32* %3
br label %112
22: ; preds = %17
%23 = load i8*, i8** %5
%24 = call i64 @strncmp(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %22
store i32 3, i32* %3
br label %112
27: ; preds = %22
%28 = load i8*, i8** %5
%29 = call i64 @strncmp(i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %27
store i32 4, i32* %3
br label %112
32: ; preds = %27
%33 = load i8*, i8** %5
%34 = call i64 @strncmp(i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %32
store i32 6, i32* %3
br label %112
37: ; preds = %32
%38 = load i8*, i8** %5
%39 = call i64 @strncmp(i8* %38, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 8, i32* %3
br label %112
42: ; preds = %37
%43 = load i8*, i8** %5
%44 = call i64 @strncmp(i8* %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 2)
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %42
store i32 9, i32* %3
br label %112
47: ; preds = %42
%48 = load i8*, i8** %5
%49 = call i64 @strncmp(i8* %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %47
store i32 12, i32* %3
br label %112
52: ; preds = %47
br label %53
53: ; preds = %52
br label %54
54: ; preds = %53
br label %55
55: ; preds = %54
br label %56
56: ; preds = %55
br label %57
57: ; preds = %56
br label %58
58: ; preds = %57
br label %59
59: ; preds = %58
br label %60
60: ; preds = %59, %9
%61 = load i32, i32* %4
%62 = icmp eq i32 %61, 2
br i1 %62, label %63, label %111
63: ; preds = %60
%64 = load i8*, i8** %5
%65 = call i64 @strncmp(i8* %64, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %63
store i32 1, i32* %3
br label %112
68: ; preds = %63
%69 = load i8*, i8** %5
%70 = call i64 @strncmp(i8* %69, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %68
store i32 2, i32* %3
br label %112
73: ; preds = %68
%74 = load i8*, i8** %5
%75 = call i64 @strncmp(i8* %74, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1)
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %78
77: ; preds = %73
store i32 3, i32* %3
br label %112
78: ; preds = %73
%79 = load i8*, i8** %5
%80 = call i64 @strncmp(i8* %79, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%81 = icmp eq i64 %80, 0
br i1 %81, label %82, label %83
82: ; preds = %78
store i32 5, i32* %3
br label %112
83: ; preds = %78
%84 = load i8*, i8** %5
%85 = call i64 @strncmp(i8* %84, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%86 = icmp eq i64 %85, 0
br i1 %86, label %87, label %88
87: ; preds = %83
store i32 7, i32* %3
br label %112
88: ; preds = %83
%89 = load i8*, i8** %5
%90 = call i64 @strncmp(i8* %89, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %88
store i32 8, i32* %3
br label %112
93: ; preds = %88
%94 = load i8*, i8** %5
%95 = call i64 @strncmp(i8* %94, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 2)
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %98
97: ; preds = %93
store i32 9, i32* %3
br label %112
98: ; preds = %93
%99 = load i8*, i8** %5
%100 = call i64 @strncmp(i8* %99, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %103
102: ; preds = %98
store i32 12, i32* %3
br label %112
103: ; preds = %98
br label %104
104: ; preds = %103
br label %105
105: ; preds = %104
br label %106
106: ; preds = %105
br label %107
107: ; preds = %106
br label %108
108: ; preds = %107
br label %109
109: ; preds = %108
br label %110
110: ; preds = %109
br label %111
111: ; preds = %110, %60
store i32 -1, i32* %3
br label %112
112: ; preds = %111, %102, %97, %92, %87, %82, %77, %72, %67, %51, %46, %41, %36, %31, %26, %21, %16, %8
%113 = load i32, i32* %3
ret i32 %113
}

LLVM IR (-O2):
@.str = [2 x i8] c"k\00"
@.str.1 = [2 x i8] c"c\00"
@.str.2 = [2 x i8] c"s\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [2 x i8] c"o\00"
@.str.5 = [2 x i8] c"i\00"
@.str.6 = [3 x i8] c"bg\00"
@.str.7 = [3 x i8] c"ba\00"
define i32 @proto_redistnum(i32 %0, i8* %1) {
%3 = icmp eq i8* %1, null
br i1 %3, label %54, label %4
4: ; preds = %2
switch i32 %0, label %53 [
i32 1, label %5
i32 2, label %29
]
5: ; preds = %4
%6 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%7 = icmp eq i64 %6, 0
br i1 %7, label %54, label %8
8: ; preds = %5
%9 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%10 = icmp eq i64 %9, 0
br i1 %10, label %54, label %11
11: ; preds = %8
%12 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1)
%13 = icmp eq i64 %12, 0
br i1 %13, label %54, label %14
14: ; preds = %11
%15 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%16 = icmp eq i64 %15, 0
br i1 %16, label %54, label %17
17: ; preds = %14
%18 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%19 = icmp eq i64 %18, 0
br i1 %19, label %54, label %20
20: ; preds = %17
%21 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%22 = icmp eq i64 %21, 0
br i1 %22, label %54, label %23
23: ; preds = %20
%24 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 2)
%25 = icmp eq i64 %24, 0
br i1 %25, label %54, label %26
26: ; preds = %23
%27 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%28 = icmp eq i64 %27, 0
br i1 %28, label %54, label %53
29: ; preds = %4
%30 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%31 = icmp eq i64 %30, 0
br i1 %31, label %54, label %32
32: ; preds = %29
%33 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%34 = icmp eq i64 %33, 0
br i1 %34, label %54, label %35
35: ; preds = %32
%36 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1)
%37 = icmp eq i64 %36, 0
br i1 %37, label %54, label %38
38: ; preds = %35
%39 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%40 = icmp eq i64 %39, 0
br i1 %40, label %54, label %41
41: ; preds = %38
%42 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%43 = icmp eq i64 %42, 0
br i1 %43, label %54, label %44
44: ; preds = %41
%45 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%46 = icmp eq i64 %45, 0
br i1 %46, label %54, label %47
47: ; preds = %44
%48 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 2)
%49 = icmp eq i64 %48, 0
br i1 %49, label %54, label %50
50: ; preds = %47
%51 = tail call i64 @strncmp(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%52 = icmp eq i64 %51, 0
br i1 %52, label %54, label %53
53: ; preds = %26, %4, %50
br label %54
54: ; preds = %50, %47, %44, %41, %38, %35, %32, %29, %26, %23, %20, %17, %14, %11, %8, %5, %2, %53
%55 = phi i32 [ -1, %53 ], [ -1, %2 ], [ 1, %5 ], [ 2, %8 ], [ 3, %11 ], [ 4, %14 ], [ 6, %17 ], [ 8, %20 ], [ 9, %23 ], [ 12, %26 ], [ 1, %29 ], [ 2, %32 ], [ 3, %35 ], [ 5, %38 ], [ 7, %41 ], [ 8, %44 ], [ 9, %47 ], [ 12, %50 ]
ret i32 %55
}