; LLVM IR from thepowersgang/mrustc :: tools/standalone_miri/lex.ll (ZN5Lexer12parse_stringB5cxx11Ev)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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::locale" = type { ptr }
%"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] }
%class.Lexer = type { %"class.std::__cxx11::basic_string", i32, %"class.std::basic_ifstream", %struct.Token, i8, %struct.Token }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.0 }
%union.anon.0 = type { i32 }
%struct.Token = type { i32, %"class.std::__cxx11::basic_string", %"union.Token::Numbers" }
%"union.Token::Numbers" = type { %class.U128 }
%class.U128 = type { i64, i64 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTIPKc = external constant ptr
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [84 x i8], align 1
@__PRETTY_FUNCTION__._ZN5Lexer12parse_stringB5cxx11Ev = external hidden unnamed_addr constant [36 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK5Lexer(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(680)) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

declare i32 @__gxx_personality_v0(...)

; 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.start.p0(i64 immarg, ptr nocapture) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #0

declare noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Lexer12parse_stringB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(680) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca [3 x i8], align 1
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  store i1 false, ptr %5, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #8
  br label %12

12:                                               ; preds = %267, %2
  %13 = getelementptr inbounds %class.Lexer, ptr %11, i32 0, i32 2
  %14 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %15 unwind label %29

15:                                               ; preds = %12
  %16 = trunc i32 %14 to i8
  store i8 %16, ptr %6, align 1, !tbaa !9
  %17 = sext i8 %16 to i32
  %18 = icmp ne i32 %17, 34
  br i1 %18, label %19, label %268

19:                                               ; preds = %15
  %20 = load i8, ptr %6, align 1, !tbaa !9
  %21 = sext i8 %20 to i32
  %22 = icmp eq i32 %21, 92
  br i1 %22, label %23, label %264

23:                                               ; preds = %19
  %24 = getelementptr inbounds %class.Lexer, ptr %11, i32 0, i32 2
  %25 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %26 unwind label %29

26:                                               ; preds = %23
  %27 = trunc i32 %25 to i8
  store i8 %27, ptr %6, align 1, !tbaa !9
  %28 = sext i8 %27 to i32
  switch i32 %28, label %250 [
    i32 48, label %33
    i32 110, label %35
    i32 120, label %37
    i32 117, label %56
    i32 34, label %246
    i32 92, label %248
  ]

29:                                               ; preds = %264, %261, %259, %257, %254, %252, %250, %248, %246, %77, %75, %73, %71, %68, %66, %64, %56, %35, %33, %23, %12
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %7, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %8, align 4
  br label %270

33:                                               ; preds = %26
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext 0)
          to label %34 unwind label %29

34:                                               ; preds = %33
  br label %263

35:                                               ; preds = %26
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext 10)
          to label %36 unwind label %29

36:                                               ; preds = %35
  br label %263

37:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 3, ptr %9) #8
  %38 = getelementptr inbounds %class.Lexer, ptr %11, i32 0, i32 2
  %39 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %40 unwind label %52

40:                                               ; preds = %37
  %41 = trunc i32 %39 to i8
  store i8 %41, ptr %9, align 1, !tbaa !9
  %42 = getelementptr inbounds i8, ptr %9, i64 1
  %43 = getelementptr inbounds %class.Lexer, ptr %11, i32 0, i32 2
  %44 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %43)
          to label %45 unwind label %52

45:                                               ; preds = %40
  %46 = trunc i32 %44 to i8
  store i8 %46, ptr %42, align 1, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %9, i64 2
  store i8 0, ptr %47, align 1, !tbaa !9
  %48 = getelementptr inbounds [3 x i8], ptr %9, i64 0, i64 0
  %49 = call i64 @strtol(ptr noundef %48, ptr noundef null, i32 noundef 16) #8
  %50 = trunc i64 %49 to i8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %50)
          to label %51 unwind label %52

51:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 3, ptr %9) #8
  br label %263

52:                                               ; preds = %45, %40, %37
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %7, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 3, ptr %9) #8
  br label %270

56:                                               ; preds = %26
  %57 = getelementptr inbounds %class.Lexer, ptr %11, i32 0, i32 2
  %58 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %57)
          to label %59 unwind label %29

59:                                               ; preds = %56
  %60 = trunc i32 %58 to i8
  store i8 %60, ptr %6, align 1, !tbaa !9
  %61 = load i8, ptr %6, align 1, !tbaa !9
  %62 = sext i8 %61 to i32
  %63 = icmp ne i32 %62, 123
  br i1 %63, label %64, label %77

64:                                               ; preds = %59
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK5Lexer(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull align 8 dereferenceable(680) %11)
          to label %66 unwind label %29

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @.str.51)
          to label %68 unwind label %29

68:                                               ; preds = %66
  %69 = load i8, ptr %6, align 1, !tbaa !9
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %67, i8 noundef signext %69)
          to label %71 unwind label %29

71:                                               ; preds = %68
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef @.str.12)
          to label %73 unwind label %29

73:                                               ; preds = %71
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %75 unwind label %29

75:                                               ; preds = %73
  %76 = call ptr @__cxa_allocate_exception(i64 8) #8
  store ptr @.str.1, ptr %76, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr %76, ptr @_ZTIPKc, ptr null) #9
          to label %278 unwind label %29

77:                                               ; preds = %59
  %78 = getelementptr inbounds %class.Lexer, ptr %11, i32 0, i32 2
  %79 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %78)
          to label %80 unwind label %29

80:                                               ; preds = %77
  %81 = trunc i32 %79 to i8
  store i8 %81, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !10
  br label %82

82:                                               ; preds = %147, %80
  %83 = load i8, ptr %6, align 1, !tbaa !9
  %84 = sext i8 %83 to i32
  %85 = call i32 @isxdigit(i32 noundef %84) #10
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %104, label %87

87:                                               ; preds = %82
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK5Lexer(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull align 8 dereferenceable(680) %11)
          to label %89 unwind label %100

89:                                               ; preds = %87
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef @.str.51)
          to label %91 unwind label %100

91:                                               ; preds = %89
  %92 = load i8, ptr %6, align 1, !tbaa !9
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %90, i8 noundef signext %92)
          to label %94 unwind label %100

94:                                               ; preds = %91
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef @.str.12)
          to label %96 unwind label %100

96:                                               ; preds = %94
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %98 unwind label %100

98:                                               ; preds = %96
  %99 = call ptr @__cxa_allocate_exception(i64 8) #8
  store ptr @.str.1, ptr %99, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr %99, ptr @_ZTIPKc, ptr null) #9
          to label %278 unwind label %100

100:                                              ; preds = %240, %232, %225, %218, %211, %200, %193, %186, %175, %168, %161, %142, %138, %98, %96, %94, %91, %89, %87
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %7, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %270

104:                                              ; preds = %82
  %105 = load i32, ptr %10, align 4, !tbaa !10
  %106 = mul i32 %105, 16
  store i32 %106, ptr %10, align 4, !tbaa !10
  %107 = load i8, ptr %6, align 1, !tbaa !9
  %108 = sext i8 %107 to i32
  %109 = icmp sle i32 %108, 57
  br i1 %109, label %110, label %116

110:                                              ; preds = %104
  %111 = load i8, ptr %6, align 1, !tbaa !9
  %112 = sext i8 %111 to i32
  %113 = sub nsw i32 %112, 48
  %114 = load i32, ptr %10, align 4, !tbaa !10
  %115 = add i32 %114, %113
  store i32 %115, ptr %10, align 4, !tbaa !10
  br label %142

116:                                              ; preds = %104
  %117 = load i8, ptr %6, align 1, !tbaa !9
  %118 = sext i8 %117 to i32
  %119 = icmp sle i32 %118, 70
  br i1 %119, label %120, label %127

120:                                              ; preds = %116
  %121 = load i8, ptr %6, align 1, !tbaa !9
  %122 = sext i8 %121 to i32
  %123 = sub nsw i32 %122, 65
  %124 = add nsw i32 %123, 10
  %125 = load i32, ptr %10, align 4, !tbaa !10
  %126 = add i32 %125, %124
  store i32 %126, ptr %10, align 4, !tbaa !10
  br label %141

127:                                              ; preds = %116
  %128 = load i8, ptr %6, align 1, !tbaa !9
  %129 = sext i8 %128 to i32
  %130 = icmp sle i32 %129, 102
  br i1 %130, label %131, label %138

131:                                              ; preds = %127
  %132 = load i8, ptr %6, align 1, !tbaa !9
  %133 = sext i8 %132 to i32
  %134 = sub nsw i32 %133, 97
  %135 = add nsw i32 %134, 10
  %136 = load i32, ptr %10, align 4, !tbaa !10
  %137 = add i32 %136, %135
  store i32 %137, ptr %10, align 4, !tbaa !10
  br label %140

138:                                              ; preds = %127
  %139 = call ptr @__cxa_allocate_exception(i64 8) #8
  store ptr @.str.19, ptr %139, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr %139, ptr @_ZTIPKc, ptr null) #9
          to label %278 unwind label %100

140:                                              ; preds = %131
  br label %141

141:                                              ; preds = %140, %120
  br label %142

142:                                              ; preds = %141, %110
  %143 = getelementptr inbounds %class.Lexer, ptr %11, i32 0, i32 2
  %144 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %143)
          to label %145 unwind label %100

145:                                              ; preds = %142
  %146 = trunc i32 %144 to i8
  store i8 %146, ptr %6, align 1, !tbaa !9
  br label %147

147:                                              ; preds = %145
  %148 = load i8, ptr %6, align 1, !tbaa !9
  %149 = sext i8 %148 to i32
  %150 = icmp ne i32 %149, 125
  br i1 %150, label %82, label %151, !llvm.loop !12

151:                                              ; preds = %147
  %152 = load i8, ptr %6, align 1, !tbaa !9
  %153 = sext i8 %152 to i32
  %154 = icmp eq i32 %153, 125
  br i1 %154, label %155, label %156

155:                                              ; preds = %151
  br label %158

156:                                              ; preds = %151
  call void @__assert_fail(ptr noundef @.str.52, ptr noundef @.str.53, i32 noundef 536, ptr noundef @__PRETTY_FUNCTION__._ZN5Lexer12parse_stringB5cxx11Ev) #11
  unreachable

157:                                              ; No predecessors!
  br label %158

158:                                              ; preds = %157, %155
  %159 = load i32, ptr %10, align 4, !tbaa !10
  %160 = icmp ult i32 %159, 128
  br i1 %160, label %161, label %165

161:                                              ; preds = %158
  %162 = load i32, ptr %10, align 4, !tbaa !10
  %163 = trunc i32 %162 to i8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %163)
          to label %164 unwind label %100

164:                                              ; preds = %161
  br label %245

165:                                              ; preds = %158
  %166 = load i32, ptr %10, align 4, !tbaa !10
  %167 = icmp ult i32 %166, 2048
  br i1 %167, label %168, label %183

168:                                              ; preds = %165
  %169 = load i32, ptr %10, align 4, !tbaa !10
  %170 = lshr i32 %169, 6
  %171 = and i32 %170, 31
  %172 = or i32 192, %171
  %173 = trunc i32 %172 to i8
  %174 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %173)
          to label %175 unwind label %100

175:                                              ; preds = %168
  %176 = load i32, ptr %10, align 4, !tbaa !10
  %177 = lshr i32 %176, 0
  %178 = and i32 %177, 63
  %179 = or i32 128, %178
  %180 = trunc i32 %179 to i8
  %181 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %180)
          to label %182 unwind label %100

182:                                              ; preds = %175
  br label %244

183:                                              ; preds = %165
  %184 = load i32, ptr %10, align 4, !tbaa !10
  %185 = icmp ult i32 %184, 65536
  br i1 %185, label %186, label %208

186:                                              ; preds = %183
  %187 = load i32, ptr %10, align 4, !tbaa !10
  %188 = lshr i32 %187, 12
  %189 = and i32 %188, 15
  %190 = or i32 224, %189
  %191 = trunc i32 %190 to i8
  %192 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %191)
          to label %193 unwind label %100

