; LLVM IR from thepowersgang/mrustc :: src/parse/lex.ll (ZN5Lexer11parseEscapeEc)

; 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"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.Codepoint = type { i32 }
%"class.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }

@_ZTIN12CompileError7GenericE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.47 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [26 x i8], align 1
@_ZTIN12CompileError4TodoE = external constant ptr

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9CodepointeqEc(ptr noundef nonnull align 4 dereferenceable(4), i8 noundef signext) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Lexer6ungetcEv(ptr noundef nonnull align 8 dereferenceable(256)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9Codepoint7isspaceEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9CodepointneEc(ptr noundef nonnull align 4 dereferenceable(4), i8 noundef signext) #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(112)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12CompileError7GenericD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #2 align 2

declare void @_ZN12CompileError7GenericC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(176), ptr noundef) unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5Lexer11parseEscapeEc(ptr noundef nonnull align 8 dereferenceable(256) %0, i8 noundef signext %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca %struct.Codepoint, align 4
  %7 = alloca %struct.Codepoint, align 4
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i1, align 1
  %13 = alloca [3 x i8], align 1
  %14 = alloca %struct.Codepoint, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %17 = alloca i1, align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %struct.Codepoint, align 4
  %21 = alloca i8, align 1
  %22 = alloca %struct.Codepoint, align 4
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %25 = alloca i1, align 1
  %26 = alloca [2 x i8], align 1
  %27 = alloca %struct.Codepoint, align 4
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::allocator", align 1
  %30 = alloca i1, align 1
  %31 = alloca %struct.Codepoint, align 4
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %34 = alloca i1, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i8 %1, ptr %5, align 1, !tbaa !9
  %35 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %36 = call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %35)
  %37 = getelementptr inbounds %struct.Codepoint, ptr %6, i32 0, i32 0
  store i32 %36, ptr %37, align 4
  %38 = getelementptr inbounds %struct.Codepoint, ptr %6, i32 0, i32 0
  %39 = load i32, ptr %38, align 4, !tbaa !10
  switch i32 %39, label %233 [
    i32 120, label %40
    i32 117, label %123
    i32 48, label %208
    i32 92, label %209
    i32 39, label %210
    i32 34, label %211
    i32 114, label %212
    i32 110, label %213
    i32 116, label %214
    i32 13, label %215
    i32 10, label %215
  ]

40:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %41 = call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %35)
  %42 = getelementptr inbounds %struct.Codepoint, ptr %7, i32 0, i32 0
  store i32 %41, ptr %42, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %7, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  %43 = call noundef zeroext i1 @_ZNK9Codepoint8isxdigitEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %43, label %75, label %44

44:                                               ; preds = %40
  store i1 true, ptr %12, align 1
  %45 = call ptr @__cxa_allocate_exception(i64 40) #7
  call void @llvm.lifetime.start.p0(i64 376, ptr %9) #7
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %9)
          to label %46 unwind label %58

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA28_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %9, ptr noundef nonnull align 1 dereferenceable(28) @.str.47)
          to label %48 unwind label %62

48:                                               ; preds = %46
  %49 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEFRSt8ios_baseS7_EEOT_SA_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %47, ptr noundef nonnull @_ZSt3hexRSt8ios_base)
          to label %50 unwind label %62

50:                                               ; preds = %48
  %51 = getelementptr inbounds %struct.Codepoint, ptr %6, i32 0, i32 0
  %52 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEjEOT_S7_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %49, ptr noundef nonnull align 4 dereferenceable(4) %51)
          to label %53 unwind label %62

53:                                               ; preds = %50
  %54 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA17_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %52, ptr noundef nonnull align 1 dereferenceable(17) @.str.48)
          to label %55 unwind label %62

55:                                               ; preds = %53
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(112) %54)
          to label %56 unwind label %62

56:                                               ; preds = %55
  invoke void @_ZN12CompileError7GenericC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %45, ptr noundef nonnull align 8 dereferenceable(176) %35, ptr noundef %8)
          to label %57 unwind label %66

57:                                               ; preds = %56
  store i1 false, ptr %12, align 1
  invoke void @__cxa_throw(ptr %45, ptr @_ZTIN12CompileError7GenericE, ptr @_ZN12CompileError7GenericD2Ev) #8
          to label %267 unwind label %66

58:                                               ; preds = %44
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %10, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %11, align 4
  br label %71

62:                                               ; preds = %55, %53, %50, %48, %46
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %10, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %11, align 4
  br label %70

66:                                               ; preds = %57, %56
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %10, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %70

70:                                               ; preds = %66, %62
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %9) #7
  br label %71

71:                                               ; preds = %70, %58
  call void @llvm.lifetime.end.p0(i64 376, ptr %9) #7
  %72 = load i1, ptr %12, align 1
  br i1 %72, label %73, label %74

