; LLVM IR from Eukky/TRender :: lib/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, ptr, ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %class.ImVector.8, %class.ImVector.9, %class.ImVector.10, [1 x i32], [4 x i8] }>
%struct.ImVec2 = type { float, float }
%class.ImVector.8 = type { i32, i32, ptr }
%class.ImVector.9 = type { i32, i32, ptr }
%class.ImVector.10 = type { i32, i32, ptr }
%struct.ImFontConfig = type { ptr, i32, i8, i32, float, i32, i32, i8, %struct.ImVec2, %struct.ImVec2, ptr, float, float, i8, i32, float, [40 x i8], ptr }
%struct.ImFont = type { float, float, %struct.ImVec2, %class.ImVector.6, %class.ImVector.7, %class.ImVector.0, ptr, float, i16, i16, ptr, ptr, float, float, i8, i32 }
%class.ImVector.6 = type { i32, i32, ptr }
%class.ImVector.7 = type { i32, i32, ptr }
%class.ImVector.0 = 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: mustprogress uwtable
define dso_local void @_ZN11ImFontAtlas14ClearInputDataEv(ptr noundef nonnull align 8 dereferenceable(116) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %7

7:                                                ; preds = %39, %1
  %8 = load i32, ptr %3, align 4, !tbaa !9
  %9 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 13
  %10 = getelementptr inbounds %class.ImVector.10, ptr %9, i32 0, i32 0
  %11 = load i32, ptr %10, align 8, !tbaa !11
  %12 = icmp slt i32 %8, %11
  br i1 %12, label %14, label %13

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

14:                                               ; preds = %7
  %15 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 13
  %16 = load i32, ptr %3, align 4, !tbaa !9
  %17 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %16)
  %18 = getelementptr inbounds %struct.ImFontConfig, ptr %17, i32 0, i32 0
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %38

21:                                               ; preds = %14
  %22 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 13
  %23 = load i32, ptr %3, align 4, !tbaa !9
  %24 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef %23)
  %25 = getelementptr inbounds %struct.ImFontConfig, ptr %24, i32 0, i32 2
  %26 = load i8, ptr %25, align 4, !tbaa !21, !range !22, !noundef !23
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %38

28:                                               ; preds = %21
  %29 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 13
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %29, i32 noundef %30)
  %32 = getelementptr inbounds %struct.ImFontConfig, ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !18
  call void @_ZN5ImGui7MemFreeEPv(ptr noundef %33)
  %34 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 13
  %35 = load i32, ptr %3, align 4, !tbaa !9
  %36 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %34, i32 noundef %35)
  %37 = getelementptr inbounds %struct.ImFontConfig, ptr %36, i32 0, i32 0
  store ptr null, ptr %37, align 8, !tbaa !18
  br label %38

38:                                               ; preds = %28, %21, %14
  br label %39

39:                                               ; preds = %38
  %40 = load i32, ptr %3, align 4, !tbaa !9
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %3, align 4, !tbaa !9
  br label %7, !llvm.loop !24

42:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %89, %42
  %44 = load i32, ptr %4, align 4, !tbaa !9
  %45 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 11
  %46 = getelementptr inbounds %class.ImVector.8, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !26
  %48 = icmp slt i32 %44, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %92

50:                                               ; preds = %43
  %51 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 11
  %52 = load i32, ptr %4, align 4, !tbaa !9
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %51, i32 noundef %52)
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ImFont, ptr %54, i32 0, i32 10
  %56 = load ptr, ptr %55, align 8, !tbaa !27
  %57 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 13
  %58 = getelementptr inbounds %class.ImVector.10, ptr %57, i32 0, i32 2
  %59 = load ptr, ptr %58, align 8, !tbaa !33
  %60 = icmp uge ptr %56, %59
  br i1 %60, label %61, label %88

61:                                               ; preds = %50
  %62 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 11
  %63 = load i32, ptr %4, align 4, !tbaa !9
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %62, i32 noundef %63)
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ImFont, ptr %65, i32 0, i32 10
  %67 = load ptr, ptr %66, align 8, !tbaa !27
  %68 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 13
  %69 = getelementptr inbounds %class.ImVector.10, ptr %68, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !33
  %71 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 13
  %72 = getelementptr inbounds %class.ImVector.10, ptr %71, i32 0, i32 0
  %73 = load i32, ptr %72, align 8, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds %struct.ImFontConfig, ptr %70, i64 %74
  %76 = icmp ult ptr %67, %75
  br i1 %76, label %77, label %88

77:                                               ; preds = %61
  %78 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 11
  %79 = load i32, ptr %4, align 4, !tbaa !9
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %78, i32 noundef %79)
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImFont, ptr %81, i32 0, i32 10
  store ptr null, ptr %82, align 8, !tbaa !27
  %83 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 11
  %84 = load i32, ptr %4, align 4, !tbaa !9
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %83, i32 noundef %84)
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.ImFont, ptr %86, i32 0, i32 9
  store i16 0, ptr %87, align 2, !tbaa !34
  br label %88

88:                                               ; preds = %77, %61, %50
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %4, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %4, align 4, !tbaa !9
  br label %43, !llvm.loop !35

92:                                               ; preds = %49
  %93 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 13
  call void @_ZN8ImVectorI12ImFontConfigE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %93)
  %94 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 12
  call void @_ZN8ImVectorIN11ImFontAtlas10CustomRectEE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %94)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %104, %92
  %96 = load i32, ptr %5, align 4, !tbaa !9
  %97 = icmp slt i32 %96, 1
  br i1 %97, label %99, label %98

98:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %107

99:                                               ; preds = %95
  %100 = getelementptr inbounds %struct.ImFontAtlas, ptr %6, i32 0, i32 14
  %101 = load i32, ptr %5, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [1 x i32], ptr %100, i64 0, i64 %102
  store i32 -1, ptr %103, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %99
  %105 = load i32, ptr %5, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %5, align 4, !tbaa !9
  br label %95, !llvm.loop !36

107:                                              ; preds = %98
  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) #2 align 2

declare void @_ZN5ImGui7MemFreeEPv(ptr noundef) #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) #2 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 96}
!12 = !{!"_ZTS11ImFontAtlas", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !13, i64 48, !13, i64 56, !15, i64 64, !16, i64 80, !17, i64 96, !7, i64 112}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !6, i64 8}
!16 = !{!"_ZTS8ImVectorIN11ImFontAtlas10CustomRectEE", !10, i64 0, !10, i64 4, !6, i64 8}
!17 = !{!"_ZTS8ImVectorI12ImFontConfigE", !10, i64 0, !10, i64 4, !6, i64 8}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTS12ImFontConfig", !6, i64 0, !10, i64 8, !20, i64 12, !10, i64 16, !14, i64 20, !10, i64 24, !10, i64 28, !20, i64 32, !13, i64 36, !13, i64 44, !6, i64 56, !14, i64 64, !14, i64 68, !20, i64 72, !10, i64 76, !14, i64 80, !7, i64 84, !6, i64 128}
!20 = !{!"bool", !7, i64 0}
!21 = !{!19, !20, i64 12}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!12, !10, i64 64}
!27 = !{!28, !6, i64 80}
!28 = !{!"_ZTS6ImFont", !14, i64 0, !14, i64 4, !13, i64 8, !29, i64 16, !30, i64 32, !31, i64 48, !6, i64 64, !14, i64 72, !32, i64 76, !32, i64 78, !6, i64 80, !6, i64 88, !14, i64 96, !14, i64 100, !20, i64 104, !10, i64 108}
!29 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !6, i64 8}
!30 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!32 = !{!"short", !7, i64 0}
!33 = !{!12, !6, i64 104}
!34 = !{!28, !32, i64 78}
!35 = distinct !{!35, !25}
!36 = distinct !{!36, !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, [40 x i8], ptr }
%struct.ImVec2 = type { float, float }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11ImFontAtlas14ClearInputDataEv(ptr noundef nonnull align 8 dereferenceable(116) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 96
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %20, %1
  %5 = getelementptr inbounds i8, ptr %0, i64 64
  %6 = load i32, ptr %5, align 8, !tbaa !16
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph20, label %.critedge

.lr.ph20:                                         ; preds = %.preheader
  %8 = getelementptr inbounds i8, ptr %0, i64 104
  br label %26

.lr.ph:                                           ; preds = %1, %20
  %.01618 = phi i32 [ %21, %20 ], [ 0, %1 ]
  %9 = tail call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %.01618)
  %10 = load ptr, ptr %9, align 8, !tbaa !17
  %.not17 = icmp eq ptr %10, null
  br i1 %.not17, label %20, label %11

11:                                               ; preds = %.lr.ph
  %12 = tail call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %.01618)
  %13 = getelementptr inbounds i8, ptr %12, i64 12
  %14 = load i8, ptr %13, align 4, !tbaa !20, !range !21, !noundef !22
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %16, label %20

16:                                               ; preds = %11
  %17 = tail call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %.01618)
  %18 = load ptr, ptr %17, align 8, !tbaa !17
  tail call void @_ZN5ImGui7MemFreeEPv(ptr noundef %18)
  %19 = tail call noundef nonnull align 8 dereferenceable(136) ptr @_ZN8ImVectorI12ImFontConfigEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %.01618)
  store ptr null, ptr %19, align 8, !tbaa !17
  br label %20

