; LLVM IR from theolundqvist/parallax-voxel-ray-marcher :: src/external/Dear ImGui/imgui_draw.ll (ZN11ImFontAtlas14ClearInputDataEv)

; 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.ImFontAtlas = type <{ i32, [4 x i8], ptr, i32, i32, i8, i8, i8, [5 x i8], ptr, ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, [64 x %struct.ImVec4], ptr, i32, i32, i32, [4 x i8] }>
%struct.ImVec2 = type { float, float }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImFontConfig = type { ptr, i32, i8, i32, float, i32, i32, i8, %struct.ImVec2, %struct.ImVec2, ptr, float, float, i8, i32, float, i16, [40 x i8], ptr }
%struct.ImFont = type <{ %struct.ImVector.6, float, float, %struct.ImVector.0, %struct.ImVector.7, ptr, ptr, ptr, i16, i16, i16, i16, i8, [3 x i8], float, float, float, i32, [2 x i8], [2 x i8] }>
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [90 x i8], align 1
@__PRETTY_FUNCTION__._ZN11ImFontAtlas14ClearInputDataEv = external hidden unnamed_addr constant [35 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11ImFontAtlas14ClearInputDataEv(ptr noundef nonnull align 8 dereferenceable(1164) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  %6 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 5
  %7 = load i8, ptr %6, align 8, !tbaa !9, !range !18, !noundef !19
  %8 = trunc i8 %7 to i1
  br i1 %8, label %10, label %9

9:                                                ; preds = %1
  br label %10

10:                                               ; preds = %9, %1
  %11 = phi i1 [ false, %1 ], [ true, %9 ]
  br i1 %11, label %12, label %13

12:                                               ; preds = %10
  br label %15

13:                                               ; preds = %10
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 1983, ptr noundef @__PRETTY_FUNCTION__._ZN11ImFontAtlas14ClearInputDataEv) #6
  unreachable

14:                                               ; No predecessors!
  br label %15

15:                                               ; preds = %14, %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !20
  br label %16

16:                                               ; preds = %48, %15
  %17 = load i32, ptr %3, align 4, !tbaa !20
  %18 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 17
  %19 = getelementptr inbounds %struct.ImVector.10, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !21
  %21 = icmp slt i32 %17, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %51

23:                                               ; preds = %16
  %24 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 17
  %25 = load i32, ptr %3, align 4, !tbaa !20
  %26 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %24, i32 noundef %25)
  %27 = getelementptr inbounds %struct.ImFontConfig, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !22
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %47

30:                                               ; preds = %23
  %31 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 17
  %32 = load i32, ptr %3, align 4, !tbaa !20
  %33 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %31, i32 noundef %32)
  %34 = getelementptr inbounds %struct.ImFontConfig, ptr %33, i32 0, i32 2
  %35 = load i8, ptr %34, align 4, !tbaa !25, !range !18, !noundef !19
  %36 = trunc i8 %35 to i1
  br i1 %36, label %37, label %47

37:                                               ; preds = %30
  %38 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 17
  %39 = load i32, ptr %3, align 4, !tbaa !20
  %40 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %38, i32 noundef %39)
  %41 = getelementptr inbounds %struct.ImFontConfig, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !22
  call void @_ZN5ImGui7MemFreeEPv(ptr noundef %42)
  %43 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 17
  %44 = load i32, ptr %3, align 4, !tbaa !20
  %45 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %43, i32 noundef %44)
  %46 = getelementptr inbounds %struct.ImFontConfig, ptr %45, i32 0, i32 0
  store ptr null, ptr %46, align 8, !tbaa !22
  br label %47

47:                                               ; preds = %37, %30, %23
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %3, align 4, !tbaa !20
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %3, align 4, !tbaa !20
  br label %16, !llvm.loop !26

51:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !20
  br label %52

52:                                               ; preds = %98, %51
  %53 = load i32, ptr %4, align 4, !tbaa !20
  %54 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 15
  %55 = getelementptr inbounds %struct.ImVector.8, ptr %54, i32 0, i32 0
  %56 = load i32, ptr %55, align 8, !tbaa !28
  %57 = icmp slt i32 %53, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %101