73:                                               ; preds = %71
  call void @__cxa_free_exception(ptr %45) #7
  br label %74

74:                                               ; preds = %73, %71
  br label %261

75:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 3, ptr %13) #7
  %76 = getelementptr inbounds %struct.Codepoint, ptr %6, i32 0, i32 0
  %77 = load i32, ptr %76, align 4, !tbaa !10
  %78 = trunc i32 %77 to i8
  store i8 %78, ptr %13, align 1, !tbaa !9
  %79 = getelementptr inbounds i8, ptr %13, i64 1
  store i8 0, ptr %79, align 1, !tbaa !9
  %80 = getelementptr inbounds i8, ptr %13, i64 2
  store i8 0, ptr %80, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %81 = call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %35)
  %82 = getelementptr inbounds %struct.Codepoint, ptr %14, i32 0, i32 0
  store i32 %81, ptr %82, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %14, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %83 = call noundef zeroext i1 @_ZNK9Codepoint8isxdigitEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %83, label %115, label %84

84:                                               ; preds = %75
  store i1 true, ptr %17, align 1
  %85 = call ptr @__cxa_allocate_exception(i64 40) #7
  call void @llvm.lifetime.start.p0(i64 376, ptr %16) #7
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %16)
          to label %86 unwind label %98

86:                                               ; preds = %84
  %87 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA28_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %16, ptr noundef nonnull align 1 dereferenceable(28) @.str.47)
          to label %88 unwind label %102

88:                                               ; preds = %86
  %89 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEFRSt8ios_baseS7_EEOT_SA_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %87, ptr noundef nonnull @_ZSt3hexRSt8ios_base)
          to label %90 unwind label %102

90:                                               ; preds = %88
  %91 = getelementptr inbounds %struct.Codepoint, ptr %6, i32 0, i32 0
  %92 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEjEOT_S7_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %89, ptr noundef nonnull align 4 dereferenceable(4) %91)
          to label %93 unwind label %102

93:                                               ; preds = %90
  %94 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA17_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %92, ptr noundef nonnull align 1 dereferenceable(17) @.str.48)
          to label %95 unwind label %102

95:                                               ; preds = %93
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(112) %94)
          to label %96 unwind label %102

96:                                               ; preds = %95
  invoke void @_ZN12CompileError7GenericC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %85, ptr noundef nonnull align 8 dereferenceable(176) %35, ptr noundef %15)
          to label %97 unwind label %106

97:                                               ; preds = %96
  store i1 false, ptr %17, align 1
  invoke void @__cxa_throw(ptr %85, ptr @_ZTIN12CompileError7GenericE, ptr @_ZN12CompileError7GenericD2Ev) #8
          to label %267 unwind label %106

98:                                               ; preds = %84
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %10, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %11, align 4
  br label %111

102:                                              ; preds = %95, %93, %90, %88, %86
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %10, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %11, align 4
  br label %110

106:                                              ; preds = %97, %96
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %10, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %110

110:                                              ; preds = %106, %102
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %16) #7
  br label %111

111:                                              ; preds = %110, %98
  call void @llvm.lifetime.end.p0(i64 376, ptr %16) #7
  %112 = load i1, ptr %17, align 1
  br i1 %112, label %113, label %114

113:                                              ; preds = %111
  call void @__cxa_free_exception(ptr %85) #7
  br label %114

114:                                              ; preds = %113, %111
  call void @llvm.lifetime.end.p0(i64 3, ptr %13) #7
  br label %261

115:                                              ; preds = %75
  %116 = getelementptr inbounds %struct.Codepoint, ptr %6, i32 0, i32 0
  %117 = load i32, ptr %116, align 4, !tbaa !10
  %118 = trunc i32 %117 to i8
  %119 = getelementptr inbounds [3 x i8], ptr %13, i64 0, i64 1
  store i8 %118, ptr %119, align 1, !tbaa !9
  %120 = getelementptr inbounds [3 x i8], ptr %13, i64 0, i64 0
  %121 = call i64 @strtol(ptr noundef %120, ptr noundef null, i32 noundef 16) #7
  %122 = trunc i64 %121 to i32
  store i32 %122, ptr %3, align 4
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 3, ptr %13) #7
  br label %259

123:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %124 = call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %35)
  %125 = getelementptr inbounds %struct.Codepoint, ptr %20, i32 0, i32 0
  store i32 %124, ptr %125, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %20, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  store i8 0, ptr %21, align 1, !tbaa !15
  %126 = call noundef zeroext i1 @_ZN9CodepointeqEc(ptr noundef nonnull align 4 dereferenceable(4) %6, i8 noundef signext 123)
  br i1 %126, label %127, label %130

127:                                              ; preds = %123
  store i8 1, ptr %21, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %128 = call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %35)
  %129 = getelementptr inbounds %struct.Codepoint, ptr %22, i32 0, i32 0
  store i32 %128, ptr %129, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %22, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %130

130:                                              ; preds = %127, %123
  %131 = call noundef zeroext i1 @_ZNK9Codepoint8isxdigitEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %131, label %163, label %132

132:                                              ; preds = %130
  store i1 true, ptr %25, align 1
  %133 = call ptr @__cxa_allocate_exception(i64 40) #7
  call void @llvm.lifetime.start.p0(i64 376, ptr %24) #7
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %24)
          to label %134 unwind label %146

134:                                              ; preds = %132
  %135 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA28_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %24, ptr noundef nonnull align 1 dereferenceable(28) @.str.47)
          to label %136 unwind label %150

136:                                              ; preds = %134
  %137 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEFRSt8ios_baseS7_EEOT_SA_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %135, ptr noundef nonnull @_ZSt3hexRSt8ios_base)
          to label %138 unwind label %150

138:                                              ; preds = %136
  %139 = getelementptr inbounds %struct.Codepoint, ptr %6, i32 0, i32 0
  %140 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEjEOT_S7_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %137, ptr noundef nonnull align 4 dereferenceable(4) %139)
          to label %141 unwind label %150

141:                                              ; preds = %138
  %142 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA17_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %140, ptr noundef nonnull align 1 dereferenceable(17) @.str.48)
          to label %143 unwind label %150

143:                                              ; preds = %141
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 8 dereferenceable(112) %142)
          to label %144 unwind label %150

144:                                              ; preds = %143
  invoke void @_ZN12CompileError7GenericC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %133, ptr noundef nonnull align 8 dereferenceable(176) %35, ptr noundef %23)
          to label %145 unwind label %154

145:                                              ; preds = %144
  store i1 false, ptr %25, align 1
  invoke void @__cxa_throw(ptr %133, ptr @_ZTIN12CompileError7GenericE, ptr @_ZN12CompileError7GenericD2Ev) #8
          to label %267 unwind label %154

146:                                              ; preds = %132
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %10, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %11, align 4
  br label %159

150:                                              ; preds = %143, %141, %138, %136, %134
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %10, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %11, align 4
  br label %158

154:                                              ; preds = %145, %144
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %10, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  br label %158

158:                                              ; preds = %154, %150
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %24) #7
  br label %159

159:                                              ; preds = %158, %146
  call void @llvm.lifetime.end.p0(i64 376, ptr %24) #7
  %160 = load i1, ptr %25, align 1
  br i1 %160, label %161, label %162

161:                                              ; preds = %159
  call void @__cxa_free_exception(ptr %133) #7
  br label %162

162:                                              ; preds = %161, %159
  br label %207

163:                                              ; preds = %130
  br label %164

164:                                              ; preds = %166, %163
  %165 = call noundef zeroext i1 @_ZNK9Codepoint8isxdigitEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %165, label %166, label %181

166:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 2, ptr %26) #7
  %167 = getelementptr inbounds %struct.Codepoint, ptr %6, i32 0, i32 0
  %168 = load i32, ptr %167, align 4, !tbaa !10
  %169 = trunc i32 %168 to i8
  store i8 %169, ptr %26, align 1, !tbaa !9
  %170 = getelementptr inbounds i8, ptr %26, i64 1
  store i8 0, ptr %170, align 1, !tbaa !9
  %171 = load i32, ptr %19, align 4, !tbaa !14
  %172 = mul i32 %171, 16
  store i32 %172, ptr %19, align 4, !tbaa !14
  %173 = getelementptr inbounds [2 x i8], ptr %26, i64 0, i64 0
  %174 = call i64 @strtol(ptr noundef %173, ptr noundef null, i32 noundef 16) #7
  %175 = load i32, ptr %19, align 4, !tbaa !14
  %176 = zext i32 %175 to i64
  %177 = add nsw i64 %176, %174
  %178 = trunc i64 %177 to i32
  store i32 %178, ptr %19, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %179 = call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %35)
  %180 = getelementptr inbounds %struct.Codepoint, ptr %27, i32 0, i32 0
  store i32 %179, ptr %180, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %27, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %26) #7
  br label %164, !llvm.loop !17

181:                                              ; preds = %164
  %182 = load i8, ptr %21, align 1, !tbaa !15, !range !19, !noundef !20
  %183 = trunc i8 %182 to i1
  br i1 %183, label %185, label %184

184:                                              ; preds = %181
  call void @_ZN5Lexer6ungetcEv(ptr noundef nonnull align 8 dereferenceable(256) %35)
  br label %205

185:                                              ; preds = %181
  %186 = call noundef zeroext i1 @_ZN9CodepointneEc(ptr noundef nonnull align 4 dereferenceable(4) %6, i8 noundef signext 125)
  br i1 %186, label %187, label %203

187:                                              ; preds = %185
  store i1 true, ptr %30, align 1
  %188 = call ptr @__cxa_allocate_exception(i64 40) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef @.str.49, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %189 unwind label %191