20:                                               ; preds = %.lr.ph, %11, %16
  %21 = add nuw nsw i32 %.01618, 1
  %22 = load i32, ptr %2, align 8, !tbaa !5
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %.lr.ph, label %.preheader, !llvm.loop !23

.critedge:                                        ; preds = %49, %.preheader
  tail call void @_ZN8ImVectorI12ImFontConfigE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %24 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZN8ImVectorIN11ImFontAtlas10CustomRectEE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  %25 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 -1, ptr %25, align 8, !tbaa !25
  ret void

26:                                               ; preds = %.lr.ph20, %49
  %.01519 = phi i32 [ 0, %.lr.ph20 ], [ %50, %49 ]
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.01519)
  %28 = load ptr, ptr %27, align 8, !tbaa !26
  %29 = getelementptr inbounds i8, ptr %28, i64 80
  %30 = load ptr, ptr %29, align 8, !tbaa !27
  %31 = load ptr, ptr %8, align 8, !tbaa !33
  %.not = icmp ult ptr %30, %31
  br i1 %.not, label %49, label %32

32:                                               ; preds = %26
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.01519)
  %34 = load ptr, ptr %33, align 8, !tbaa !26
  %35 = getelementptr inbounds i8, ptr %34, i64 80
  %36 = load ptr, ptr %35, align 8, !tbaa !27
  %37 = load ptr, ptr %8, align 8, !tbaa !33
  %38 = load i32, ptr %2, align 8, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds %struct.ImFontConfig, ptr %37, i64 %39
  %41 = icmp ult ptr %36, %40
  br i1 %41, label %42, label %49

42:                                               ; preds = %32
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.01519)
  %44 = load ptr, ptr %43, align 8, !tbaa !26
  %45 = getelementptr inbounds i8, ptr %44, i64 80
  store ptr null, ptr %45, align 8, !tbaa !27
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.01519)
  %47 = load ptr, ptr %46, align 8, !tbaa !26
  %48 = getelementptr inbounds i8, ptr %47, i64 78
  store i16 0, ptr %48, align 2, !tbaa !34
  br label %49

49:                                               ; preds = %26, %32, %42
  %50 = add nuw nsw i32 %.01519, 1
  %51 = load i32, ptr %5, align 8, !tbaa !16
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %26, label %.critedge, !llvm.loop !35
}

; 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 #1 align 2

declare void @_ZN5ImGui7MemFreeEPv(ptr noundef) local_unnamed_addr #2

; 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 #1 align 2

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

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

attributes #0 = { 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 #1 = { 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 #2 = { "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" }

!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, !7, i64 96}
!6 = !{!"_ZTS11ImFontAtlas", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 20, !10, i64 24, !10, i64 32, !7, i64 40, !7, i64 44, !11, i64 48, !11, i64 56, !13, i64 64, !14, i64 80, !15, i64 96, !8, i64 112}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !8, i64 0}
!13 = !{!"_ZTS8ImVectorIP6ImFontE", !7, i64 0, !7, i64 4, !10, i64 8}
!14 = !{!"_ZTS8ImVectorIN11ImFontAtlas10CustomRectEE", !7, i64 0, !7, i64 4, !10, i64 8}
!15 = !{!"_ZTS8ImVectorI12ImFontConfigE", !7, i64 0, !7, i64 4, !10, i64 8}
!16 = !{!6, !7, i64 64}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTS12ImFontConfig", !10, i64 0, !7, i64 8, !19, i64 12, !7, i64 16, !12, i64 20, !7, i64 24, !7, i64 28, !19, i64 32, !11, i64 36, !11, i64 44, !10, i64 56, !12, i64 64, !12, i64 68, !19, i64 72, !7, i64 76, !12, i64 80, !8, i64 84, !10, i64 128}
!19 = !{!"bool", !8, i64 0}
!20 = !{!18, !19, i64 12}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!7, !7, i64 0}
!26 = !{!10, !10, i64 0}
!27 = !{!28, !10, i64 80}
!28 = !{!"_ZTS6ImFont", !12, i64 0, !12, i64 4, !11, i64 8, !29, i64 16, !30, i64 32, !31, i64 48, !10, i64 64, !12, i64 72, !32, i64 76, !32, i64 78, !10, i64 80, !10, i64 88, !12, i64 96, !12, i64 100, !19, i64 104, !7, i64 108}
!29 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !7, i64 0, !7, i64 4, !10, i64 8}
!30 = !{!"_ZTS8ImVectorIfE", !7, i64 0, !7, i64 4, !10, i64 8}
!31 = !{!"_ZTS8ImVectorItE", !7, i64 0, !7, i64 4, !10, i64 8}
!32 = !{!"short", !8, i64 0}
!33 = !{!6, !10, i64 104}
!34 = !{!28, !32, i64 78}
!35 = distinct !{!35, !24}


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