; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/ImGui (imgui_draw)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ImFontAtlas = type <{ i32, [4 x i8], ptr, i32, i32, i8, [7 x i8], ptr, i8, i8, [6 x i8], ptr, ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, [64 x %struct.ImVec4], ptr, i32, i32, i32, [4 x i8] }>
%struct.ImVec2 = type { float, float }
%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 }

@.str.1 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [36 x i8], align 1
@__PRETTY_FUNCTION__._Z41ImFontAtlasBuildRender32bppRectFromStringP11ImFontAtlasiiiiPKccj = external hidden unnamed_addr constant [116 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z41ImFontAtlasBuildRender32bppRectFromStringP11ImFontAtlasiiiiPKccj(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, i8 noundef signext %6, i32 noundef %7) #2 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store i32 %2, ptr %11, align 4, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store i8 %6, ptr %15, align 1, !tbaa !11
  store i32 %7, ptr %16, align 4, !tbaa !9
  %21 = load i32, ptr %10, align 4, !tbaa !9
  %22 = icmp sge i32 %21, 0
  br i1 %22, label %23, label %31

23:                                               ; preds = %8
  %24 = load i32, ptr %10, align 4, !tbaa !9
  %25 = load i32, ptr %12, align 4, !tbaa !9
  %26 = add nsw i32 %24, %25
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ImFontAtlas, ptr %27, i32 0, i32 13
  %29 = load i32, ptr %28, align 8, !tbaa !12
  %30 = icmp sle i32 %26, %29
  br label %31

31:                                               ; preds = %23, %8
  %32 = phi i1 [ false, %8 ], [ %30, %23 ]
  br i1 %32, label %33, label %34

33:                                               ; preds = %31
  br label %36

34:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str.29, ptr noundef @.str.1, i32 noundef 2658, ptr noundef @__PRETTY_FUNCTION__._Z41ImFontAtlasBuildRender32bppRectFromStringP11ImFontAtlasiiiiPKccj) #3
  unreachable

35:                                               ; No predecessors!
  br label %36

36:                                               ; preds = %35, %33
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = icmp sge i32 %37, 0
  br i1 %38, label %39, label %47

39:                                               ; preds = %36
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = load i32, ptr %13, align 4, !tbaa !9
  %42 = add nsw i32 %40, %41
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ImFontAtlas, ptr %43, i32 0, i32 14
  %45 = load i32, ptr %44, align 4, !tbaa !20
  %46 = icmp sle i32 %42, %45
  br label %47

47:                                               ; preds = %39, %36
  %48 = phi i1 [ false, %36 ], [ %46, %39 ]
  br i1 %48, label %49, label %50

49:                                               ; preds = %47
  br label %52

50:                                               ; preds = %47
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str.1, i32 noundef 2659, ptr noundef @__PRETTY_FUNCTION__._Z41ImFontAtlasBuildRender32bppRectFromStringP11ImFontAtlasiiiiPKccj) #3
  unreachable

51:                                               ; No predecessors!
  br label %52

52:                                               ; preds = %51, %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ImFontAtlas, ptr %53, i32 0, i32 12
  %55 = load ptr, ptr %54, align 8, !tbaa !21
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i32, ptr %55, i64 %57
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ImFontAtlas, ptr %60, i32 0, i32 13
  %62 = load i32, ptr %61, align 8, !tbaa !12
  %63 = mul nsw i32 %59, %62
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds i32, ptr %58, i64 %64
  store ptr %65, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %100, %52
  %67 = load i32, ptr %18, align 4, !tbaa !9
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %113

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %96, %71
  %73 = load i32, ptr %20, align 4, !tbaa !9
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %99

77:                                               ; preds = %72
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = load i32, ptr %20, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds i8, ptr %78, i64 %80
  %82 = load i8, ptr %81, align 1, !tbaa !11
  %83 = sext i8 %82 to i32
  %84 = load i8, ptr %15, align 1, !tbaa !11
  %85 = sext i8 %84 to i32
  %86 = icmp eq i32 %83, %85
  br i1 %86, label %87, label %89

87:                                               ; preds = %77
  %88 = load i32, ptr %16, align 4, !tbaa !9
  br label %90

89:                                               ; preds = %77
  br label %90

90:                                               ; preds = %89, %87
  %91 = phi i32 [ %88, %87 ], [ 0, %89 ]
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  %93 = load i32, ptr %20, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %92, i64 %94
  store i32 %91, ptr %95, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %90
  %97 = load i32, ptr %20, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %20, align 4, !tbaa !9
  br label %72, !llvm.loop !22

99:                                               ; preds = %76
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %18, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %18, align 4, !tbaa !9
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ImFontAtlas, ptr %103, i32 0, i32 13
  %105 = load i32, ptr %104, align 8, !tbaa !12
  %106 = load ptr, ptr %17, align 8, !tbaa !5
  %107 = sext i32 %105 to i64
  %108 = getelementptr inbounds i32, ptr %106, i64 %107
  store ptr %108, ptr %17, align 8, !tbaa !5
  %109 = load i32, ptr %12, align 4, !tbaa !9
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = sext i32 %109 to i64
  %112 = getelementptr inbounds i8, ptr %110, i64 %111
  store ptr %112, ptr %14, align 8, !tbaa !5
  br label %66, !llvm.loop !24

113:                                              ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 }
attributes #4 = { 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 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 64}
!13 = !{!"_ZTS11ImFontAtlas", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !14, i64 24, !6, i64 32, !14, i64 40, !14, i64 41, !6, i64 48, !6, i64 56, !10, i64 64, !10, i64 68, !15, i64 72, !15, i64 80, !17, i64 88, !18, i64 104, !19, i64 120, !7, i64 136, !6, i64 1160, !10, i64 1168, !10, i64 1172, !10, i64 1176}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS6ImVec2", !16, i64 0, !16, i64 4}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !6, i64 8}
!18 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !10, i64 0, !10, i64 4, !6, i64 8}
!19 = !{!"_ZTS8ImVectorI12ImFontConfigE", !10, i64 0, !10, i64 4, !6, i64 8}
!20 = !{!13, !10, i64 68}
!21 = !{!13, !6, i64 56}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


; 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.29 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [36 x i8], align 1
@__PRETTY_FUNCTION__._Z41ImFontAtlasBuildRender32bppRectFromStringP11ImFontAtlasiiiiPKccj = external hidden unnamed_addr constant [116 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z41ImFontAtlasBuildRender32bppRectFromStringP11ImFontAtlasiiiiPKccj(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr nocapture noundef readonly %5, i8 noundef signext %6, i32 noundef %7) local_unnamed_addr #1 {
  %9 = icmp sgt i32 %1, -1
  br i1 %9, label %10, label %.critedge

10:                                               ; preds = %8
  %11 = add nsw i32 %3, %1
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  %13 = load i32, ptr %12, align 8, !tbaa !5
  %.not = icmp sgt i32 %11, %13
  br i1 %.not, label %.critedge, label %14

.critedge:                                        ; preds = %8, %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.1, i32 noundef 2658, ptr noundef nonnull @__PRETTY_FUNCTION__._Z41ImFontAtlasBuildRender32bppRectFromStringP11ImFontAtlasiiiiPKccj) #2
  unreachable

14:                                               ; preds = %10
  %15 = icmp sgt i32 %2, -1
  br i1 %15, label %16, label %.critedge2

16:                                               ; preds = %14
  %17 = add nsw i32 %4, %2
  %18 = getelementptr inbounds i8, ptr %0, i64 68
  %19 = load i32, ptr %18, align 4, !tbaa !17
  %.not36 = icmp sgt i32 %17, %19
  br i1 %.not36, label %.critedge2, label %20

.critedge2:                                       ; preds = %14, %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.1, i32 noundef 2659, ptr noundef nonnull @__PRETTY_FUNCTION__._Z41ImFontAtlasBuildRender32bppRectFromStringP11ImFontAtlasiiiiPKccj) #2
  unreachable

20:                                               ; preds = %16
  %21 = icmp sgt i32 %4, 0
  br i1 %21, label %.preheader.lr.ph, label %._crit_edge41

.preheader.lr.ph:                                 ; preds = %20
  %22 = icmp sgt i32 %3, 0
  %23 = sext i32 %3 to i64
  br i1 %22, label %.preheader.us.preheader, label %._crit_edge41

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %24 = getelementptr inbounds i8, ptr %0, i64 56
  %25 = load ptr, ptr %24, align 8, !tbaa !18
  %26 = zext nneg i32 %1 to i64
  %27 = getelementptr inbounds i32, ptr %25, i64 %26
  %28 = mul nsw i32 %13, %2
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds i32, ptr %27, i64 %29
  %wide.trip.count = zext nneg i32 %3 to i64
  %31 = shl nuw nsw i64 %wide.trip.count, 2
  %32 = add nsw i32 %4, -1
  %33 = zext i32 %32 to i64
  %34 = mul nuw nsw i64 %23, %33
  %35 = getelementptr i8, ptr %5, i64 %34
  %scevgep45 = getelementptr i8, ptr %35, i64 %wide.trip.count
  %min.iters.check = icmp ult i32 %3, 8
  %n.vec = and i64 %wide.trip.count, 2147483640
  %broadcast.splatinsert = insertelement <4 x i8> poison, i8 %6, i64 0
  %broadcast.splat = shufflevector <4 x i8> %broadcast.splatinsert, <4 x i8> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert47 = insertelement <4 x i32> poison, i32 %7, i64 0
  %broadcast.splat48 = shufflevector <4 x i32> %broadcast.splatinsert47, <4 x i32> poison, <4 x i32> zeroinitializer
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.02940.us = phi i32 [ %72, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %.03039.us = phi ptr [ %75, %._crit_edge.us ], [ %30, %.preheader.us.preheader ]
  %.03138.us = phi ptr [ %76, %._crit_edge.us ], [ %5, %.preheader.us.preheader ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.preheader.us
  %scevgep = getelementptr i8, ptr %.03039.us, i64 %31
  %bound0 = icmp ult ptr %.03039.us, %scevgep45
  %bound1 = icmp ugt ptr %scevgep, %5
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %vector.memcheck, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.memcheck ]
  %36 = getelementptr inbounds i8, ptr %.03138.us, i64 %index
  %37 = getelementptr inbounds i8, ptr %36, i64 4
  %wide.load = load <4 x i8>, ptr %36, align 1, !tbaa !19, !alias.scope !20
  %wide.load46 = load <4 x i8>, ptr %37, align 1, !tbaa !19, !alias.scope !20
  %38 = icmp eq <4 x i8> %wide.load, %broadcast.splat
  %39 = icmp eq <4 x i8> %wide.load46, %broadcast.splat
  %40 = select <4 x i1> %38, <4 x i32> %broadcast.splat48, <4 x i32> zeroinitializer
  %41 = select <4 x i1> %39, <4 x i32> %broadcast.splat48, <4 x i32> zeroinitializer
  %42 = getelementptr inbounds i32, ptr %.03039.us, i64 %index
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  store <4 x i32> %40, ptr %42, align 4, !tbaa !23, !alias.scope !24, !noalias !20
  store <4 x i32> %41, ptr %43, align 4, !tbaa !23, !alias.scope !24, !noalias !20
  %index.next = add nuw i64 %index, 8
  %44 = icmp eq i64 %index.next, %n.vec
  br i1 %44, label %middle.block, label %vector.body, !llvm.loop !26

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.preheader.us
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.preheader.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %45 = getelementptr inbounds i8, ptr %.03138.us, i64 %indvars.iv.prol
  %46 = load i8, ptr %45, align 1, !tbaa !19
  %47 = icmp eq i8 %46, %6
  %48 = select i1 %47, i32 %7, i32 0
  %49 = getelementptr inbounds i32, ptr %.03039.us, i64 %indvars.iv.prol
  store i32 %48, ptr %49, align 4, !tbaa !23
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !30

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %50 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %51 = icmp ugt i64 %50, -4
  br i1 %51, label %._crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %52 = getelementptr inbounds i8, ptr %.03138.us, i64 %indvars.iv
  %53 = load i8, ptr %52, align 1, !tbaa !19
  %54 = icmp eq i8 %53, %6
  %55 = select i1 %54, i32 %7, i32 0
  %56 = getelementptr inbounds i32, ptr %.03039.us, i64 %indvars.iv
  store i32 %55, ptr %56, align 4, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %57 = getelementptr inbounds i8, ptr %.03138.us, i64 %indvars.iv.next
  %58 = load i8, ptr %57, align 1, !tbaa !19
  %59 = icmp eq i8 %58, %6
  %60 = select i1 %59, i32 %7, i32 0
  %61 = getelementptr inbounds i32, ptr %.03039.us, i64 %indvars.iv.next
  store i32 %60, ptr %61, align 4, !tbaa !23
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %62 = getelementptr inbounds i8, ptr %.03138.us, i64 %indvars.iv.next.1
  %63 = load i8, ptr %62, align 1, !tbaa !19
  %64 = icmp eq i8 %63, %6
  %65 = select i1 %64, i32 %7, i32 0
  %66 = getelementptr inbounds i32, ptr %.03039.us, i64 %indvars.iv.next.1
  store i32 %65, ptr %66, align 4, !tbaa !23
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %67 = getelementptr inbounds i8, ptr %.03138.us, i64 %indvars.iv.next.2
  %68 = load i8, ptr %67, align 1, !tbaa !19
  %69 = icmp eq i8 %68, %6
  %70 = select i1 %69, i32 %7, i32 0
  %71 = getelementptr inbounds i32, ptr %.03039.us, i64 %indvars.iv.next.2
  store i32 %70, ptr %71, align 4, !tbaa !23
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge.us, label %scalar.ph, !llvm.loop !32

._crit_edge.us:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %72 = add nuw nsw i32 %.02940.us, 1
  %73 = load i32, ptr %12, align 8, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i32, ptr %.03039.us, i64 %74
  %76 = getelementptr inbounds i8, ptr %.03138.us, i64 %23
  %exitcond44.not = icmp eq i32 %72, %4
  br i1 %exitcond44.not, label %._crit_edge41, label %.preheader.us, !llvm.loop !33

._crit_edge41:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %20
  ret void
}

attributes #0 = { 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 #1 = { 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 = { 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, !7, i64 64}
!6 = !{!"_ZTS11ImFontAtlas", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 20, !11, i64 24, !10, i64 32, !11, i64 40, !11, i64 41, !10, i64 48, !10, i64 56, !7, i64 64, !7, i64 68, !12, i64 72, !12, i64 80, !14, i64 88, !15, i64 104, !16, i64 120, !8, i64 136, !10, i64 1160, !7, i64 1168, !7, i64 1172, !7, i64 1176}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !8, i64 0}
!14 = !{!"_ZTS8ImVectorIP6ImFontE", !7, i64 0, !7, i64 4, !10, i64 8}
!15 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !7, i64 0, !7, i64 4, !10, i64 8}
!16 = !{!"_ZTS8ImVectorI12ImFontConfigE", !7, i64 0, !7, i64 4, !10, i64 8}
!17 = !{!6, !7, i64 68}
!18 = !{!6, !10, i64 56}
!19 = !{!8, !8, i64 0}
!20 = !{!21}
!21 = distinct !{!21, !22}
!22 = distinct !{!22, !"LVerDomain"}
!23 = !{!7, !7, i64 0}
!24 = !{!25}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !27, !28, !29}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!"llvm.loop.isvectorized", i32 1}
!29 = !{!"llvm.loop.unroll.runtime.disable"}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.unroll.disable"}
!32 = distinct !{!32, !27, !28}
!33 = distinct !{!33, !27}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass