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

@.str.1 = external hidden unnamed_addr constant [122 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: 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) #6

; 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) #6 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 [2 x i16], align 2
  %10 = alloca [2 x i16], align 2
  %11 = alloca i16, align 2
  %12 = alloca ptr, align 8
  %13 = alloca [3 x i16], align 2
  %14 = alloca i32, align 4
  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.7, 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.7, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !11
  %38 = icmp slt i32 %37, 65535
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  br label %42

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

41:                                               ; No predecessors!
  br label %42

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

50:                                               ; preds = %90, %42
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %53 = getelementptr inbounds %struct.ImVector.7, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !11
  %55 = icmp slt i32 %51, %54
  br i1 %55, label %57, label %56

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

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

90:                                               ; preds = %57
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %5, align 4, !tbaa !9
  br label %50, !llvm.loop !27

93:                                               ; preds = %56
  %94 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext 32)
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %139

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

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

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

139:                                              ; preds = %108, %93
  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 4, ptr %9) #9
  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) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %10, ptr align 2 @__const._ZN6ImFont16BuildLookupTableEv.dots_chars, i64 4, i1 false)
  %140 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  %141 = load i16, ptr %140, align 4, !tbaa !29
  %142 = zext i16 %141 to i32
  %143 = icmp eq i32 %142, 65535
  br i1 %143, label %144, label %148

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

148:                                              ; preds = %144, %139
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #9
  %149 = getelementptr inbounds [2 x i16], ptr %10, i64 0, i64 0
  %150 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %15, ptr noundef %149, i32 noundef 2)
  store i16 %150, ptr %11, align 2, !tbaa !25
  %151 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  %152 = load i16, ptr %151, align 4, !tbaa !29
  %153 = zext i16 %152 to i32
  %154 = icmp ne i32 %153, 65535
  br i1 %154, label %155, label %164

155:                                              ; preds = %148
  %156 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 11
  store i16 1, ptr %156, align 2, !tbaa !30
  %157 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  %158 = load i16, ptr %157, align 4, !tbaa !29
  %159 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %158)
  %160 = getelementptr inbounds %struct.ImFontGlyph, ptr %159, i32 0, i32 4
  %161 = load float, ptr %160, align 4, !tbaa !31
  %162 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 13
  store float %161, ptr %162, align 4, !tbaa !32
  %163 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 12
  store float %161, ptr %163, align 8, !tbaa !33
  br label %188

164:                                              ; preds = %148
  %165 = load i16, ptr %11, align 2, !tbaa !25
  %166 = zext i16 %165 to i32
  %167 = icmp ne i32 %166, 65535
  br i1 %167, label %168, label %187

168:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %169 = load i16, ptr %11, align 2, !tbaa !25
  %170 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %169)
  store ptr %170, ptr %12, align 8, !tbaa !5
  %171 = load i16, ptr %11, align 2, !tbaa !25
  %172 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  store i16 %171, ptr %172, align 4, !tbaa !29
  %173 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 11
  store i16 3, ptr %173, align 2, !tbaa !30
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.ImFontGlyph, ptr %174, i32 0, i32 4
  %176 = load float, ptr %175, align 4, !tbaa !31
  %177 = load ptr, ptr %12, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.ImFontGlyph, ptr %177, i32 0, i32 2
  %179 = load float, ptr %178, align 4, !tbaa !34
  %180 = fsub float %176, %179
  %181 = fadd float %180, 1.000000e+00
  %182 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 13
  store float %181, ptr %182, align 4, !tbaa !32
  %183 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 13
  %184 = load float, ptr %183, align 4, !tbaa !32
  %185 = call float @llvm.fmuladd.f32(float %184, float 3.000000e+00, float -1.000000e+00)
  %186 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 12
  store float %185, ptr %186, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %187

187:                                              ; preds = %168, %164
  br label %188

188:                                              ; preds = %187, %155
  call void @llvm.lifetime.start.p0(i64 6, ptr %13) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %13, ptr align 2 @__const._ZN6ImFont16BuildLookupTableEv.fallback_chars, i64 6, i1 false)
  %189 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 9
  %190 = load i16, ptr %189, align 2, !tbaa !35
  %191 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %190)
  %192 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  store ptr %191, ptr %192, align 8, !tbaa !36
  %193 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %194 = load ptr, ptr %193, align 8, !tbaa !36
  %195 = icmp eq ptr %194, null
  br i1 %195, label %196, label %218

196:                                              ; preds = %188
  %197 = getelementptr inbounds [3 x i16], ptr %13, i64 0, i64 0
  %198 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %15, ptr noundef %197, i32 noundef 3)
  %199 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 9
  store i16 %198, ptr %199, align 2, !tbaa !35
  %200 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 9
  %201 = load i16, ptr %200, align 2, !tbaa !35
  %202 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %201)
  %203 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  store ptr %202, ptr %203, align 8, !tbaa !36
  %204 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %205 = load ptr, ptr %204, align 8, !tbaa !36
  %206 = icmp eq ptr %205, null
  br i1 %206, label %207, label %217