189:                                              ; preds = %187
  invoke void @_ZN12CompileError7GenericC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %188, ptr noundef nonnull align 8 dereferenceable(176) %35, ptr noundef %28)
          to label %190 unwind label %195

190:                                              ; preds = %189
  store i1 false, ptr %30, align 1
  invoke void @__cxa_throw(ptr %188, ptr @_ZTIN12CompileError7GenericE, ptr @_ZN12CompileError7GenericD2Ev) #8
          to label %267 unwind label %195

191:                                              ; preds = %187
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %10, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %11, align 4
  br label %199

195:                                              ; preds = %190, %189
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %10, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #7
  br label %199

199:                                              ; preds = %195, %191
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #7
  %200 = load i1, ptr %30, align 1
  br i1 %200, label %201, label %202

201:                                              ; preds = %199
  call void @__cxa_free_exception(ptr %188) #7
  br label %202

202:                                              ; preds = %201, %199
  br label %207

203:                                              ; preds = %185
  br label %204

204:                                              ; preds = %203
  br label %205

205:                                              ; preds = %204, %184
  %206 = load i32, ptr %19, align 4, !tbaa !14
  store i32 %206, ptr %3, align 4
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %259

207:                                              ; preds = %202, %162
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %261

208:                                              ; preds = %2
  store i32 0, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %259

209:                                              ; preds = %2
  store i32 92, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %259

210:                                              ; preds = %2
  store i32 39, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %259

211:                                              ; preds = %2
  store i32 34, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %259

212:                                              ; preds = %2
  store i32 13, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %259

213:                                              ; preds = %2
  store i32 10, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %259

214:                                              ; preds = %2
  store i32 9, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %259

215:                                              ; preds = %2, %2
  br label %216

216:                                              ; preds = %218, %215
  %217 = call noundef zeroext i1 @_ZNK9Codepoint7isspaceEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  br i1 %217, label %218, label %221

218:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %219 = call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %35)
  %220 = getelementptr inbounds %struct.Codepoint, ptr %31, i32 0, i32 0
  store i32 %219, ptr %220, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %31, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %216, !llvm.loop !21

221:                                              ; preds = %216
  %222 = call noundef zeroext i1 @_ZN9CodepointeqEc(ptr noundef nonnull align 4 dereferenceable(4) %6, i8 noundef signext 92)
  br i1 %222, label %223, label %226

223:                                              ; preds = %221
  %224 = load i8, ptr %5, align 1, !tbaa !9
  %225 = call noundef i32 @_ZN5Lexer11parseEscapeEc(ptr noundef nonnull align 8 dereferenceable(256) %35, i8 noundef signext %224)
  store i32 %225, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %259

226:                                              ; preds = %221
  %227 = load i8, ptr %5, align 1, !tbaa !9
  %228 = call noundef zeroext i1 @_ZN9CodepointeqEc(ptr noundef nonnull align 4 dereferenceable(4) %6, i8 noundef signext %227)
  br i1 %228, label %229, label %230

229:                                              ; preds = %226
  call void @_ZN5Lexer6ungetcEv(ptr noundef nonnull align 8 dereferenceable(256) %35)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %259

230:                                              ; preds = %226
  %231 = getelementptr inbounds %struct.Codepoint, ptr %6, i32 0, i32 0
  %232 = load i32, ptr %231, align 4, !tbaa !10
  store i32 %232, ptr %3, align 4
  store i32 1, ptr %18, align 4
  br label %259

233:                                              ; preds = %2
  store i1 true, ptr %34, align 1
  %234 = call ptr @__cxa_allocate_exception(i64 40) #7
  call void @llvm.lifetime.start.p0(i64 376, ptr %33) #7
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %33)
          to label %235 unwind label %242

235:                                              ; preds = %233
  %236 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA26_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %33, ptr noundef nonnull align 1 dereferenceable(26) @.str.50)
          to label %237 unwind label %246

237:                                              ; preds = %235
  %238 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE9CodepointEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %236, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %239 unwind label %246

239:                                              ; preds = %237
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %32, ptr noundef nonnull align 8 dereferenceable(112) %238)
          to label %240 unwind label %246

240:                                              ; preds = %239
  invoke void @_ZN12CompileError4TodoC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %234, ptr noundef nonnull align 8 dereferenceable(176) %35, ptr noundef %32)
          to label %241 unwind label %250

241:                                              ; preds = %240
  store i1 false, ptr %34, align 1
  invoke void @__cxa_throw(ptr %234, ptr @_ZTIN12CompileError4TodoE, ptr @_ZN12CompileError4TodoD1Ev) #8
          to label %267 unwind label %250

242:                                              ; preds = %233
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %10, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %11, align 4
  br label %255

246:                                              ; preds = %239, %237, %235
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %10, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %11, align 4
  br label %254

250:                                              ; preds = %241, %240
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %10, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #7
  br label %254

254:                                              ; preds = %250, %246
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %33) #7
  br label %255

255:                                              ; preds = %254, %242
  call void @llvm.lifetime.end.p0(i64 376, ptr %33) #7
  %256 = load i1, ptr %34, align 1
  br i1 %256, label %257, label %258

257:                                              ; preds = %255
  call void @__cxa_free_exception(ptr %234) #7
  br label %258

258:                                              ; preds = %257, %255
  br label %261

259:                                              ; preds = %230, %229, %223, %214, %213, %212, %211, %210, %209, %208, %205, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %260 = load i32, ptr %3, align 4
  ret i32 %260

261:                                              ; preds = %258, %207, %114, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %262

262:                                              ; preds = %261
  %263 = load ptr, ptr %10, align 8
  %264 = load i32, ptr %11, align 4
  %265 = insertvalue { ptr, i32 } poison, ptr %263, 0
  %266 = insertvalue { ptr, i32 } %265, i32 %264, 1
  resume { ptr, i32 } %266

267:                                              ; preds = %241, %190, %145, %97, %57
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9Codepoint8isxdigitEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE9CodepointEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA17_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 1 dereferenceable(17)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEjEOT_S7_RKT0_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEFRSt8ios_baseS7_EEOT_SA_RKT0_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA28_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 1 dereferenceable(28)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3hexRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #5

; Function Attrs: nounwind
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA26_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 1 dereferenceable(26)) #5

declare void @_ZN12CompileError4TodoC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(176), ptr noundef) unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN12CompileError4TodoD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { mustprogress 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 #4 = { "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 #5 = { inlinehint mustprogress 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 #6 = { nounwind "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 #7 = { nounwind }
attributes #8 = { noreturn }

!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++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 0}
!11 = !{!"_ZTS9Codepoint", !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 4, !14}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !18}


; 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"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.Codepoint = type { i32 }
%"class.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }

@_ZTIN12CompileError7GenericE = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.47 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [26 x i8], align 1
@_ZTIN12CompileError4TodoE = external constant ptr

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9CodepointeqEc(ptr noundef nonnull align 4 dereferenceable(4), i8 noundef signext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5Lexer6ungetcEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9Codepoint7isspaceEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9CodepointneEc(ptr noundef nonnull align 4 dereferenceable(4), i8 noundef signext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12CompileError7GenericD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #1 align 2

declare void @_ZN12CompileError7GenericC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(176), ptr noundef) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5Lexer11parseEscapeEc(ptr noundef nonnull align 8 dereferenceable(256) %0, i8 noundef signext %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.Codepoint, align 4
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %6 = alloca [3 x i8], align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  %11 = alloca [2 x i8], align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_ostringstream", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %16 = tail call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  store i32 %16, ptr %3, align 4
  switch i32 %16, label %134 [
    i32 120, label %17
    i32 117, label %69
    i32 48, label %148
    i32 92, label %116
    i32 39, label %117
    i32 34, label %118
    i32 114, label %119
    i32 110, label %120
    i32 116, label %121
    i32 13, label %122
    i32 10, label %122
  ]

17:                                               ; preds = %2
  %18 = tail call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  store i32 %18, ptr %3, align 4, !tbaa !5
  %19 = call noundef zeroext i1 @_ZNK9Codepoint8isxdigitEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %19, label %38, label %20

20:                                               ; preds = %17
  %21 = call ptr @__cxa_allocate_exception(i64 40) #7
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %5) #7
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %5)
          to label %22 unwind label %.thread

22:                                               ; preds = %20
  %23 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA28_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %5, ptr noundef nonnull align 1 dereferenceable(28) @.str.47)
          to label %24 unwind label %.thread65

24:                                               ; preds = %22
  %25 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEFRSt8ios_baseS7_EEOT_SA_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %23, ptr noundef nonnull @_ZSt3hexRSt8ios_base)
          to label %26 unwind label %.thread65

26:                                               ; preds = %24
  %27 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEjEOT_S7_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %25, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %28 unwind label %.thread65

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA17_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %27, ptr noundef nonnull align 1 dereferenceable(17) @.str.48)
          to label %30 unwind label %.thread65

30:                                               ; preds = %28
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(112) %29)
          to label %31 unwind label %.thread65

31:                                               ; preds = %30
  invoke void @_ZN12CompileError7GenericC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %21, ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef nonnull %4)
          to label %32 unwind label %35

32:                                               ; preds = %31
  invoke void @__cxa_throw(ptr nonnull %21, ptr nonnull @_ZTIN12CompileError7GenericE, ptr nonnull @_ZN12CompileError7GenericD2Ev) #8
          to label %150 unwind label %35

.thread:                                          ; preds = %20
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %5) #7
  br label %37

