#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 */
unsigned int readInternalRange(char *, unsigned short *, unsigned int *);
unsigned int readEscapedSymbol(char **first, char *last,
                               unsigned short *rangeLength,
                               unsigned int *range) {
  ++*first;
  if (*first >= last) {
    return 501;
  }
  switch (*first[0]) {
  case '.':
  case '|':
  case '?':
  case '*':
  case '+':
  case '(':
  case ')':
  case '[':
  case ']':
  case '{':
  case '}':
  case '%':
    range[*rangeLength] = *first[0];
    ++*rangeLength;
    ++*first;
    return 0;
  case 'a':
    ++*first;
    return readInternalRange("[\x41-\x5A\x61-\x7A\xC3\x80-\xC3\x96\xC3\x98-"
                             "\xC3\xB6\xC3\xB8-\xC3\xBF]",
                             rangeLength, range);
  case 'c':
    ++*first;
    return readInternalRange("[\x00-\x1F\x7F\xC2\x80-\xC2\x9F]", rangeLength,
                             range);
  case 'd':
    ++*first;
    return readInternalRange("[0-9]", rangeLength, range);
  case 'g':
    ++*first;
    return readInternalRange("[\x21-\x7E]", rangeLength, range);
  case 'l':
    ++*first;
    return readInternalRange("[\x61-\x7A\xC3\x9F-\xC3\xB6\xC3\xB8-\xC3\xBF]",
                             rangeLength, range);
  case 'p':
    ++*first;
    return readInternalRange("[.,;:?!'\"()\xC2\xA1\xC2\xBF-]", rangeLength,
                             range);
  case 's':
    ++*first;
    return readInternalRange("[\x09-\x0D\x20]", rangeLength, range);
  case 'u':
    ++*first;
    return readInternalRange("[\x41-\x5A\xC3\x80-\xC3\x96\xC3\x98-\xC3\x9E]",
                             rangeLength, range);
  case 'w':
    ++*first;
    return readInternalRange("[A-Za-z0-9]", rangeLength, range);
  case 'x':
    ++*first;
    return readInternalRange("[0-9A-Fa-f]", rangeLength, range);
  }
  return 501;
}