207:                                              ; preds = %196
  %208 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %209 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %208)
  %210 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  store ptr %209, ptr %210, align 8, !tbaa !36
  %211 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %212 = load ptr, ptr %211, align 8, !tbaa !36
  %213 = load i32, ptr %212, align 4
  %214 = lshr i32 %213, 2
  %215 = trunc i32 %214 to i16
  %216 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 9
  store i16 %215, ptr %216, align 2, !tbaa !35
  br label %217

217:                                              ; preds = %207, %196
  br label %218

218:                                              ; preds = %217, %188
  %219 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %220 = load ptr, ptr %219, align 8, !tbaa !36
  %221 = getelementptr inbounds %struct.ImFontGlyph, ptr %220, i32 0, i32 1
  %222 = load float, ptr %221, align 4, !tbaa !22
  %223 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 1
  store float %222, ptr %223, align 8, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %224

224:                                              ; preds = %243, %218
  %225 = load i32, ptr %14, align 4, !tbaa !9
  %226 = load i32, ptr %3, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  %228 = icmp slt i32 %225, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %246

230:                                              ; preds = %224
  %231 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  %232 = load i32, ptr %14, align 4, !tbaa !9
  %233 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %231, i32 noundef %232)
  %234 = load float, ptr %233, align 4, !tbaa !24
  %235 = fcmp olt float %234, 0.000000e+00
  br i1 %235, label %236, label %242

236:                                              ; preds = %230
  %237 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 1
  %238 = load float, ptr %237, align 8, !tbaa !37
  %239 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  %240 = load i32, ptr %14, align 4, !tbaa !9
  %241 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %239, i32 noundef %240)
  store float %238, ptr %241, align 4, !tbaa !24
  br label %242

242:                                              ; preds = %236, %230
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %14, align 4, !tbaa !9
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %14, align 4, !tbaa !9
  br label %224, !llvm.loop !38

246:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 6, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, 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)) #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) #6 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) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118), i16 noundef zeroext) #8 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)) #6 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(118), i16 noundef zeroext, i1 noundef zeroext) #7 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118), i16 noundef zeroext) #8 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #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 84}
!30 = !{!12, !17, i64 86}
!31 = !{!23, !14, i64 16}
!32 = !{!12, !14, i64 92}
!33 = !{!12, !14, i64 88}
!34 = !{!23, !14, i64 8}
!35 = !{!12, !17, i64 82}
!36 = !{!12, !6, i64 56}
!37 = !{!12, !14, i64 16}
!38 = distinct !{!38, !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 [122 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #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) local_unnamed_addr #5 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 [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
  %.not41 = icmp eq i32 %6, 0
  br i1 %.not41, label %._crit_edge.thread, label %.lr.ph

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

.lr.ph:                                           ; preds = %1, %.lr.ph
  %.03143 = phi i32 [ %11, %.lr.ph ], [ 0, %1 ]
  %.03242 = 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 %.03242)
  %9 = load i32, ptr %8, align 4
  %10 = lshr i32 %9, 2
  %11 = tail call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %.03143, i32 noundef %10)
  %12 = add nuw nsw i32 %.03242, 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 3168, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv) #8
  unreachable

._crit_edge.thread:                               ; preds = %1, %._crit_edge
  %.031.lcssa59 = 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 96
  store i8 0, ptr %16, align 8, !tbaa !19
  %17 = getelementptr inbounds i8, ptr %0, i64 116
  store i16 0, ptr %17, align 4
  %18 = add i32 %.031.lcssa59, 1
  tail call void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(118) %0, i32 noundef %18)
  %19 = load i32, ptr %5, align 8, !tbaa !5
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph48, label %._crit_edge49

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

.lr.ph48:                                         ; preds = %._crit_edge.thread, %.lr.ph48
  %.03346 = phi i32 [ %40, %.lr.ph48 ], [ 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 %.03346)
  %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 %.03346)
  %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 %.03346 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 %.03346, 1
  %41 = load i32, ptr %5, align 8, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %.lr.ph48, label %._crit_edge49, !llvm.loop !25

43:                                               ; preds = %._crit_edge49
  %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
  %.not36 = icmp eq i32 %.mask, 36
  br i1 %.not36, 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(118) %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_edge49
  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 4, ptr nonnull %2) #9
  %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) #9
  %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 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef 2)
  %75 = load i16, ptr %68, align 4, !tbaa !27
  %.not37 = icmp eq i16 %75, -1
  br i1 %.not37, label %82, label %76

76:                                               ; preds = %73
  %77 = getelementptr inbounds i8, ptr %0, i64 86
  store i16 1, ptr %77, align 2, !tbaa !28
  %78 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext %75)
  %79 = getelementptr inbounds i8, ptr %78, i64 16
  %80 = load float, ptr %79, align 4, !tbaa !29
  %81 = getelementptr inbounds i8, ptr %0, i64 92
  store float %80, ptr %81, align 4, !tbaa !30
  br label %.sink.split

82:                                               ; preds = %73
  %.not38 = icmp eq i16 %74, -1
  br i1 %.not38, label %95, label %83

83:                                               ; preds = %82
  %84 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext %74)
  store i16 %74, ptr %68, align 4, !tbaa !27
  %85 = getelementptr inbounds i8, ptr %0, i64 86
  store i16 3, ptr %85, align 2, !tbaa !28
  %86 = getelementptr inbounds i8, ptr %84, i64 16
  %87 = load float, ptr %86, align 4, !tbaa !29
  %88 = getelementptr inbounds i8, ptr %84, i64 8
  %89 = load float, ptr %88, align 4, !tbaa !31
  %90 = fsub float %87, %89
  %91 = fadd float %90, 1.000000e+00
  %92 = getelementptr inbounds i8, ptr %0, i64 92
  store float %91, ptr %92, align 4, !tbaa !30
  %93 = call float @llvm.fmuladd.f32(float %91, float 3.000000e+00, float -1.000000e+00)
  br label %.sink.split

.sink.split:                                      ; preds = %76, %83
  %.sink = phi float [ %93, %83 ], [ %80, %76 ]
  %94 = getelementptr inbounds i8, ptr %0, i64 88
  store float %.sink, ptr %94, align 8, !tbaa !32
  br label %95

95:                                               ; preds = %.sink.split, %82
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %4) #9
  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)
  %96 = getelementptr inbounds i8, ptr %0, i64 82
  %97 = load i16, ptr %96, align 2, !tbaa !33
  %98 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext %97)
  %99 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %98, ptr %99, align 8, !tbaa !34
  %100 = icmp eq ptr %98, null
  br i1 %100, label %101, label %110

101:                                              ; preds = %95
  %102 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef nonnull %0, ptr noundef nonnull %4, i32 noundef 3)
  store i16 %102, ptr %96, align 2, !tbaa !33
  %103 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext %102)
  store ptr %103, ptr %99, align 8, !tbaa !34
  %104 = icmp eq ptr %103, null
  br i1 %104, label %105, label %110

105:                                              ; preds = %101
  %106 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  store ptr %106, ptr %99, align 8, !tbaa !34
  %107 = load i32, ptr %106, align 4
  %108 = lshr i32 %107, 2
  %109 = trunc i32 %108 to i16
  store i16 %109, ptr %96, align 2, !tbaa !33
  br label %110

110:                                              ; preds = %101, %105, %95
  %111 = phi ptr [ %103, %101 ], [ %106, %105 ], [ %98, %95 ]
  %112 = getelementptr inbounds i8, ptr %111, i64 4
  %113 = load float, ptr %112, align 4, !tbaa !20
  %114 = getelementptr inbounds i8, ptr %0, i64 16
  store float %113, ptr %114, align 8, !tbaa !35
  %.not3950 = icmp slt i32 %.031.lcssa59, 0
  br i1 %.not3950, label %._crit_edge54, label %.lr.ph53

._crit_edge54:                                    ; preds = %121, %110
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  ret void

.lr.ph53:                                         ; preds = %110, %121
  %.051 = phi i32 [ %122, %121 ], [ 0, %110 ]
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.051)
  %116 = load float, ptr %115, align 4, !tbaa !22
  %117 = fcmp olt float %116, 0.000000e+00
  br i1 %117, label %118, label %121

118:                                              ; preds = %.lr.ph53
  %119 = load float, ptr %114, align 8, !tbaa !35
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.051)
  store float %119, ptr %120, align 4, !tbaa !22
  br label %121

121:                                              ; preds = %.lr.ph53, %118
  %122 = add nuw i32 %.051, 1
  %exitcond.not = icmp eq i32 %.051, %.031.lcssa59
  br i1 %exitcond.not, label %._crit_edge54, label %.lr.ph53, !llvm.loop !36
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118), i16 noundef zeroext) local_unnamed_addr #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)) local_unnamed_addr #5 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(118), i16 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118), i16 noundef zeroext) local_unnamed_addr #7 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 84}
!28 = !{!6, !15, i64 86}
!29 = !{!21, !12, i64 16}
!30 = !{!6, !12, i64 92}
!31 = !{!21, !12, i64 8}
!32 = !{!6, !12, i64 88}
!33 = !{!6, !15, i64 82}
!34 = !{!6, !11, i64 56}
!35 = !{!6, !12, i64 16}
!36 = distinct !{!36, !18}


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