; LLVM IR from nickmqb/muon :: bootstrap/mu.ll_Parser (readEscapeSequence__)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.string__ = type { ptr, i32 }
%struct.tag_____Error__ = type { ptr, %struct.tag_____IntRange__, %struct.string__ }
%struct.tag_____IntRange__ = type { i32, i32 }
%struct.tag_____Maybe__long____ = type { i64, i8 }
%struct.tag_____ParserState__ = type { %struct.string__, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, %struct.tag_____IntRange__, i32, i32, ptr, i32, ptr, ptr, ptr }

@mu_____string289 = external dso_local global %struct.string__, align 8
@top_____abandonFn__ = external dso_local thread_local global ptr, align 8

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local void @List__add__Error____(ptr noundef, ptr noundef byval(%struct.tag_____Error__) align 8) #2

; Function Attrs: nounwind uwtable
declare dso_local void @Error__at__(ptr dead_on_unwind noalias writable sret(%struct.tag_____Error__) align 8, ptr noundef, i64, ptr, i32) #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @IntRange__cons__(i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @string__slice__(ptr, i32, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @Maybe__unwrap__long____(i64, i8) #2

; Function Attrs: nounwind uwtable
declare dso_local { i64, i8 } @long__tryParseHex__(ptr, i32) #2

; Function Attrs: nounwind uwtable
define dso_local signext i8 @Parser__readEscapeSequence__(ptr noundef %0) #2 {
  %2 = alloca i8, align 1
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.tag_____Maybe__long____, align 8
  %16 = alloca %struct.string__, align 8
  %17 = alloca %struct.tag_____Error__, align 8
  %18 = alloca %struct.tag_____IntRange__, align 4
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca %struct.tag_____Error__, align 8
  %23 = alloca %struct.tag_____IntRange__, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.tag_____ParserState__, ptr %24, i32 0, i32 1
  %26 = load i32, ptr %25, align 8, !tbaa !9
  store i32 %26, ptr %4, align 4, !tbaa !14
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.tag_____ParserState__, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !9
  %30 = add nsw i32 %29, 1
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.tag_____ParserState__, ptr %31, i32 0, i32 1
  store i32 %30, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.tag_____ParserState__, ptr %33, i32 0, i32 0
  store ptr %34, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.tag_____ParserState__, ptr %35, i32 0, i32 1
  %37 = load i32, ptr %36, align 8, !tbaa !9
  store i32 %37, ptr %6, align 4, !tbaa !14
  %38 = load i32, ptr %6, align 4, !tbaa !14
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.string__, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !15
  %42 = icmp ult i32 %38, %41
  br i1 %42, label %46, label %43

43:                                               ; preds = %1
  %44 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  call void %45(i32 noundef -3)
  br label %46

46:                                               ; preds = %43, %1
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.string__, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = load i32, ptr %6, align 4, !tbaa !14
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds i8, ptr %49, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !17
  store i8 %53, ptr %7, align 1, !tbaa !17
  %54 = load i8, ptr %7, align 1, !tbaa !17
  %55 = sext i8 %54 to i32
  %56 = icmp eq i32 %55, 48
  br i1 %56, label %57, label %64

57:                                               ; preds = %46
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.tag_____ParserState__, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !9
  %61 = add nsw i32 %60, 1
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.tag_____ParserState__, ptr %62, i32 0, i32 1
  store i32 %61, ptr %63, align 8, !tbaa !9
  store i8 0, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %309

64:                                               ; preds = %46
  %65 = load i8, ptr %7, align 1, !tbaa !17
  %66 = sext i8 %65 to i32
  %67 = icmp eq i32 %66, 116
  br i1 %67, label %68, label %75

68:                                               ; preds = %64
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.tag_____ParserState__, ptr %69, i32 0, i32 1
  %71 = load i32, ptr %70, align 8, !tbaa !9
  %72 = add nsw i32 %71, 1
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.tag_____ParserState__, ptr %73, i32 0, i32 1
  store i32 %72, ptr %74, align 8, !tbaa !9
  store i8 9, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %309