x86 assembly (clang, -O0):
<readEscapedSymbol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
cmp    -0x18(%rbp),%rax
jb     1153 <readEscapedSymbol+0x43>
movl   $0x1f5,-0x4(%rbp)
jmp    136e <readEscapedSymbol+0x25e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
add    $0xffffffdb,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x58,%eax
ja     1367 <readEscapedSymbol+0x257>
mov    -0x30(%rbp),%rax
lea    0xe86(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%edx
mov    -0x28(%rbp),%rax
mov    -0x20(%rbp),%rcx
movzwl (%rcx),%ecx
mov    %edx,(%rax,%rcx,4)
mov    -0x20(%rbp),%rax
mov    (%rax),%cx
add    $0x1,%cx
mov    %cx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    136e <readEscapedSymbol+0x25e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xf90(%rip),%rdi
call   1030 <readInternalRange@plt>
mov    %eax,-0x4(%rbp)
jmp    136e <readEscapedSymbol+0x25e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xf5a(%rip),%rdi
call   1030 <readInternalRange@plt>
mov    %eax,-0x4(%rbp)
jmp    136e <readEscapedSymbol+0x25e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xf54(%rip),%rdi
call   1030 <readInternalRange@plt>
mov    %eax,-0x4(%rbp)
jmp    136e <readEscapedSymbol+0x25e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xf30(%rip),%rdi
call   1030 <readInternalRange@plt>
mov    %eax,-0x4(%rbp)
jmp    136e <readEscapedSymbol+0x25e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xf0c(%rip),%rdi
call   1030 <readInternalRange@plt>
mov    %eax,-0x4(%rbp)
jmp    136e <readEscapedSymbol+0x25e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xef2(%rip),%rdi
call   1030 <readInternalRange@plt>
mov    %eax,-0x4(%rbp)
jmp    136e <readEscapedSymbol+0x25e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xeda(%rip),%rdi
call   1030 <readInternalRange@plt>
mov    %eax,-0x4(%rbp)
jmp    136e <readEscapedSymbol+0x25e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xeb7(%rip),%rdi
call   1030 <readInternalRange@plt>
mov    %eax,-0x4(%rbp)
jmp    136e <readEscapedSymbol+0x25e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xe9d(%rip),%rdi
call   1030 <readInternalRange@plt>
mov    %eax,-0x4(%rbp)
jmp    136e <readEscapedSymbol+0x25e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xe7f(%rip),%rdi
call   1030 <readInternalRange@plt>
mov    %eax,-0x4(%rbp)
jmp    136e <readEscapedSymbol+0x25e>
movl   $0x1f5,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<readEscapedSymbol>:
mov    (%rdi),%r8
lea    0x1(%r8),%r9
mov    %r9,(%rdi)
mov    $0x1f5,%eax
cmp    %rsi,%r9
jae    1157 <readEscapedSymbol+0x47>
movsbl (%r9),%r9d
lea    -0x25(%r9),%esi
cmp    $0x58,%esi
ja     1157 <readEscapedSymbol+0x47>
lea    0xec8(%rip),%r10
movslq (%r10,%rsi,4),%rsi
add    %r10,%rsi
jmp    *%rsi
movzwl (%rdx),%eax
mov    %r9d,(%rcx,%rax,4)
add    $0x1,%eax
mov    %ax,(%rdx)
add    $0x2,%r8
mov    %r8,(%rdi)
xor    %eax,%eax
ret
add    $0x2,%r8
mov    %r8,(%rdi)
lea    0x100a(%rip),%rdi
jmp    11f9 <readEscapedSymbol+0xe9>
add    $0x2,%r8
mov    %r8,(%rdi)
lea    0xfeb(%rip),%rdi
jmp    11f9 <readEscapedSymbol+0xe9>
add    $0x2,%r8
mov    %r8,(%rdi)
lea    0xfff(%rip),%rdi
jmp    11f9 <readEscapedSymbol+0xe9>
add    $0x2,%r8
mov    %r8,(%rdi)
lea    0xff5(%rip),%rdi
jmp    11f9 <readEscapedSymbol+0xe9>
add    $0x2,%r8
mov    %r8,(%rdi)
lea    0xfeb(%rip),%rdi
jmp    11f9 <readEscapedSymbol+0xe9>
add    $0x2,%r8
mov    %r8,(%rdi)
lea    0xfeb(%rip),%rdi
jmp    11f9 <readEscapedSymbol+0xe9>
add    $0x2,%r8
mov    %r8,(%rdi)
lea    0xfed(%rip),%rdi
jmp    11f9 <readEscapedSymbol+0xe9>
add    $0x2,%r8
mov    %r8,(%rdi)
lea    0xfe4(%rip),%rdi
jmp    11f9 <readEscapedSymbol+0xe9>
add    $0x2,%r8
mov    %r8,(%rdi)
lea    0xfe4(%rip),%rdi
jmp    11f9 <readEscapedSymbol+0xe9>
add    $0x2,%r8
mov    %r8,(%rdi)
lea    0xfe0(%rip),%rdi
mov    %rdx,%rsi
mov    %rcx,%rdx
jmp    1030 <readInternalRange@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"[A-Za-z\C3\80-\C3\96\C3\98-\C3\B6\C3\B8-\C3\BF]\00"
@.str.1 = [12 x i8] c"[\00-\1F\7F\C2\80-\C2\9F]\00"
@.str.2 = [6 x i8] c"[0-9]\00"
@.str.3 = [6 x i8] c"[!-~]\00"
@.str.4 = [16 x i8] c"[a-z\C3\9F-\C3\B6\C3\B8-\C3\BF]\00"
@.str.5 = [18 x i8] c"[.,;:?!'\22()\C2\A1\C2\BF-]\00"
@.str.6 = [7 x i8] c"[\09-\0D ]\00"
@.str.7 = [16 x i8] c"[A-Z\C3\80-\C3\96\C3\98-\C3\9E]\00"
@.str.8 = [12 x i8] c"[A-Za-z0-9]\00"
@.str.9 = [12 x i8] c"[0-9A-Fa-f]\00"
define i32 @readEscapedSymbol(i8** %0, i8* %1, i16* %2, i32* %3) {
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8*
%8 = alloca i16*
%9 = alloca i32*
store i8** %0, i8*** %6
store i8* %1, i8** %7
store i16* %2, i16** %8
store i32* %3, i32** %9
%10 = load i8**, i8*** %6
%11 = load i8*, i8** %10
%12 = getelementptr inbounds i8, i8* %11, i32 1
store i8* %12, i8** %10
%13 = load i8**, i8*** %6
%14 = load i8*, i8** %13
%15 = load i8*, i8** %7
%16 = icmp uge i8* %14, %15
br i1 %16, label %17, label %18
17: ; preds = %4
store i32 501, i32* %5
br label %112
18: ; preds = %4
%19 = load i8**, i8*** %6
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
switch i32 %23, label %111 [
i32 46, label %24
i32 124, label %24
i32 63, label %24
i32 42, label %24
i32 43, label %24
i32 40, label %24
i32 41, label %24
i32 91, label %24
i32 93, label %24
i32 123, label %24
i32 125, label %24
i32 37, label %24
i32 97, label %41
i32 99, label %48
i32 100, label %55
i32 103, label %62
i32 108, label %69
i32 112, label %76
i32 115, label %83
i32 117, label %90
i32 119, label %97
i32 120, label %104
]
24: ; preds = %18, %18, %18, %18, %18, %18, %18, %18, %18, %18, %18, %18
%25 = load i8**, i8*** %6
%26 = getelementptr inbounds i8*, i8** %25, i64 0
%27 = load i8*, i8** %26
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = load i32*, i32** %9
%31 = load i16*, i16** %8
%32 = load i16, i16* %31
%33 = zext i16 %32 to i64
%34 = getelementptr inbounds i32, i32* %30, i64 %33
store i32 %29, i32* %34
%35 = load i16*, i16** %8
%36 = load i16, i16* %35
%37 = add i16 %36, 1
store i16 %37, i16* %35
%38 = load i8**, i8*** %6
%39 = load i8*, i8** %38
%40 = getelementptr inbounds i8, i8* %39, i32 1
store i8* %40, i8** %38
store i32 0, i32* %5
br label %112
41: ; preds = %18
%42 = load i8**, i8*** %6
%43 = load i8*, i8** %42
%44 = getelementptr inbounds i8, i8* %43, i32 1
store i8* %44, i8** %42
%45 = load i16*, i16** %8
%46 = load i32*, i32** %9
%47 = call i32 @readInternalRange(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i16* %45, i32* %46)
store i32 %47, i32* %5
br label %112
48: ; preds = %18
%49 = load i8**, i8*** %6
%50 = load i8*, i8** %49
%51 = getelementptr inbounds i8, i8* %50, i32 1
store i8* %51, i8** %49
%52 = load i16*, i16** %8
%53 = load i32*, i32** %9
%54 = call i32 @readInternalRange(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i16* %52, i32* %53)
store i32 %54, i32* %5
br label %112
55: ; preds = %18
%56 = load i8**, i8*** %6
%57 = load i8*, i8** %56
%58 = getelementptr inbounds i8, i8* %57, i32 1
store i8* %58, i8** %56
%59 = load i16*, i16** %8
%60 = load i32*, i32** %9
%61 = call i32 @readInternalRange(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i16* %59, i32* %60)
store i32 %61, i32* %5
br label %112
62: ; preds = %18
%63 = load i8**, i8*** %6
%64 = load i8*, i8** %63
%65 = getelementptr inbounds i8, i8* %64, i32 1
store i8* %65, i8** %63
%66 = load i16*, i16** %8
%67 = load i32*, i32** %9
%68 = call i32 @readInternalRange(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i16* %66, i32* %67)
store i32 %68, i32* %5
br label %112
69: ; preds = %18
%70 = load i8**, i8*** %6
%71 = load i8*, i8** %70
%72 = getelementptr inbounds i8, i8* %71, i32 1
store i8* %72, i8** %70
%73 = load i16*, i16** %8
%74 = load i32*, i32** %9
%75 = call i32 @readInternalRange(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i16* %73, i32* %74)
store i32 %75, i32* %5
br label %112
76: ; preds = %18
%77 = load i8**, i8*** %6
%78 = load i8*, i8** %77
%79 = getelementptr inbounds i8, i8* %78, i32 1
store i8* %79, i8** %77
%80 = load i16*, i16** %8
%81 = load i32*, i32** %9
%82 = call i32 @readInternalRange(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i16* %80, i32* %81)
store i32 %82, i32* %5
br label %112
83: ; preds = %18
%84 = load i8**, i8*** %6
%85 = load i8*, i8** %84
%86 = getelementptr inbounds i8, i8* %85, i32 1
store i8* %86, i8** %84
%87 = load i16*, i16** %8
%88 = load i32*, i32** %9
%89 = call i32 @readInternalRange(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i16* %87, i32* %88)
store i32 %89, i32* %5
br label %112
90: ; preds = %18
%91 = load i8**, i8*** %6
%92 = load i8*, i8** %91
%93 = getelementptr inbounds i8, i8* %92, i32 1
store i8* %93, i8** %91
%94 = load i16*, i16** %8
%95 = load i32*, i32** %9
%96 = call i32 @readInternalRange(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i16* %94, i32* %95)
store i32 %96, i32* %5
br label %112
97: ; preds = %18
%98 = load i8**, i8*** %6
%99 = load i8*, i8** %98
%100 = getelementptr inbounds i8, i8* %99, i32 1
store i8* %100, i8** %98
%101 = load i16*, i16** %8
%102 = load i32*, i32** %9
%103 = call i32 @readInternalRange(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i16* %101, i32* %102)
store i32 %103, i32* %5
br label %112
104: ; preds = %18
%105 = load i8**, i8*** %6
%106 = load i8*, i8** %105
%107 = getelementptr inbounds i8, i8* %106, i32 1
store i8* %107, i8** %105
%108 = load i16*, i16** %8
%109 = load i32*, i32** %9
%110 = call i32 @readInternalRange(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i16* %108, i32* %109)
store i32 %110, i32* %5
br label %112
111: ; preds = %18
store i32 501, i32* %5
br label %112
112: ; preds = %111, %104, %97, %90, %83, %76, %69, %62, %55, %48, %41, %24, %17
%113 = load i32, i32* %5
ret i32 %113
}

LLVM IR (-O2):
@.str = [24 x i8] c"[A-Za-z\C3\80-\C3\96\C3\98-\C3\B6\C3\B8-\C3\BF]\00"
@.str.1 = [12 x i8] c"[\00-\1F\7F\C2\80-\C2\9F]\00"
@.str.2 = [6 x i8] c"[0-9]\00"
@.str.3 = [6 x i8] c"[!-~]\00"
@.str.4 = [16 x i8] c"[a-z\C3\9F-\C3\B6\C3\B8-\C3\BF]\00"
@.str.5 = [18 x i8] c"[.,;:?!'\22()\C2\A1\C2\BF-]\00"
@.str.6 = [7 x i8] c"[\09-\0D ]\00"
@.str.7 = [16 x i8] c"[A-Z\C3\80-\C3\96\C3\98-\C3\9E]\00"
@.str.8 = [12 x i8] c"[A-Za-z0-9]\00"
@.str.9 = [12 x i8] c"[0-9A-Fa-f]\00"
define i32 @readEscapedSymbol(i8** nocapture %0, i8* readnone %1, i16* %2, i32* %3) {
%5 = load i8*, i8** %0
%6 = getelementptr inbounds i8, i8* %5, i64 1
store i8* %6, i8** %0
%7 = icmp ult i8* %6, %1
br i1 %7, label %8, label %47
8: ; preds = %4
%9 = load i8, i8* %6
%10 = sext i8 %9 to i32
switch i32 %10, label %47 [
i32 46, label %11
i32 124, label %11
i32 63, label %11
i32 42, label %11
i32 43, label %11
i32 40, label %11
i32 41, label %11
i32 91, label %11
i32 93, label %11
i32 123, label %11
i32 125, label %11
i32 37, label %11
i32 97, label %17
i32 99, label %20
i32 100, label %23
i32 103, label %26
i32 108, label %29
i32 112, label %32
i32 115, label %35
i32 117, label %38
i32 119, label %41
i32 120, label %44
]
11: ; preds = %8, %8, %8, %8, %8, %8, %8, %8, %8, %8, %8, %8
%12 = load i16, i16* %2
%13 = zext i16 %12 to i64
%14 = getelementptr inbounds i32, i32* %3, i64 %13
store i32 %10, i32* %14
%15 = add i16 %12, 1
store i16 %15, i16* %2
%16 = getelementptr inbounds i8, i8* %5, i64 2
store i8* %16, i8** %0
br label %47
17: ; preds = %8
%18 = getelementptr inbounds i8, i8* %5, i64 2
store i8* %18, i8** %0
%19 = tail call i32 @readInternalRange(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i16* %2, i32* %3)
br label %47
20: ; preds = %8
%21 = getelementptr inbounds i8, i8* %5, i64 2
store i8* %21, i8** %0
%22 = tail call i32 @readInternalRange(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i16* %2, i32* %3)
br label %47
23: ; preds = %8
%24 = getelementptr inbounds i8, i8* %5, i64 2
store i8* %24, i8** %0
%25 = tail call i32 @readInternalRange(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i16* %2, i32* %3)
br label %47
26: ; preds = %8
%27 = getelementptr inbounds i8, i8* %5, i64 2
store i8* %27, i8** %0
%28 = tail call i32 @readInternalRange(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i16* %2, i32* %3)
br label %47
29: ; preds = %8
%30 = getelementptr inbounds i8, i8* %5, i64 2
store i8* %30, i8** %0
%31 = tail call i32 @readInternalRange(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i16* %2, i32* %3)
br label %47
32: ; preds = %8
%33 = getelementptr inbounds i8, i8* %5, i64 2
store i8* %33, i8** %0
%34 = tail call i32 @readInternalRange(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i16* %2, i32* %3)
br label %47
35: ; preds = %8
%36 = getelementptr inbounds i8, i8* %5, i64 2
store i8* %36, i8** %0
%37 = tail call i32 @readInternalRange(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i16* %2, i32* %3)
br label %47
38: ; preds = %8
%39 = getelementptr inbounds i8, i8* %5, i64 2
store i8* %39, i8** %0
%40 = tail call i32 @readInternalRange(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i16* %2, i32* %3)
br label %47
41: ; preds = %8
%42 = getelementptr inbounds i8, i8* %5, i64 2
store i8* %42, i8** %0
%43 = tail call i32 @readInternalRange(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i16* %2, i32* %3)
br label %47
44: ; preds = %8
%45 = getelementptr inbounds i8, i8* %5, i64 2
store i8* %45, i8** %0
%46 = tail call i32 @readInternalRange(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i16* %2, i32* %3)
br label %47
47: ; preds = %8, %4, %44, %41, %38, %35, %32, %29, %26, %23, %20, %17, %11
%48 = phi i32 [ %46, %44 ], [ %43, %41 ], [ %40, %38 ], [ %37, %35 ], [ %34, %32 ], [ %31, %29 ], [ %28, %26 ], [ %25, %23 ], [ %22, %20 ], [ %19, %17 ], [ 0, %11 ], [ 501, %4 ], [ 501, %8 ]
ret i32 %48
}