; LLVM IR from hasseily/SuperDuperDisplay :: extras/ImGuiFileDialog.ll (ZN4IGFD9FileInfos23FinalizeFileTypeParsingERKm)

; 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.IGFD::FileInfos" = type { %"struct.std::array", %"struct.std::array", %"struct.std::array", %"struct.std::array", i64, %"class.IGFD::FileType", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i64, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::shared_ptr.101" }
%"struct.std::array" = type { [10 x %"class.std::__cxx11::basic_string"] }
%"class.IGFD::FileType" = type <{ i32, i8, [3 x i8] }>
%"class.std::shared_ptr.101" = type { %"class.std::__shared_ptr.102" }
%"class.std::__shared_ptr.102" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

; 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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4IGFD9FileInfos23FinalizeFileTypeParsingERKm(ptr noundef nonnull align 8 dereferenceable(1552) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i8, align 1
  %12 = alloca i64, 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 i64, align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8
  %23 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 5
  %24 = call noundef zeroext i1 @_ZNK4IGFD8FileType6isFileEv(ptr noundef nonnull align 4 dereferenceable(5) %23)
  br i1 %24, label %28, label %25

25:                                               ; preds = %2
  %26 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 5
  %27 = call noundef zeroext i1 @_ZNK4IGFD8FileType15isLinkToUnknownEv(ptr noundef nonnull align 4 dereferenceable(5) %26)
  br i1 %27, label %28, label %163

28:                                               ; preds = %25, %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  store i8 0, ptr %6, align 1, !tbaa !9
  %29 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  store i8 46, ptr %7, align 1, !tbaa !11
  %30 = call noundef i64 @_ZN4IGFD5Utils20GetCharCountInStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKc(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 1 dereferenceable(1) %7)
  %31 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 4
  store i64 %30, ptr %31, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  %32 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 4
  %33 = load i64, ptr %32, align 8, !tbaa !12
  %34 = icmp eq i64 %33, 0
  br i1 %34, label %35, label %39

35:                                               ; preds = %28
  %36 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  store i8 35, ptr %8, align 1, !tbaa !11
  %37 = call noundef i64 @_ZN4IGFD5Utils20GetCharCountInStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKc(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 1 dereferenceable(1) %8)
  %38 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 4
  store i64 %37, ptr %38, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  store i8 1, ptr %6, align 1, !tbaa !9
  br label %39

39:                                               ; preds = %35, %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i64 0, ptr %9, align 8, !tbaa !24
  %40 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 4
  %41 = load i64, ptr %40, align 8, !tbaa !12
  %42 = icmp ugt i64 %41, 1
  br i1 %42, label %43, label %56

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load i64, ptr %44, align 8, !tbaa !24
  store i64 %45, ptr %10, align 8, !tbaa !24
  %46 = load i64, ptr %10, align 8, !tbaa !24
  %47 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 4
  %48 = load i64, ptr %47, align 8, !tbaa !12
  %49 = icmp ugt i64 %46, %48
  br i1 %49, label %50, label %53

50:                                               ; preds = %43
  %51 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 4
  %52 = load i64, ptr %51, align 8, !tbaa !12
  store i64 %52, ptr %10, align 8, !tbaa !24
  br label %53

53:                                               ; preds = %50, %43
  %54 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  store i8 46, ptr %11, align 1, !tbaa !11
  %55 = call noundef i64 @_ZN4IGFD5Utils30GetLastCharPosWithMinCharCountERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKcRKm(ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 8 dereferenceable(8) %10)
  store i64 %55, ptr %9, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %63

56:                                               ; preds = %39
  %57 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 8
  %58 = load i8, ptr %6, align 1, !tbaa !9, !range !25, !noundef !26
  %59 = trunc i8 %58 to i1
  %60 = zext i1 %59 to i64
  %61 = select i1 %59, i8 35, i8 46
  %62 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13find_first_ofEcm(ptr noundef nonnull align 8 dereferenceable(32) %57, i8 noundef signext %61, i64 noundef 0) #4
  store i64 %62, ptr %9, align 8, !tbaa !24
  br label %63

63:                                               ; preds = %56, %53
  %64 = load i64, ptr %9, align 8, !tbaa !24
  %65 = icmp ne i64 %64, -1
  br i1 %65, label %66, label %162

66:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  %67 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 8
  %68 = load i64, ptr %9, align 8, !tbaa !24
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef 0, i64 noundef %68)
  %69 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 2
  %70 = load i64, ptr %12, align 8, !tbaa !24
  %71 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %69, i64 noundef %70) #4
  %72 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %71, ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #4
  %73 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 2
  %74 = load i64, ptr %12, align 8, !tbaa !24
  %75 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %73, i64 noundef %74) #4
  call void @_ZN4IGFD5Utils15LowerCaseStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %75)
  %76 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 2
  %77 = load i64, ptr %12, align 8, !tbaa !24
  %78 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %76, i64 noundef %77) #4
  %79 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %78, ptr noundef nonnull align 8 dereferenceable(32) %14) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #4
  %80 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 8
  %81 = load i64, ptr %9, align 8, !tbaa !24
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(32) %80, i64 noundef %81, i64 noundef -1)
  %82 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 0
  %83 = load i64, ptr %12, align 8, !tbaa !24
  %84 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %82, i64 noundef %83) #4
  %85 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %84, ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #4
  %86 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 0
  %87 = load i64, ptr %12, align 8, !tbaa !24
  %88 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %86, i64 noundef %87) #4
  call void @_ZN4IGFD5Utils15LowerCaseStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %88)
  %89 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 1
  %90 = load i64, ptr %12, align 8, !tbaa !24
  %91 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %89, i64 noundef %90) #4
  %92 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %91, ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #4
  %93 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 4
  %94 = load i64, ptr %93, align 8, !tbaa !12
  %95 = icmp ugt i64 %94, 1
  br i1 %95, label %96, label %161

96:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %97 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 4
  %98 = load i64, ptr %97, align 8, !tbaa !12
  store i64 %98, ptr %17, align 8, !tbaa !24
  br label %99

99:                                               ; preds = %159, %96
  %100 = load i64, ptr %17, align 8, !tbaa !24
  %101 = icmp ugt i64 %100, 0
  br i1 %101, label %102, label %110

102:                                              ; preds = %99
  %103 = load i64, ptr %9, align 8, !tbaa !24
  %104 = icmp ne i64 %103, -1
  br i1 %104, label %105, label %110

105:                                              ; preds = %102
  %106 = load i64, ptr %12, align 8, !tbaa !24
  %107 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 0
  %108 = call noundef i64 @_ZNKSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(320) %107) #5
  %109 = icmp ult i64 %106, %108
  br label %110

110:                                              ; preds = %105, %102, %99
  %111 = phi i1 [ false, %102 ], [ false, %99 ], [ %109, %105 ]
  br i1 %111, label %112, label %160

112:                                              ; preds = %110
  %113 = load i64, ptr %9, align 8, !tbaa !24
  %114 = add i64 %113, 1
  store i64 %114, ptr %9, align 8, !tbaa !24
  %115 = load i64, ptr %12, align 8, !tbaa !24
  %116 = add i64 %115, 1
  store i64 %116, ptr %12, align 8, !tbaa !24
  %117 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 8
  %118 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %117) #4
  %119 = load i64, ptr %9, align 8, !tbaa !24
  %120 = icmp ugt i64 %118, %119
  br i1 %120, label %121, label %159

121:                                              ; preds = %112
  %122 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 8
  %123 = load i8, ptr %6, align 1, !tbaa !9, !range !25, !noundef !26
  %124 = trunc i8 %123 to i1
  %125 = zext i1 %124 to i64
  %126 = select i1 %124, i8 35, i8 46
  %127 = load i64, ptr %9, align 8, !tbaa !24
  %128 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13find_first_ofEcm(ptr noundef nonnull align 8 dereferenceable(32) %122, i8 noundef signext %126, i64 noundef %127) #4
  store i64 %128, ptr %9, align 8, !tbaa !24
  %129 = load i64, ptr %9, align 8, !tbaa !24
  %130 = icmp ne i64 %129, -1
  br i1 %130, label %131, label %158

131:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #4
  %132 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 8
  %133 = load i64, ptr %9, align 8, !tbaa !24
  call 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) %132, i64 noundef 0, i64 noundef %133)
  %134 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 2
  %135 = load i64, ptr %12, align 8, !tbaa !24
  %136 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %134, i64 noundef %135) #4
  %137 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %136, ptr noundef nonnull align 8 dereferenceable(32) %18) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  %138 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 2
  %139 = load i64, ptr %12, align 8, !tbaa !24
  %140 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %138, i64 noundef %139) #4
  call void @_ZN4IGFD5Utils15LowerCaseStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %140)
  %141 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 2
  %142 = load i64, ptr %12, align 8, !tbaa !24
  %143 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %141, i64 noundef %142) #4
  %144 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %143, ptr noundef nonnull align 8 dereferenceable(32) %19) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #4
  %145 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 8
  %146 = load i64, ptr %9, align 8, !tbaa !24
  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) %145, i64 noundef %146, i64 noundef -1)
  %147 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 0
  %148 = load i64, ptr %12, align 8, !tbaa !24
  %149 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %147, i64 noundef %148) #4
  %150 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %149, ptr noundef nonnull align 8 dereferenceable(32) %20) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #4
  %151 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 0
  %152 = load i64, ptr %12, align 8, !tbaa !24
  %153 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %151, i64 noundef %152) #4
  call void @_ZN4IGFD5Utils15LowerCaseStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 8 dereferenceable(32) %153)
  %154 = getelementptr inbounds %"class.IGFD::FileInfos", ptr %22, i32 0, i32 1
  %155 = load i64, ptr %12, align 8, !tbaa !24
  %156 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %154, i64 noundef %155) #4
  %157 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %156, ptr noundef nonnull align 8 dereferenceable(32) %21) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #4
  br label %158

158:                                              ; preds = %131, %121
  br label %159

159:                                              ; preds = %158, %112
  br label %99, !llvm.loop !27

160:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %161

161:                                              ; preds = %160, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %162

162:                                              ; preds = %161, %63
  store i1 true, ptr %3, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  br label %164

163:                                              ; preds = %25
  store i1 false, ptr %3, align 1
  br label %164

164:                                              ; preds = %163, %162
  %165 = load i1, ptr %3, align 1
  ret i1 %165
}

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

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(320)) #3 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 = { mustprogress nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(none) }

!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 = !{!"bool", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !15, i64 1280}
!13 = !{!"_ZTSN4IGFD9FileInfosE", !14, i64 0, !14, i64 320, !14, i64 640, !14, i64 960, !15, i64 1280, !16, i64 1288, !18, i64 1296, !18, i64 1328, !18, i64 1360, !18, i64 1392, !18, i64 1424, !20, i64 1456, !15, i64 1464, !18, i64 1472, !18, i64 1504, !21, i64 1536}
!14 = !{!"_ZTSSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EE", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN4IGFD8FileTypeE", !17, i64 0, !10, i64 4}
!17 = !{!"_ZTSN4IGFD8FileType11ContentTypeE", !7, i64 0}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !15, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTSSt10shared_ptrIN4IGFD9FileStyleEE", !22, i64 0}
!22 = !{!"_ZTSSt12__shared_ptrIN4IGFD9FileStyleELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !23, i64 8}
!23 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!24 = !{!15, !15, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


; 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] }

; 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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4IGFD9FileInfos23FinalizeFileTypeParsingERKm(ptr noundef nonnull align 8 dereferenceable(1552) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %1) local_unnamed_addr #2 align 2 {
  %3 = alloca i8, align 1
  %4 = alloca i8, align 1
  %5 = alloca i64, align 8
  %6 = alloca i8, align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %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 = getelementptr inbounds i8, ptr %0, i64 1288
  %16 = tail call noundef zeroext i1 @_ZNK4IGFD8FileType6isFileEv(ptr noundef nonnull align 4 dereferenceable(5) %15)
  br i1 %16, label %19, label %17

17:                                               ; preds = %2
  %18 = tail call noundef zeroext i1 @_ZNK4IGFD8FileType15isLinkToUnknownEv(ptr noundef nonnull align 4 dereferenceable(5) %15)
  br i1 %18, label %19, label %.critedge

19:                                               ; preds = %17, %2
  %20 = getelementptr inbounds i8, ptr %0, i64 1360
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
  store i8 46, ptr %3, align 1, !tbaa !5
  %21 = call noundef i64 @_ZN4IGFD5Utils20GetCharCountInStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKc(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 1 dereferenceable(1) %3)
  %22 = getelementptr inbounds i8, ptr %0, i64 1280
  store i64 %21, ptr %22, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  %23 = icmp eq i64 %21, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  store i8 35, ptr %4, align 1, !tbaa !5
  %25 = call noundef i64 @_ZN4IGFD5Utils20GetCharCountInStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKc(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 1 dereferenceable(1) %4)
  store i64 %25, ptr %22, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  br label %26

26:                                               ; preds = %24, %19
  %27 = phi i64 [ %25, %24 ], [ %21, %19 ]
  %28 = icmp ugt i64 %27, 1
  br i1 %28, label %29, label %32

29:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %30 = load i64, ptr %1, align 8, !tbaa !22
  %spec.store.select = call i64 @llvm.umin.i64(i64 %30, i64 %27)
  store i64 %spec.store.select, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  store i8 46, ptr %6, align 1, !tbaa !5
  %31 = call noundef i64 @_ZN4IGFD5Utils30GetLastCharPosWithMinCharCountERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKcRKm(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %35

32:                                               ; preds = %26
  %33 = select i1 %23, i8 35, i8 46
  %34 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13find_first_ofEcm(ptr noundef nonnull align 8 dereferenceable(32) %20, i8 noundef signext %33, i64 noundef 0) #5
  br label %35

35:                                               ; preds = %32, %29
  %.031 = phi i64 [ %31, %29 ], [ %34, %32 ]
  %.not = icmp eq i64 %.031, -1
  br i1 %.not, label %.critedge, label %36

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %20, i64 noundef 0, i64 noundef %.031)
  %37 = getelementptr inbounds i8, ptr %0, i64 640
  %38 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %37, i64 noundef 0) #5
  %39 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  %40 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %37, i64 noundef 0) #5
  call void @_ZN4IGFD5Utils15LowerCaseStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %40)
  %41 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %37, i64 noundef 0) #5
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %20, i64 noundef %.031, i64 noundef -1)
  %43 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef 0) #5
  %44 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  %45 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef 0) #5
  call void @_ZN4IGFD5Utils15LowerCaseStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %45)
  %46 = getelementptr inbounds i8, ptr %0, i64 320
  %47 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %46, i64 noundef 0) #5
  %48 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  %49 = load i64, ptr %22, align 8, !tbaa !8
  %50 = icmp ult i64 %49, 2
  br i1 %50, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %36
  %51 = call noundef i64 @_ZNKSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(320) %0) #6
  %52 = select i1 %23, i8 35, i8 46
  br label %53

53:                                               ; preds = %.lr.ph, %72
  %.03042 = phi i64 [ 0, %.lr.ph ], [ %56, %72 ]
  %.141 = phi i64 [ %.031, %.lr.ph ], [ %.2, %72 ]
  %exitcond.not = icmp eq i64 %.03042, %51
  br i1 %exitcond.not, label %.critedge, label %54

54:                                               ; preds = %53
  %55 = add nuw i64 %.141, 1
  %56 = add i64 %.03042, 1
  %57 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %20) #5
  %58 = icmp ugt i64 %57, %55
  br i1 %58, label %59, label %72

59:                                               ; preds = %54
  %60 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13find_first_ofEcm(ptr noundef nonnull align 8 dereferenceable(32) %20, i8 noundef signext %52, i64 noundef %55) #5
  %.not39 = icmp eq i64 %60, -1
  br i1 %.not39, label %.critedge, label %61

61:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  call void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %20, i64 noundef 0, i64 noundef %60)
  %62 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %37, i64 noundef %56) #5
  %63 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #5
  %64 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %37, i64 noundef %56) #5
  call void @_ZN4IGFD5Utils15LowerCaseStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %64)
  %65 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %37, i64 noundef %56) #5
  %66 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %65, ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #5
  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) %20, i64 noundef %60, i64 noundef -1)
  %67 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef %56) #5
  %68 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %67, ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #5
  %69 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %0, i64 noundef %56) #5
  call void @_ZN4IGFD5Utils15LowerCaseStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %69)
  %70 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EEixEm(ptr noundef nonnull align 8 dereferenceable(320) %46, i64 noundef %56) #5
  %71 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %70, ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  br label %72

72:                                               ; preds = %61, %54
  %.2 = phi i64 [ %60, %61 ], [ %55, %54 ]
  %.not38 = icmp eq i64 %.2, -1
  br i1 %.not38, label %.critedge, label %53, !llvm.loop !23

.critedge:                                        ; preds = %59, %72, %53, %17, %35, %36
  %.0 = phi i1 [ true, %36 ], [ true, %35 ], [ false, %17 ], [ true, %53 ], [ true, %72 ], [ true, %59 ]
  ret i1 %.0
}

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(320)) local_unnamed_addr #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #4

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 nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 1280}
!9 = !{!"_ZTSN4IGFD9FileInfosE", !10, i64 0, !10, i64 320, !10, i64 640, !10, i64 960, !11, i64 1280, !12, i64 1288, !15, i64 1296, !15, i64 1328, !15, i64 1360, !15, i64 1392, !15, i64 1424, !18, i64 1456, !11, i64 1464, !15, i64 1472, !15, i64 1504, !19, i64 1536}
!10 = !{!"_ZTSSt5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELm10EE", !6, i64 0}
!11 = !{!"long", !6, i64 0}
!12 = !{!"_ZTSN4IGFD8FileTypeE", !13, i64 0, !14, i64 4}
!13 = !{!"_ZTSN4IGFD8FileType11ContentTypeE", !6, i64 0}
!14 = !{!"bool", !6, i64 0}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !11, i64 8, !6, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !17, i64 0}
!17 = !{!"any pointer", !6, i64 0}
!18 = !{!"int", !6, i64 0}
!19 = !{!"_ZTSSt10shared_ptrIN4IGFD9FileStyleEE", !20, i64 0}
!20 = !{!"_ZTSSt12__shared_ptrIN4IGFD9FileStyleELN9__gnu_cxx12_Lock_policyE2EE", !17, i64 0, !21, i64 8}
!21 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !17, i64 0}
!22 = !{!11, !11, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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