75:                                               ; preds = %64
  %76 = load i8, ptr %7, align 1, !tbaa !17
  %77 = sext i8 %76 to i32
  %78 = icmp eq i32 %77, 114
  br i1 %78, label %79, label %86

79:                                               ; preds = %75
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.tag_____ParserState__, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 8, !tbaa !9
  %83 = add nsw i32 %82, 1
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.tag_____ParserState__, ptr %84, i32 0, i32 1
  store i32 %83, ptr %85, align 8, !tbaa !9
  store i8 13, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %309

86:                                               ; preds = %75
  %87 = load i8, ptr %7, align 1, !tbaa !17
  %88 = sext i8 %87 to i32
  %89 = icmp eq i32 %88, 110
  br i1 %89, label %90, label %97

90:                                               ; preds = %86
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.tag_____ParserState__, ptr %91, i32 0, i32 1
  %93 = load i32, ptr %92, align 8, !tbaa !9
  %94 = add nsw i32 %93, 1
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.tag_____ParserState__, ptr %95, i32 0, i32 1
  store i32 %94, ptr %96, align 8, !tbaa !9
  store i8 10, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %309

97:                                               ; preds = %86
  %98 = load i8, ptr %7, align 1, !tbaa !17
  %99 = sext i8 %98 to i32
  %100 = icmp eq i32 %99, 92
  br i1 %100, label %101, label %108

101:                                              ; preds = %97
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.tag_____ParserState__, ptr %102, i32 0, i32 1
  %104 = load i32, ptr %103, align 8, !tbaa !9
  %105 = add nsw i32 %104, 1
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.tag_____ParserState__, ptr %106, i32 0, i32 1
  store i32 %105, ptr %107, align 8, !tbaa !9
  store i8 92, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %309

108:                                              ; preds = %97
  %109 = load i8, ptr %7, align 1, !tbaa !17
  %110 = sext i8 %109 to i32
  %111 = icmp eq i32 %110, 39
  br i1 %111, label %112, label %119

112:                                              ; preds = %108
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.tag_____ParserState__, ptr %113, i32 0, i32 1
  %115 = load i32, ptr %114, align 8, !tbaa !9
  %116 = add nsw i32 %115, 1
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.tag_____ParserState__, ptr %117, i32 0, i32 1
  store i32 %116, ptr %118, align 8, !tbaa !9
  store i8 39, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %309

119:                                              ; preds = %108
  %120 = load i8, ptr %7, align 1, !tbaa !17
  %121 = sext i8 %120 to i32
  %122 = icmp eq i32 %121, 34
  br i1 %122, label %123, label %130

123:                                              ; preds = %119
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.tag_____ParserState__, ptr %124, i32 0, i32 1
  %126 = load i32, ptr %125, align 8, !tbaa !9
  %127 = add nsw i32 %126, 1
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.tag_____ParserState__, ptr %128, i32 0, i32 1
  store i32 %127, ptr %129, align 8, !tbaa !9
  store i8 34, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %309

130:                                              ; preds = %119
  %131 = load i8, ptr %7, align 1, !tbaa !17
  %132 = sext i8 %131 to i32
  %133 = icmp eq i32 %132, 120
  br i1 %133, label %134, label %263

134:                                              ; preds = %130
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.tag_____ParserState__, ptr %135, i32 0, i32 1
  %137 = load i32, ptr %136, align 8, !tbaa !9
  %138 = add nsw i32 %137, 1
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.tag_____ParserState__, ptr %139, i32 0, i32 1
  store i32 %138, ptr %140, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.tag_____ParserState__, ptr %141, i32 0, i32 0
  store ptr %142, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.tag_____ParserState__, ptr %143, i32 0, i32 1
  %145 = load i32, ptr %144, align 8, !tbaa !9
  store i32 %145, ptr %10, align 4, !tbaa !14
  %146 = load i32, ptr %10, align 4, !tbaa !14
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.string__, ptr %147, i32 0, i32 1
  %149 = load i32, ptr %148, align 8, !tbaa !15
  %150 = icmp ult i32 %146, %149
  br i1 %150, label %154, label %151

151:                                              ; preds = %134
  %152 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  call void %153(i32 noundef -3)
  br label %154

154:                                              ; preds = %151, %134
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.string__, ptr %155, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8, !tbaa !16
  %158 = load i32, ptr %10, align 4, !tbaa !14
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds i8, ptr %157, i64 %159
  %161 = load i8, ptr %160, align 1, !tbaa !17
  store i8 %161, ptr %7, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !14
  br label %162

162:                                              ; preds = %209, %154
  br label %163

163:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #3
  %164 = load i32, ptr %11, align 4, !tbaa !14
  %165 = icmp slt i32 %164, 2
  %166 = zext i1 %165 to i32
  %167 = trunc i32 %166 to i8
  store i8 %167, ptr %12, align 1, !tbaa !17
  %168 = load i8, ptr %12, align 1, !tbaa !17
  %169 = icmp ne i8 %168, 0
  br i1 %169, label %170, label %173

170:                                              ; preds = %163
  %171 = load i8, ptr %7, align 1, !tbaa !17
  %172 = call zeroext i8 @Parser__isHexDigit__(i8 noundef signext %171)
  store i8 %172, ptr %12, align 1, !tbaa !17
  br label %173

173:                                              ; preds = %170, %163
  %174 = load i8, ptr %12, align 1, !tbaa !17
  %175 = icmp ne i8 %174, 0
  br i1 %175, label %177, label %176

176:                                              ; preds = %173
  store i32 3, ptr %8, align 4
  br label %207

177:                                              ; preds = %173
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.tag_____ParserState__, ptr %178, i32 0, i32 1
  %180 = load i32, ptr %179, align 8, !tbaa !9
  %181 = add nsw i32 %180, 1
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.tag_____ParserState__, ptr %182, i32 0, i32 1
  store i32 %181, ptr %183, align 8, !tbaa !9
  %184 = load i32, ptr %11, align 4, !tbaa !14
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.tag_____ParserState__, ptr %186, i32 0, i32 0
  store ptr %187, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.tag_____ParserState__, ptr %188, i32 0, i32 1
  %190 = load i32, ptr %189, align 8, !tbaa !9
  store i32 %190, ptr %14, align 4, !tbaa !14
  %191 = load i32, ptr %14, align 4, !tbaa !14
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.string__, ptr %192, i32 0, i32 1
  %194 = load i32, ptr %193, align 8, !tbaa !15
  %195 = icmp ult i32 %191, %194
  br i1 %195, label %199, label %196

196:                                              ; preds = %177
  %197 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %198 = load ptr, ptr %197, align 8, !tbaa !5
  call void %198(i32 noundef -3)
  br label %199

199:                                              ; preds = %196, %177
  %200 = load ptr, ptr %13, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.string__, ptr %200, i32 0, i32 0
  %202 = load ptr, ptr %201, align 8, !tbaa !16
  %203 = load i32, ptr %14, align 4, !tbaa !14
  %204 = zext i32 %203 to i64
  %205 = getelementptr inbounds i8, ptr %202, i64 %204
  %206 = load i8, ptr %205, align 1, !tbaa !17
  store i8 %206, ptr %7, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  store i32 0, ptr %8, align 4
  br label %207

207:                                              ; preds = %199, %176
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  %208 = load i32, ptr %8, align 4
  switch i32 %208, label %311 [
    i32 0, label %209
    i32 3, label %210
  ]

209:                                              ; preds = %207
  br label %162

210:                                              ; preds = %207
  %211 = load i32, ptr %11, align 4, !tbaa !14
  %212 = icmp eq i32 %211, 2
  br i1 %212, label %213, label %247

213:                                              ; preds = %210
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.tag_____ParserState__, ptr %214, i32 0, i32 0
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.tag_____ParserState__, ptr %216, i32 0, i32 1
  %218 = load i32, ptr %217, align 8, !tbaa !9
  %219 = sub nsw i32 %218, 2
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.tag_____ParserState__, ptr %220, i32 0, i32 1
  %222 = load i32, ptr %221, align 8, !tbaa !9
  %223 = getelementptr inbounds { ptr, i32 }, ptr %215, i32 0, i32 0
  %224 = load ptr, ptr %223, align 8
  %225 = getelementptr inbounds { ptr, i32 }, ptr %215, i32 0, i32 1
  %226 = load i32, ptr %225, align 8
  %227 = call { ptr, i32 } @string__slice__(ptr %224, i32 %226, i32 noundef %219, i32 noundef %222)
  %228 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 0
  %229 = extractvalue { ptr, i32 } %227, 0
  store ptr %229, ptr %228, align 8
  %230 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 1
  %231 = extractvalue { ptr, i32 } %227, 1
  store i32 %231, ptr %230, align 8
  %232 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 0
  %233 = load ptr, ptr %232, align 8
  %234 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 1
  %235 = load i32, ptr %234, align 8
  %236 = call { i64, i8 } @long__tryParseHex__(ptr %233, i32 %235)
  %237 = getelementptr inbounds { i64, i8 }, ptr %15, i32 0, i32 0
  %238 = extractvalue { i64, i8 } %236, 0
  store i64 %238, ptr %237, align 8
  %239 = getelementptr inbounds { i64, i8 }, ptr %15, i32 0, i32 1
  %240 = extractvalue { i64, i8 } %236, 1
  store i8 %240, ptr %239, align 8
  %241 = getelementptr inbounds { i64, i8 }, ptr %15, i32 0, i32 0
  %242 = load i64, ptr %241, align 8
  %243 = getelementptr inbounds { i64, i8 }, ptr %15, i32 0, i32 1
  %244 = load i8, ptr %243, align 8
  %245 = call i64 @Maybe__unwrap__long____(i64 %242, i8 %244)
  %246 = trunc i64 %245 to i8
  store i8 %246, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %262

247:                                              ; preds = %210
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.tag_____ParserState__, ptr %248, i32 0, i32 9
  %250 = load ptr, ptr %249, align 8, !tbaa !18
  %251 = load ptr, ptr %3, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.tag_____ParserState__, ptr %251, i32 0, i32 2
  %253 = load ptr, ptr %252, align 8, !tbaa !19
  %254 = load i32, ptr %4, align 4, !tbaa !14
  %255 = load ptr, ptr %3, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.tag_____ParserState__, ptr %255, i32 0, i32 1
  %257 = load i32, ptr %256, align 8, !tbaa !9
  %258 = call i64 @IntRange__cons__(i32 noundef %254, i32 noundef %257)
  store i64 %258, ptr %18, align 4
  %259 = load i64, ptr %18, align 4
  %260 = load ptr, ptr @mu_____string289, align 8
  %261 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string289, i32 0, i32 1), align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %17, ptr noundef %253, i64 %259, ptr %260, i32 %261)
  call void @List__add__Error____(ptr noundef %250, ptr noundef byval(%struct.tag_____Error__) align 8 %17)
  store i8 92, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %262

262:                                              ; preds = %247, %213
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %309

263:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.tag_____ParserState__, ptr %264, i32 0, i32 1
  %266 = load i32, ptr %265, align 8, !tbaa !9
  store i32 %266, ptr %19, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #3
  %267 = load i8, ptr %7, align 1, !tbaa !17
  %268 = sext i8 %267 to i32
  %269 = icmp ne i32 %268, 10
  %270 = zext i1 %269 to i32
  %271 = trunc i32 %270 to i8
  store i8 %271, ptr %20, align 1, !tbaa !17
  %272 = load i8, ptr %20, align 1, !tbaa !17
  %273 = icmp ne i8 %272, 0
  br i1 %273, label %274, label %280

274:                                              ; preds = %263
  %275 = load i8, ptr %7, align 1, !tbaa !17
  %276 = sext i8 %275 to i32
  %277 = icmp ne i32 %276, 13
  %278 = zext i1 %277 to i32
  %279 = trunc i32 %278 to i8
  store i8 %279, ptr %20, align 1, !tbaa !17
  br label %280

280:                                              ; preds = %274, %263
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #3
  %281 = load i8, ptr %20, align 1, !tbaa !17
  store i8 %281, ptr %21, align 1, !tbaa !17
  %282 = load i8, ptr %21, align 1, !tbaa !17
  %283 = icmp ne i8 %282, 0
  br i1 %283, label %284, label %290

284:                                              ; preds = %280
  %285 = load i8, ptr %7, align 1, !tbaa !17
  %286 = sext i8 %285 to i32
  %287 = icmp ne i32 %286, 0
  %288 = zext i1 %287 to i32
  %289 = trunc i32 %288 to i8
  store i8 %289, ptr %21, align 1, !tbaa !17
  br label %290

290:                                              ; preds = %284, %280
  %291 = load i8, ptr %21, align 1, !tbaa !17
  %292 = icmp ne i8 %291, 0
  br i1 %292, label %293, label %296

293:                                              ; preds = %290
  %294 = load i32, ptr %19, align 4, !tbaa !14
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr %19, align 4, !tbaa !14
  br label %296

296:                                              ; preds = %293, %290
  %297 = load ptr, ptr %3, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.tag_____ParserState__, ptr %297, i32 0, i32 9
  %299 = load ptr, ptr %298, align 8, !tbaa !18
  %300 = load ptr, ptr %3, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.tag_____ParserState__, ptr %300, i32 0, i32 2
  %302 = load ptr, ptr %301, align 8, !tbaa !19
  %303 = load i32, ptr %4, align 4, !tbaa !14
  %304 = load i32, ptr %19, align 4, !tbaa !14
  %305 = call i64 @IntRange__cons__(i32 noundef %303, i32 noundef %304)
  store i64 %305, ptr %23, align 4
  %306 = load i64, ptr %23, align 4
  %307 = load ptr, ptr @mu_____string289, align 8
  %308 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string289, i32 0, i32 1), align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %22, ptr noundef %302, i64 %306, ptr %307, i32 %308)
  call void @List__add__Error____(ptr noundef %299, ptr noundef byval(%struct.tag_____Error__) align 8 %22)
  store i8 92, ptr %2, align 1
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %309

309:                                              ; preds = %296, %262, %123, %112, %101, %90, %79, %68, %57
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  %310 = load i8, ptr %2, align 1
  ret i8 %310

