; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/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, [7 x i8], ptr, i8, i8, [6 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.1, %struct.ImVector.7, ptr, ptr, ptr, i16, i16, i16, i16, float, float, i8, [3 x i8], float, float, float, i32, [2 x i8], [2 x i8] }>
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.10 = 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(1180) %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.10, 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 19
  %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 19
  %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 19
  %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 19
  %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 19
  %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 17
  %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 17
  %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 19
  %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 17
  %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 19
  %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 19
  %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 17
  %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 17
  %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 19
  call void @_ZN8ImVectorI12ImFontConfigE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %102)
  %103 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 18
  call void @_ZN8ImVectorI21ImFontAtlasCustomRectE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %103)
  %104 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 24
  store i32 -1, ptr %104, align 8, !tbaa !37
  %105 = getelementptr inbounds %struct.ImFontAtlas, ptr %5, i32 0, i32 23
  store i32 -1, ptr %105, align 4, !tbaa !38
  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, !6, i64 32, !12, i64 40, !12, i64 41, !6, i64 48, !6, i64 56, !11, i64 64, !11, i64 68, !13, i64 72, !13, i64 80, !15, i64 88, !16, i64 104, !17, i64 120, !7, i64 136, !6, i64 1160, !11, i64 1168, !11, i64 1172, !11, i64 1176}
!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 120}
!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 88}
!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, !14, i64 88, !14, i64 92, !12, i64 96, !14, i64 100, !14, i64 104, !14, i64 108, !11, i64 112, !7, i64 116}
!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 128}
!35 = !{!30, !24, i64 80}
!36 = distinct !{!36, !27}
!37 = !{!10, !11, i64 1176}
!38 = !{!10, !11, i64 1172}


; 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 [122 x i8], align 1
@.str.10 = 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(1180) %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 120
  %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.10, 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 88
  %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 128
  br label %31

.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 = %54, %.preheader
  tail call void @_ZN8ImVectorI12ImFontConfigE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %28 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZN8ImVectorI21ImFontAtlasCustomRectE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
  %29 = getelementptr inbounds i8, ptr %0, i64 1176
  store i32 -1, ptr %29, align 8, !tbaa !27
  %30 = getelementptr inbounds i8, ptr %0, i64 1172
  store i32 -1, ptr %30, align 4, !tbaa !28
  ret void

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

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

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

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

; 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, !10, i64 32, !11, i64 40, !11, i64 41, !10, i64 48, !10, i64 56, !7, i64 64, !7, i64 68, !12, i64 72, !12, i64 80, !14, i64 88, !15, i64 104, !16, i64 120, !8, i64 136, !10, i64 1160, !7, i64 1168, !7, i64 1172, !7, i64 1176}
!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 120}
!20 = !{!6, !7, i64 88}
!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 1176}
!28 = !{!6, !7, i64 1172}
!29 = !{!10, !10, i64 0}
!30 = !{!31, !10, i64 72}
!31 = !{!"_ZTS6ImFont", !32, i64 0, !13, i64 16, !13, i64 20, !33, i64 24, !34, i64 40, !10, i64 56, !10, i64 64, !10, i64 72, !23, i64 80, !23, i64 82, !23, i64 84, !23, i64 86, !13, i64 88, !13, i64 92, !11, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !7, i64 112, !8, i64 116}
!32 = !{!"_ZTS8ImVectorIfE", !7, i64 0, !7, i64 4, !10, i64 8}
!33 = !{!"_ZTS8ImVectorItE", !7, i64 0, !7, i64 4, !10, i64 8}
!34 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !7, i64 0, !7, i64 4, !10, i64 8}
!35 = !{!6, !10, i64 128}
!36 = !{!31, !23, i64 80}
!37 = distinct !{!37, !26}


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