; LLVM IR from l1mey112/yr11-physics-applied :: cimgui/imgui/imgui_draw.ll (ZN6ImFont16BuildLookupTableEv)

; 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.ImFont = type <{ %struct.ImVector.6, float, float, %struct.ImVector.1, %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.1 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImFontGlyph = type { i32, float, float, float, float, float, float, float, float, float }

@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv = external hidden unnamed_addr constant [32 x i8], align 1
@__const._ZN6ImFont16BuildLookupTableEv.ellipsis_chars = external hidden unnamed_addr constant [2 x i16], align 2
@__const._ZN6ImFont16BuildLookupTableEv.dots_chars = external hidden unnamed_addr constant [2 x i16], align 2
@__const._ZN6ImFont16BuildLookupTableEv.fallback_chars = external hidden unnamed_addr constant [3 x i16], align 2

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef, i32 noundef) #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImFont16BuildLookupTableEv(ptr noundef nonnull align 8 dereferenceable(110) %0) #6 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca [2 x i16], align 2
  %10 = alloca [2 x i16], align 2
  %11 = alloca [3 x i16], align 2
  %12 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %29, %1
  %15 = load i32, ptr %4, align 4, !tbaa !9
  %16 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 4
  %17 = getelementptr inbounds %struct.ImVector.7, ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 8, !tbaa !11
  %19 = icmp ne i32 %15, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %32

21:                                               ; preds = %14
  %22 = load i32, ptr %3, align 4, !tbaa !9
  %23 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 4
  %24 = load i32, ptr %4, align 4, !tbaa !9
  %25 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %23, i32 noundef %24)
  %26 = load i32, ptr %25, align 4
  %27 = lshr i32 %26, 2
  %28 = call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %22, i32 noundef %27)
  store i32 %28, ptr %3, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %21
  %30 = load i32, ptr %4, align 4, !tbaa !9
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %4, align 4, !tbaa !9
  br label %14, !llvm.loop !19

32:                                               ; preds = %20
  %33 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 4
  %34 = getelementptr inbounds %struct.ImVector.7, ptr %33, i32 0, i32 0
  %35 = load i32, ptr %34, align 8, !tbaa !11
  %36 = icmp slt i32 %35, 65535
  br i1 %36, label %37, label %38

37:                                               ; preds = %32
  br label %40

38:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str.33, ptr noundef @.str.1, i32 noundef 3161, ptr noundef @__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv) #9
  unreachable

39:                                               ; No predecessors!
  br label %40

40:                                               ; preds = %39, %37
  %41 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 0
  call void @_ZN8ImVectorIfE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %41)
  %42 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 3
  call void @_ZN8ImVectorItE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %42)
  %43 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 12
  store i8 0, ptr %43, align 8, !tbaa !21
  %44 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 18
  %45 = getelementptr inbounds [2 x i8], ptr %44, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 4 %45, i8 0, i64 2, i1 false)
  %46 = load i32, ptr %3, align 4, !tbaa !9
  %47 = add nsw i32 %46, 1
  call void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(110) %13, i32 noundef %47)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %88, %40
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 4
  %51 = getelementptr inbounds %struct.ImVector.7, ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 8, !tbaa !11
  %53 = icmp slt i32 %49, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %91

55:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %56 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 4
  %57 = load i32, ptr %5, align 4, !tbaa !9
  %58 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %56, i32 noundef %57)
  %59 = load i32, ptr %58, align 4
  %60 = lshr i32 %59, 2
  store i32 %60, ptr %6, align 4, !tbaa !9
  %61 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 4
  %62 = load i32, ptr %5, align 4, !tbaa !9
  %63 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %61, i32 noundef %62)
  %64 = getelementptr inbounds %struct.ImFontGlyph, ptr %63, i32 0, i32 1
  %65 = load float, ptr %64, align 4, !tbaa !22
  %66 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 0
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %66, i32 noundef %67)
  store float %65, ptr %68, align 4, !tbaa !24
  %69 = load i32, ptr %5, align 4, !tbaa !9
  %70 = trunc i32 %69 to i16
  %71 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 3
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16) %71, i32 noundef %72)
  store i16 %70, ptr %73, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  %74 = load i32, ptr %6, align 4, !tbaa !9
  %75 = sdiv i32 %74, 4096
  store i32 %75, ptr %7, align 4, !tbaa !9
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = and i32 %76, 7
  %78 = shl i32 1, %77
  %79 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 18
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = ashr i32 %80, 3
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [2 x i8], ptr %79, i64 0, i64 %82
  %84 = load i8, ptr %83, align 1, !tbaa !26
  %85 = zext i8 %84 to i32
  %86 = or i32 %85, %78
  %87 = trunc i32 %86 to i8
  store i8 %87, ptr %83, align 1, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %88