59:                                               ; preds = %52
  %60 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 15
  %61 = load i32, ptr %4, align 4, !tbaa !20
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %60, i32 noundef %61)
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ImFont, ptr %63, i32 0, i32 7
  %65 = load ptr, ptr %64, align 8, !tbaa !29
  %66 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 17
  %67 = getelementptr inbounds %struct.ImVector.10, ptr %66, i32 0, i32 2
  %68 = load ptr, ptr %67, align 8, !tbaa !34
  %69 = icmp uge ptr %65, %68
  br i1 %69, label %70, label %97

70:                                               ; preds = %59
  %71 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 15
  %72 = load i32, ptr %4, align 4, !tbaa !20
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %71, i32 noundef %72)
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ImFont, ptr %74, i32 0, i32 7
  %76 = load ptr, ptr %75, align 8, !tbaa !29
  %77 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 17
  %78 = getelementptr inbounds %struct.ImVector.10, ptr %77, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !34
  %80 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 17
  %81 = getelementptr inbounds %struct.ImVector.10, ptr %80, i32 0, i32 0
  %82 = load i32, ptr %81, align 8, !tbaa !21
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds %struct.ImFontConfig, ptr %79, i64 %83
  %85 = icmp ult ptr %76, %84
  br i1 %85, label %86, label %97

86:                                               ; preds = %70
  %87 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 15
  %88 = load i32, ptr %4, align 4, !tbaa !20
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %87, i32 noundef %88)
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ImFont, ptr %90, i32 0, i32 7
  store ptr null, ptr %91, align 8, !tbaa !29
  %92 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 15
  %93 = load i32, ptr %4, align 4, !tbaa !20
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %92, i32 noundef %93)
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ImFont, ptr %95, i32 0, i32 8
  store i16 0, ptr %96, align 8, !tbaa !35
  br label %97

97:                                               ; preds = %86, %70, %59
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %4, align 4, !tbaa !20
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %4, align 4, !tbaa !20
  br label %52, !llvm.loop !36

101:                                              ; preds = %58
  %102 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 17
  call void @_ZN8ImVectorI12ImFontConfigE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %102)
  %103 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 16
  call void @_ZN8ImVectorI21ImFontAtlasCustomRectE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %103)
  %104 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 22
  store i32 -1, ptr %104, align 8, !tbaa !37
  %105 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 21
  store i32 -1, ptr %105, align 4, !tbaa !38
  %106 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 6
  store i8 0, ptr %106, align 1, !tbaa !39
  ret void
}

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

declare void @_ZN5ImGui7MemFreeEPv(ptr noundef) #4

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 24}
!10 = !{!"_ZTS11ImFontAtlas", !11, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !12, i64 24, !12, i64 25, !12, i64 26, !6, i64 32, !6, i64 40, !11, i64 48, !11, i64 52, !13, i64 56, !13, i64 64, !15, i64 72, !16, i64 88, !17, i64 104, !7, i64 120, !6, i64 1144, !11, i64 1152, !11, i64 1156, !11, i64 1160}
!11 = !{!"int", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTS8ImVectorIP6ImFontE", !11, i64 0, !11, i64 4, !6, i64 8}
!16 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !11, i64 0, !11, i64 4, !6, i64 8}
!17 = !{!"_ZTS8ImVectorI12ImFontConfigE", !11, i64 0, !11, i64 4, !6, i64 8}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!11, !11, i64 0}
!21 = !{!10, !11, i64 104}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTS12ImFontConfig", !6, i64 0, !11, i64 8, !12, i64 12, !11, i64 16, !14, i64 20, !11, i64 24, !11, i64 28, !12, i64 32, !13, i64 36, !13, i64 44, !6, i64 56, !14, i64 64, !14, i64 68, !12, i64 72, !11, i64 76, !14, i64 80, !24, i64 84, !7, i64 86, !6, i64 128}
!24 = !{!"short", !7, i64 0}
!25 = !{!23, !12, i64 12}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!10, !11, i64 72}
!29 = !{!30, !6, i64 72}
!30 = !{!"_ZTS6ImFont", !31, i64 0, !14, i64 16, !14, i64 20, !32, i64 24, !33, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !24, i64 80, !24, i64 82, !24, i64 84, !24, i64 86, !12, i64 88, !14, i64 92, !14, i64 96, !14, i64 100, !11, i64 104, !7, i64 108}
!31 = !{!"_ZTS8ImVectorIfE", !11, i64 0, !11, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !11, i64 0, !11, i64 4, !6, i64 8}
!34 = !{!10, !6, i64 112}
!35 = !{!30, !24, i64 80}
!36 = distinct !{!36, !27}
!37 = !{!10, !11, i64 1160}
!38 = !{!10, !11, i64 1156}
!39 = !{!10, !12, i64 25}


; 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.ImFontConfig = type { ptr, i32, i8, i32, float, i32, i32, i8, %struct.ImVec2, %struct.ImVec2, ptr, float, float, i8, i32, float, i16, [40 x i8], ptr }
%struct.ImVec2 = type { float, float }

@.str.1 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [90 x i8], align 1
@__PRETTY_FUNCTION__._ZN11ImFontAtlas14ClearInputDataEv = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11ImFontAtlas14ClearInputDataEv(ptr noundef nonnull align 8 dereferenceable(1164) %0) local_unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 24
  %3 = load i8, ptr %2, align 8, !tbaa !5, !range !17, !noundef !18
  %4 = trunc nuw i8 %3 to i1
  br i1 %4, label %8, label %.preheader14

.preheader14:                                     ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 104
  %6 = load i32, ptr %5, align 8, !tbaa !19
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %.preheader

8:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 1983, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11ImFontAtlas14ClearInputDataEv) #5
  unreachable

.preheader:                                       ; preds = %24, %.preheader14
  %9 = getelementptr inbounds i8, ptr %0, i64 72
  %10 = load i32, ptr %9, align 8, !tbaa !20
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph17, label %._crit_edge

.lr.ph17:                                         ; preds = %.preheader
  %12 = getelementptr inbounds i8, ptr %0, i64 112
  br label %32

.lr.ph:                                           ; preds = %.preheader14, %24
  %.01215 = phi i32 [ %25, %24 ], [ 0, %.preheader14 ]
  %13 = tail call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.01215)
  %14 = load ptr, ptr %13, align 8, !tbaa !21
  %.not13 = icmp eq ptr %14, null
  br i1 %.not13, label %24, label %15

15:                                               ; preds = %.lr.ph
  %16 = tail call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.01215)
  %17 = getelementptr inbounds i8, ptr %16, i64 12
  %18 = load i8, ptr %17, align 4, !tbaa !24, !range !17, !noundef !18
  %19 = trunc nuw i8 %18 to i1
  br i1 %19, label %20, label %24

20:                                               ; preds = %15
  %21 = tail call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.01215)
  %22 = load ptr, ptr %21, align 8, !tbaa !21
  tail call void @_ZN5ImGui7MemFreeEPv(ptr noundef %22)
  %23 = tail call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.01215)
  store ptr null, ptr %23, align 8, !tbaa !21
  br label %24

24:                                               ; preds = %.lr.ph, %15, %20
  %25 = add nuw nsw i32 %.01215, 1
  %26 = load i32, ptr %5, align 8, !tbaa !19
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %.lr.ph, label %.preheader, !llvm.loop !25

._crit_edge:                                      ; preds = %55, %.preheader
  tail call void @_ZN8ImVectorI12ImFontConfigE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %28 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @_ZN8ImVectorI21ImFontAtlasCustomRectE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
  %29 = getelementptr inbounds i8, ptr %0, i64 1160
  store i32 -1, ptr %29, align 8, !tbaa !27
  %30 = getelementptr inbounds i8, ptr %0, i64 1156
  store i32 -1, ptr %30, align 4, !tbaa !28
  %31 = getelementptr inbounds i8, ptr %0, i64 25
  store i8 0, ptr %31, align 1, !tbaa !29
  ret void

32:                                               ; preds = %.lr.ph17, %55
  %.016 = phi i32 [ 0, %.lr.ph17 ], [ %56, %55 ]
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef %.016)
  %34 = load ptr, ptr %33, align 8, !tbaa !30
  %35 = getelementptr inbounds i8, ptr %34, i64 72
  %36 = load ptr, ptr %35, align 8, !tbaa !31
  %37 = load ptr, ptr %12, align 8, !tbaa !36
  %.not = icmp ult ptr %36, %37
  br i1 %.not, label %55, label %38

38:                                               ; preds = %32
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef %.016)
  %40 = load ptr, ptr %39, align 8, !tbaa !30
  %41 = getelementptr inbounds i8, ptr %40, i64 72
  %42 = load ptr, ptr %41, align 8, !tbaa !31
  %43 = load ptr, ptr %12, align 8, !tbaa !36
  %44 = load i32, ptr %5, align 8, !tbaa !19
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds %struct.ImFontConfig, ptr %43, i64 %45
  %47 = icmp ult ptr %42, %46
  br i1 %47, label %48, label %55

48:                                               ; preds = %38
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef %.016)
  %50 = load ptr, ptr %49, align 8, !tbaa !30
  %51 = getelementptr inbounds i8, ptr %50, i64 72
  store ptr null, ptr %51, align 8, !tbaa !31
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef %.016)
  %53 = load ptr, ptr %52, align 8, !tbaa !30
  %54 = getelementptr inbounds i8, ptr %53, i64 80
  store i16 0, ptr %54, align 8, !tbaa !37
  br label %55

55:                                               ; preds = %32, %38, %48
  %56 = add nuw nsw i32 %.016, 1
  %57 = load i32, ptr %9, align 8, !tbaa !20
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %32, label %._crit_edge, !llvm.loop !38
}

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

declare void @_ZN5ImGui7MemFreeEPv(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI12ImFontConfigE5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI21ImFontAtlasCustomRectE5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

attributes #0 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { 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 #5 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 24}
!6 = !{!"_ZTS11ImFontAtlas", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 20, !11, i64 24, !11, i64 25, !11, i64 26, !10, i64 32, !10, i64 40, !7, i64 48, !7, i64 52, !12, i64 56, !12, i64 64, !14, i64 72, !15, i64 88, !16, i64 104, !8, i64 120, !10, i64 1144, !7, i64 1152, !7, i64 1156, !7, i64 1160}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !8, i64 0}
!14 = !{!"_ZTS8ImVectorIP6ImFontE", !7, i64 0, !7, i64 4, !10, i64 8}
!15 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !7, i64 0, !7, i64 4, !10, i64 8}
!16 = !{!"_ZTS8ImVectorI12ImFontConfigE", !7, i64 0, !7, i64 4, !10, i64 8}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!6, !7, i64 104}
!20 = !{!6, !7, i64 72}
!21 = !{!22, !10, i64 0}
!22 = !{!"_ZTS12ImFontConfig", !10, i64 0, !7, i64 8, !11, i64 12, !7, i64 16, !13, i64 20, !7, i64 24, !7, i64 28, !11, i64 32, !12, i64 36, !12, i64 44, !10, i64 56, !13, i64 64, !13, i64 68, !11, i64 72, !7, i64 76, !13, i64 80, !23, i64 84, !8, i64 86, !10, i64 128}
!23 = !{!"short", !8, i64 0}
!24 = !{!22, !11, i64 12}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!6, !7, i64 1160}
!28 = !{!6, !7, i64 1156}
!29 = !{!6, !11, i64 25}
!30 = !{!10, !10, i64 0}
!31 = !{!32, !10, i64 72}
!32 = !{!"_ZTS6ImFont", !33, i64 0, !13, i64 16, !13, i64 20, !34, i64 24, !35, i64 40, !10, i64 56, !10, i64 64, !10, i64 72, !23, i64 80, !23, i64 82, !23, i64 84, !23, i64 86, !11, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !7, i64 104, !8, i64 108}
!33 = !{!"_ZTS8ImVectorIfE", !7, i64 0, !7, i64 4, !10, i64 8}
!34 = !{!"_ZTS8ImVectorItE", !7, i64 0, !7, i64 4, !10, i64 8}
!35 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !7, i64 0, !7, i64 4, !10, i64 8}
!36 = !{!6, !10, i64 112}
!37 = !{!32, !23, i64 80}
!38 = distinct !{!38, !26}


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