.thread65:                                        ; preds = %22, %24, %26, %28, %30
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %5) #7
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %5) #7
  br label %37

35:                                               ; preds = %31, %32
  %.040 = phi i1 [ false, %32 ], [ true, %31 ]
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %5) #7
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %5) #7
  br i1 %.040, label %37, label %149

37:                                               ; preds = %.thread65, %.thread, %35
  %.pn52.pn64 = phi { ptr, i32 } [ %33, %.thread ], [ %36, %35 ], [ %34, %.thread65 ]
  call void @__cxa_free_exception(ptr %21) #7
  br label %149

38:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %6) #7
  %39 = load i32, ptr %3, align 4, !tbaa !9
  %40 = trunc i32 %39 to i8
  store i8 %40, ptr %6, align 1, !tbaa !11
  %41 = getelementptr inbounds i8, ptr %6, i64 2
  store i8 0, ptr %41, align 1, !tbaa !11
  %42 = call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  store i32 %42, ptr %3, align 4, !tbaa !5
  %43 = call noundef zeroext i1 @_ZNK9Codepoint8isxdigitEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %43, label %63, label %44

44:                                               ; preds = %38
  %45 = call ptr @__cxa_allocate_exception(i64 40) #7
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %8) #7
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %8)
          to label %46 unwind label %.thread68

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA28_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %8, ptr noundef nonnull align 1 dereferenceable(28) @.str.47)
          to label %48 unwind label %.thread73

48:                                               ; preds = %46
  %49 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEFRSt8ios_baseS7_EEOT_SA_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %47, ptr noundef nonnull @_ZSt3hexRSt8ios_base)
          to label %50 unwind label %.thread73

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEjEOT_S7_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %49, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %52 unwind label %.thread73

52:                                               ; preds = %50
  %53 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA17_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %51, ptr noundef nonnull align 1 dereferenceable(17) @.str.48)
          to label %54 unwind label %.thread73

54:                                               ; preds = %52
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(112) %53)
          to label %55 unwind label %.thread73

55:                                               ; preds = %54
  invoke void @_ZN12CompileError7GenericC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %45, ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef nonnull %7)
          to label %56 unwind label %59

56:                                               ; preds = %55
  invoke void @__cxa_throw(ptr nonnull %45, ptr nonnull @_ZTIN12CompileError7GenericE, ptr nonnull @_ZN12CompileError7GenericD2Ev) #8
          to label %150 unwind label %59

.thread68:                                        ; preds = %44
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %8) #7
  br label %61

.thread73:                                        ; preds = %46, %48, %50, %52, %54
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %8) #7
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %8) #7
  br label %61

59:                                               ; preds = %55, %56
  %.044 = phi i1 [ false, %56 ], [ true, %55 ]
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %8) #7
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %8) #7
  br i1 %.044, label %61, label %62

61:                                               ; preds = %.thread73, %.thread68, %59
  %.pn55.pn72 = phi { ptr, i32 } [ %57, %.thread68 ], [ %60, %59 ], [ %58, %.thread73 ]
  call void @__cxa_free_exception(ptr %45) #7
  br label %62

62:                                               ; preds = %61, %59
  %.pn55.pn71 = phi { ptr, i32 } [ %.pn55.pn72, %61 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %6) #7
  br label %149

63:                                               ; preds = %38
  %64 = getelementptr inbounds i8, ptr %6, i64 1
  %65 = load i32, ptr %3, align 4, !tbaa !9
  %66 = trunc i32 %65 to i8
  store i8 %66, ptr %64, align 1, !tbaa !11
  %67 = call i64 @strtol(ptr nocapture noundef nonnull %6, ptr noundef null, i32 noundef 16) #7
  %68 = trunc i64 %67 to i32
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %6) #7
  br label %148

69:                                               ; preds = %2
  %70 = tail call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  store i32 %70, ptr %3, align 4, !tbaa !5
  %71 = call noundef zeroext i1 @_ZN9CodepointeqEc(ptr noundef nonnull align 4 dereferenceable(4) %3, i8 noundef signext 123)
  br i1 %71, label %72, label %74

72:                                               ; preds = %69
  %73 = call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  store i32 %73, ptr %3, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %72, %69
  %75 = call noundef zeroext i1 @_ZNK9Codepoint8isxdigitEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %75, label %.preheader, label %78

.preheader:                                       ; preds = %74
  %76 = call noundef zeroext i1 @_ZNK9Codepoint8isxdigitEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %76, label %.lr.ph95, label %._crit_edge96

.lr.ph95:                                         ; preds = %.preheader
  %77 = getelementptr inbounds i8, ptr %11, i64 1
  br label %96

78:                                               ; preds = %74
  %79 = call ptr @__cxa_allocate_exception(i64 40) #7
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %10) #7
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %10)
          to label %80 unwind label %.thread76