311:                                              ; preds = %207
  unreachable
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @Parser__isHexDigit__(i8 noundef signext) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 16}
!10 = !{!"tag_____ParserState__", !11, i64 0, !12, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !6, i64 64, !13, i64 72, !12, i64 80, !12, i64 84, !6, i64 88, !12, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!11 = !{!"", !6, i64 0, !12, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"tag_____IntRange__", !12, i64 0, !12, i64 4}
!14 = !{!12, !12, i64 0}
!15 = !{!11, !12, i64 8}
!16 = !{!11, !6, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!10, !6, i64 64}
!19 = !{!10, !6, i64 24}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.string__ = type { ptr, i32 }
%struct.tag_____Error__ = type { ptr, %struct.tag_____IntRange__, %struct.string__ }
%struct.tag_____IntRange__ = type { i32, i32 }

@mu_____string289 = external dso_local local_unnamed_addr global %struct.string__, align 8
@top_____abandonFn__ = external dso_local thread_local local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #0

; Function Attrs: nounwind uwtable
declare dso_local void @List__add__Error____(ptr noundef, ptr noundef byval(%struct.tag_____Error__) align 8) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @Error__at__(ptr dead_on_unwind noalias writable sret(%struct.tag_____Error__) align 8, ptr noundef, i64, ptr, i32) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @IntRange__cons__(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @string__slice__(ptr, i32, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @Maybe__unwrap__long____(i64, i8) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local { i64, i8 } @long__tryParseHex__(ptr, i32) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local signext i8 @Parser__readEscapeSequence__(ptr nocapture noundef %0) local_unnamed_addr #1 {
  %2 = alloca %struct.tag_____Error__, align 8
  %3 = alloca %struct.tag_____Error__, align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add nsw i32 %5, 1
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i32, ptr %7, align 8, !tbaa !13
  %9 = icmp ult i32 %6, %8
  br i1 %9, label %13, label %10

10:                                               ; preds = %1
  %11 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  tail call void %12(i32 noundef -3) #2
  br label %13

13:                                               ; preds = %10, %1
  %14 = load ptr, ptr %0, align 8, !tbaa !15
  %15 = zext i32 %6 to i64
  %16 = getelementptr inbounds i8, ptr %14, i64 %15
  %17 = load i8, ptr %16, align 1, !tbaa !16
  %18 = load i32, ptr %4, align 8, !tbaa !5
  switch i8 %17, label %switch.edge [
    i8 48, label %19
    i8 116, label %21
    i8 114, label %23
    i8 110, label %25
    i8 92, label %27
    i8 39, label %29
    i8 34, label %31
    i8 120, label %33
    i8 13, label %84
    i8 10, label %84
    i8 0, label %84
  ]

19:                                               ; preds = %13
  %20 = add nsw i32 %18, 1
  store i32 %20, ptr %4, align 8, !tbaa !5
  br label %93

21:                                               ; preds = %13
  %22 = add nsw i32 %18, 1
  store i32 %22, ptr %4, align 8, !tbaa !5
  br label %93

23:                                               ; preds = %13
  %24 = add nsw i32 %18, 1
  store i32 %24, ptr %4, align 8, !tbaa !5
  br label %93

25:                                               ; preds = %13
  %26 = add nsw i32 %18, 1
  store i32 %26, ptr %4, align 8, !tbaa !5
  br label %93

27:                                               ; preds = %13
  %28 = add nsw i32 %18, 1
  store i32 %28, ptr %4, align 8, !tbaa !5
  br label %93

29:                                               ; preds = %13
  %30 = add nsw i32 %18, 1
  store i32 %30, ptr %4, align 8, !tbaa !5
  br label %93

31:                                               ; preds = %13
  %32 = add nsw i32 %18, 1
  store i32 %32, ptr %4, align 8, !tbaa !5
  br label %93

33:                                               ; preds = %13
  %34 = add nsw i32 %18, 1
  store i32 %34, ptr %4, align 8, !tbaa !5
  %35 = load i32, ptr %7, align 8, !tbaa !13
  %36 = icmp ult i32 %34, %35
  %.pre109 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  br i1 %36, label %._crit_edge, label %37

37:                                               ; preds = %33
  %38 = load ptr, ptr %.pre109, align 8, !tbaa !14
  tail call void %38(i32 noundef -3) #2
  %.pre = load ptr, ptr %0, align 8, !tbaa !15
  br label %._crit_edge

._crit_edge:                                      ; preds = %33, %37
  %39 = phi ptr [ %.pre, %37 ], [ %14, %33 ]
  %40 = zext i32 %34 to i64
  %41 = getelementptr inbounds i8, ptr %39, i64 %40
  %.081 = load i8, ptr %41, align 1, !tbaa !16
  %42 = tail call zeroext i8 @Parser__isHexDigit__(i8 noundef signext %.081)
  %.not94 = icmp eq i8 %42, 0
  br i1 %.not94, label %.thread104, label %43

43:                                               ; preds = %._crit_edge
  %44 = load i32, ptr %4, align 8, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %4, align 8, !tbaa !5
  %46 = load i32, ptr %7, align 8, !tbaa !13
  %47 = icmp ult i32 %45, %46
  br i1 %47, label %50, label %48

48:                                               ; preds = %43
  %49 = load ptr, ptr %.pre109, align 8, !tbaa !14
  tail call void %49(i32 noundef -3) #2
  br label %50

50:                                               ; preds = %43, %48
  %51 = load ptr, ptr %0, align 8, !tbaa !15
  %52 = zext i32 %45 to i64
  %53 = getelementptr inbounds i8, ptr %51, i64 %52
  %.081.1 = load i8, ptr %53, align 1, !tbaa !16
  %54 = tail call zeroext i8 @Parser__isHexDigit__(i8 noundef signext %.081.1)
  %.not94.1 = icmp eq i8 %54, 0
  br i1 %.not94.1, label %.thread104, label %55

55:                                               ; preds = %50
  %56 = load i32, ptr %4, align 8, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %4, align 8, !tbaa !5
  %58 = load i32, ptr %7, align 8, !tbaa !13
  %59 = icmp ult i32 %57, %58
  br i1 %59, label %62, label %60

60:                                               ; preds = %55
  %61 = load ptr, ptr %.pre109, align 8, !tbaa !14
  tail call void %61(i32 noundef -3) #2
  br label %62

62:                                               ; preds = %55, %60
  %63 = load i32, ptr %4, align 8, !tbaa !5
  %64 = add nsw i32 %63, -2
  %65 = load ptr, ptr %0, align 8
  %66 = load i32, ptr %7, align 8
  %67 = tail call { ptr, i32 } @string__slice__(ptr %65, i32 %66, i32 noundef %64, i32 noundef %63)
  %68 = extractvalue { ptr, i32 } %67, 0
  %69 = extractvalue { ptr, i32 } %67, 1
  %70 = tail call { i64, i8 } @long__tryParseHex__(ptr %68, i32 %69)
  %71 = extractvalue { i64, i8 } %70, 0
  %72 = extractvalue { i64, i8 } %70, 1
  %73 = tail call i64 @Maybe__unwrap__long____(i64 %71, i8 %72)
  %74 = trunc i64 %73 to i8
  br label %93

.thread104:                                       ; preds = %._crit_edge, %50
  %75 = getelementptr inbounds i8, ptr %0, i64 64
  %76 = load ptr, ptr %75, align 8, !tbaa !17
  %77 = getelementptr inbounds i8, ptr %0, i64 24
  %78 = load ptr, ptr %77, align 8, !tbaa !18
  %79 = load i32, ptr %4, align 8, !tbaa !5
  %80 = tail call i64 @IntRange__cons__(i32 noundef %5, i32 noundef %79)
  %81 = load ptr, ptr @mu_____string289, align 8
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string289, i64 8), align 8
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %2, ptr noundef %78, i64 %80, ptr %81, i32 %82)
  call void @List__add__Error____(ptr noundef %76, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %2)
  br label %93

switch.edge:                                      ; preds = %13
  %83 = add nsw i32 %18, 1
  br label %84

84:                                               ; preds = %13, %13, %13, %switch.edge
  %85 = phi i32 [ %83, %switch.edge ], [ %18, %13 ], [ %18, %13 ], [ %18, %13 ]
  %86 = getelementptr inbounds i8, ptr %0, i64 64
  %87 = load ptr, ptr %86, align 8, !tbaa !17
  %88 = getelementptr inbounds i8, ptr %0, i64 24
  %89 = load ptr, ptr %88, align 8, !tbaa !18
  %90 = tail call i64 @IntRange__cons__(i32 noundef %5, i32 noundef %85)
  %91 = load ptr, ptr @mu_____string289, align 8
  %92 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string289, i64 8), align 8
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %3, ptr noundef %89, i64 %90, ptr %91, i32 %92)
  call void @List__add__Error____(ptr noundef %87, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %3)
  br label %93

93:                                               ; preds = %62, %.thread104, %84, %31, %29, %27, %25, %23, %21, %19
  %.1 = phi i8 [ 0, %19 ], [ 9, %21 ], [ 13, %23 ], [ 10, %25 ], [ 92, %27 ], [ 39, %29 ], [ 34, %31 ], [ 92, %84 ], [ %74, %62 ], [ 92, %.thread104 ]
  ret i8 %.1
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @Parser__isHexDigit__(i8 noundef signext) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 16}
!6 = !{!"tag_____ParserState__", !7, i64 0, !11, i64 16, !8, i64 24, !8, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !8, i64 64, !12, i64 72, !11, i64 80, !11, i64 84, !8, i64 88, !11, i64 96, !8, i64 104, !8, i64 112, !8, i64 120}
!7 = !{!"", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"tag_____IntRange__", !11, i64 0, !11, i64 4}
!13 = !{!7, !11, i64 8}
!14 = !{!8, !8, i64 0}
!15 = !{!7, !8, i64 0}
!16 = !{!9, !9, i64 0}
!17 = !{!6, !8, i64 64}
!18 = !{!6, !8, i64 24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass