; LLVM IR from gem5/gem5 :: ext/dsent/libutil/String.ll (ZNK7LibUtil6String5splitEPKS0_j)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<LibUtil::String, std::allocator<LibUtil::String>>::_Vector_impl" }
%"struct.std::_Vector_base<LibUtil::String, std::allocator<LibUtil::String>>::_Vector_impl" = type { %"struct.std::_Vector_base<LibUtil::String, std::allocator<LibUtil::String>>::_Vector_impl_data" }
%"struct.std::_Vector_base<LibUtil::String, std::allocator<LibUtil::String>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.LibUtil::String" = type { %"class.std::__cxx11::basic_string" }

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) #2 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 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 dso_local void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7LibUtil6String5splitEPKS0_j(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2, i32 noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i1, align 1
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.LibUtil::String", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.LibUtil::String", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca %"class.LibUtil::String", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.LibUtil::String", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca i32, align 4
  %29 = alloca i64, align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %30 = load ptr, ptr %6, align 8
  store i1 false, ptr %9, align 1
  call void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %31 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %30) #3
  %32 = icmp eq i64 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %4
  store i1 true, ptr %9, align 1
  store i32 1, ptr %10, align 4
  br label %228

34:                                               ; preds = %4
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %37, label %102

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store i64 0, ptr %11, align 8, !tbaa !11
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.LibUtil::String", ptr %38, i64 0
  %40 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %39, i64 noundef 0) #3
  store i64 %40, ptr %12, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %90, %37
  br label %42

42:                                               ; preds = %41
  %43 = load i64, ptr %12, align 8, !tbaa !11
  %44 = icmp eq i64 %43, -1
  br i1 %44, label %45, label %64

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #3
  %46 = load i64, ptr %11, align 8, !tbaa !11
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %30, i64 noundef %46, i64 noundef -1)
          to label %47 unwind label %50

47:                                               ; preds = %45
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %48 unwind label %54

48:                                               ; preds = %47
  invoke void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %49 unwind label %58

49:                                               ; preds = %48
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #3
  br label %100

50:                                               ; preds = %45
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %15, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %16, align 4
  br label %63

54:                                               ; preds = %47
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %15, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %16, align 4
  br label %62

58:                                               ; preds = %48
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %15, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %16, align 4
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #3
  br label %62

62:                                               ; preds = %58, %54
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #3
  br label %63

63:                                               ; preds = %62, %50
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #3
  br label %101

64:                                               ; preds = %42
  %65 = load i64, ptr %12, align 8, !tbaa !11
  %66 = load i64, ptr %11, align 8, !tbaa !11
  %67 = icmp ne i64 %65, %66
  br i1 %67, label %68, label %90

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #3
  %69 = load i64, ptr %11, align 8, !tbaa !11
  %70 = load i64, ptr %12, align 8, !tbaa !11
  %71 = load i64, ptr %11, align 8, !tbaa !11
  %72 = sub i64 %70, %71
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %30, i64 noundef %69, i64 noundef %72)
          to label %73 unwind label %76

73:                                               ; preds = %68
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %74 unwind label %80

74:                                               ; preds = %73
  invoke void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %75 unwind label %84

75:                                               ; preds = %74
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #3
  br label %90

76:                                               ; preds = %68
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %15, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %16, align 4
  br label %89

80:                                               ; preds = %73
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %15, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %16, align 4
  br label %88

84:                                               ; preds = %74
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %15, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %16, align 4
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #3
  br label %88

88:                                               ; preds = %84, %80
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #3
  br label %89

89:                                               ; preds = %88, %76
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #3
  br label %101

90:                                               ; preds = %75, %64
  %91 = load i64, ptr %12, align 8, !tbaa !11
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %"class.LibUtil::String", ptr %92, i64 0
  %94 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %93) #3
  %95 = add i64 %91, %94
  store i64 %95, ptr %11, align 8, !tbaa !11
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.LibUtil::String", ptr %96, i64 0
  %98 = load i64, ptr %11, align 8, !tbaa !11
  %99 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %97, i64 noundef %98) #3
  store i64 %99, ptr %12, align 8, !tbaa !11
  br label %41, !llvm.loop !13

100:                                              ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %227

101:                                              ; preds = %89, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %232

102:                                              ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  store i64 0, ptr %20, align 8, !tbaa !11
  %103 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %30) #3
  store i64 %103, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %131, %102
  %105 = load i32, ptr %22, align 4, !tbaa !9
  %106 = load i32, ptr %8, align 4, !tbaa !9
  %107 = icmp ult i32 %105, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  store i32 4, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  br label %134

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = load i32, ptr %22, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds %"class.LibUtil::String", ptr %110, i64 %112
  %114 = load i64, ptr %20, align 8, !tbaa !11
  %115 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %113, i64 noundef %114) #3
  store i64 %115, ptr %23, align 8, !tbaa !11
  %116 = load i64, ptr %23, align 8, !tbaa !11
  %117 = icmp ne i64 %116, -1
  br i1 %117, label %118, label %130

118:                                              ; preds = %109
  %119 = load i64, ptr %23, align 8, !tbaa !11
  %120 = load i64, ptr %21, align 8, !tbaa !11
  %121 = icmp ult i64 %119, %120
  br i1 %121, label %122, label %130

122:                                              ; preds = %118
  %123 = load i64, ptr %23, align 8, !tbaa !11
  store i64 %123, ptr %21, align 8, !tbaa !11
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = load i32, ptr %22, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds %"class.LibUtil::String", ptr %124, i64 %126
  %128 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %127) #3
  %129 = trunc i64 %128 to i32
  store i32 %129, ptr %19, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %122, %118, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %22, align 4, !tbaa !9
  %133 = add i32 %132, 1
  store i32 %133, ptr %22, align 4, !tbaa !9
  br label %104, !llvm.loop !15

134:                                              ; preds = %108
  br label %135

135:                                              ; preds = %224, %134
  br label %136

136:                                              ; preds = %135
  %137 = load i64, ptr %21, align 8, !tbaa !11
  %138 = icmp eq i64 %137, -1
  br i1 %138, label %143, label %139

139:                                              ; preds = %136
  %140 = load i64, ptr %21, align 8, !tbaa !11
  %141 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %30) #3
  %142 = icmp eq i64 %140, %141
  br i1 %142, label %143, label %162

143:                                              ; preds = %139, %136
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #3
  %144 = load i64, ptr %20, align 8, !tbaa !11
  invoke 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) %30, i64 noundef %144, i64 noundef -1)
          to label %145 unwind label %148

145:                                              ; preds = %143
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %146 unwind label %152

146:                                              ; preds = %145
  invoke void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %147 unwind label %156

147:                                              ; preds = %146
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #3
  br label %225

148:                                              ; preds = %143
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %15, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %16, align 4
  br label %161

152:                                              ; preds = %145
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %15, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %16, align 4
  br label %160

156:                                              ; preds = %146
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %15, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %16, align 4
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #3
  br label %160

160:                                              ; preds = %156, %152
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #3
  br label %161

161:                                              ; preds = %160, %148
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #3
  br label %226

162:                                              ; preds = %139
  %163 = load i64, ptr %21, align 8, !tbaa !11
  %164 = load i64, ptr %20, align 8, !tbaa !11
  %165 = icmp ne i64 %163, %164
  br i1 %165, label %166, label %188

166:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #3
  %167 = load i64, ptr %20, align 8, !tbaa !11
  %168 = load i64, ptr %21, align 8, !tbaa !11
  %169 = load i64, ptr %20, align 8, !tbaa !11
  %170 = sub i64 %168, %169
  invoke 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) %30, i64 noundef %167, i64 noundef %170)
          to label %171 unwind label %174

171:                                              ; preds = %166
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %172 unwind label %178

172:                                              ; preds = %171
  invoke void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %173 unwind label %182

173:                                              ; preds = %172
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #3
  br label %188

174:                                              ; preds = %166
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %15, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %16, align 4
  br label %187

178:                                              ; preds = %171
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %15, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %16, align 4
  br label %186

182:                                              ; preds = %172
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %15, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %16, align 4
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #3
  br label %186

186:                                              ; preds = %182, %178
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #3
  br label %187

187:                                              ; preds = %186, %174
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #3
  br label %226

188:                                              ; preds = %173, %162
  %189 = load i64, ptr %21, align 8, !tbaa !11
  %190 = load i32, ptr %19, align 4, !tbaa !9
  %191 = zext i32 %190 to i64
  %192 = add i64 %189, %191
  store i64 %192, ptr %20, align 8, !tbaa !11
  %193 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %30) #3
  store i64 %193, ptr %21, align 8, !tbaa !11
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %194

194:                                              ; preds = %221, %188
  %195 = load i32, ptr %28, align 4, !tbaa !9
  %196 = load i32, ptr %8, align 4, !tbaa !9
  %197 = icmp ult i32 %195, %196
  br i1 %197, label %199, label %198

198:                                              ; preds = %194
  store i32 9, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  br label %224

199:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  %201 = load i32, ptr %28, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = getelementptr inbounds %"class.LibUtil::String", ptr %200, i64 %202
  %204 = load i64, ptr %20, align 8, !tbaa !11
  %205 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %203, i64 noundef %204) #3
  store i64 %205, ptr %29, align 8, !tbaa !11
  %206 = load i64, ptr %29, align 8, !tbaa !11
  %207 = icmp ne i64 %206, -1
  br i1 %207, label %208, label %220

208:                                              ; preds = %199
  %209 = load i64, ptr %29, align 8, !tbaa !11
  %210 = load i64, ptr %21, align 8, !tbaa !11
  %211 = icmp ult i64 %209, %210
  br i1 %211, label %212, label %220

212:                                              ; preds = %208
  %213 = load i64, ptr %29, align 8, !tbaa !11
  store i64 %213, ptr %21, align 8, !tbaa !11
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = load i32, ptr %28, align 4, !tbaa !9
  %216 = zext i32 %215 to i64
  %217 = getelementptr inbounds %"class.LibUtil::String", ptr %214, i64 %216
  %218 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %217) #3
  %219 = trunc i64 %218 to i32
  store i32 %219, ptr %19, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %212, %208, %199
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  br label %221

221:                                              ; preds = %220
  %222 = load i32, ptr %28, align 4, !tbaa !9
  %223 = add i32 %222, 1
  store i32 %223, ptr %28, align 4, !tbaa !9
  br label %194, !llvm.loop !16

224:                                              ; preds = %198
  br label %135, !llvm.loop !17

225:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %227

226:                                              ; preds = %187, %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %232

227:                                              ; preds = %225, %100
  store i1 true, ptr %9, align 1
  store i32 1, ptr %10, align 4
  br label %228

228:                                              ; preds = %227, %33
  %229 = load i1, ptr %9, align 1
  br i1 %229, label %231, label %230

230:                                              ; preds = %228
  call void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  br label %231

231:                                              ; preds = %230, %228
  ret void

232:                                              ; preds = %226, %101
  call void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  br label %233

233:                                              ; preds = %232
  %234 = load ptr, ptr %15, align 8
  %235 = load i32, ptr %16, align 4
  %236 = insertvalue { ptr, i32 } poison, ptr %234, 0
  %237 = insertvalue { ptr, i32 } %236, i32 %235, 1
  resume { ptr, i32 } %237
}

declare void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr, ptr)

declare void @_ZN7LibUtil6StringD1Ev(ptr)

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 }

!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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<LibUtil::String, std::allocator<LibUtil::String>>::_Vector_impl" }
%"struct.std::_Vector_base<LibUtil::String, std::allocator<LibUtil::String>>::_Vector_impl" = type { %"struct.std::_Vector_base<LibUtil::String, std::allocator<LibUtil::String>>::_Vector_impl_data" }
%"struct.std::_Vector_base<LibUtil::String, std::allocator<LibUtil::String>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.LibUtil::String" = type { %"class.std::__cxx11::basic_string" }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 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 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 dso_local void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7LibUtil6String5splitEPKS0_j(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.LibUtil::String", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.LibUtil::String", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.LibUtil::String", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.LibUtil::String", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  tail call void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %13 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %115, label %15

15:                                               ; preds = %4
  %16 = icmp eq i32 %3, 1
  br i1 %16, label %17, label %49

17:                                               ; preds = %15
  %18 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef 0) #3
  %19 = icmp eq i64 %18, -1
  br i1 %19, label %._crit_edge132, label %.lr.ph131

._crit_edge132:                                   ; preds = %44, %17
  %.076.lcssa = phi i64 [ 0, %17 ], [ %46, %44 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #3
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %.076.lcssa, i64 noundef -1)
          to label %20 unwind label %23

20:                                               ; preds = %._crit_edge132
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %21 unwind label %25

21:                                               ; preds = %20
  invoke void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %22 unwind label %27

22:                                               ; preds = %21
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #3
  br label %115

23:                                               ; preds = %._crit_edge132
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %30

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

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