80:                                               ; preds = %78
  %81 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA28_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %10, ptr noundef nonnull align 1 dereferenceable(28) @.str.47)
          to label %82 unwind label %.thread80

82:                                               ; preds = %80
  %83 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEFRSt8ios_baseS7_EEOT_SA_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %81, ptr noundef nonnull @_ZSt3hexRSt8ios_base)
          to label %84 unwind label %.thread80

84:                                               ; preds = %82
  %85 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEjEOT_S7_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %83, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %86 unwind label %.thread80

86:                                               ; preds = %84
  %87 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA17_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %85, ptr noundef nonnull align 1 dereferenceable(17) @.str.48)
          to label %88 unwind label %.thread80

88:                                               ; preds = %86
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(112) %87)
          to label %89 unwind label %.thread80

89:                                               ; preds = %88
  invoke void @_ZN12CompileError7GenericC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %79, ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef nonnull %9)
          to label %90 unwind label %93

90:                                               ; preds = %89
  invoke void @__cxa_throw(ptr nonnull %79, ptr nonnull @_ZTIN12CompileError7GenericE, ptr nonnull @_ZN12CompileError7GenericD2Ev) #8
          to label %150 unwind label %93

.thread76:                                        ; preds = %78
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %10) #7
  br label %95

.thread80:                                        ; preds = %80, %82, %84, %86, %88
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %10) #7
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %10) #7
  br label %95

93:                                               ; preds = %89, %90
  %.025 = phi i1 [ false, %90 ], [ true, %89 ]
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %10) #7
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %10) #7
  br i1 %.025, label %95, label %149

95:                                               ; preds = %.thread80, %.thread76, %93
  %.pn.pn79 = phi { ptr, i32 } [ %91, %.thread76 ], [ %94, %93 ], [ %92, %.thread80 ]
  call void @__cxa_free_exception(ptr %79) #7
  br label %149

96:                                               ; preds = %.lr.ph95, %96
  %.04394 = phi i32 [ 0, %.lr.ph95 ], [ %102, %96 ]
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %11) #7
  %97 = load i32, ptr %3, align 4, !tbaa !9
  %98 = trunc i32 %97 to i8
  store i8 %98, ptr %11, align 1, !tbaa !11
  store i8 0, ptr %77, align 1, !tbaa !11
  %99 = shl i32 %.04394, 4
  %100 = call i64 @strtol(ptr nocapture noundef nonnull %11, ptr noundef null, i32 noundef 16) #7
  %101 = trunc i64 %100 to i32
  %102 = add i32 %99, %101
  %103 = call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  store i32 %103, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %11) #7
  %104 = call noundef zeroext i1 @_ZNK9Codepoint8isxdigitEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %104, label %96, label %._crit_edge96, !llvm.loop !12

._crit_edge96:                                    ; preds = %96, %.preheader
  %.043.lcssa = phi i32 [ 0, %.preheader ], [ %102, %96 ]
  br i1 %71, label %106, label %105

105:                                              ; preds = %._crit_edge96
  call void @_ZN5Lexer6ungetcEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  br label %148

106:                                              ; preds = %._crit_edge96
  %107 = call noundef zeroext i1 @_ZN9CodepointneEc(ptr noundef nonnull align 4 dereferenceable(4) %3, i8 noundef signext 125)
  br i1 %107, label %108, label %148

108:                                              ; preds = %106
  %109 = call ptr @__cxa_allocate_exception(i64 40) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.49, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %110 unwind label %.thread83

110:                                              ; preds = %108
  invoke void @_ZN12CompileError7GenericC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %109, ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef nonnull %12)
          to label %111 unwind label %113

111:                                              ; preds = %110
  invoke void @__cxa_throw(ptr nonnull %109, ptr nonnull @_ZTIN12CompileError7GenericE, ptr nonnull @_ZN12CompileError7GenericD2Ev) #8
          to label %150 unwind label %113

.thread83:                                        ; preds = %108
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  br label %115

113:                                              ; preds = %110, %111
  %.020 = phi i1 [ false, %111 ], [ true, %110 ]
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  br i1 %.020, label %115, label %149

115:                                              ; preds = %.thread83, %113
  %.pn4986 = phi { ptr, i32 } [ %112, %.thread83 ], [ %114, %113 ]
  call void @__cxa_free_exception(ptr %109) #7
  br label %149

116:                                              ; preds = %2
  br label %148

117:                                              ; preds = %2
  br label %148

118:                                              ; preds = %2
  br label %148

119:                                              ; preds = %2
  br label %148

120:                                              ; preds = %2
  br label %148

121:                                              ; preds = %2
  br label %148

122:                                              ; preds = %2, %2
  %123 = call noundef zeroext i1 @_ZNK9Codepoint7isspaceEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %123, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %122, %.lr.ph
  %124 = call i32 @_ZN5Lexer4getcEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  store i32 %124, ptr %3, align 4, !tbaa !5
  %125 = call noundef zeroext i1 @_ZNK9Codepoint7isspaceEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  br i1 %125, label %.lr.ph, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph, %122
  %126 = call noundef zeroext i1 @_ZN9CodepointeqEc(ptr noundef nonnull align 4 dereferenceable(4) %3, i8 noundef signext 92)
  br i1 %126, label %127, label %129

127:                                              ; preds = %._crit_edge
  %128 = call noundef i32 @_ZN5Lexer11parseEscapeEc(ptr noundef nonnull align 8 dereferenceable(256) %0, i8 noundef signext %1)
  br label %148

129:                                              ; preds = %._crit_edge
  %130 = call noundef zeroext i1 @_ZN9CodepointeqEc(ptr noundef nonnull align 4 dereferenceable(4) %3, i8 noundef signext %1)
  br i1 %130, label %131, label %132

131:                                              ; preds = %129
  call void @_ZN5Lexer6ungetcEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  br label %148

132:                                              ; preds = %129
  %133 = load i32, ptr %3, align 4, !tbaa !9
  br label %148

134:                                              ; preds = %2
  %135 = tail call ptr @__cxa_allocate_exception(i64 40) #7
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %15) #7
  invoke void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %15)
          to label %136 unwind label %.thread87

136:                                              ; preds = %134
  %137 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA26_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %15, ptr noundef nonnull align 1 dereferenceable(26) @.str.50)
          to label %138 unwind label %.thread91

138:                                              ; preds = %136
  %139 = invoke noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE9CodepointEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112) %137, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %140 unwind label %.thread91

140:                                              ; preds = %138
  invoke void @_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(112) %139)
          to label %141 unwind label %.thread91

141:                                              ; preds = %140
  invoke void @_ZN12CompileError4TodoC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %135, ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef nonnull %14)
          to label %142 unwind label %145

142:                                              ; preds = %141
  invoke void @__cxa_throw(ptr nonnull %135, ptr nonnull @_ZTIN12CompileError4TodoE, ptr nonnull @_ZN12CompileError4TodoD1Ev) #8
          to label %150 unwind label %145

.thread87:                                        ; preds = %134
  %143 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %15) #7
  br label %147

.thread91:                                        ; preds = %136, %138, %140
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %15) #7
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %15) #7
  br label %147

145:                                              ; preds = %141, %142
  %.0 = phi i1 [ false, %142 ], [ true, %141 ]
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(112) %15) #7
  call void @llvm.lifetime.end.p0(i64 376, ptr nonnull %15) #7
  br i1 %.0, label %147, label %149

147:                                              ; preds = %.thread91, %.thread87, %145
  %.pn58.pn90 = phi { ptr, i32 } [ %143, %.thread87 ], [ %146, %145 ], [ %144, %.thread91 ]
  call void @__cxa_free_exception(ptr %135) #7
  br label %149

148:                                              ; preds = %2, %105, %106, %132, %131, %127, %121, %120, %119, %118, %117, %116, %63
  %.019 = phi i32 [ %128, %127 ], [ -1, %131 ], [ %133, %132 ], [ 9, %121 ], [ 10, %120 ], [ 13, %119 ], [ %16, %118 ], [ %16, %117 ], [ %16, %116 ], [ %68, %63 ], [ %.043.lcssa, %106 ], [ %.043.lcssa, %105 ], [ 0, %2 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  ret i32 %.019

149:                                              ; preds = %95, %93, %115, %113, %145, %147, %35, %37, %62
  %.pn58.pn.pn = phi { ptr, i32 } [ %.pn58.pn90, %147 ], [ %146, %145 ], [ %.pn55.pn71, %62 ], [ %.pn52.pn64, %37 ], [ %36, %35 ], [ %.pn4986, %115 ], [ %114, %113 ], [ %.pn.pn79, %95 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn58.pn.pn

150:                                              ; preds = %142, %111, %90, %56, %32
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9Codepoint8isxdigitEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE9CodepointEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA17_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 1 dereferenceable(17)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEjEOT_S7_RKT0_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEFRSt8ios_baseS7_EEOT_SA_RKT0_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA28_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 1 dereferenceable(28)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(216) ptr @_ZSt3hexRSt8ios_base(ptr noundef nonnull align 8 dereferenceable(216)) #4

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(112) ptr @_ZStlsINSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEEA26_cEOT_S8_RKT0_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 1 dereferenceable(26)) local_unnamed_addr #4

declare void @_ZN12CompileError4TodoC1ERK11TokenStreamNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(176), ptr noundef) unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN12CompileError4TodoD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { mustprogress 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 = { "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 #4 = { inlinehint mustprogress 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 #5 = { mustprogress nofree nounwind willreturn "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 #6 = { nounwind "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 #7 = { nounwind }
attributes #8 = { noreturn }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS9Codepoint", !6, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass