; LLVM IR from Devaniti/BoolkaEngine :: ThirdParty/imgui/imgui_draw.ll (ZN6ImFont8AddGlyphEPK12ImFontConfigtfffffffff)

; 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.ImFontConfig = type { ptr, i32, i8, i32, float, i32, i32, i8, %struct.ImVec2, %struct.ImVec2, ptr, float, float, i8, i32, float, i16, [40 x i8], ptr }
%struct.ImVec2 = type { float, float }
%struct.ImFont = type <{ %struct.ImVector.6, float, float, %struct.ImVector.0, %struct.ImVector.7, ptr, ptr, ptr, i16, i16, i16, i8, i8, float, float, float, i32, [2 x i8], [6 x i8] }>
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImFontGlyph = type { i32, float, float, float, float, float, float, float, float, float }
%struct.ImFontAtlas = type { i8, i32, ptr, i32, i32, ptr, ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, [64 x %struct.ImVec4], i32, i32 }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef, float noundef, float noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImFloorf(float noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImFont8AddGlyphEPK12ImFontConfigtfffffffff(ptr noundef nonnull align 8 dereferenceable(106) %0, ptr noundef %1, i16 noundef zeroext %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, float noundef %10, float noundef %11) #3 align 2 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i16, align 2
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca ptr, align 8
  %28 = alloca float, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store i16 %2, ptr %15, align 2, !tbaa !9
  store float %3, ptr %16, align 4, !tbaa !11
  store float %4, ptr %17, align 4, !tbaa !11
  store float %5, ptr %18, align 4, !tbaa !11
  store float %6, ptr %19, align 4, !tbaa !11
  store float %7, ptr %20, align 4, !tbaa !11
  store float %8, ptr %21, align 4, !tbaa !11
  store float %9, ptr %22, align 4, !tbaa !11
  store float %10, ptr %23, align 4, !tbaa !11
  store float %11, ptr %24, align 4, !tbaa !11
  %29 = load ptr, ptr %13, align 8
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %86

32:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %33 = load float, ptr %24, align 4, !tbaa !11
  store float %33, ptr %25, align 4, !tbaa !11
  %34 = load float, ptr %24, align 4, !tbaa !11
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImFontConfig, ptr %35, i32 0, i32 11
  %37 = load float, ptr %36, align 8, !tbaa !13
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ImFontConfig, ptr %38, i32 0, i32 12
  %40 = load float, ptr %39, align 4, !tbaa !18
  %41 = call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %34, float noundef %37, float noundef %40)
  store float %41, ptr %24, align 4, !tbaa !11
  %42 = load float, ptr %24, align 4, !tbaa !11
  %43 = load float, ptr %25, align 4, !tbaa !11
  %44 = fcmp une float %42, %43
  br i1 %44, label %45, label %69

45:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ImFontConfig, ptr %46, i32 0, i32 7
  %48 = load i8, ptr %47, align 8, !tbaa !19, !range !20, !noundef !21
  %49 = trunc i8 %48 to i1
  br i1 %49, label %50, label %56

50:                                               ; preds = %45
  %51 = load float, ptr %24, align 4, !tbaa !11
  %52 = load float, ptr %25, align 4, !tbaa !11
  %53 = fsub float %51, %52
  %54 = fmul float %53, 5.000000e-01
  %55 = call noundef float @_ZL7ImFloorf(float noundef %54)
  br label %61

56:                                               ; preds = %45
  %57 = load float, ptr %24, align 4, !tbaa !11
  %58 = load float, ptr %25, align 4, !tbaa !11
  %59 = fsub float %57, %58
  %60 = fmul float %59, 5.000000e-01
  br label %61

61:                                               ; preds = %56, %50
  %62 = phi float [ %55, %50 ], [ %60, %56 ]
  store float %62, ptr %26, align 4, !tbaa !11
  %63 = load float, ptr %26, align 4, !tbaa !11
  %64 = load float, ptr %16, align 4, !tbaa !11
  %65 = fadd float %64, %63
  store float %65, ptr %16, align 4, !tbaa !11
  %66 = load float, ptr %26, align 4, !tbaa !11
  %67 = load float, ptr %18, align 4, !tbaa !11
  %68 = fadd float %67, %66
  store float %68, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %69

69:                                               ; preds = %61, %32
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ImFontConfig, ptr %70, i32 0, i32 7
  %72 = load i8, ptr %71, align 8, !tbaa !19, !range !20, !noundef !21
  %73 = trunc i8 %72 to i1
  br i1 %73, label %74, label %79

74:                                               ; preds = %69
  %75 = load float, ptr %24, align 4, !tbaa !11
  %76 = fadd float %75, 5.000000e-01
  %77 = fptosi float %76 to i32
  %78 = sitofp i32 %77 to float
  store float %78, ptr %24, align 4, !tbaa !11
  br label %79

79:                                               ; preds = %74, %69
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ImFontConfig, ptr %80, i32 0, i32 8
  %82 = getelementptr inbounds %struct.ImVec2, ptr %81, i32 0, i32 0
  %83 = load float, ptr %82, align 4, !tbaa !22
  %84 = load float, ptr %24, align 4, !tbaa !11
  %85 = fadd float %84, %83
  store float %85, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %86

86:                                               ; preds = %79, %12
  %87 = getelementptr inbounds %struct.ImFont, ptr %29, i32 0, i32 4
  %88 = getelementptr inbounds %struct.ImFont, ptr %29, i32 0, i32 4
  %89 = getelementptr inbounds %struct.ImVector.7, ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 8, !tbaa !23
  %91 = add nsw i32 %90, 1
  call void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %87, i32 noundef %91)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %92 = getelementptr inbounds %struct.ImFont, ptr %29, i32 0, i32 4
  %93 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %92)
  store ptr %93, ptr %27, align 8, !tbaa !5
  %94 = load i16, ptr %15, align 2, !tbaa !9
  %95 = zext i16 %94 to i32
  %96 = load ptr, ptr %27, align 8, !tbaa !5
  %97 = load i32, ptr %96, align 4
  %98 = and i32 %95, 2147483647
  %99 = and i32 %97, -2147483648
  %100 = or i32 %99, %98
  store i32 %100, ptr %96, align 4
  %101 = load float, ptr %16, align 4, !tbaa !11
  %102 = load float, ptr %18, align 4, !tbaa !11
  %103 = fcmp une float %101, %102
  br i1 %103, label %104, label %108

104:                                              ; preds = %86
  %105 = load float, ptr %17, align 4, !tbaa !11
  %106 = load float, ptr %19, align 4, !tbaa !11
  %107 = fcmp une float %105, %106
  br label %108

108:                                              ; preds = %104, %86
  %109 = phi i1 [ false, %86 ], [ %107, %104 ]
  %110 = zext i1 %109 to i32
  %111 = load ptr, ptr %27, align 8, !tbaa !5
  %112 = load i32, ptr %111, align 4
  %113 = and i32 %110, 1
  %114 = shl i32 %113, 31
  %115 = and i32 %112, 2147483647
  %116 = or i32 %115, %114
  store i32 %116, ptr %111, align 4
  %117 = load float, ptr %16, align 4, !tbaa !11
  %118 = load ptr, ptr %27, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ImFontGlyph, ptr %118, i32 0, i32 2
  store float %117, ptr %119, align 4, !tbaa !28
  %120 = load float, ptr %17, align 4, !tbaa !11
  %121 = load ptr, ptr %27, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ImFontGlyph, ptr %121, i32 0, i32 3
  store float %120, ptr %122, align 4, !tbaa !30
  %123 = load float, ptr %18, align 4, !tbaa !11
  %124 = load ptr, ptr %27, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ImFontGlyph, ptr %124, i32 0, i32 4
  store float %123, ptr %125, align 4, !tbaa !31
  %126 = load float, ptr %19, align 4, !tbaa !11
  %127 = load ptr, ptr %27, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ImFontGlyph, ptr %127, i32 0, i32 5
  store float %126, ptr %128, align 4, !tbaa !32
  %129 = load float, ptr %20, align 4, !tbaa !11
  %130 = load ptr, ptr %27, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.ImFontGlyph, ptr %130, i32 0, i32 6
  store float %129, ptr %131, align 4, !tbaa !33
  %132 = load float, ptr %21, align 4, !tbaa !11
  %133 = load ptr, ptr %27, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.ImFontGlyph, ptr %133, i32 0, i32 7
  store float %132, ptr %134, align 4, !tbaa !34
  %135 = load float, ptr %22, align 4, !tbaa !11
  %136 = load ptr, ptr %27, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ImFontGlyph, ptr %136, i32 0, i32 8
  store float %135, ptr %137, align 4, !tbaa !35
  %138 = load float, ptr %23, align 4, !tbaa !11
  %139 = load ptr, ptr %27, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ImFontGlyph, ptr %139, i32 0, i32 9
  store float %138, ptr %140, align 4, !tbaa !36
  %141 = load float, ptr %24, align 4, !tbaa !11
  %142 = load ptr, ptr %27, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ImFontGlyph, ptr %142, i32 0, i32 1
  store float %141, ptr %143, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %144 = getelementptr inbounds %struct.ImFont, ptr %29, i32 0, i32 6
  %145 = load ptr, ptr %144, align 8, !tbaa !38
  %146 = getelementptr inbounds %struct.ImFontAtlas, ptr %145, i32 0, i32 4
  %147 = load i32, ptr %146, align 4, !tbaa !39
  %148 = sitofp i32 %147 to float
  %149 = fadd float %148, 0x3FEFAE1480000000
  store float %149, ptr %28, align 4, !tbaa !11
  %150 = getelementptr inbounds %struct.ImFont, ptr %29, i32 0, i32 11
  store i8 1, ptr %150, align 2, !tbaa !44
  %151 = load ptr, ptr %27, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.ImFontGlyph, ptr %151, i32 0, i32 8
  %153 = load float, ptr %152, align 4, !tbaa !35
  %154 = load ptr, ptr %27, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.ImFontGlyph, ptr %154, i32 0, i32 6
  %156 = load float, ptr %155, align 4, !tbaa !33
  %157 = fsub float %153, %156
  %158 = getelementptr inbounds %struct.ImFont, ptr %29, i32 0, i32 6
  %159 = load ptr, ptr %158, align 8, !tbaa !38
  %160 = getelementptr inbounds %struct.ImFontAtlas, ptr %159, i32 0, i32 7
  %161 = load i32, ptr %160, align 8, !tbaa !45
  %162 = sitofp i32 %161 to float
  %163 = load float, ptr %28, align 4, !tbaa !11
  %164 = call float @llvm.fmuladd.f32(float %157, float %162, float %163)
  %165 = fptosi float %164 to i32
  %166 = load ptr, ptr %27, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.ImFontGlyph, ptr %166, i32 0, i32 9
  %168 = load float, ptr %167, align 4, !tbaa !36
  %169 = load ptr, ptr %27, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.ImFontGlyph, ptr %169, i32 0, i32 7
  %171 = load float, ptr %170, align 4, !tbaa !34
  %172 = fsub float %168, %171
  %173 = getelementptr inbounds %struct.ImFont, ptr %29, i32 0, i32 6
  %174 = load ptr, ptr %173, align 8, !tbaa !38
  %175 = getelementptr inbounds %struct.ImFontAtlas, ptr %174, i32 0, i32 8
  %176 = load i32, ptr %175, align 4, !tbaa !46
  %177 = sitofp i32 %176 to float
  %178 = load float, ptr %28, align 4, !tbaa !11
  %179 = call float @llvm.fmuladd.f32(float %172, float %177, float %178)
  %180 = fptosi float %179 to i32
  %181 = mul nsw i32 %165, %180
  %182 = getelementptr inbounds %struct.ImFont, ptr %29, i32 0, i32 16
  %183 = load i32, ptr %182, align 4, !tbaa !47
  %184 = add nsw i32 %183, %181
  store i32 %184, ptr %182, align 4, !tbaa !47
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  ret void
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 64}
!14 = !{!"_ZTS12ImFontConfig", !6, i64 0, !15, i64 8, !16, i64 12, !15, i64 16, !12, i64 20, !15, i64 24, !15, i64 28, !16, i64 32, !17, i64 36, !17, i64 44, !6, i64 56, !12, i64 64, !12, i64 68, !16, i64 72, !15, i64 76, !12, i64 80, !10, i64 84, !7, i64 86, !6, i64 128}
!15 = !{!"int", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!18 = !{!14, !12, i64 68}
!19 = !{!14, !16, i64 32}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!14, !12, i64 36}
!23 = !{!24, !15, i64 40}
!24 = !{!"_ZTS6ImFont", !25, i64 0, !12, i64 16, !12, i64 20, !26, i64 24, !27, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80, !10, i64 82, !10, i64 84, !16, i64 86, !12, i64 88, !12, i64 92, !12, i64 96, !15, i64 100, !7, i64 104}
!25 = !{!"_ZTS8ImVectorIfE", !15, i64 0, !15, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorItE", !15, i64 0, !15, i64 4, !6, i64 8}
!27 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !15, i64 0, !15, i64 4, !6, i64 8}
!28 = !{!29, !12, i64 8}
!29 = !{!"_ZTS11ImFontGlyph", !15, i64 0, !15, i64 3, !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}
!30 = !{!29, !12, i64 12}
!31 = !{!29, !12, i64 16}
!32 = !{!29, !12, i64 20}
!33 = !{!29, !12, i64 24}
!34 = !{!29, !12, i64 28}
!35 = !{!29, !12, i64 32}
!36 = !{!29, !12, i64 36}
!37 = !{!29, !12, i64 4}
!38 = !{!24, !6, i64 64}
!39 = !{!40, !15, i64 20}
!40 = !{!"_ZTS11ImFontAtlas", !16, i64 0, !15, i64 4, !6, i64 8, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !15, i64 40, !15, i64 44, !17, i64 48, !17, i64 56, !41, i64 64, !42, i64 80, !43, i64 96, !7, i64 112, !15, i64 1136, !15, i64 1140}
!41 = !{!"_ZTS8ImVectorIP6ImFontE", !15, i64 0, !15, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !15, i64 0, !15, i64 4, !6, i64 8}
!43 = !{!"_ZTS8ImVectorI12ImFontConfigE", !15, i64 0, !15, i64 4, !6, i64 8}
!44 = !{!24, !16, i64 86}
!45 = !{!40, !15, i64 40}
!46 = !{!40, !15, i64 44}
!47 = !{!24, !15, i64 100}


; 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"

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef, float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL7ImFloorf(float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImFont8AddGlyphEPK12ImFontConfigtfffffffff(ptr noundef nonnull align 8 dereferenceable(106) %0, ptr noundef readonly %1, i16 noundef zeroext %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, float noundef %10, float noundef %11) local_unnamed_addr #2 align 2 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %42, label %13

13:                                               ; preds = %12
  %14 = getelementptr inbounds i8, ptr %1, i64 64
  %15 = load float, ptr %14, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %1, i64 68
  %17 = load float, ptr %16, align 4, !tbaa !15
  %18 = tail call noundef float @_ZL7ImClampIfET_S0_S0_S0_(float noundef %11, float noundef %15, float noundef %17)
  %19 = fcmp une float %18, %11
  br i1 %19, label %20, label %32

20:                                               ; preds = %13
  %21 = getelementptr inbounds i8, ptr %1, i64 32
  %22 = load i8, ptr %21, align 8, !tbaa !16, !range !17, !noundef !18
  %23 = trunc nuw i8 %22 to i1
  %24 = fsub float %18, %11
  %25 = fmul float %24, 5.000000e-01
  br i1 %23, label %26, label %28

26:                                               ; preds = %20
  %27 = tail call noundef float @_ZL7ImFloorf(float noundef %25)
  br label %28

28:                                               ; preds = %20, %26
  %29 = phi float [ %27, %26 ], [ %25, %20 ]
  %30 = fadd float %29, %3
  %31 = fadd float %29, %5
  br label %32

32:                                               ; preds = %28, %13
  %.051 = phi float [ %31, %28 ], [ %5, %13 ]
  %.0 = phi float [ %30, %28 ], [ %3, %13 ]
  %33 = getelementptr inbounds i8, ptr %1, i64 32
  %34 = load i8, ptr %33, align 8, !tbaa !16, !range !17, !noundef !18
  %35 = trunc nuw i8 %34 to i1
  %36 = fadd float %18, 5.000000e-01
  %37 = fptosi float %36 to i32
  %38 = sitofp i32 %37 to float
  %.053 = select i1 %35, float %38, float %18
  %39 = getelementptr inbounds i8, ptr %1, i64 36
  %40 = load float, ptr %39, align 4, !tbaa !19
  %41 = fadd float %40, %.053
  br label %42

42:                                               ; preds = %32, %12
  %.154 = phi float [ %41, %32 ], [ %11, %12 ]
  %.152 = phi float [ %.051, %32 ], [ %5, %12 ]
  %.1 = phi float [ %.0, %32 ], [ %3, %12 ]
  %43 = getelementptr inbounds i8, ptr %0, i64 40
  %44 = load i32, ptr %43, align 8, !tbaa !20
  %45 = add nsw i32 %44, 1
  tail call void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %43, i32 noundef %45)
  %46 = tail call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %43)
  %47 = zext i16 %2 to i32
  %48 = fcmp une float %.1, %.152
  %49 = fcmp une float %4, %6
  %50 = and i1 %49, %48
  %51 = select i1 %50, i32 -2147483648, i32 0
  %52 = or disjoint i32 %51, %47
  store i32 %52, ptr %46, align 4
  %53 = getelementptr inbounds i8, ptr %46, i64 8
  store float %.1, ptr %53, align 4, !tbaa !25
  %54 = getelementptr inbounds i8, ptr %46, i64 12
  store float %4, ptr %54, align 4, !tbaa !27
  %55 = getelementptr inbounds i8, ptr %46, i64 16
  store float %.152, ptr %55, align 4, !tbaa !28
  %56 = getelementptr inbounds i8, ptr %46, i64 20
  store float %6, ptr %56, align 4, !tbaa !29
  %57 = getelementptr inbounds i8, ptr %46, i64 24
  store float %7, ptr %57, align 4, !tbaa !30
  %58 = getelementptr inbounds i8, ptr %46, i64 28
  store float %8, ptr %58, align 4, !tbaa !31
  %59 = getelementptr inbounds i8, ptr %46, i64 32
  store float %9, ptr %59, align 4, !tbaa !32
  %60 = getelementptr inbounds i8, ptr %46, i64 36
  store float %10, ptr %60, align 4, !tbaa !33
  %61 = getelementptr inbounds i8, ptr %46, i64 4
  store float %.154, ptr %61, align 4, !tbaa !34
  %62 = getelementptr inbounds i8, ptr %0, i64 64
  %63 = load ptr, ptr %62, align 8, !tbaa !35
  %64 = getelementptr inbounds i8, ptr %63, i64 20
  %65 = load i32, ptr %64, align 4, !tbaa !36
  %66 = sitofp i32 %65 to float
  %67 = fadd float %66, 0x3FEFAE1480000000
  %68 = getelementptr inbounds i8, ptr %0, i64 86
  store i8 1, ptr %68, align 2, !tbaa !41
  %69 = fsub float %9, %7
  %70 = getelementptr inbounds i8, ptr %63, i64 40
  %71 = load i32, ptr %70, align 8, !tbaa !42
  %72 = sitofp i32 %71 to float
  %73 = tail call float @llvm.fmuladd.f32(float %69, float %72, float %67)
  %74 = fptosi float %73 to i32
  %75 = fsub float %10, %8
  %76 = getelementptr inbounds i8, ptr %63, i64 44
  %77 = load i32, ptr %76, align 4, !tbaa !43
  %78 = sitofp i32 %77 to float
  %79 = tail call float @llvm.fmuladd.f32(float %75, float %78, float %67)
  %80 = fptosi float %79 to i32
  %81 = mul nsw i32 %80, %74
  %82 = getelementptr inbounds i8, ptr %0, i64 100
  %83 = load i32, ptr %82, align 4, !tbaa !44
  %84 = add nsw i32 %81, %83
  store i32 %84, ptr %82, align 4, !tbaa !44
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 64}
!6 = !{!"_ZTS12ImFontConfig", !7, i64 0, !10, i64 8, !11, i64 12, !10, i64 16, !12, i64 20, !10, i64 24, !10, i64 28, !11, i64 32, !13, i64 36, !13, i64 44, !7, i64 56, !12, i64 64, !12, i64 68, !11, i64 72, !10, i64 76, !12, i64 80, !14, i64 84, !8, i64 86, !7, i64 128}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!14 = !{!"short", !8, i64 0}
!15 = !{!6, !12, i64 68}
!16 = !{!6, !11, i64 32}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!6, !12, i64 36}
!20 = !{!21, !10, i64 40}
!21 = !{!"_ZTS6ImFont", !22, i64 0, !12, i64 16, !12, i64 20, !23, i64 24, !24, i64 40, !7, i64 56, !7, i64 64, !7, i64 72, !14, i64 80, !14, i64 82, !14, i64 84, !11, i64 86, !12, i64 88, !12, i64 92, !12, i64 96, !10, i64 100, !8, i64 104}
!22 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !7, i64 8}
!23 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !7, i64 8}
!24 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !7, i64 8}
!25 = !{!26, !12, i64 8}
!26 = !{!"_ZTS11ImFontGlyph", !10, i64 0, !10, i64 3, !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}
!27 = !{!26, !12, i64 12}
!28 = !{!26, !12, i64 16}
!29 = !{!26, !12, i64 20}
!30 = !{!26, !12, i64 24}
!31 = !{!26, !12, i64 28}
!32 = !{!26, !12, i64 32}
!33 = !{!26, !12, i64 36}
!34 = !{!26, !12, i64 4}
!35 = !{!21, !7, i64 64}
!36 = !{!37, !10, i64 20}
!37 = !{!"_ZTS11ImFontAtlas", !11, i64 0, !10, i64 4, !7, i64 8, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !13, i64 48, !13, i64 56, !38, i64 64, !39, i64 80, !40, i64 96, !8, i64 112, !10, i64 1136, !10, i64 1140}
!38 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !7, i64 8}
!39 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !10, i64 0, !10, i64 4, !7, i64 8}
!40 = !{!"_ZTS8ImVectorI12ImFontConfigE", !10, i64 0, !10, i64 4, !7, i64 8}
!41 = !{!21, !11, i64 86}
!42 = !{!37, !10, i64 40}
!43 = !{!37, !10, i64 44}
!44 = !{!21, !10, i64 100}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass