; LLVM IR from hadryansalles/Luz :: deps/imgui/imgui.ll (ZN15ImGuiTextFilter5BuildEv)

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

%"struct.ImGuiTextFilter::ImGuiTextRange" = type { ptr, ptr }
%struct.ImGuiTextFilter = type <{ [256 x i8], %struct.ImVector.37, i32, [4 x i8] }>
%struct.ImVector.37 = type { i32, i32, 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: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15ImGuiTextFilter5BuildEv(ptr noundef nonnull align 8 dereferenceable(276) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.ImGuiTextFilter::ImGuiTextRange", align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  %10 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %9, i32 0, i32 1
  call void @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  %11 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %9, i32 0, i32 0
  %12 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
  %13 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %9, i32 0, i32 0
  %14 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 0
  %15 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %9, i32 0, i32 0
  %16 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 0
  %17 = call i64 @strlen(ptr noundef %16) #7
  %18 = getelementptr inbounds i8, ptr %14, i64 %17
  call void @_ZN15ImGuiTextFilter14ImGuiTextRangeC2EPKcS2_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef %12, ptr noundef %18)
  %19 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %9, i32 0, i32 1
  call void @_ZNK15ImGuiTextFilter14ImGuiTextRange5splitEcP8ImVectorIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 noundef signext 44, ptr noundef %19)
  %20 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %9, i32 0, i32 2
  store i32 0, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %21 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %9, i32 0, i32 1
  store ptr %21, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = call noundef ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %22)
  store ptr %23, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = call noundef ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  store ptr %25, ptr %6, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %98, %1
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = icmp ne ptr %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %101

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %32, ptr %8, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %50, %31
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %37, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  %40 = icmp ult ptr %36, %39
  br i1 %40, label %41, label %48

41:                                               ; preds = %33
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds i8, ptr %44, i64 0
  %46 = load i8, ptr %45, align 1, !tbaa !16
  %47 = call noundef zeroext i1 @_ZL14ImCharIsBlankAc(i8 noundef signext %46)
  br label %48

48:                                               ; preds = %41, %33
  %49 = phi i1 [ false, %33 ], [ %47, %41 ]
  br i1 %49, label %50, label %55

50:                                               ; preds = %48
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %54 = getelementptr inbounds i8, ptr %53, i32 1
  store ptr %54, ptr %52, align 8, !tbaa !13
  br label %33, !llvm.loop !17

55:                                               ; preds = %48
  br label %56

56:                                               ; preds = %73, %55
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %57, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !15
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = icmp ugt ptr %59, %62
  br i1 %63, label %64, label %71

64:                                               ; preds = %56
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %65, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !15
  %68 = getelementptr inbounds i8, ptr %67, i64 -1
  %69 = load i8, ptr %68, align 1, !tbaa !16
  %70 = call noundef zeroext i1 @_ZL14ImCharIsBlankAc(i8 noundef signext %69)
  br label %71

71:                                               ; preds = %64, %56
  %72 = phi i1 [ false, %56 ], [ %70, %64 ]
  br i1 %72, label %73, label %78

73:                                               ; preds = %71
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !15
  %77 = getelementptr inbounds i8, ptr %76, i32 -1
  store ptr %77, ptr %75, align 8, !tbaa !15
  br label %56, !llvm.loop !19

78:                                               ; preds = %71
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = call noundef zeroext i1 @_ZNK15ImGuiTextFilter14ImGuiTextRange5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %79)
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  store i32 3, ptr %7, align 4
  br label %95

82:                                               ; preds = %78
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !13
  %86 = getelementptr inbounds i8, ptr %85, i64 0
  %87 = load i8, ptr %86, align 1, !tbaa !16
  %88 = sext i8 %87 to i32
  %89 = icmp ne i32 %88, 45
  br i1 %89, label %90, label %94

90:                                               ; preds = %82
  %91 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %9, i32 0, i32 2
  %92 = load i32, ptr %91, align 8, !tbaa !9
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %91, align 8, !tbaa !9
  br label %94

94:                                               ; preds = %90, %82
  store i32 0, ptr %7, align 4
  br label %95

95:                                               ; preds = %94, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %96 = load i32, ptr %7, align 4
  switch i32 %96, label %102 [
    i32 0, label %97
    i32 3, label %98
  ]

97:                                               ; preds = %95
  br label %98

98:                                               ; preds = %97, %95
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %99, i32 1
  store ptr %100, ptr %5, align 8, !tbaa !5
  br label %26

101:                                              ; preds = %30
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  ret void

102:                                              ; preds = %95
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK15ImGuiTextFilter14ImGuiTextRange5splitEcP8ImVectorIS0_E(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext, ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15ImGuiTextFilter14ImGuiTextRangeC2EPKcS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL14ImCharIsBlankAc(i8 noundef signext) #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 272}
!10 = !{!"_ZTS15ImGuiTextFilter", !7, i64 0, !11, i64 256, !12, i64 272}
!11 = !{!"_ZTS8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE", !12, i64 0, !12, i64 4, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSN15ImGuiTextFilter14ImGuiTextRangeE", !6, i64 0, !6, i64 8}
!15 = !{!14, !6, i64 8}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.ImGuiTextFilter::ImGuiTextRange" = type { ptr, ptr }

; 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 nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15ImGuiTextFilter5BuildEv(ptr noundef nonnull align 8 dereferenceable(276) %0) local_unnamed_addr #2 align 2 {
  %2 = alloca %"struct.ImGuiTextFilter::ImGuiTextRange", align 8
  %3 = getelementptr inbounds i8, ptr %0, i64 256
  tail call void @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  %4 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #7
  %5 = getelementptr inbounds i8, ptr %0, i64 %4
  call void @_ZN15ImGuiTextFilter14ImGuiTextRangeC2EPKcS2_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull %0, ptr noundef nonnull %5)
  call void @_ZNK15ImGuiTextFilter14ImGuiTextRange5splitEcP8ImVectorIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %2, i8 noundef signext 44, ptr noundef nonnull %3)
  %6 = getelementptr inbounds i8, ptr %0, i64 272
  store i32 0, ptr %6, align 8, !tbaa !5
  %7 = call noundef ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %8 = call noundef ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %.not25 = icmp eq ptr %7, %8
  br i1 %.not25, label %._crit_edge, label %.preheader

.preheader:                                       ; preds = %1, %38
  %.026 = phi ptr [ %39, %38 ], [ %7, %1 ]
  %9 = getelementptr inbounds i8, ptr %.026, i64 8
  %10 = load ptr, ptr %.026, align 8, !tbaa !12
  %11 = load ptr, ptr %9, align 8, !tbaa !14
  %12 = icmp ult ptr %10, %11
  br i1 %12, label %.lr.ph, label %.critedge

._crit_edge:                                      ; preds = %38, %1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  ret void

.lr.ph:                                           ; preds = %.preheader, %16
  %13 = phi ptr [ %17, %16 ], [ %10, %.preheader ]
  %14 = load i8, ptr %13, align 1, !tbaa !15
  %15 = call noundef zeroext i1 @_ZL14ImCharIsBlankAc(i8 noundef signext %14)
  %.pre.pre = load ptr, ptr %9, align 8, !tbaa !14
  %.pre27.pre = load ptr, ptr %.026, align 8, !tbaa !12
  br i1 %15, label %16, label %.critedge

16:                                               ; preds = %.lr.ph
  %17 = getelementptr inbounds i8, ptr %.pre27.pre, i64 1
  store ptr %17, ptr %.026, align 8, !tbaa !12
  %18 = icmp ult ptr %17, %.pre.pre
  br i1 %18, label %.lr.ph, label %.critedge, !llvm.loop !16

.critedge:                                        ; preds = %.lr.ph, %16, %.preheader
  %19 = phi ptr [ %10, %.preheader ], [ %.pre27.pre, %.lr.ph ], [ %17, %16 ]
  %20 = phi ptr [ %11, %.preheader ], [ %.pre.pre, %16 ], [ %.pre.pre, %.lr.ph ]
  %21 = icmp ugt ptr %20, %19
  br i1 %21, label %.lr.ph23, label %.critedge2

.lr.ph23:                                         ; preds = %.critedge, %26
  %22 = phi ptr [ %28, %26 ], [ %20, %.critedge ]
  %23 = getelementptr inbounds i8, ptr %22, i64 -1
  %24 = load i8, ptr %23, align 1, !tbaa !15
  %25 = call noundef zeroext i1 @_ZL14ImCharIsBlankAc(i8 noundef signext %24)
  br i1 %25, label %26, label %.critedge2

26:                                               ; preds = %.lr.ph23
  %27 = load ptr, ptr %9, align 8, !tbaa !14
  %28 = getelementptr inbounds i8, ptr %27, i64 -1
  store ptr %28, ptr %9, align 8, !tbaa !14
  %29 = load ptr, ptr %.026, align 8, !tbaa !12
  %30 = icmp ugt ptr %28, %29
  br i1 %30, label %.lr.ph23, label %.critedge2, !llvm.loop !18

.critedge2:                                       ; preds = %.lr.ph23, %26, %.critedge
  %31 = call noundef zeroext i1 @_ZNK15ImGuiTextFilter14ImGuiTextRange5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %.026)
  br i1 %31, label %38, label %32

32:                                               ; preds = %.critedge2
  %33 = load ptr, ptr %.026, align 8, !tbaa !12
  %34 = load i8, ptr %33, align 1, !tbaa !15
  %.not21 = icmp eq i8 %34, 45
  br i1 %.not21, label %38, label %35

35:                                               ; preds = %32
  %36 = load i32, ptr %6, align 8, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %6, align 8, !tbaa !5
  br label %38

38:                                               ; preds = %32, %35, %.critedge2
  %39 = getelementptr inbounds i8, ptr %.026, i64 16
  %.not = icmp eq ptr %39, %8
  br i1 %.not, label %._crit_edge, label %.preheader
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK15ImGuiTextFilter14ImGuiTextRange5splitEcP8ImVectorIS0_E(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15ImGuiTextFilter14ImGuiTextRangeC2EPKcS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL14ImCharIsBlankAc(i8 noundef signext) local_unnamed_addr #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 272}
!6 = !{!"_ZTS15ImGuiTextFilter", !7, i64 0, !9, i64 256, !10, i64 272}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"_ZTS8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE", !10, i64 0, !10, i64 4, !11, i64 8}
!10 = !{!"int", !7, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"_ZTSN15ImGuiTextFilter14ImGuiTextRangeE", !11, i64 0, !11, i64 8}
!14 = !{!13, !11, i64 8}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


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