; LLVM IR from xhub/reshop :: gui/external/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.7, float, float, %struct.ImVector.1, %struct.ImVector.8, 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.7 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImFontGlyph = type { i32, float, float, float, float, float, 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, float, i16, [40 x i8], ptr }
%struct.ImVec2 = type { float, float }

@.str.1 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [48 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv = external hidden unnamed_addr constant [32 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [21 x i8], align 1
@__const._ZN6ImFont16BuildLookupTableEv.fallback_chars = external hidden unnamed_addr constant [3 x i16], align 2
@__const._ZN6ImFont16BuildLookupTableEv.dots_chars = external hidden unnamed_addr constant [2 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: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float noundef) #3

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

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

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

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

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

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

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

31:                                               ; preds = %23
  %32 = load i32, ptr %4, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %4, align 4, !tbaa !9
  br label %16, !llvm.loop !19

34:                                               ; preds = %22
  %35 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %36 = getelementptr inbounds %struct.ImVector.8, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !11
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  br label %40

40:                                               ; preds = %39, %34
  %41 = phi i1 [ false, %34 ], [ true, %39 ]
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  br label %45

43:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.51, ptr noundef @.str.1, i32 noundef 3730, ptr noundef @__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv) #10
  unreachable

44:                                               ; No predecessors!
  br label %45

45:                                               ; preds = %44, %42
  %46 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %47 = getelementptr inbounds %struct.ImVector.8, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !11
  %49 = icmp slt i32 %48, 65535
  br i1 %49, label %50, label %51

50:                                               ; preds = %45
  br label %53

51:                                               ; preds = %45
  call void @__assert_fail(ptr noundef @.str.52, ptr noundef @.str.1, i32 noundef 3731, ptr noundef @__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv) #10
  unreachable

52:                                               ; No predecessors!
  br label %53

53:                                               ; preds = %52, %50
  %54 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  call void @_ZN8ImVectorIfE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %54)
  %55 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 3
  call void @_ZN8ImVectorItE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %55)
  %56 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 14
  store i8 0, ptr %56, align 8, !tbaa !21
  %57 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 20
  %58 = getelementptr inbounds [2 x i8], ptr %57, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 4 %58, i8 0, i64 2, i1 false)
  %59 = load i32, ptr %3, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  call void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(118) %15, i32 noundef %60)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %101, %53
  %62 = load i32, ptr %5, align 4, !tbaa !9
  %63 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %64 = getelementptr inbounds %struct.ImVector.8, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !11
  %66 = icmp slt i32 %62, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %104

68:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  %69 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %69, i32 noundef %70)
  %72 = load i32, ptr %71, align 4
  %73 = lshr i32 %72, 2
  store i32 %73, ptr %6, align 4, !tbaa !9
  %74 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %75 = load i32, ptr %5, align 4, !tbaa !9
  %76 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %74, i32 noundef %75)
  %77 = getelementptr inbounds %struct.ImFontGlyph, ptr %76, i32 0, i32 1
  %78 = load float, ptr %77, align 4, !tbaa !22
  %79 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  %80 = load i32, ptr %6, align 4, !tbaa !9
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %79, i32 noundef %80)
  store float %78, ptr %81, align 4, !tbaa !24
  %82 = load i32, ptr %5, align 4, !tbaa !9
  %83 = trunc i32 %82 to i16
  %84 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 3
  %85 = load i32, ptr %6, align 4, !tbaa !9
  %86 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16) %84, i32 noundef %85)
  store i16 %83, ptr %86, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %87 = load i32, ptr %6, align 4, !tbaa !9
  %88 = sdiv i32 %87, 4096
  store i32 %88, ptr %7, align 4, !tbaa !9
  %89 = load i32, ptr %7, align 4, !tbaa !9
  %90 = and i32 %89, 7
  %91 = shl i32 1, %90
  %92 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 20
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = ashr i32 %93, 3
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [2 x i8], ptr %92, i64 0, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !26
  %98 = zext i8 %97 to i32
  %99 = or i32 %98, %91
  %100 = trunc i32 %99 to i8
  store i8 %100, ptr %96, align 1, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %101

101:                                              ; preds = %68
  %102 = load i32, ptr %5, align 4, !tbaa !9
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %5, align 4, !tbaa !9
  br label %61, !llvm.loop !27

104:                                              ; preds = %67
  %105 = call noundef ptr @_ZN6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext 32)
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %150

107:                                              ; preds = %104
  %108 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %109 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %108)
  %110 = load i32, ptr %109, align 4
  %111 = lshr i32 %110, 2
  %112 = icmp ne i32 %111, 9
  br i1 %112, label %113, label %119

113:                                              ; preds = %107
  %114 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %115 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %116 = getelementptr inbounds %struct.ImVector.8, ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 8, !tbaa !11
  %118 = add nsw i32 %117, 1
  call void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %114, i32 noundef %118)
  br label %119

119:                                              ; preds = %113, %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %120 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %121 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %120)
  store ptr %121, ptr %8, align 8, !tbaa !5
  %122 = call noundef ptr @_ZN6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext 32)
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %123, ptr align 4 %122, i64 40, i1 false), !tbaa.struct !28
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = load i32, ptr %124, align 4
  %126 = and i32 %125, 3
  %127 = or i32 %126, 36
  store i32 %127, ptr %124, align 4
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.ImFontGlyph, ptr %128, i32 0, i32 1
  %130 = load float, ptr %129, align 4, !tbaa !22
  %131 = fmul float %130, 4.000000e+00
  store float %131, ptr %129, align 4, !tbaa !22
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ImFontGlyph, ptr %132, i32 0, i32 1
  %134 = load float, ptr %133, align 4, !tbaa !22
  %135 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = load i32, ptr %136, align 4
  %138 = lshr i32 %137, 2
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %135, i32 noundef %138)
  store float %134, ptr %139, align 4, !tbaa !24
  %140 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %141 = getelementptr inbounds %struct.ImVector.8, ptr %140, i32 0, i32 0
  %142 = load i32, ptr %141, align 8, !tbaa !11
  %143 = sub nsw i32 %142, 1
  %144 = trunc i32 %143 to i16
  %145 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 3
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = load i32, ptr %146, align 4
  %148 = lshr i32 %147, 2
  %149 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16) %145, i32 noundef %148)
  store i16 %144, ptr %149, align 2, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %150

150:                                              ; preds = %119, %104
  call void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext 32, i1 noundef zeroext false)
  call void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext 9, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 6, ptr %9) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %9, ptr align 2 @__const._ZN6ImFont16BuildLookupTableEv.fallback_chars, i64 6, i1 false)
  %151 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 11
  %152 = load i16, ptr %151, align 2, !tbaa !29
  %153 = call noundef ptr @_ZN6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %152)
  %154 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  store ptr %153, ptr %154, align 8, !tbaa !30
  %155 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %156 = load ptr, ptr %155, align 8, !tbaa !30
  %157 = icmp eq ptr %156, null
  br i1 %157, label %158, label %180

158:                                              ; preds = %150
  %159 = getelementptr inbounds [3 x i16], ptr %9, i64 0, i64 0
  %160 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %15, ptr noundef %159, i32 noundef 3)
  %161 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 11
  store i16 %160, ptr %161, align 2, !tbaa !29
  %162 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 11
  %163 = load i16, ptr %162, align 2, !tbaa !29
  %164 = call noundef ptr @_ZN6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %163)
  %165 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  store ptr %164, ptr %165, align 8, !tbaa !30
  %166 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %167 = load ptr, ptr %166, align 8, !tbaa !30
  %168 = icmp eq ptr %167, null
  br i1 %168, label %169, label %179

169:                                              ; preds = %158
  %170 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %171 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %170)
  %172 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  store ptr %171, ptr %172, align 8, !tbaa !30
  %173 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %174 = load ptr, ptr %173, align 8, !tbaa !30
  %175 = load i32, ptr %174, align 4
  %176 = lshr i32 %175, 2
  %177 = trunc i32 %176 to i16
  %178 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 11
  store i16 %177, ptr %178, align 2, !tbaa !29
  br label %179

179:                                              ; preds = %169, %158
  br label %180

180:                                              ; preds = %179, %150
  %181 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %182 = load ptr, ptr %181, align 8, !tbaa !30
  %183 = getelementptr inbounds %struct.ImFontGlyph, ptr %182, i32 0, i32 1
  %184 = load float, ptr %183, align 4, !tbaa !22
  %185 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 1
  store float %184, ptr %185, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %186

186:                                              ; preds = %205, %180
  %187 = load i32, ptr %10, align 4, !tbaa !9
  %188 = load i32, ptr %3, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  %190 = icmp slt i32 %187, %189
  br i1 %190, label %192, label %191

191:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %208

192:                                              ; preds = %186
  %193 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  %194 = load i32, ptr %10, align 4, !tbaa !9
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %193, i32 noundef %194)
  %196 = load float, ptr %195, align 4, !tbaa !24
  %197 = fcmp olt float %196, 0.000000e+00
  br i1 %197, label %198, label %204

198:                                              ; preds = %192
  %199 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 1
  %200 = load float, ptr %199, align 8, !tbaa !31
  %201 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  %202 = load i32, ptr %10, align 4, !tbaa !9
  %203 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %201, i32 noundef %202)
  store float %200, ptr %203, align 4, !tbaa !24
  br label %204

204:                                              ; preds = %198, %192
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %10, align 4, !tbaa !9
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %10, align 4, !tbaa !9
  br label %186, !llvm.loop !32

208:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 6, ptr %11) #9
  %209 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 7
  %210 = load ptr, ptr %209, align 8, !tbaa !33
  %211 = getelementptr inbounds %struct.ImFontConfig, ptr %210, i32 0, i32 17
  %212 = load i16, ptr %211, align 8, !tbaa !34
  store i16 %212, ptr %11, align 2, !tbaa !25
  %213 = getelementptr inbounds i16, ptr %11, i64 1
  store i16 8230, ptr %213, align 2, !tbaa !25
  %214 = getelementptr inbounds i16, ptr %11, i64 2
  store i16 133, ptr %214, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %12, ptr align 2 @__const._ZN6ImFont16BuildLookupTableEv.dots_chars, i64 4, i1 false)
  %215 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  %216 = load i16, ptr %215, align 4, !tbaa !37
  %217 = zext i16 %216 to i32
  %218 = icmp eq i32 %217, 0
  br i1 %218, label %219, label %223

219:                                              ; preds = %208
  %220 = getelementptr inbounds [3 x i16], ptr %11, i64 0, i64 0
  %221 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %15, ptr noundef %220, i32 noundef 3)
  %222 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  store i16 %221, ptr %222, align 4, !tbaa !37
  br label %223

223:                                              ; preds = %219, %208
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #9
  %224 = getelementptr inbounds [2 x i16], ptr %12, i64 0, i64 0
  %225 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %15, ptr noundef %224, i32 noundef 2)
  store i16 %225, ptr %13, align 2, !tbaa !25
  %226 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  %227 = load i16, ptr %226, align 4, !tbaa !37
  %228 = zext i16 %227 to i32
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %239

230:                                              ; preds = %223
  %231 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 9
  store i16 1, ptr %231, align 2, !tbaa !38
  %232 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  %233 = load i16, ptr %232, align 4, !tbaa !37
  %234 = call noundef ptr @_ZN6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %233)
  %235 = getelementptr inbounds %struct.ImFontGlyph, ptr %234, i32 0, i32 4
  %236 = load float, ptr %235, align 4, !tbaa !39
  %237 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 13
  store float %236, ptr %237, align 4, !tbaa !40
  %238 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 12
  store float %236, ptr %238, align 8, !tbaa !41
  br label %273

239:                                              ; preds = %223
  %240 = load i16, ptr %13, align 2, !tbaa !25
  %241 = zext i16 %240 to i32
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %243, label %272

243:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %244 = load i16, ptr %13, align 2, !tbaa !25
  %245 = call noundef ptr @_ZN6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %244)
  store ptr %245, ptr %14, align 8, !tbaa !5
  %246 = load i16, ptr %13, align 2, !tbaa !25
  %247 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  store i16 %246, ptr %247, align 4, !tbaa !37
  %248 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 9
  store i16 3, ptr %248, align 2, !tbaa !38
  %249 = load ptr, ptr %14, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.ImFontGlyph, ptr %249, i32 0, i32 4
  %251 = load float, ptr %250, align 4, !tbaa !39
  %252 = load ptr, ptr %14, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.ImFontGlyph, ptr %252, i32 0, i32 2
  %254 = load float, ptr %253, align 4, !tbaa !42
  %255 = fsub float %251, %254
  %256 = fptosi float %255 to i32
  %257 = sitofp i32 %256 to float
  %258 = fadd float %257, 1.000000e+00
  %259 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 13
  store float %258, ptr %259, align 4, !tbaa !40
  %260 = load ptr, ptr %14, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.ImFontGlyph, ptr %260, i32 0, i32 1
  %262 = load float, ptr %261, align 4, !tbaa !22
  %263 = load ptr, ptr %14, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.ImFontGlyph, ptr %263, i32 0, i32 2
  %265 = load float, ptr %264, align 4, !tbaa !42
  %266 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 13
  %267 = load float, ptr %266, align 4, !tbaa !40
  %268 = call float @llvm.fmuladd.f32(float %267, float 3.000000e+00, float %265)
  %269 = fsub float %268, 1.000000e+00
  %270 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %262, float noundef %269)
  %271 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 12
  store float %270, ptr %271, align 8, !tbaa !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %272

272:                                              ; preds = %243, %239
  br label %273

273:                                              ; preds = %272, %230
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 6, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 6, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIfE5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 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) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(118), i32 noundef) #7 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) #3 align 2

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

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

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

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

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

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 = { 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 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { 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, !14, i64 88, !14, i64 92, !18, i64 96, !14, i64 100, !14, i64 104, !14, i64 108, !10, i64 112, !7, i64 116}
!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 96}
!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 86}
!30 = !{!12, !6, i64 56}
!31 = !{!12, !14, i64 16}
!32 = distinct !{!32, !20}
!33 = !{!12, !6, i64 72}
!34 = !{!35, !17, i64 88}
!35 = !{!"_ZTS12ImFontConfig", !6, i64 0, !10, i64 8, !18, i64 12, !10, i64 16, !14, i64 20, !10, i64 24, !10, i64 28, !18, i64 32, !36, i64 36, !36, i64 44, !6, i64 56, !14, i64 64, !14, i64 68, !18, i64 72, !10, i64 76, !14, i64 80, !14, i64 84, !17, i64 88, !7, i64 90, !6, i64 136}
!36 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!37 = !{!12, !17, i64 84}
!38 = !{!12, !17, i64 82}
!39 = !{!23, !14, i64 16}
!40 = !{!12, !14, i64 92}
!41 = !{!12, !14, i64 88}
!42 = !{!23, !14, i64 8}


; 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 [79 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [48 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv = external hidden unnamed_addr constant [32 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [21 x i8], align 1
@__const._ZN6ImFont16BuildLookupTableEv.fallback_chars = external hidden unnamed_addr constant [3 x i16], align 2
@__const._ZN6ImFont16BuildLookupTableEv.dots_chars = external hidden unnamed_addr constant [2 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: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

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

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

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

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

._crit_edge:                                      ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.51, ptr noundef nonnull @.str.1, i32 noundef 3730, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv) #8
  unreachable

._crit_edge.thread:                               ; preds = %.lr.ph
  %13 = icmp ult i32 %.03344, 65534
  br i1 %13, label %15, label %14

14:                                               ; preds = %._crit_edge.thread
  tail call void @__assert_fail(ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.1, i32 noundef 3731, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv) #8
  unreachable

15:                                               ; preds = %._crit_edge.thread
  tail call void @_ZN8ImVectorIfE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN8ImVectorItE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 96
  store i8 0, ptr %17, align 8, !tbaa !19
  %18 = getelementptr inbounds i8, ptr %0, i64 116
  store i16 0, ptr %18, align 4
  %19 = add i32 %10, 1
  tail call void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(118) %0, i32 noundef %19)
  %20 = load i32, ptr %5, align 8, !tbaa !5
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph50, label %._crit_edge51

._crit_edge51:                                    ; preds = %.lr.ph50, %15
  %22 = tail call noundef ptr @_ZN6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext 32)
  %.not37 = icmp eq ptr %22, null
  br i1 %.not37, label %66, label %44

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

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

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

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

66:                                               ; preds = %50, %._crit_edge51
  tail call void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext 32, i1 noundef zeroext false)
  tail call void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext 9, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %2) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 2 dereferenceable(6) %2, ptr noundef nonnull align 2 dereferenceable(6) @__const._ZN6ImFont16BuildLookupTableEv.fallback_chars, i64 6, i1 false)
  %67 = getelementptr inbounds i8, ptr %0, i64 86
  %68 = load i16, ptr %67, align 2, !tbaa !27
  %69 = tail call noundef ptr @_ZN6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext %68)
  %70 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %69, ptr %70, align 8, !tbaa !28
  %71 = icmp eq ptr %69, null
  br i1 %71, label %72, label %81

72:                                               ; preds = %66
  %73 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef 3)
  store i16 %73, ptr %67, align 2, !tbaa !27
  %74 = call noundef ptr @_ZN6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext %73)
  store ptr %74, ptr %70, align 8, !tbaa !28
  %75 = icmp eq ptr %74, null
  br i1 %75, label %76, label %81

76:                                               ; preds = %72
  %77 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  store ptr %77, ptr %70, align 8, !tbaa !28
  %78 = load i32, ptr %77, align 4
  %79 = lshr i32 %78, 2
  %80 = trunc i32 %79 to i16
  store i16 %80, ptr %67, align 2, !tbaa !27
  br label %81

81:                                               ; preds = %72, %76, %66
  %82 = phi ptr [ %74, %72 ], [ %77, %76 ], [ %69, %66 ]
  %83 = getelementptr inbounds i8, ptr %82, i64 4
  %84 = load float, ptr %83, align 4, !tbaa !20
  %85 = getelementptr inbounds i8, ptr %0, i64 16
  store float %84, ptr %85, align 8, !tbaa !29
  %.not3952 = icmp slt i32 %10, 0
  br i1 %.not3952, label %._crit_edge56, label %.lr.ph55

._crit_edge56:                                    ; preds = %102, %81
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %3) #9
  %86 = getelementptr inbounds i8, ptr %0, i64 72
  %87 = load ptr, ptr %86, align 8, !tbaa !30
  %88 = getelementptr inbounds i8, ptr %87, i64 88
  %89 = load i16, ptr %88, align 8, !tbaa !31
  store i16 %89, ptr %3, align 2, !tbaa !23
  %90 = getelementptr inbounds i8, ptr %3, i64 2
  store i16 8230, ptr %90, align 2, !tbaa !23
  %91 = getelementptr inbounds i8, ptr %3, i64 4
  store i16 133, ptr %91, align 2, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %92 = load i32, ptr @__const._ZN6ImFont16BuildLookupTableEv.dots_chars, align 2
  store i32 %92, ptr %4, align 4
  %93 = getelementptr inbounds i8, ptr %0, i64 84
  %94 = load i16, ptr %93, align 4, !tbaa !34
  %95 = icmp eq i16 %94, 0
  br i1 %95, label %104, label %106

.lr.ph55:                                         ; preds = %81, %102
  %.03453 = phi i32 [ %103, %102 ], [ 0, %81 ]
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.03453)
  %97 = load float, ptr %96, align 4, !tbaa !22
  %98 = fcmp olt float %97, 0.000000e+00
  br i1 %98, label %99, label %102

99:                                               ; preds = %.lr.ph55
  %100 = load float, ptr %85, align 8, !tbaa !29
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.03453)
  store float %100, ptr %101, align 4, !tbaa !22
  br label %102

102:                                              ; preds = %.lr.ph55, %99
  %103 = add nuw i32 %.03453, 1
  %exitcond.not = icmp eq i32 %.03453, %10
  br i1 %exitcond.not, label %._crit_edge56, label %.lr.ph55, !llvm.loop !35

104:                                              ; preds = %._crit_edge56
  %105 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef 3)
  store i16 %105, ptr %93, align 4, !tbaa !34
  br label %106

106:                                              ; preds = %104, %._crit_edge56
  %107 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef nonnull %0, ptr noundef nonnull %4, i32 noundef 2)
  %108 = load i16, ptr %93, align 4, !tbaa !34
  %.not40 = icmp eq i16 %108, 0
  br i1 %.not40, label %115, label %109

109:                                              ; preds = %106
  %110 = getelementptr inbounds i8, ptr %0, i64 82
  store i16 1, ptr %110, align 2, !tbaa !36
  %111 = call noundef ptr @_ZN6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext %108)
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  %113 = load float, ptr %112, align 4, !tbaa !37
  %114 = getelementptr inbounds i8, ptr %0, i64 92
  store float %113, ptr %114, align 4, !tbaa !38
  br label %.sink.split

115:                                              ; preds = %106
  %.not41 = icmp eq i16 %107, 0
  br i1 %.not41, label %134, label %116

116:                                              ; preds = %115
  %117 = call noundef ptr @_ZN6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext %107)
  store i16 %107, ptr %93, align 4, !tbaa !34
  %118 = getelementptr inbounds i8, ptr %0, i64 82
  store i16 3, ptr %118, align 2, !tbaa !36
  %119 = getelementptr inbounds i8, ptr %117, i64 16
  %120 = load float, ptr %119, align 4, !tbaa !37
  %121 = getelementptr inbounds i8, ptr %117, i64 8
  %122 = load float, ptr %121, align 4, !tbaa !39
  %123 = fsub float %120, %122
  %124 = fptosi float %123 to i32
  %125 = sitofp i32 %124 to float
  %126 = fadd float %125, 1.000000e+00
  %127 = getelementptr inbounds i8, ptr %0, i64 92
  store float %126, ptr %127, align 4, !tbaa !38
  %128 = getelementptr inbounds i8, ptr %117, i64 4
  %129 = load float, ptr %128, align 4, !tbaa !20
  %130 = call float @llvm.fmuladd.f32(float %126, float 3.000000e+00, float %122)
  %131 = fadd float %130, -1.000000e+00
  %132 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %129, float noundef %131)
  br label %.sink.split

.sink.split:                                      ; preds = %109, %116
  %.sink = phi float [ %132, %116 ], [ %113, %109 ]
  %133 = getelementptr inbounds i8, ptr %0, i64 88
  store float %.sink, ptr %133, align 8, !tbaa !40
  br label %134

134:                                              ; preds = %.sink.split, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %2) #9
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIfE5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #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) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(118), i32 noundef) local_unnamed_addr #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) local_unnamed_addr #2 align 2

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { noreturn nounwind }
attributes #9 = { 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, !12, i64 88, !12, i64 92, !16, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !8, i64 112, !9, i64 116}
!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 96}
!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 86}
!28 = !{!6, !11, i64 56}
!29 = !{!6, !12, i64 16}
!30 = !{!6, !11, i64 72}
!31 = !{!32, !15, i64 88}
!32 = !{!"_ZTS12ImFontConfig", !11, i64 0, !8, i64 8, !16, i64 12, !8, i64 16, !12, i64 20, !8, i64 24, !8, i64 28, !16, i64 32, !33, i64 36, !33, i64 44, !11, i64 56, !12, i64 64, !12, i64 68, !16, i64 72, !8, i64 76, !12, i64 80, !12, i64 84, !15, i64 88, !9, i64 90, !11, i64 136}
!33 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!34 = !{!6, !15, i64 84}
!35 = distinct !{!35, !18}
!36 = !{!6, !15, i64 82}
!37 = !{!21, !12, i64 16}
!38 = !{!6, !12, i64 92}
!39 = !{!21, !12, i64 8}
!40 = !{!6, !12, i64 88}


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