88:                                               ; preds = %55
  %89 = load i32, ptr %5, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %5, align 4, !tbaa !9
  br label %48, !llvm.loop !27

91:                                               ; preds = %54
  %92 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(110) %13, i16 noundef zeroext 32)
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %137

94:                                               ; preds = %91
  %95 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 4
  %96 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %95)
  %97 = load i32, ptr %96, align 4
  %98 = lshr i32 %97, 2
  %99 = icmp ne i32 %98, 9
  br i1 %99, label %100, label %106

100:                                              ; preds = %94
  %101 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 4
  %102 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 4
  %103 = getelementptr inbounds %struct.ImVector.7, ptr %102, i32 0, i32 0
  %104 = load i32, ptr %103, align 8, !tbaa !11
  %105 = add nsw i32 %104, 1
  call void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %101, i32 noundef %105)
  br label %106

106:                                              ; preds = %100, %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %107 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 4
  %108 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %107)
  store ptr %108, ptr %8, align 8, !tbaa !5
  %109 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(110) %13, i16 noundef zeroext 32)
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %110, ptr align 4 %109, i64 40, i1 false), !tbaa.struct !28
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load i32, ptr %111, align 4
  %113 = and i32 %112, 3
  %114 = or i32 %113, 36
  store i32 %114, ptr %111, align 4
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ImFontGlyph, ptr %115, i32 0, i32 1
  %117 = load float, ptr %116, align 4, !tbaa !22
  %118 = fmul float %117, 4.000000e+00
  store float %118, ptr %116, align 4, !tbaa !22
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.ImFontGlyph, ptr %119, i32 0, i32 1
  %121 = load float, ptr %120, align 4, !tbaa !22
  %122 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 0
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = load i32, ptr %123, align 4
  %125 = lshr i32 %124, 2
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %122, i32 noundef %125)
  store float %121, ptr %126, align 4, !tbaa !24
  %127 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 4
  %128 = getelementptr inbounds %struct.ImVector.7, ptr %127, i32 0, i32 0
  %129 = load i32, ptr %128, align 8, !tbaa !11
  %130 = sub nsw i32 %129, 1
  %131 = trunc i32 %130 to i16
  %132 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 3
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = load i32, ptr %133, align 4
  %135 = lshr i32 %134, 2
  %136 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16) %132, i32 noundef %135)
  store i16 %131, ptr %136, align 2, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %137

137:                                              ; preds = %106, %91
  call void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(110) %13, i16 noundef zeroext 32, i1 noundef zeroext false)
  call void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(110) %13, i16 noundef zeroext 9, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %9, ptr align 2 @__const._ZN6ImFont16BuildLookupTableEv.ellipsis_chars, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %10, ptr align 2 @__const._ZN6ImFont16BuildLookupTableEv.dots_chars, i64 4, i1 false)
  %138 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 10
  %139 = load i16, ptr %138, align 4, !tbaa !29
  %140 = zext i16 %139 to i32
  %141 = icmp eq i32 %140, 65535
  br i1 %141, label %142, label %146

142:                                              ; preds = %137
  %143 = getelementptr inbounds [2 x i16], ptr %9, i64 0, i64 0
  %144 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %13, ptr noundef %143, i32 noundef 2)
  %145 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 10
  store i16 %144, ptr %145, align 4, !tbaa !29
  br label %146

146:                                              ; preds = %142, %137
  %147 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 11
  %148 = load i16, ptr %147, align 2, !tbaa !30
  %149 = zext i16 %148 to i32
  %150 = icmp eq i32 %149, 65535
  br i1 %150, label %151, label %155

151:                                              ; preds = %146
  %152 = getelementptr inbounds [2 x i16], ptr %10, i64 0, i64 0
  %153 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %13, ptr noundef %152, i32 noundef 2)
  %154 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 11
  store i16 %153, ptr %154, align 2, !tbaa !30
  br label %155

155:                                              ; preds = %151, %146
  call void @llvm.lifetime.start.p0(i64 6, ptr %11) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %11, ptr align 2 @__const._ZN6ImFont16BuildLookupTableEv.fallback_chars, i64 6, i1 false)
  %156 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 9
  %157 = load i16, ptr %156, align 2, !tbaa !31
  %158 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(110) %13, i16 noundef zeroext %157)
  %159 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 5
  store ptr %158, ptr %159, align 8, !tbaa !32
  %160 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 5
  %161 = load ptr, ptr %160, align 8, !tbaa !32
  %162 = icmp eq ptr %161, null
  br i1 %162, label %163, label %185

163:                                              ; preds = %155
  %164 = getelementptr inbounds [3 x i16], ptr %11, i64 0, i64 0
  %165 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %13, ptr noundef %164, i32 noundef 3)
  %166 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 9
  store i16 %165, ptr %166, align 2, !tbaa !31
  %167 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 9
  %168 = load i16, ptr %167, align 2, !tbaa !31
  %169 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(110) %13, i16 noundef zeroext %168)
  %170 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 5
  store ptr %169, ptr %170, align 8, !tbaa !32
  %171 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 5
  %172 = load ptr, ptr %171, align 8, !tbaa !32
  %173 = icmp eq ptr %172, null
  br i1 %173, label %174, label %184

174:                                              ; preds = %163
  %175 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 4
  %176 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %175)
  %177 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 5
  store ptr %176, ptr %177, align 8, !tbaa !32
  %178 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 5
  %179 = load ptr, ptr %178, align 8, !tbaa !32
  %180 = load i32, ptr %179, align 4
  %181 = lshr i32 %180, 2
  %182 = trunc i32 %181 to i16
  %183 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 9
  store i16 %182, ptr %183, align 2, !tbaa !31
  br label %184

184:                                              ; preds = %174, %163
  br label %185

185:                                              ; preds = %184, %155
  %186 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 5
  %187 = load ptr, ptr %186, align 8, !tbaa !32
  %188 = getelementptr inbounds %struct.ImFontGlyph, ptr %187, i32 0, i32 1
  %189 = load float, ptr %188, align 4, !tbaa !22
  %190 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 1
  store float %189, ptr %190, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %210, %185
  %192 = load i32, ptr %12, align 4, !tbaa !9
  %193 = load i32, ptr %3, align 4, !tbaa !9
  %194 = add nsw i32 %193, 1
  %195 = icmp slt i32 %192, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %213

197:                                              ; preds = %191
  %198 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 0
  %199 = load i32, ptr %12, align 4, !tbaa !9
  %200 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %198, i32 noundef %199)
  %201 = load float, ptr %200, align 4, !tbaa !24
  %202 = fcmp olt float %201, 0.000000e+00
  br i1 %202, label %203, label %209

203:                                              ; preds = %197
  %204 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 1
  %205 = load float, ptr %204, align 8, !tbaa !33
  %206 = getelementptr inbounds %struct.ImFont, ptr %13, i32 0, i32 0
  %207 = load i32, ptr %12, align 4, !tbaa !9
  %208 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %206, i32 noundef %207)
  store float %205, ptr %208, align 4, !tbaa !24
  br label %209

209:                                              ; preds = %203, %197
  br label %210

210:                                              ; preds = %209
  %211 = load i32, ptr %12, align 4, !tbaa !9
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %12, align 4, !tbaa !9
  br label %191, !llvm.loop !34

