; LLVM IR from opensim-org/opensim-core :: Vendors/lepton/src (Parser)

; 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] }
%"class.Lepton::ParseToken" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.std::allocator" = type { i8 }

@_ZL6DigitsB5cxx11 = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZL9OperatorsB5cxx11 = external hidden global %"class.std::__cxx11::basic_string", align 8
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1

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

; 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

declare i32 @__gxx_personality_v0(...)

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

; 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 nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @isspace(i32 noundef) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Lepton6Parser12getNextTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr dead_on_unwind noalias writable sret(%"class.Lepton::ParseToken") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = load i32, ptr %6, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %30, i64 noundef %32) #5
  %34 = load i8, ptr %33, align 1, !tbaa !11
  store i8 %34, ptr %7, align 1, !tbaa !11
  %35 = load i8, ptr %7, align 1, !tbaa !11
  %36 = sext i8 %35 to i32
  %37 = icmp eq i32 %36, 40
  br i1 %37, label %38, label %50

38:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %39 unwind label %41

39:                                               ; preds = %38
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef %8, i32 noundef 4)
          to label %40 unwind label %45

40:                                               ; preds = %39
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  store i32 1, ptr %12, align 4
  br label %325

41:                                               ; preds = %38
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %10, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %11, align 4
  br label %49

45:                                               ; preds = %39
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %10, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  br label %49

49:                                               ; preds = %45, %41
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  br label %326

50:                                               ; preds = %3
  %51 = load i8, ptr %7, align 1, !tbaa !11
  %52 = sext i8 %51 to i32
  %53 = icmp eq i32 %52, 41
  br i1 %53, label %54, label %66

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %55 unwind label %57

55:                                               ; preds = %54
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef %13, i32 noundef 5)
          to label %56 unwind label %61

56:                                               ; preds = %55
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  store i32 1, ptr %12, align 4
  br label %325

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

61:                                               ; preds = %55
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %10, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %65

65:                                               ; preds = %61, %57
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  br label %326

66:                                               ; preds = %50
  %67 = load i8, ptr %7, align 1, !tbaa !11
  %68 = sext i8 %67 to i32
  %69 = icmp eq i32 %68, 44
  br i1 %69, label %70, label %82

70:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %71 unwind label %73

71:                                               ; preds = %70
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef %15, i32 noundef 6)
          to label %72 unwind label %77

72:                                               ; preds = %71
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  store i32 1, ptr %12, align 4
  br label %325

73:                                               ; preds = %70
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %10, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %11, align 4
  br label %81

77:                                               ; preds = %71
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %10, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %81

81:                                               ; preds = %77, %73
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  br label %326

82:                                               ; preds = %66
  %83 = load i8, ptr %7, align 1, !tbaa !11
  %84 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) @_ZL9OperatorsB5cxx11, i8 noundef signext %83, i64 noundef 0) #5
  %85 = icmp ne i64 %84, -1
  br i1 %85, label %86, label %99

86:                                               ; preds = %82
  %87 = load i8, ptr %7, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, i64 noundef 1, i8 noundef signext %87, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %88 unwind label %90

88:                                               ; preds = %86
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef %17, i32 noundef 1)
          to label %89 unwind label %94

89:                                               ; preds = %88
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  store i32 1, ptr %12, align 4
  br label %325

90:                                               ; preds = %86
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %10, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %11, align 4
  br label %98

94:                                               ; preds = %88
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %10, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br label %98

98:                                               ; preds = %94, %90
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  br label %326

99:                                               ; preds = %82
  %100 = load i8, ptr %7, align 1, !tbaa !11
  %101 = sext i8 %100 to i32
  %102 = call i32 @isspace(i32 noundef %101) #6
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %151

104:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %105 = load i32, ptr %6, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %19, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %137, %104
  %108 = load i32, ptr %19, align 4, !tbaa !9
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %109) #5
  %111 = trunc i64 %110 to i32
  %112 = icmp slt i32 %108, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %107
  store i32 2, ptr %12, align 4
  br label %140