29:                                               ; preds = %27, %25
  %.pn91 = phi { ptr, i32 } [ %28, %27 ], [ %26, %25 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #3
  br label %30

30:                                               ; preds = %29, %23
  %.pn91.pn = phi { ptr, i32 } [ %.pn91, %29 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #3
  br label %116

.lr.ph131:                                        ; preds = %17, %44
  %.075129 = phi i64 [ %47, %44 ], [ %18, %17 ]
  %.076128 = phi i64 [ %46, %44 ], [ 0, %17 ]
  %.not87 = icmp eq i64 %.075129, %.076128
  br i1 %.not87, label %44, label %31

31:                                               ; preds = %.lr.ph131
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #3
  %32 = sub i64 %.075129, %.076128
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %.076128, i64 noundef %32)
          to label %33 unwind label %36

33:                                               ; preds = %31
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %34 unwind label %38

34:                                               ; preds = %33
  invoke void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %35 unwind label %40

35:                                               ; preds = %34
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #3
  br label %44

36:                                               ; preds = %31
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %43

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

40:                                               ; preds = %34
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #3
  br label %42

42:                                               ; preds = %40, %38
  %.pn88 = phi { ptr, i32 } [ %41, %40 ], [ %39, %38 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #3
  br label %43

43:                                               ; preds = %42, %36
  %.pn88.pn = phi { ptr, i32 } [ %.pn88, %42 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #3
  br label %116

44:                                               ; preds = %35, %.lr.ph131
  %45 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #3
  %46 = add i64 %45, %.075129
  %47 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %46) #3
  %48 = icmp eq i64 %47, -1
  br i1 %48, label %._crit_edge132, label %.lr.ph131, !llvm.loop !5

49:                                               ; preds = %15
  %50 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %.not134 = icmp eq i32 %3, 0
  br i1 %.not134, label %.preheader.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %49
  %wide.trip.count = zext i32 %3 to i64
  br label %.lr.ph

.preheader:                                       ; preds = %93
  %51 = icmp eq i64 %.1, -1
  br i1 %51, label %._crit_edge, label %.lr.ph116

.preheader.thread:                                ; preds = %49
  %52 = icmp eq i64 %50, -1
  br i1 %52, label %._crit_edge, label %.lr.ph116.split.preheader

.lr.ph116:                                        ; preds = %.preheader
  br i1 %.not134, label %.lr.ph116.split.preheader, label %.lr.ph116.split.us.preheader

.lr.ph116.split.us.preheader:                     ; preds = %.lr.ph116
  %wide.trip.count142 = zext i32 %3 to i64
  br label %.lr.ph116.split.us

.lr.ph116.split.preheader:                        ; preds = %.preheader.thread, %.lr.ph116
  %.054.lcssa153158 = phi i32 [ %.155, %.lr.ph116 ], [ 0, %.preheader.thread ]
  %.052.lcssa154157 = phi i64 [ %.1, %.lr.ph116 ], [ %50, %.preheader.thread ]
  %53 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %54 = icmp eq i64 %.052.lcssa154157, %53
  br i1 %54, label %._crit_edge, label %55

55:                                               ; preds = %.lr.ph116.split.preheader
  %.not.peel = icmp eq i64 %.052.lcssa154157, 0
  br i1 %.not.peel, label %.loopexit.peel, label %56

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #3
  invoke 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 0, i64 noundef %.052.lcssa154157)
          to label %57 unwind label %.split.loopexit.split-lp

57:                                               ; preds = %56
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %58 unwind label %.split122.loopexit.split-lp

58:                                               ; preds = %57
  invoke void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %59 unwind label %.split125.loopexit.split-lp

59:                                               ; preds = %58
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #3
  br label %.loopexit.peel

.loopexit.peel:                                   ; preds = %59, %55
  %60 = zext i32 %.054.lcssa153158 to i64
  %61 = add i64 %.052.lcssa154157, %60
  %62 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %63 = icmp eq i64 %62, -1
  br i1 %63, label %._crit_edge, label %.lr.ph116.split

.lr.ph116.split.us:                               ; preds = %.lr.ph116.split.us.preheader, %..loopexit_crit_edge.us
  %.2115.us = phi i64 [ %.4.us, %..loopexit_crit_edge.us ], [ %.1, %.lr.ph116.split.us.preheader ]
  %.053114.us = phi i64 [ %73, %..loopexit_crit_edge.us ], [ 0, %.lr.ph116.split.us.preheader ]
  %.256113.us = phi i32 [ %.458.us, %..loopexit_crit_edge.us ], [ %.155, %.lr.ph116.split.us.preheader ]
  %64 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %65 = icmp eq i64 %.2115.us, %64
  br i1 %65, label %._crit_edge, label %66

66:                                               ; preds = %.lr.ph116.split.us
  %.not.us = icmp eq i64 %.2115.us, %.053114.us
  br i1 %.not.us, label %.lr.ph110.us, label %67

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #3
  %68 = sub i64 %.2115.us, %.053114.us
  invoke 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 %.053114.us, i64 noundef %68)
          to label %69 unwind label %.split.us

69:                                               ; preds = %67
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %70 unwind label %.split122.us

70:                                               ; preds = %69
  invoke void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %71 unwind label %.split125.us

71:                                               ; preds = %70
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #3
  br label %.lr.ph110.us

.lr.ph110.us:                                     ; preds = %71, %66
  %72 = zext i32 %.256113.us to i64
  %73 = add i64 %.2115.us, %72
  %74 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  br label %75

75:                                               ; preds = %.lr.ph110.us, %82
  %indvars.iv139 = phi i64 [ 0, %.lr.ph110.us ], [ %indvars.iv.next140, %82 ]
  %.3108.us = phi i64 [ %74, %.lr.ph110.us ], [ %.4.us, %82 ]
  %.357107.us = phi i32 [ 0, %.lr.ph110.us ], [ %.458.us, %82 ]
  %76 = getelementptr inbounds %"class.LibUtil::String", ptr %2, i64 %indvars.iv139
  %77 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %76, i64 noundef %73) #3
  %.not81.us = icmp ne i64 %77, -1
  %78 = icmp ult i64 %77, %.3108.us
  %or.cond96.us = select i1 %.not81.us, i1 %78, i1 false
  br i1 %or.cond96.us, label %79, label %82

79:                                               ; preds = %75
  %80 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %76) #3
  %81 = trunc i64 %80 to i32
  br label %82

82:                                               ; preds = %79, %75
  %.458.us = phi i32 [ %81, %79 ], [ %.357107.us, %75 ]
  %.4.us = phi i64 [ %77, %79 ], [ %.3108.us, %75 ]
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 1
  %exitcond143.not = icmp eq i64 %indvars.iv.next140, %wide.trip.count142
  br i1 %exitcond143.not, label %..loopexit_crit_edge.us, label %75, !llvm.loop !7

..loopexit_crit_edge.us:                          ; preds = %82
  %83 = icmp eq i64 %.4.us, -1
  br i1 %83, label %._crit_edge, label %.lr.ph116.split.us, !llvm.loop !8

.split.us:                                        ; preds = %67
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split122.us:                                     ; preds = %69
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %.split122

.split125.us:                                     ; preds = %70
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %.split125

.lr.ph:                                           ; preds = %.lr.ph.preheader, %93
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %93 ]
  %.052104 = phi i64 [ %50, %.lr.ph.preheader ], [ %.1, %93 ]
  %.054103 = phi i32 [ 0, %.lr.ph.preheader ], [ %.155, %93 ]
  %87 = getelementptr inbounds %"class.LibUtil::String", ptr %2, i64 %indvars.iv
  %88 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %87, i64 noundef 0) #3
  %.not86 = icmp ne i64 %88, -1
  %89 = icmp ult i64 %88, %.052104
  %or.cond = select i1 %.not86, i1 %89, i1 false
  br i1 %or.cond, label %90, label %93

90:                                               ; preds = %.lr.ph
  %91 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %87) #3
  %92 = trunc i64 %91 to i32
  br label %93

93:                                               ; preds = %90, %.lr.ph
  %.155 = phi i32 [ %92, %90 ], [ %.054103, %.lr.ph ]
  %.1 = phi i64 [ %88, %90 ], [ %.052104, %.lr.ph ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !9

.lr.ph116.split:                                  ; preds = %.loopexit.peel, %.loopexit
  %.2115 = phi i64 [ %113, %.loopexit ], [ %62, %.loopexit.peel ]
  %.053114 = phi i64 [ %.2115, %.loopexit ], [ %61, %.loopexit.peel ]
  %94 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %95 = icmp eq i64 %.2115, %94
  br i1 %95, label %._crit_edge, label %107

._crit_edge:                                      ; preds = %..loopexit_crit_edge.us, %.lr.ph116.split.us, %.loopexit, %.lr.ph116.split, %.lr.ph116.split.preheader, %.loopexit.peel, %.preheader.thread, %.preheader
  %.053.lcssa = phi i64 [ 0, %.preheader ], [ 0, %.preheader.thread ], [ 0, %.lr.ph116.split.preheader ], [ %61, %.loopexit.peel ], [ %.2115, %.loopexit ], [ %.053114, %.lr.ph116.split ], [ %.053114.us, %.lr.ph116.split.us ], [ %73, %..loopexit_crit_edge.us ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #3
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef %.053.lcssa, i64 noundef -1)
          to label %96 unwind label %99

96:                                               ; preds = %._crit_edge
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %97 unwind label %101

97:                                               ; preds = %96
  invoke void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %98 unwind label %103

98:                                               ; preds = %97
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #3
  br label %115

99:                                               ; preds = %._crit_edge
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %106

101:                                              ; preds = %96
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %105

103:                                              ; preds = %97
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #3
  br label %105

105:                                              ; preds = %103, %101
  %.pn82 = phi { ptr, i32 } [ %104, %103 ], [ %102, %101 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #3
  br label %106

106:                                              ; preds = %105, %99
  %.pn82.pn = phi { ptr, i32 } [ %.pn82, %105 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #3
  br label %116

107:                                              ; preds = %.lr.ph116.split
  %.not = icmp eq i64 %.2115, %.053114
  br i1 %.not, label %.loopexit, label %108

108:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #3
  %109 = sub i64 %.2115, %.053114
  invoke 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 %.053114, i64 noundef %109)
          to label %110 unwind label %.split.loopexit

110:                                              ; preds = %108
  invoke void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %111 unwind label %.split122.loopexit

111:                                              ; preds = %110
  invoke void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %112 unwind label %.split125.loopexit

112:                                              ; preds = %111
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #3
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #3
  br label %.loopexit

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

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

.split122.loopexit:                               ; preds = %110
  %lpad.loopexit145 = landingpad { ptr, i32 }
          cleanup
  br label %.split122

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

.split125.loopexit:                               ; preds = %111
  %lpad.loopexit148 = landingpad { ptr, i32 }
          cleanup
  br label %.split125

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

.split125:                                        ; preds = %.split125.loopexit, %.split125.loopexit.split-lp, %.split125.us
  %.us-phi126 = phi { ptr, i32 } [ %86, %.split125.us ], [ %lpad.loopexit148, %.split125.loopexit ], [ %lpad.loopexit.split-lp149, %.split125.loopexit.split-lp ]
  call void @_ZN7LibUtil6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #3
  br label %.split122

.split122:                                        ; preds = %.split122.loopexit, %.split122.loopexit.split-lp, %.split122.us, %.split125
  %.pn = phi { ptr, i32 } [ %.us-phi126, %.split125 ], [ %85, %.split122.us ], [ %lpad.loopexit145, %.split122.loopexit ], [ %lpad.loopexit.split-lp146, %.split122.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #3
  br label %.split

.split:                                           ; preds = %.split.loopexit, %.split.loopexit.split-lp, %.split.us, %.split122
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.split122 ], [ %84, %.split.us ], [ %lpad.loopexit, %.split.loopexit ], [ %lpad.loopexit.split-lp, %.split.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #3
  br label %116

.loopexit:                                        ; preds = %112, %107
  %113 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %114 = icmp eq i64 %113, -1
  br i1 %114, label %._crit_edge, label %.lr.ph116.split, !llvm.loop !10

115:                                              ; preds = %4, %98, %22
  ret void

116:                                              ; preds = %106, %.split, %30, %43
  %.pn91.pn.pn.pn = phi { ptr, i32 } [ %.pn91.pn, %30 ], [ %.pn88.pn, %43 ], [ %.pn82.pn, %106 ], [ %.pn.pn, %.split ]
  call void @_ZNSt6vectorIN7LibUtil6StringESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  resume { ptr, i32 } %.pn91.pn.pn.pn
}

declare void @_ZN7LibUtil6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr, ptr) local_unnamed_addr

declare void @_ZN7LibUtil6StringD1Ev(ptr) local_unnamed_addr

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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = distinct !{!10, !6, !11}
!11 = !{!"llvm.loop.peeled.count", i32 1}


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