213:                                              ; preds = %196
  call void @llvm.lifetime.end.p0(i64 6, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  ret void
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(110), i32 noundef) #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(110), i16 noundef zeroext) #7 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(110), i16 noundef zeroext, i1 noundef zeroext) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef, ptr noundef, i32 noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(110), i16 noundef zeroext) #7 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #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 = { 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 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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, !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 40}
!12 = !{!"_ZTS6ImFont", !13, i64 0, !14, i64 16, !14, i64 20, !15, i64 24, !16, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !17, i64 80, !17, i64 82, !17, i64 84, !17, i64 86, !18, i64 88, !14, i64 92, !14, i64 96, !14, i64 100, !10, i64 104, !7, i64 108}
!13 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !6, i64 8}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!16 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !6, i64 8}
!17 = !{!"short", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !18, i64 88}
!22 = !{!23, !14, i64 4}
!23 = !{!"_ZTS11ImFontGlyph", !10, i64 0, !10, i64 0, !10, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36}
!24 = !{!14, !14, i64 0}
!25 = !{!17, !17, i64 0}
!26 = !{!7, !7, i64 0}
!27 = distinct !{!27, !20}
!28 = !{i64 0, i64 4, !26, i64 4, i64 4, !24, i64 8, i64 4, !24, i64 12, i64 4, !24, i64 16, i64 4, !24, i64 20, i64 4, !24, i64 24, i64 4, !24, i64 28, i64 4, !24, i64 32, i64 4, !24, i64 36, i64 4, !24}
!29 = !{!12, !17, i64 84}
!30 = !{!12, !17, i64 86}
!31 = !{!12, !17, i64 82}
!32 = !{!12, !6, i64 56}
!33 = !{!12, !14, i64 16}
!34 = distinct !{!34, !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"

@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv = external hidden unnamed_addr constant [32 x i8], align 1
@__const._ZN6ImFont16BuildLookupTableEv.ellipsis_chars = external hidden unnamed_addr constant [2 x i16], align 2
@__const._ZN6ImFont16BuildLookupTableEv.dots_chars = external hidden unnamed_addr constant [2 x i16], align 2
@__const._ZN6ImFont16BuildLookupTableEv.fallback_chars = external hidden unnamed_addr constant [3 x i16], align 2

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress 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) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImFont16BuildLookupTableEv(ptr noundef nonnull align 8 dereferenceable(110) %0) local_unnamed_addr #5 align 2 {
  %2 = alloca [2 x i16], align 4
  %3 = alloca [2 x i16], align 4
  %4 = alloca [3 x i16], align 2
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %.not34 = icmp eq i32 %6, 0
  br i1 %.not34, label %._crit_edge.thread, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph
  %7 = icmp ult i32 %.02735, 65534
  br i1 %7, label %._crit_edge.thread, label %14

.lr.ph:                                           ; preds = %1, %.lr.ph
  %.02636 = phi i32 [ %11, %.lr.ph ], [ 0, %1 ]
  %.02735 = phi i32 [ %12, %.lr.ph ], [ 0, %1 ]
  %8 = tail call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.02735)
  %9 = load i32, ptr %8, align 4
  %10 = lshr i32 %9, 2
  %11 = tail call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %.02636, i32 noundef %10)
  %12 = add nuw nsw i32 %.02735, 1
  %13 = load i32, ptr %5, align 8, !tbaa !5
  %.not = icmp eq i32 %12, %13
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !17

14:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.1, i32 noundef 3161, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv) #7
  unreachable

._crit_edge.thread:                               ; preds = %1, %._crit_edge
  %.026.lcssa52 = phi i32 [ %11, %._crit_edge ], [ 0, %1 ]
  tail call void @_ZN8ImVectorIfE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN8ImVectorItE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  %16 = getelementptr inbounds i8, ptr %0, i64 88
  store i8 0, ptr %16, align 8, !tbaa !19
  %17 = getelementptr inbounds i8, ptr %0, i64 108
  store i16 0, ptr %17, align 4
  %18 = add i32 %.026.lcssa52, 1
  tail call void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(110) %0, i32 noundef %18)
  %19 = load i32, ptr %5, align 8, !tbaa !5
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph41, label %._crit_edge42

._crit_edge42:                                    ; preds = %.lr.ph41, %._crit_edge.thread
  %21 = tail call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(110) %0, i16 noundef zeroext 32)
  %.not30 = icmp eq ptr %21, null
  br i1 %.not30, label %65, label %43

.lr.ph41:                                         ; preds = %._crit_edge.thread, %.lr.ph41
  %.02839 = phi i32 [ %40, %.lr.ph41 ], [ 0, %._crit_edge.thread ]
  %22 = tail call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.02839)
  %23 = load i32, ptr %22, align 4
  %24 = lshr i32 %23, 2
  %25 = tail call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.02839)
  %26 = getelementptr inbounds i8, ptr %25, i64 4
  %27 = load float, ptr %26, align 4, !tbaa !20
  %28 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %24)
  store float %27, ptr %28, align 4, !tbaa !22
  %29 = trunc i32 %.02839 to i16
  %30 = tail call noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %24)
  store i16 %29, ptr %30, align 2, !tbaa !23
  %31 = lshr i32 %23, 14
  %32 = and i32 %31, 7
  %33 = shl nuw nsw i32 1, %32
  %34 = lshr i32 %23, 17
  %35 = zext nneg i32 %34 to i64
  %36 = getelementptr inbounds [2 x i8], ptr %17, i64 0, i64 %35
  %37 = load i8, ptr %36, align 1, !tbaa !24
  %38 = trunc nuw i32 %33 to i8
  %39 = or i8 %37, %38
  store i8 %39, ptr %36, align 1, !tbaa !24
  %40 = add nuw nsw i32 %.02839, 1
  %41 = load i32, ptr %5, align 8, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %.lr.ph41, label %._crit_edge42, !llvm.loop !25

43:                                               ; preds = %._crit_edge42
  %44 = tail call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %45 = load i32, ptr %44, align 4
  %.mask = and i32 %45, -4
  %.not31 = icmp eq i32 %.mask, 36
  br i1 %.not31, label %49, label %46

46:                                               ; preds = %43
  %47 = load i32, ptr %5, align 8, !tbaa !5
  %48 = add nsw i32 %47, 1
  tail call void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %48)
  br label %49

49:                                               ; preds = %46, %43
  %50 = tail call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %51 = tail call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(110) %0, i16 noundef zeroext 32)
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(40) %50, ptr noundef nonnull align 4 dereferenceable(40) %51, i64 40, i1 false), !tbaa.struct !26
  %52 = load i32, ptr %50, align 4
  %53 = and i32 %52, 3
  %54 = or disjoint i32 %53, 36
  store i32 %54, ptr %50, align 4
  %55 = getelementptr inbounds i8, ptr %50, i64 4
  %56 = load float, ptr %55, align 4, !tbaa !20
  %57 = fmul float %56, 4.000000e+00
  store float %57, ptr %55, align 4, !tbaa !20
  %58 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 9)
  store float %57, ptr %58, align 4, !tbaa !22
  %59 = load i32, ptr %5, align 8, !tbaa !5
  %60 = trunc i32 %59 to i16
  %61 = add i16 %60, -1
  %62 = load i32, ptr %50, align 4
  %63 = lshr i32 %62, 2
  %64 = tail call noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %63)
  store i16 %61, ptr %64, align 2, !tbaa !23
  br label %65

65:                                               ; preds = %49, %._crit_edge42
  tail call void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(110) %0, i16 noundef zeroext 32, i1 noundef zeroext false)
  tail call void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(110) %0, i16 noundef zeroext 9, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %66 = load i32, ptr @__const._ZN6ImFont16BuildLookupTableEv.ellipsis_chars, align 2
  store i32 %66, ptr %2, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %67 = load i32, ptr @__const._ZN6ImFont16BuildLookupTableEv.dots_chars, align 2
  store i32 %67, ptr %3, align 4
  %68 = getelementptr inbounds i8, ptr %0, i64 84
  %69 = load i16, ptr %68, align 4, !tbaa !27
  %70 = icmp eq i16 %69, -1
  br i1 %70, label %71, label %73

71:                                               ; preds = %65
  %72 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef 2)
  store i16 %72, ptr %68, align 4, !tbaa !27
  br label %73

73:                                               ; preds = %71, %65
  %74 = getelementptr inbounds i8, ptr %0, i64 86
  %75 = load i16, ptr %74, align 2, !tbaa !28
  %76 = icmp eq i16 %75, -1
  br i1 %76, label %77, label %79

77:                                               ; preds = %73
  %78 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef 2)
  store i16 %78, ptr %74, align 2, !tbaa !28
  br label %79

79:                                               ; preds = %77, %73
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %4) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 2 dereferenceable(6) %4, ptr noundef nonnull align 2 dereferenceable(6) @__const._ZN6ImFont16BuildLookupTableEv.fallback_chars, i64 6, i1 false)
  %80 = getelementptr inbounds i8, ptr %0, i64 82
  %81 = load i16, ptr %80, align 2, !tbaa !29
  %82 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(110) %0, i16 noundef zeroext %81)
  %83 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %82, ptr %83, align 8, !tbaa !30
  %84 = icmp eq ptr %82, null
  br i1 %84, label %85, label %94

85:                                               ; preds = %79
  %86 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef nonnull %0, ptr noundef nonnull %4, i32 noundef 3)
  store i16 %86, ptr %80, align 2, !tbaa !29
  %87 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(110) %0, i16 noundef zeroext %86)
  store ptr %87, ptr %83, align 8, !tbaa !30
  %88 = icmp eq ptr %87, null
  br i1 %88, label %89, label %94

89:                                               ; preds = %85
  %90 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  store ptr %90, ptr %83, align 8, !tbaa !30
  %91 = load i32, ptr %90, align 4
  %92 = lshr i32 %91, 2
  %93 = trunc i32 %92 to i16
  store i16 %93, ptr %80, align 2, !tbaa !29
  br label %94

94:                                               ; preds = %85, %89, %79
  %95 = phi ptr [ %87, %85 ], [ %90, %89 ], [ %82, %79 ]
  %96 = getelementptr inbounds i8, ptr %95, i64 4
  %97 = load float, ptr %96, align 4, !tbaa !20
  %98 = getelementptr inbounds i8, ptr %0, i64 16
  store float %97, ptr %98, align 8, !tbaa !31
  %.not3243 = icmp slt i32 %.026.lcssa52, 0
  br i1 %.not3243, label %._crit_edge47, label %.lr.ph46

._crit_edge47:                                    ; preds = %105, %94
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  ret void

.lr.ph46:                                         ; preds = %94, %105
  %.044 = phi i32 [ %106, %105 ], [ 0, %94 ]
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.044)
  %100 = load float, ptr %99, align 4, !tbaa !22
  %101 = fcmp olt float %100, 0.000000e+00
  br i1 %101, label %102, label %105

102:                                              ; preds = %.lr.ph46
  %103 = load float, ptr %98, align 8, !tbaa !31
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.044)
  store float %103, ptr %104, align 4, !tbaa !22
  br label %105

105:                                              ; preds = %.lr.ph46, %102
  %106 = add nuw i32 %.044, 1
  %exitcond.not = icmp eq i32 %.044, %.026.lcssa52
  br i1 %exitcond.not, label %._crit_edge47, label %.lr.ph46, !llvm.loop !32
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(110), i32 noundef) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(110), i16 noundef zeroext) local_unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(110), i16 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(110), i16 noundef zeroext) local_unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 #5 = { 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 = { 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 #7 = { noreturn nounwind }
attributes #8 = { 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, !8, i64 40}
!6 = !{!"_ZTS6ImFont", !7, i64 0, !12, i64 16, !12, i64 20, !13, i64 24, !14, i64 40, !11, i64 56, !11, i64 64, !11, i64 72, !15, i64 80, !15, i64 82, !15, i64 84, !15, i64 86, !16, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !8, i64 104, !9, i64 108}
!7 = !{!"_ZTS8ImVectorIfE", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"float", !9, i64 0}
!13 = !{!"_ZTS8ImVectorItE", !8, i64 0, !8, i64 4, !11, i64 8}
!14 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !8, i64 0, !8, i64 4, !11, i64 8}
!15 = !{!"short", !9, i64 0}
!16 = !{!"bool", !9, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !16, i64 88}
!20 = !{!21, !12, i64 4}
!21 = !{!"_ZTS11ImFontGlyph", !8, i64 0, !8, i64 0, !8, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36}
!22 = !{!12, !12, i64 0}
!23 = !{!15, !15, i64 0}
!24 = !{!9, !9, i64 0}
!25 = distinct !{!25, !18}
!26 = !{i64 0, i64 4, !24, i64 4, i64 4, !22, i64 8, i64 4, !22, i64 12, i64 4, !22, i64 16, i64 4, !22, i64 20, i64 4, !22, i64 24, i64 4, !22, i64 28, i64 4, !22, i64 32, i64 4, !22, i64 36, i64 4, !22}
!27 = !{!6, !15, i64 84}
!28 = !{!6, !15, i64 86}
!29 = !{!6, !15, i64 82}
!30 = !{!6, !11, i64 56}
!31 = !{!6, !12, i64 16}
!32 = distinct !{!32, !18}


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