114:                                              ; preds = %107
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = load i32, ptr %19, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %115, i64 noundef %117) #5
  %119 = load i8, ptr %118, align 1, !tbaa !11
  %120 = sext i8 %119 to i32
  %121 = call i32 @isspace(i32 noundef %120) #6
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %136, label %123

123:                                              ; preds = %114
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = load i32, ptr %6, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = load i32, ptr %19, align 4, !tbaa !9
  %128 = load i32, ptr %6, align 4, !tbaa !9
  %129 = sub nsw i32 %127, %128
  %130 = sext i32 %129 to i64
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 8 dereferenceable(32) %124, i64 noundef %126, i64 noundef %130)
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef %20, i32 noundef 7)
          to label %131 unwind label %132

131:                                              ; preds = %123
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  store i32 1, ptr %12, align 4
  br label %140

132:                                              ; preds = %123
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %10, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %326

136:                                              ; preds = %114
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %19, align 4, !tbaa !9
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %19, align 4, !tbaa !9
  br label %107, !llvm.loop !12

140:                                              ; preds = %131, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  %141 = load i32, ptr %12, align 4
  switch i32 %141, label %325 [
    i32 2, label %142
  ]

142:                                              ; preds = %140
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = load i32, ptr %6, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 8 dereferenceable(32) %143, i64 noundef %145, i64 noundef -1)
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef %21, i32 noundef 7)
          to label %146 unwind label %147

146:                                              ; preds = %142
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #5
  store i32 1, ptr %12, align 4
  br label %325

147:                                              ; preds = %142
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %10, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #5
  br label %326

151:                                              ; preds = %99
  %152 = load i8, ptr %7, align 1, !tbaa !11
  %153 = sext i8 %152 to i32
  %154 = icmp eq i32 %153, 46
  br i1 %154, label %159, label %155

155:                                              ; preds = %151
  %156 = load i8, ptr %7, align 1, !tbaa !11
  %157 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) @_ZL6DigitsB5cxx11, i8 noundef signext %156, i64 noundef 0) #5
  %158 = icmp ne i64 %157, -1
  br i1 %158, label %159, label %247

159:                                              ; preds = %155, %151
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  %160 = load i8, ptr %7, align 1, !tbaa !11
  %161 = sext i8 %160 to i32
  %162 = icmp eq i32 %161, 46
  %163 = zext i1 %162 to i8
  store i8 %163, ptr %22, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  store i8 0, ptr %23, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %164 = load i32, ptr %6, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %24, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %231, %159
  %167 = load i32, ptr %24, align 4, !tbaa !9
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %168) #5
  %170 = trunc i64 %169 to i32
  %171 = icmp slt i32 %167, %170
  br i1 %171, label %172, label %234

172:                                              ; preds = %166
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = load i32, ptr %24, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %173, i64 noundef %175) #5
  %177 = load i8, ptr %176, align 1, !tbaa !11
  store i8 %177, ptr %7, align 1, !tbaa !11
  %178 = load i8, ptr %7, align 1, !tbaa !11
  %179 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) @_ZL6DigitsB5cxx11, i8 noundef signext %178, i64 noundef 0) #5
  %180 = icmp ne i64 %179, -1
  br i1 %180, label %181, label %182

181:                                              ; preds = %172
  br label %231

182:                                              ; preds = %172
  %183 = load i8, ptr %7, align 1, !tbaa !11
  %184 = sext i8 %183 to i32
  %185 = icmp eq i32 %184, 46
  br i1 %185, label %186, label %190

186:                                              ; preds = %182
  %187 = load i8, ptr %22, align 1, !tbaa !14, !range !16, !noundef !17
  %188 = trunc i8 %187 to i1
  br i1 %188, label %190, label %189

189:                                              ; preds = %186
  store i8 1, ptr %22, align 1, !tbaa !14
  br label %231

190:                                              ; preds = %186, %182
  %191 = load i8, ptr %7, align 1, !tbaa !11
  %192 = sext i8 %191 to i32
  %193 = icmp eq i32 %192, 101
  br i1 %193, label %198, label %194