193:                                              ; preds = %186
  %194 = load i32, ptr %10, align 4, !tbaa !10
  %195 = lshr i32 %194, 6
  %196 = and i32 %195, 63
  %197 = or i32 128, %196
  %198 = trunc i32 %197 to i8
  %199 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %198)
          to label %200 unwind label %100

200:                                              ; preds = %193
  %201 = load i32, ptr %10, align 4, !tbaa !10
  %202 = lshr i32 %201, 0
  %203 = and i32 %202, 63
  %204 = or i32 128, %203
  %205 = trunc i32 %204 to i8
  %206 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %205)
          to label %207 unwind label %100

207:                                              ; preds = %200
  br label %243

208:                                              ; preds = %183
  %209 = load i32, ptr %10, align 4, !tbaa !10
  %210 = icmp ult i32 %209, 2097152
  br i1 %210, label %211, label %240

211:                                              ; preds = %208
  %212 = load i32, ptr %10, align 4, !tbaa !10
  %213 = lshr i32 %212, 18
  %214 = and i32 %213, 7
  %215 = or i32 240, %214
  %216 = trunc i32 %215 to i8
  %217 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %216)
          to label %218 unwind label %100

218:                                              ; preds = %211
  %219 = load i32, ptr %10, align 4, !tbaa !10
  %220 = lshr i32 %219, 12
  %221 = and i32 %220, 63
  %222 = or i32 128, %221
  %223 = trunc i32 %222 to i8
  %224 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %223)
          to label %225 unwind label %100

225:                                              ; preds = %218
  %226 = load i32, ptr %10, align 4, !tbaa !10
  %227 = lshr i32 %226, 6
  %228 = and i32 %227, 63
  %229 = or i32 128, %228
  %230 = trunc i32 %229 to i8
  %231 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %230)
          to label %232 unwind label %100

232:                                              ; preds = %225
  %233 = load i32, ptr %10, align 4, !tbaa !10
  %234 = lshr i32 %233, 0
  %235 = and i32 %234, 63
  %236 = or i32 128, %235
  %237 = trunc i32 %236 to i8
  %238 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %237)
          to label %239 unwind label %100

239:                                              ; preds = %232
  br label %242

240:                                              ; preds = %208
  %241 = call ptr @__cxa_allocate_exception(i64 8) #8
  store ptr @.str.19, ptr %241, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr %241, ptr @_ZTIPKc, ptr null) #9
          to label %278 unwind label %100

242:                                              ; preds = %239
  br label %243

243:                                              ; preds = %242, %207
  br label %244

244:                                              ; preds = %243, %182
  br label %245

245:                                              ; preds = %244, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %263

246:                                              ; preds = %26
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext 34)
          to label %247 unwind label %29

247:                                              ; preds = %246
  br label %263

248:                                              ; preds = %26
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext 92)
          to label %249 unwind label %29

249:                                              ; preds = %248
  br label %263

250:                                              ; preds = %26
  %251 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK5Lexer(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull align 8 dereferenceable(680) %11)
          to label %252 unwind label %29

252:                                              ; preds = %250
  %253 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %251, ptr noundef @.str.54)
          to label %254 unwind label %29

254:                                              ; preds = %252
  %255 = load i8, ptr %6, align 1, !tbaa !9
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %253, i8 noundef signext %255)
          to label %257 unwind label %29

257:                                              ; preds = %254
  %258 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %256, ptr noundef @.str.12)
          to label %259 unwind label %29

259:                                              ; preds = %257
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %258, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %261 unwind label %29

261:                                              ; preds = %259
  %262 = call ptr @__cxa_allocate_exception(i64 8) #8
  store ptr @.str.1, ptr %262, align 16, !tbaa !5
  invoke void @__cxa_throw(ptr %262, ptr @_ZTIPKc, ptr null) #9
          to label %278 unwind label %29

263:                                              ; preds = %249, %247, %245, %51, %36, %34
  br label %267

264:                                              ; preds = %19
  %265 = load i8, ptr %6, align 1, !tbaa !9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %265)
          to label %266 unwind label %29

266:                                              ; preds = %264
  br label %267

267:                                              ; preds = %266, %263
  br label %12, !llvm.loop !14

268:                                              ; preds = %15
  store i1 true, ptr %5, align 1
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  %269 = load i1, ptr %5, align 1
  br i1 %269, label %272, label %271

270:                                              ; preds = %100, %52, %29
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #8
  br label %273

271:                                              ; preds = %268
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #8
  br label %272

272:                                              ; preds = %271, %268
  ret void

273:                                              ; preds = %270
  %274 = load ptr, ptr %7, align 8
  %275 = load i32, ptr %8, align 4
  %276 = insertvalue { ptr, i32 } poison, ptr %274, 0
  %277 = insertvalue { ptr, i32 } %276, i32 %275, 1
  resume { ptr, i32 } %277

278:                                              ; preds = %261, %240, %138, %98, %75
  unreachable
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @isxdigit(i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #1 align 2

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #7

attributes #0 = { 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 #1 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind willreturn memory(read) "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 = { noreturn 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 #8 = { nounwind }
attributes #9 = { noreturn }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { noreturn 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++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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::locale" = type { ptr }
%"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] }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTIPKc = external constant ptr
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK5Lexer(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(680)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #0

declare noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Lexer12parse_stringB5cxx11Ev(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(680) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca [3 x i8], align 1
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  %4 = getelementptr inbounds i8, ptr %1, i64 40
  %5 = getelementptr inbounds i8, ptr %3, i64 1
  %6 = getelementptr inbounds i8, ptr %3, i64 2
  br label %7

7:                                                ; preds = %.backedge, %2
  %8 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %9 unwind label %.loopexit51

9:                                                ; preds = %7
  %trunc = trunc i32 %8 to i8
  switch i8 %trunc, label %.invoke [
    i8 34, label %119
    i8 92, label %10
  ]

10:                                               ; preds = %9
  %11 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %12 unwind label %.loopexit51

12:                                               ; preds = %10
  %sext42 = shl i32 %11, 24
  %13 = ashr exact i32 %sext42, 24
  switch i32 %13, label %115 [
    i32 48, label %.invoke
    i32 110, label %15
    i32 120, label %16
    i32 117, label %28
    i32 34, label %113
    i32 92, label %114
  ]

.loopexit51:                                      ; preds = %.invoke, %7, %10, %28, %41
  %lpad.loopexit53 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp52:                             ; preds = %.invoke119, %.invoke118, %.invoke116, %.invoke109, %31, %33, %115, %117
  %lpad.loopexit.split-lp54 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.invoke:                                          ; preds = %9, %12, %114, %113, %15
  %14 = phi i8 [ 10, %15 ], [ 34, %113 ], [ 92, %114 ], [ 0, %12 ], [ %trunc, %9 ]
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %14)
          to label %.backedge unwind label %.loopexit51

15:                                               ; preds = %12
  br label %.invoke

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %3) #7
  %17 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %18 unwind label %26

18:                                               ; preds = %16
  %19 = trunc i32 %17 to i8
  store i8 %19, ptr %3, align 1, !tbaa !5
  %20 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %21 unwind label %26

21:                                               ; preds = %18
  %22 = trunc i32 %20 to i8
  store i8 %22, ptr %5, align 1, !tbaa !5
  store i8 0, ptr %6, align 1, !tbaa !5
  %23 = call i64 @strtol(ptr nocapture noundef nonnull %3, ptr noundef null, i32 noundef 16) #7
  %24 = trunc i64 %23 to i8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %24)
          to label %25 unwind label %26

25:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %3) #7
  br label %.backedge

26:                                               ; preds = %21, %18, %16
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %3) #7
  br label %.loopexit.split-lp

28:                                               ; preds = %12
  %29 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %30 unwind label %.loopexit51

30:                                               ; preds = %28
  %sext43.mask = and i32 %29, 255
  %.not44 = icmp eq i32 %sext43.mask, 123
  br i1 %.not44, label %41, label %31

31:                                               ; preds = %30
  %32 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK5Lexer(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull align 8 dereferenceable(680) %1)
          to label %33 unwind label %.loopexit.split-lp52

33:                                               ; preds = %31
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @.str.51)
          to label %.invoke119 unwind label %.loopexit.split-lp52

.invoke119:                                       ; preds = %117, %33
  %35 = phi ptr [ %34, %33 ], [ %118, %117 ]
  %.in = phi i32 [ %29, %33 ], [ %11, %117 ]
  %36 = trunc i32 %.in to i8
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %35, i8 noundef signext %36)
          to label %.invoke118 unwind label %.loopexit.split-lp52

.invoke118:                                       ; preds = %.invoke119
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @.str.12)
          to label %.invoke116 unwind label %.loopexit.split-lp52

.invoke116:                                       ; preds = %.invoke118
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.invoke109 unwind label %.loopexit.split-lp52

.invoke109:                                       ; preds = %.invoke116
  %40 = tail call ptr @__cxa_allocate_exception(i64 8) #7
  store ptr @.str.1, ptr %40, align 16, !tbaa !8
  invoke void @__cxa_throw(ptr nonnull %40, ptr nonnull @_ZTIPKc, ptr null) #8
          to label %.cont unwind label %.loopexit.split-lp52

.cont:                                            ; preds = %.invoke109
  unreachable

41:                                               ; preds = %30
  %42 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %.preheader unwind label %.loopexit51

.preheader:                                       ; preds = %41, %64
  %.038.in = phi i32 [ %63, %64 ], [ %42, %41 ]
  %.0 = phi i32 [ %.1, %64 ], [ 0, %41 ]
  %.038 = trunc i32 %.038.in to i8
  %sext47 = shl i32 %.038.in, 24
  %43 = ashr exact i32 %sext47, 24
  %44 = tail call i32 @isxdigit(i32 noundef %43) #9
  %.not45 = icmp eq i32 %44, 0
  br i1 %.not45, label %45, label %55

45:                                               ; preds = %.preheader
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK5Lexer(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull align 8 dereferenceable(680) %1)
          to label %47 unwind label %.loopexit.split-lp.loopexit.split-lp

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @.str.51)
          to label %49 unwind label %.loopexit.split-lp.loopexit.split-lp

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %48, i8 noundef signext %.038)
          to label %51 unwind label %.loopexit.split-lp.loopexit.split-lp

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @.str.12)
          to label %53 unwind label %.loopexit.split-lp.loopexit.split-lp

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.invoke111 unwind label %.loopexit.split-lp.loopexit.split-lp

.loopexit:                                        ; preds = %62
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %.invoke117, %.invoke110, %95, %90, %78, %68
  %lpad.loopexit56 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %.invoke111, %53, %51, %49, %47, %45
  %lpad.loopexit.split-lp57 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

55:                                               ; preds = %.preheader
  %56 = shl i32 %.0, 4
  %57 = icmp slt i8 %.038, 58
  br i1 %57, label %62, label %58

58:                                               ; preds = %55
  %59 = icmp ult i8 %.038, 71
  br i1 %59, label %62, label %60

60:                                               ; preds = %58
  %61 = icmp ult i8 %.038, 103
  br i1 %61, label %62, label %.invoke111

62:                                               ; preds = %60, %58, %55
  %.sink = phi i32 [ -48, %55 ], [ -55, %58 ], [ -87, %60 ]
  %63 = invoke noundef i32 @_ZNSi3getEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %64 unwind label %.loopexit

64:                                               ; preds = %62
  %65 = add nsw i32 %43, %.sink
  %.1 = add i32 %65, %56
  %sext46.mask = and i32 %63, 255
  %.not48 = icmp eq i32 %sext46.mask, 125
  br i1 %.not48, label %66, label %.preheader, !llvm.loop !10

66:                                               ; preds = %64
  %67 = icmp ult i32 %.1, 128
  br i1 %67, label %68, label %70

68:                                               ; preds = %66
  %69 = trunc nuw nsw i32 %.1 to i8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %69)
          to label %.backedge unwind label %.loopexit.split-lp.loopexit

70:                                               ; preds = %66
  %71 = icmp ult i32 %.1, 2048
  br i1 %71, label %72, label %76

72:                                               ; preds = %70
  %73 = lshr i32 %.1, 6
  %74 = trunc nuw i32 %73 to i8
  %75 = or disjoint i8 %74, -64
  br label %.invoke117

76:                                               ; preds = %70
  %77 = icmp ult i32 %.1, 65536
  br i1 %77, label %78, label %88

78:                                               ; preds = %76
  %79 = lshr i32 %.1, 12
  %80 = trunc nuw i32 %79 to i8
  %81 = or disjoint i8 %80, -32
  %82 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %81)
          to label %83 unwind label %.loopexit.split-lp.loopexit

83:                                               ; preds = %78
  %84 = lshr i32 %.1, 6
  %85 = trunc i32 %84 to i8
  %86 = and i8 %85, 63
  %87 = or disjoint i8 %86, -128
  br label %.invoke117

88:                                               ; preds = %76
  %89 = icmp ult i32 %.1, 2097152
  br i1 %89, label %90, label %.invoke111

90:                                               ; preds = %88
  %91 = lshr i32 %.1, 18
  %92 = trunc nuw i32 %91 to i8
  %93 = or disjoint i8 %92, -16
  %94 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %93)
          to label %95 unwind label %.loopexit.split-lp.loopexit

95:                                               ; preds = %90
  %96 = lshr i32 %.1, 12
  %97 = trunc i32 %96 to i8
  %98 = and i8 %97, 63
  %99 = or disjoint i8 %98, -128
  %100 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %99)
          to label %101 unwind label %.loopexit.split-lp.loopexit

101:                                              ; preds = %95
  %102 = lshr i32 %.1, 6
  %103 = trunc i32 %102 to i8
  %104 = and i8 %103, 63
  %105 = or disjoint i8 %104, -128
  br label %.invoke117

.invoke117:                                       ; preds = %72, %83, %101
  %106 = phi i8 [ %105, %101 ], [ %87, %83 ], [ %75, %72 ]
  %107 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %106)
          to label %.invoke110 unwind label %.loopexit.split-lp.loopexit

.invoke110:                                       ; preds = %.invoke117
  %108 = trunc i32 %.1 to i8
  %109 = and i8 %108, 63
  %110 = or disjoint i8 %109, -128
  %111 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %110)
          to label %.backedge unwind label %.loopexit.split-lp.loopexit

.backedge:                                        ; preds = %.invoke110, %.invoke, %68, %25
  br label %7, !llvm.loop !12

.invoke111:                                       ; preds = %88, %60, %53
  %.str.1.sink = phi ptr [ @.str.1, %53 ], [ @.str.19, %60 ], [ @.str.19, %88 ]
  %112 = tail call ptr @__cxa_allocate_exception(i64 8) #7
  store ptr %.str.1.sink, ptr %112, align 16, !tbaa !8
  invoke void @__cxa_throw(ptr nonnull %112, ptr nonnull @_ZTIPKc, ptr null) #8
          to label %.cont112 unwind label %.loopexit.split-lp.loopexit.split-lp

.cont112:                                         ; preds = %.invoke111
  unreachable

113:                                              ; preds = %12
  br label %.invoke

114:                                              ; preds = %12
  br label %.invoke

115:                                              ; preds = %12
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsRSoRK5Lexer(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull align 8 dereferenceable(680) %1)
          to label %117 unwind label %.loopexit.split-lp52

117:                                              ; preds = %115
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull @.str.54)
          to label %.invoke119 unwind label %.loopexit.split-lp52

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %.loopexit51, %.loopexit.split-lp52, %26
  %.pn49 = phi { ptr, i32 } [ %27, %26 ], [ %lpad.loopexit53, %.loopexit51 ], [ %lpad.loopexit.split-lp54, %.loopexit.split-lp52 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit56, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp57, %.loopexit.split-lp.loopexit.split-lp ]
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  resume { ptr, i32 } %.pn49

119:                                              ; preds = %9
  ret void
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @isxdigit(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #1 align 2

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

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

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


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