; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/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.31, i32, [4 x i8] }>
%struct.ImVector.31 = 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 i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  %8 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %7, i32 0, i32 1
  call void @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  %9 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %7, i32 0, i32 0
  %10 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
  %11 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %7, i32 0, i32 0
  %12 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
  %13 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %7, i32 0, i32 0
  %14 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 0
  %15 = call i64 @strlen(ptr noundef %14) #7
  %16 = getelementptr inbounds i8, ptr %12, i64 %15
  call void @_ZN15ImGuiTextFilter14ImGuiTextRangeC2EPKcS2_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef %10, ptr noundef %16)
  %17 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %7, i32 0, i32 1
  call void @_ZNK15ImGuiTextFilter14ImGuiTextRange5splitEcP8ImVectorIS0_E(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 noundef signext 44, ptr noundef %17)
  %18 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %7, i32 0, i32 2
  store i32 0, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !13
  br label %19

19:                                               ; preds = %97, %1
  %20 = load i32, ptr %4, align 4, !tbaa !13
  %21 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %7, i32 0, i32 1
  %22 = getelementptr inbounds %struct.ImVector.31, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 8, !tbaa !14
  %24 = icmp ne i32 %20, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %19
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %100

26:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %27 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %7, i32 0, i32 1
  %28 = load i32, ptr %4, align 4, !tbaa !13
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %27, i32 noundef %28)
  store ptr %29, ptr %6, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %47, %26
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !15
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %37 = icmp ult ptr %33, %36
  br i1 %37, label %38, label %45

38:                                               ; preds = %30
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %41, i64 0
  %43 = load i8, ptr %42, align 1, !tbaa !18
  %44 = call noundef zeroext i1 @_ZL14ImCharIsBlankAc(i8 noundef signext %43)
  br label %45

45:                                               ; preds = %38, %30
  %46 = phi i1 [ false, %30 ], [ %44, %38 ]
  br i1 %46, label %47, label %52

47:                                               ; preds = %45
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !15
  %51 = getelementptr inbounds i8, ptr %50, i32 1
  store ptr %51, ptr %49, align 8, !tbaa !15
  br label %30, !llvm.loop !19

52:                                               ; preds = %45
  br label %53

53:                                               ; preds = %70, %52
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !17
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !15
  %60 = icmp ugt ptr %56, %59
  br i1 %60, label %61, label %68

61:                                               ; preds = %53
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !17
  %65 = getelementptr inbounds i8, ptr %64, i64 -1
  %66 = load i8, ptr %65, align 1, !tbaa !18
  %67 = call noundef zeroext i1 @_ZL14ImCharIsBlankAc(i8 noundef signext %66)
  br label %68

68:                                               ; preds = %61, %53
  %69 = phi i1 [ false, %53 ], [ %67, %61 ]
  br i1 %69, label %70, label %75

70:                                               ; preds = %68
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %71, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !17
  %74 = getelementptr inbounds i8, ptr %73, i32 -1
  store ptr %74, ptr %72, align 8, !tbaa !17
  br label %53, !llvm.loop !21

75:                                               ; preds = %68
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = call noundef zeroext i1 @_ZNK15ImGuiTextFilter14ImGuiTextRange5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %76)
  br i1 %77, label %78, label %79

78:                                               ; preds = %75
  store i32 4, ptr %5, align 4
  br label %94

79:                                               ; preds = %75
  %80 = getelementptr inbounds %struct.ImGuiTextFilter, ptr %7, i32 0, i32 1
  %81 = load i32, ptr %4, align 4, !tbaa !13
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %80, i32 noundef %81)
  %83 = getelementptr inbounds %"struct.ImGuiTextFilter::ImGuiTextRange", ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = getelementptr inbounds i8, ptr %84, i64 0
  %86 = load i8, ptr %85, align 1, !tbaa !18
  %87 = sext i8 %86 to i32
  %88 = icmp ne i32 %87, 45
  br i1 %88, label %89, label %93

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

93:                                               ; preds = %89, %79
  store i32 0, ptr %5, align 4
  br label %94

94:                                               ; preds = %93, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %95 = load i32, ptr %5, align 4
  switch i32 %95, label %101 [
    i32 0, label %96
    i32 4, label %97
  ]

96:                                               ; preds = %94
  br label %97

97:                                               ; preds = %96, %94
  %98 = load i32, ptr %4, align 4, !tbaa !13
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %4, align 4, !tbaa !13
  br label %19, !llvm.loop !22

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

101:                                              ; preds = %94
  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 nonnull align 8 dereferenceable(16) ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #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 = !{!12, !12, i64 0}
!14 = !{!10, !12, i64 256}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSN15ImGuiTextFilter14ImGuiTextRangeE", !6, i64 0, !6, i64 8}
!17 = !{!16, !6, i64 8}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}


; 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 = load i32, ptr %3, align 8, !tbaa !12
  %.not21 = icmp eq i32 %7, 0
  br i1 %.not21, label %._crit_edge, label %.lr.ph23

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

.lr.ph23:                                         ; preds = %1, %39
  %.022 = phi i32 [ %40, %39 ], [ 0, %1 ]
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef %.022)
  %9 = getelementptr inbounds i8, ptr %8, i64 8
  %10 = load ptr, ptr %8, align 8, !tbaa !13
  %11 = load ptr, ptr %9, align 8, !tbaa !15
  %12 = icmp ult ptr %10, %11
  br i1 %12, label %.lr.ph, label %.critedge

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

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

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

.lr.ph19:                                         ; 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 !16
  %25 = call noundef zeroext i1 @_ZL14ImCharIsBlankAc(i8 noundef signext %24)
  br i1 %25, label %26, label %.critedge2

26:                                               ; preds = %.lr.ph19
  %27 = load ptr, ptr %9, align 8, !tbaa !15
  %28 = getelementptr inbounds i8, ptr %27, i64 -1
  store ptr %28, ptr %9, align 8, !tbaa !15
  %29 = load ptr, ptr %8, align 8, !tbaa !13
  %30 = icmp ugt ptr %28, %29
  br i1 %30, label %.lr.ph19, label %.critedge2, !llvm.loop !19

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

32:                                               ; preds = %.critedge2
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEEixEi(ptr noundef nonnull align 8 dereferenceable(16) %3, i32 noundef %.022)
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = load i8, ptr %34, align 1, !tbaa !16
  %.not17 = icmp eq i8 %35, 45
  br i1 %.not17, label %39, label %36

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

39:                                               ; preds = %32, %36, %.critedge2
  %40 = add nuw nsw i32 %.022, 1
  %41 = load i32, ptr %3, align 8, !tbaa !12
  %.not = icmp eq i32 %40, %41
  br i1 %.not, label %._crit_edge, label %.lr.ph23, !llvm.loop !20
}

; 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 nonnull align 8 dereferenceable(16) ptr @_ZN8ImVectorIN15ImGuiTextFilter14ImGuiTextRangeEEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) 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 = !{!6, !10, i64 256}
!13 = !{!14, !11, i64 0}
!14 = !{!"_ZTSN15ImGuiTextFilter14ImGuiTextRangeE", !11, i64 0, !11, i64 8}
!15 = !{!14, !11, i64 8}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


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