194:                                              ; preds = %190
  %195 = load i8, ptr %7, align 1, !tbaa !11
  %196 = sext i8 %195 to i32
  %197 = icmp eq i32 %196, 69
  br i1 %197, label %198, label %230

198:                                              ; preds = %194, %190
  %199 = load i8, ptr %23, align 1, !tbaa !14, !range !16, !noundef !17
  %200 = trunc i8 %199 to i1
  br i1 %200, label %230, label %201

201:                                              ; preds = %198
  store i8 1, ptr %23, align 1, !tbaa !14
  %202 = load i32, ptr %24, align 4, !tbaa !9
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %203) #5
  %205 = trunc i64 %204 to i32
  %206 = sub nsw i32 %205, 1
  %207 = icmp slt i32 %202, %206
  br i1 %207, label %208, label %229

208:                                              ; preds = %201
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = load i32, ptr %24, align 4, !tbaa !9
  %211 = add nsw i32 %210, 1
  %212 = sext i32 %211 to i64
  %213 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %209, i64 noundef %212) #5
  %214 = load i8, ptr %213, align 1, !tbaa !11
  %215 = sext i8 %214 to i32
  %216 = icmp eq i32 %215, 45
  br i1 %216, label %226, label %217

217:                                              ; preds = %208
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = load i32, ptr %24, align 4, !tbaa !9
  %220 = add nsw i32 %219, 1
  %221 = sext i32 %220 to i64
  %222 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %218, i64 noundef %221) #5
  %223 = load i8, ptr %222, align 1, !tbaa !11
  %224 = sext i8 %223 to i32
  %225 = icmp eq i32 %224, 43
  br i1 %225, label %226, label %229

226:                                              ; preds = %217, %208
  %227 = load i32, ptr %24, align 4, !tbaa !9
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %24, align 4, !tbaa !9
  br label %229

229:                                              ; preds = %226, %217, %201
  br label %231

230:                                              ; preds = %198, %194
  br label %234

231:                                              ; preds = %229, %189, %181
  %232 = load i32, ptr %24, align 4, !tbaa !9
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %24, align 4, !tbaa !9
  br label %166, !llvm.loop !18

234:                                              ; preds = %230, %166
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = load i32, ptr %6, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = load i32, ptr %24, align 4, !tbaa !9
  %239 = load i32, ptr %6, align 4, !tbaa !9
  %240 = sub nsw i32 %238, %239
  %241 = sext i32 %240 to i64
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef nonnull align 8 dereferenceable(32) %235, i64 noundef %237, i64 noundef %241)
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef %25, i32 noundef 0)
          to label %242 unwind label %243

242:                                              ; preds = %234
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #5
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  br label %325

243:                                              ; preds = %234
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %10, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  br label %326

247:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %248 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %248, ptr %26, align 4, !tbaa !9
  br label %249

249:                                              ; preds = %310, %247
  %250 = load i32, ptr %26, align 4, !tbaa !9
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %251) #5
  %253 = trunc i64 %252 to i32
  %254 = icmp slt i32 %250, %253
  br i1 %254, label %256, label %255

255:                                              ; preds = %249
  store i32 8, ptr %12, align 4
  br label %313

256:                                              ; preds = %249
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = load i32, ptr %26, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %257, i64 noundef %259) #5
  %261 = load i8, ptr %260, align 1, !tbaa !11
  store i8 %261, ptr %7, align 1, !tbaa !11
  %262 = load i8, ptr %7, align 1, !tbaa !11
  %263 = sext i8 %262 to i32
  %264 = icmp eq i32 %263, 40
  br i1 %264, label %265, label %279

265:                                              ; preds = %256
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  %267 = load i32, ptr %6, align 4, !tbaa !9
  %268 = sext i32 %267 to i64
  %269 = load i32, ptr %26, align 4, !tbaa !9
  %270 = load i32, ptr %6, align 4, !tbaa !9
  %271 = sub nsw i32 %269, %270
  %272 = add nsw i32 %271, 1
  %273 = sext i32 %272 to i64
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %27, ptr noundef nonnull align 8 dereferenceable(32) %266, i64 noundef %268, i64 noundef %273)
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef %27, i32 noundef 3)
          to label %274 unwind label %275

274:                                              ; preds = %265
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #5
  store i32 1, ptr %12, align 4
  br label %313

275:                                              ; preds = %265
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %10, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #5
  br label %315

279:                                              ; preds = %256
  %280 = load i8, ptr %7, align 1, !tbaa !11
  %281 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) @_ZL9OperatorsB5cxx11, i8 noundef signext %280, i64 noundef 0) #5
  %282 = icmp ne i64 %281, -1
  br i1 %282, label %296, label %283

283:                                              ; preds = %279
  %284 = load i8, ptr %7, align 1, !tbaa !11
  %285 = sext i8 %284 to i32
  %286 = icmp eq i32 %285, 44
  br i1 %286, label %296, label %287

287:                                              ; preds = %283
  %288 = load i8, ptr %7, align 1, !tbaa !11
  %289 = sext i8 %288 to i32
  %290 = icmp eq i32 %289, 41
  br i1 %290, label %296, label %291

291:                                              ; preds = %287
  %292 = load i8, ptr %7, align 1, !tbaa !11
  %293 = sext i8 %292 to i32
  %294 = call i32 @isspace(i32 noundef %293) #6
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %296, label %309

296:                                              ; preds = %291, %287, %283, %279
  %297 = load ptr, ptr %5, align 8, !tbaa !5
  %298 = load i32, ptr %6, align 4, !tbaa !9
  %299 = sext i32 %298 to i64
  %300 = load i32, ptr %26, align 4, !tbaa !9
  %301 = load i32, ptr %6, align 4, !tbaa !9
  %302 = sub nsw i32 %300, %301
  %303 = sext i32 %302 to i64
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull align 8 dereferenceable(32) %297, i64 noundef %299, i64 noundef %303)
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef %28, i32 noundef 2)
          to label %304 unwind label %305

304:                                              ; preds = %296
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  store i32 1, ptr %12, align 4
  br label %313

305:                                              ; preds = %296
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %10, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  br label %315

309:                                              ; preds = %291
  br label %310

310:                                              ; preds = %309
  %311 = load i32, ptr %26, align 4, !tbaa !9
  %312 = add nsw i32 %311, 1
  store i32 %312, ptr %26, align 4, !tbaa !9
  br label %249, !llvm.loop !19

313:                                              ; preds = %304, %274, %255
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  %314 = load i32, ptr %12, align 4
  switch i32 %314, label %325 [
    i32 8, label %316
  ]

315:                                              ; preds = %305, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %326

316:                                              ; preds = %313
  %317 = load ptr, ptr %5, align 8, !tbaa !5
  %318 = load i32, ptr %6, align 4, !tbaa !9
  %319 = sext i32 %318 to i64
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef nonnull align 8 dereferenceable(32) %317, i64 noundef %319, i64 noundef -1)
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef %29, i32 noundef 2)
          to label %320 unwind label %321

320:                                              ; preds = %316
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #5
  store i32 1, ptr %12, align 4
  br label %325

321:                                              ; preds = %316
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %10, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #5
  br label %326

325:                                              ; preds = %320, %313, %242, %146, %140, %89, %72, %56, %40
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  ret void

326:                                              ; preds = %321, %315, %243, %147, %132, %98, %81, %65, %49
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  br label %327

327:                                              ; preds = %326
  %328 = load ptr, ptr %10, align 8
  %329 = load i32, ptr %11, align 4
  %330 = insertvalue { ptr, i32 } poison, ptr %328, 0
  %331 = insertvalue { ptr, i32 } %330, i32 %329, 1
  resume { ptr, i32 } %331
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: nounwind
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext, i64 noundef) #4

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

; 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 = { 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 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !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::__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.Lepton::ParseToken" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.std::allocator" = type { i8 }

@_ZL6DigitsB5cxx11 = external hidden global %"class.std::__cxx11::basic_string", align 8
@_ZL9OperatorsB5cxx11 = external hidden global %"class.std::__cxx11::basic_string", align 8
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1

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

; 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

declare i32 @__gxx_personality_v0(...)

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

; 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 nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Lepton6Parser12getNextTokenERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr dead_on_unwind noalias writable sret(%"class.Lepton::ParseToken") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = sext i32 %2 to i64
  %19 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %18) #5
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %21 = sext i8 %20 to i32
  switch i8 %20, label %46 [
    i8 40, label %22
    i8 41, label %30
    i8 44, label %38
  ]

22:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %23 unwind label %25

23:                                               ; preds = %22
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull %4, i32 noundef 4)
          to label %24 unwind label %27

24:                                               ; preds = %23
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %147

25:                                               ; preds = %22
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %29

27:                                               ; preds = %23
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  br label %29

29:                                               ; preds = %27, %25
  %.pn111 = phi { ptr, i32 } [ %28, %27 ], [ %26, %25 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %148

30:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %31 unwind label %33

31:                                               ; preds = %30
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull %6, i32 noundef 5)
          to label %32 unwind label %35

32:                                               ; preds = %31
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  br label %147

33:                                               ; preds = %30
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %37

35:                                               ; preds = %31
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  br label %37

37:                                               ; preds = %35, %33
  %.pn109 = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  br label %148

38:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %39 unwind label %41

39:                                               ; preds = %38
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull %8, i32 noundef 6)
          to label %40 unwind label %43

40:                                               ; preds = %39
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  br label %147

41:                                               ; preds = %38
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %45

43:                                               ; preds = %39
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  br label %45

45:                                               ; preds = %43, %41
  %.pn107 = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #5
  br label %148

46:                                               ; preds = %3
  %47 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) @_ZL9OperatorsB5cxx11, i8 noundef signext %20, i64 noundef 0) #5
  %.not = icmp eq i64 %47, -1
  br i1 %.not, label %56, label %48

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, i64 noundef 1, i8 noundef signext %20, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %49 unwind label %51

49:                                               ; preds = %48
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull %10, i32 noundef 1)
          to label %50 unwind label %53

50:                                               ; preds = %49
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  br label %147

51:                                               ; preds = %48
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %55

53:                                               ; preds = %49
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br label %55

55:                                               ; preds = %53, %51
  %.pn105 = phi { ptr, i32 } [ %54, %53 ], [ %52, %51 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  br label %148

56:                                               ; preds = %46
  %57 = tail call i32 @isspace(i32 noundef %21) #6
  %.not97 = icmp eq i32 %57, 0
  br i1 %.not97, label %75, label %.preheader118

.preheader118:                                    ; preds = %56, %60
  %indvars.iv = phi i64 [ %indvars.iv.next, %60 ], [ %18, %56 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %58 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %sext = shl i64 %58, 32
  %59 = ashr exact i64 %sext, 32
  %.not104 = icmp slt i64 %indvars.iv.next, %59
  br i1 %.not104, label %60, label %.critedge

60:                                               ; preds = %.preheader118
  %61 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv.next) #5
  %62 = load i8, ptr %61, align 1, !tbaa !5
  %63 = sext i8 %62 to i32
  %64 = tail call i32 @isspace(i32 noundef %63) #6
  %.not103 = icmp eq i32 %64, 0
  br i1 %.not103, label %65, label %.preheader118, !llvm.loop !8

65:                                               ; preds = %60
  %66 = trunc nsw i64 %indvars.iv.next to i32
  %67 = sub nsw i32 %66, %2
  %68 = sext i32 %67 to i64
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %18, i64 noundef %68)
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull %12, i32 noundef 7)
          to label %69 unwind label %70

69:                                               ; preds = %65
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  br label %147

70:                                               ; preds = %65
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  br label %148

.critedge:                                        ; preds = %.preheader118
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %18, i64 noundef -1)
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull %13, i32 noundef 7)
          to label %72 unwind label %73

72:                                               ; preds = %.critedge
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %147

73:                                               ; preds = %.critedge
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  br label %148

75:                                               ; preds = %56
  %76 = icmp eq i8 %20, 46
  br i1 %76, label %81, label %77

77:                                               ; preds = %75
  %78 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) @_ZL6DigitsB5cxx11, i8 noundef signext %20, i64 noundef 0) #5
  %.not98 = icmp eq i64 %78, -1
  br i1 %.not98, label %.preheader, label %81

.preheader:                                       ; preds = %77
  %79 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %80 = trunc i64 %79 to i32
  %.not101122 = icmp sgt i32 %80, %2
  br i1 %.not101122, label %.lr.ph, label %.critedge115

81:                                               ; preds = %77, %75
  %.079124 = add nsw i32 %2, 1
  %82 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %83 = trunc i64 %82 to i32
  %84 = icmp slt i32 %.079124, %83
  br i1 %84, label %.lr.ph129, label %.thread

.lr.ph129:                                        ; preds = %81, %110
  %.079128 = phi i32 [ %.079, %110 ], [ %.079124, %81 ]
  %.079.in127 = phi i32 [ %.1, %110 ], [ %2, %81 ]
  %.080126 = phi i1 [ %.181, %110 ], [ false, %81 ]
  %.082125 = phi i1 [ %.183, %110 ], [ %76, %81 ]
  %85 = sext i32 %.079128 to i64
  %86 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %85) #5
  %87 = load i8, ptr %86, align 1, !tbaa !5
  %88 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) @_ZL6DigitsB5cxx11, i8 noundef signext %87, i64 noundef 0) #5
  %.not102 = icmp eq i64 %88, -1
  br i1 %.not102, label %89, label %110

89:                                               ; preds = %.lr.ph129
  %90 = icmp eq i8 %87, 46
  br i1 %90, label %91, label %92

91:                                               ; preds = %89
  br i1 %.082125, label %.thread, label %110

92:                                               ; preds = %89
  %93 = and i8 %87, -33
  %or.cond = icmp ne i8 %93, 69
  %brmerge = select i1 %or.cond, i1 true, i1 %.080126
  br i1 %brmerge, label %.thread, label %94

94:                                               ; preds = %92
  %95 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %96 = trunc i64 %95 to i32
  %97 = add nsw i32 %96, -1
  %98 = icmp slt i32 %.079128, %97
  br i1 %98, label %99, label %110

99:                                               ; preds = %94
  %100 = add nsw i32 %.079.in127, 2
  %101 = sext i32 %100 to i64
  %102 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101) #5
  %103 = load i8, ptr %102, align 1, !tbaa !5
  %104 = icmp eq i8 %103, 45
  br i1 %104, label %109, label %105

105:                                              ; preds = %99
  %106 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %101) #5
  %107 = load i8, ptr %106, align 1, !tbaa !5
  %108 = icmp eq i8 %107, 43
  br i1 %108, label %109, label %110

109:                                              ; preds = %105, %99
  br label %110

110:                                              ; preds = %91, %94, %105, %109, %.lr.ph129
  %.183 = phi i1 [ %.082125, %.lr.ph129 ], [ %.082125, %109 ], [ %.082125, %105 ], [ %.082125, %94 ], [ true, %91 ]
  %.181 = phi i1 [ %.080126, %.lr.ph129 ], [ true, %109 ], [ true, %105 ], [ true, %94 ], [ %.080126, %91 ]
  %.1 = phi i32 [ %.079128, %.lr.ph129 ], [ %100, %109 ], [ %.079128, %105 ], [ %.079128, %94 ], [ %.079128, %91 ]
  %.079 = add nsw i32 %.1, 1
  %111 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %112 = trunc i64 %111 to i32
  %113 = icmp slt i32 %.079, %112
  br i1 %113, label %.lr.ph129, label %.thread, !llvm.loop !10

.thread:                                          ; preds = %110, %91, %92, %81
  %.079.lcssa = phi i32 [ %.079124, %81 ], [ %.079128, %92 ], [ %.079128, %91 ], [ %.079, %110 ]
  %114 = sub nsw i32 %.079.lcssa, %2
  %115 = sext i32 %114 to i64
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %18, i64 noundef %115)
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull %14, i32 noundef 0)
          to label %116 unwind label %117

116:                                              ; preds = %.thread
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %147

117:                                              ; preds = %.thread
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  br label %148

.lr.ph:                                           ; preds = %.preheader, %141
  %indvars.iv138 = phi i64 [ %indvars.iv.next139, %141 ], [ %18, %.preheader ]
  %119 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %indvars.iv138) #5
  %120 = load i8, ptr %119, align 1, !tbaa !5
  %121 = sext i8 %120 to i32
  %122 = icmp eq i8 %120, 40
  br i1 %122, label %123, label %130

123:                                              ; preds = %.lr.ph
  %124 = trunc nsw i64 %indvars.iv138 to i32
  %reass.sub = sub i32 %124, %2
  %125 = add i32 %reass.sub, 1
  %126 = sext i32 %125 to i64
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %18, i64 noundef %126)
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull %15, i32 noundef 3)
          to label %127 unwind label %128

127:                                              ; preds = %123
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %147

128:                                              ; preds = %123
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br label %148

130:                                              ; preds = %.lr.ph
  %131 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32) @_ZL9OperatorsB5cxx11, i8 noundef signext %120, i64 noundef 0) #5
  %.not117 = icmp eq i64 %131, -1
  br i1 %.not117, label %switch.early.test, label %134

switch.early.test:                                ; preds = %130
  switch i8 %120, label %132 [
    i8 44, label %134
    i8 41, label %134
  ]

132:                                              ; preds = %switch.early.test
  %133 = tail call i32 @isspace(i32 noundef %121) #6
  %.not99 = icmp eq i32 %133, 0
  br i1 %.not99, label %141, label %134

134:                                              ; preds = %switch.early.test, %switch.early.test, %130, %132
  %135 = trunc nsw i64 %indvars.iv138 to i32
  %136 = sub nsw i32 %135, %2
  %137 = sext i32 %136 to i64
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %18, i64 noundef %137)
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull %16, i32 noundef 2)
          to label %138 unwind label %139

138:                                              ; preds = %134
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  br label %147

139:                                              ; preds = %134
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  br label %148

141:                                              ; preds = %132
  %indvars.iv.next139 = add nsw i64 %indvars.iv138, 1
  %142 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  %sext141 = shl i64 %142, 32
  %143 = ashr exact i64 %sext141, 32
  %.not101 = icmp slt i64 %indvars.iv.next139, %143
  br i1 %.not101, label %.lr.ph, label %.critedge115, !llvm.loop !11

.critedge115:                                     ; preds = %141, %.preheader
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %18, i64 noundef -1)
  invoke void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull %17, i32 noundef 2)
          to label %144 unwind label %145

144:                                              ; preds = %.critedge115
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br label %147

145:                                              ; preds = %.critedge115
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br label %148

147:                                              ; preds = %127, %138, %69, %144, %116, %72, %50, %40, %32, %24
  ret void

148:                                              ; preds = %128, %139, %145, %117, %73, %70, %55, %45, %37, %29
  %.pn111.pn = phi { ptr, i32 } [ %.pn111, %29 ], [ %.pn109, %37 ], [ %.pn107, %45 ], [ %.pn105, %55 ], [ %74, %73 ], [ %71, %70 ], [ %118, %117 ], [ %146, %145 ], [ %129, %128 ], [ %140, %139 ]
  resume { ptr, i32 } %.pn111.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Lepton10ParseTokenC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_4TypeE(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: nounwind
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext, i64 noundef) local_unnamed_addr #4

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

; 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 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = distinct !{!11, !9}


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