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

; 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.ImVec2 = type { float, float }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }

; 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 nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5ImGui11GetColorU32Eif(i32 noundef, float noundef) #4

declare void @_ZN10ImDrawList7AddTextEPK6ImFontfRK6ImVec2jPKcS7_fPK6ImVec4(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, ptr noundef, ptr noundef, float noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui19RenderTextClippedExEP10ImDrawListRK6ImVec2S4_PKcS6_PS3_S4_PK6ImRect(ptr noundef %0, ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef %7) #6 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %struct.ImVec2, align 4
  %18 = alloca %struct.ImVec2, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i8, align 1
  %22 = alloca %struct.ImVec4, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %24 = load ptr, ptr %14, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %28

26:                                               ; preds = %8
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !9
  br label %32

28:                                               ; preds = %8
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  %31 = call <2 x float> @_ZN5ImGui12CalcTextSizeEPKcS1_bf(ptr noundef %29, ptr noundef %30, i1 noundef zeroext false, float noundef 0.000000e+00)
  store <2 x float> %31, ptr %18, align 4
  br label %32

32:                                               ; preds = %28, %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %33 = load ptr, ptr %16, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %38

35:                                               ; preds = %32
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ImRect, ptr %36, i32 0, i32 0
  br label %40

38:                                               ; preds = %32
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  br label %40

40:                                               ; preds = %38, %35
  %41 = phi ptr [ %37, %35 ], [ %39, %38 ]
  store ptr %41, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %42 = load ptr, ptr %16, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %47

44:                                               ; preds = %40
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ImRect, ptr %45, i32 0, i32 1
  br label %49

47:                                               ; preds = %40
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  br label %49

49:                                               ; preds = %47, %44
  %50 = phi ptr [ %46, %44 ], [ %48, %47 ]
  store ptr %50, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #8
  %51 = getelementptr inbounds %struct.ImVec2, ptr %17, i32 0, i32 0
  %52 = load float, ptr %51, align 4, !tbaa !12
  %53 = getelementptr inbounds %struct.ImVec2, ptr %18, i32 0, i32 0
  %54 = load float, ptr %53, align 4, !tbaa !12
  %55 = fadd float %52, %54
  %56 = load ptr, ptr %20, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ImVec2, ptr %56, i32 0, i32 0
  %58 = load float, ptr %57, align 4, !tbaa !12
  %59 = fcmp oge float %55, %58
  br i1 %59, label %70, label %60

60:                                               ; preds = %49
  %61 = getelementptr inbounds %struct.ImVec2, ptr %17, i32 0, i32 1
  %62 = load float, ptr %61, align 4, !tbaa !14
  %63 = getelementptr inbounds %struct.ImVec2, ptr %18, i32 0, i32 1
  %64 = load float, ptr %63, align 4, !tbaa !14
  %65 = fadd float %62, %64
  %66 = load ptr, ptr %20, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.ImVec2, ptr %66, i32 0, i32 1
  %68 = load float, ptr %67, align 4, !tbaa !14
  %69 = fcmp oge float %65, %68
  br label %70

70:                                               ; preds = %60, %49
  %71 = phi i1 [ true, %49 ], [ %69, %60 ]
  %72 = zext i1 %71 to i8
  store i8 %72, ptr %21, align 1, !tbaa !15
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %98

75:                                               ; preds = %70
  %76 = getelementptr inbounds %struct.ImVec2, ptr %17, i32 0, i32 0
  %77 = load float, ptr %76, align 4, !tbaa !12
  %78 = load ptr, ptr %19, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.ImVec2, ptr %78, i32 0, i32 0
  %80 = load float, ptr %79, align 4, !tbaa !12
  %81 = fcmp olt float %77, %80
  br i1 %81, label %89, label %82

82:                                               ; preds = %75
  %83 = getelementptr inbounds %struct.ImVec2, ptr %17, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !14
  %85 = load ptr, ptr %19, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ImVec2, ptr %85, i32 0, i32 1
  %87 = load float, ptr %86, align 4, !tbaa !14
  %88 = fcmp olt float %84, %87
  br label %89

89:                                               ; preds = %82, %75
  %90 = phi i1 [ true, %75 ], [ %88, %82 ]
  %91 = zext i1 %90 to i32
  %92 = load i8, ptr %21, align 1, !tbaa !15, !range !17, !noundef !18
  %93 = trunc i8 %92 to i1
  %94 = zext i1 %93 to i32
  %95 = or i32 %94, %91
  %96 = icmp ne i32 %95, 0
  %97 = zext i1 %96 to i8
  store i8 %97, ptr %21, align 1, !tbaa !15
  br label %98

98:                                               ; preds = %89, %70
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.ImVec2, ptr %99, i32 0, i32 0
  %101 = load float, ptr %100, align 4, !tbaa !12
  %102 = fcmp ogt float %101, 0.000000e+00
  br i1 %102, label %103, label %123

103:                                              ; preds = %98
  %104 = getelementptr inbounds %struct.ImVec2, ptr %17, i32 0, i32 0
  %105 = load float, ptr %104, align 4, !tbaa !12
  %106 = getelementptr inbounds %struct.ImVec2, ptr %17, i32 0, i32 0
  %107 = load float, ptr %106, align 4, !tbaa !12
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.ImVec2, ptr %108, i32 0, i32 0
  %110 = load float, ptr %109, align 4, !tbaa !12
  %111 = getelementptr inbounds %struct.ImVec2, ptr %17, i32 0, i32 0
  %112 = load float, ptr %111, align 4, !tbaa !12
  %113 = fsub float %110, %112
  %114 = getelementptr inbounds %struct.ImVec2, ptr %18, i32 0, i32 0
  %115 = load float, ptr %114, align 4, !tbaa !12
  %116 = fsub float %113, %115
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ImVec2, ptr %117, i32 0, i32 0
  %119 = load float, ptr %118, align 4, !tbaa !12
  %120 = call float @llvm.fmuladd.f32(float %116, float %119, float %107)
  %121 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %105, float noundef %120)
  %122 = getelementptr inbounds %struct.ImVec2, ptr %17, i32 0, i32 0
  store float %121, ptr %122, align 4, !tbaa !12
  br label %123

123:                                              ; preds = %103, %98
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ImVec2, ptr %124, i32 0, i32 1
  %126 = load float, ptr %125, align 4, !tbaa !14
  %127 = fcmp ogt float %126, 0.000000e+00
  br i1 %127, label %128, label %148

128:                                              ; preds = %123
  %129 = getelementptr inbounds %struct.ImVec2, ptr %17, i32 0, i32 1
  %130 = load float, ptr %129, align 4, !tbaa !14
  %131 = getelementptr inbounds %struct.ImVec2, ptr %17, i32 0, i32 1
  %132 = load float, ptr %131, align 4, !tbaa !14
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.ImVec2, ptr %133, i32 0, i32 1
  %135 = load float, ptr %134, align 4, !tbaa !14
  %136 = getelementptr inbounds %struct.ImVec2, ptr %17, i32 0, i32 1
  %137 = load float, ptr %136, align 4, !tbaa !14
  %138 = fsub float %135, %137
  %139 = getelementptr inbounds %struct.ImVec2, ptr %18, i32 0, i32 1
  %140 = load float, ptr %139, align 4, !tbaa !14
  %141 = fsub float %138, %140
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ImVec2, ptr %142, i32 0, i32 1
  %144 = load float, ptr %143, align 4, !tbaa !14
  %145 = call float @llvm.fmuladd.f32(float %141, float %144, float %132)
  %146 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %130, float noundef %145)
  %147 = getelementptr inbounds %struct.ImVec2, ptr %17, i32 0, i32 1
  store float %146, ptr %147, align 4, !tbaa !14
  br label %148

148:                                              ; preds = %128, %123
  %149 = load i8, ptr %21, align 1, !tbaa !15, !range !17, !noundef !18
  %150 = trunc i8 %149 to i1
  br i1 %150, label %151, label %168

151:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  %152 = load ptr, ptr %19, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.ImVec2, ptr %152, i32 0, i32 0
  %154 = load float, ptr %153, align 4, !tbaa !12
  %155 = load ptr, ptr %19, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.ImVec2, ptr %155, i32 0, i32 1
  %157 = load float, ptr %156, align 4, !tbaa !14
  %158 = load ptr, ptr %20, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.ImVec2, ptr %158, i32 0, i32 0
  %160 = load float, ptr %159, align 4, !tbaa !12
  %161 = load ptr, ptr %20, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.ImVec2, ptr %161, i32 0, i32 1
  %163 = load float, ptr %162, align 4, !tbaa !14
  call void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %22, float noundef %154, float noundef %157, float noundef %160, float noundef %163)
  %164 = load ptr, ptr %9, align 8, !tbaa !5
  %165 = call noundef i32 @_ZN5ImGui11GetColorU32Eif(i32 noundef 0, float noundef 1.000000e+00)
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN10ImDrawList7AddTextEPK6ImFontfRK6ImVec2jPKcS7_fPK6ImVec4(ptr noundef nonnull align 8 dereferenceable(196) %164, ptr noundef null, float noundef 0.000000e+00, ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef %165, ptr noundef %166, ptr noundef %167, float noundef 0.000000e+00, ptr noundef %22)
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  br label %173

168:                                              ; preds = %148
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = call noundef i32 @_ZN5ImGui11GetColorU32Eif(i32 noundef 0, float noundef 1.000000e+00)
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN10ImDrawList7AddTextEPK6ImFontfRK6ImVec2jPKcS7_fPK6ImVec4(ptr noundef nonnull align 8 dereferenceable(196) %169, ptr noundef null, float noundef 0.000000e+00, ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef %170, ptr noundef %171, ptr noundef %172, float noundef 0.000000e+00, ptr noundef null)
  br label %173

173:                                              ; preds = %168, %151
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN5ImGui12CalcTextSizeEPKcS1_bf(ptr noundef, ptr noundef, i1 noundef zeroext, float noundef) #6

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !10, i64 4, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"_ZTS6ImVec2", !11, i64 0, !11, i64 4}
!14 = !{!13, !11, i64 4}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}


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

%struct.ImVec2 = type { float, float }
%struct.ImVec4 = type { float, float, float, float }

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5ImGui11GetColorU32Eif(i32 noundef, float noundef) local_unnamed_addr #3

declare void @_ZN10ImDrawList7AddTextEPK6ImFontfRK6ImVec2jPKcS7_fPK6ImVec4(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, ptr noundef, ptr noundef, float noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui19RenderTextClippedExEP10ImDrawListRK6ImVec2S4_PKcS6_PS3_S4_PK6ImRect(ptr noundef %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %1, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %2, ptr noundef %3, ptr noundef %4, ptr noundef readonly %5, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %6, ptr noundef readonly %7) local_unnamed_addr #5 {
  %9 = alloca %struct.ImVec2, align 8
  %10 = alloca %struct.ImVec4, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %11 = load i64, ptr %1, align 4
  store i64 %11, ptr %9, align 8
  %.not = icmp eq ptr %5, null
  %12 = trunc i64 %11 to i32
  %13 = bitcast i32 %12 to float
  %14 = lshr i64 %11, 32
  %15 = trunc nuw i64 %14 to i32
  %16 = bitcast i32 %15 to float
  br i1 %.not, label %18, label %17

17:                                               ; preds = %8
  %.sroa.0.0.copyload = load <2 x float>, ptr %5, align 4
  br label %20

18:                                               ; preds = %8
  %19 = tail call <2 x float> @_ZN5ImGui12CalcTextSizeEPKcS1_bf(ptr noundef %3, ptr noundef %4, i1 noundef zeroext false, float noundef 0.000000e+00)
  br label %20

20:                                               ; preds = %18, %17
  %.sroa.0.0 = phi <2 x float> [ %.sroa.0.0.copyload, %17 ], [ %19, %18 ]
  %.not40 = icmp eq ptr %7, null
  %21 = select i1 %.not40, ptr %1, ptr %7
  %22 = getelementptr inbounds i8, ptr %7, i64 8
  %23 = select i1 %.not40, ptr %2, ptr %22
  %.sroa.0.0.vec.extract = extractelement <2 x float> %.sroa.0.0, i64 0
  %24 = fadd float %.sroa.0.0.vec.extract, %13
  %25 = load float, ptr %23, align 4, !tbaa !5
  %26 = fcmp ult float %24, %25
  br i1 %26, label %27, label %32

27:                                               ; preds = %20
  %.sroa.0.4.vec.extract = extractelement <2 x float> %.sroa.0.0, i64 1
  %28 = fadd float %.sroa.0.4.vec.extract, %16
  %29 = getelementptr inbounds i8, ptr %23, i64 4
  %30 = load float, ptr %29, align 4, !tbaa !10
  %31 = fcmp oge float %28, %30
  br label %32

32:                                               ; preds = %27, %20
  %33 = phi i1 [ true, %20 ], [ %31, %27 ]
  br i1 %.not40, label %44, label %34

34:                                               ; preds = %32
  %35 = load float, ptr %7, align 4, !tbaa !5
  %36 = fcmp ogt float %35, %13
  br i1 %36, label %41, label %37

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %7, i64 4
  %39 = load float, ptr %38, align 4, !tbaa !10
  %40 = fcmp ogt float %39, %16
  br label %41

41:                                               ; preds = %37, %34
  %42 = phi i1 [ true, %34 ], [ %40, %37 ]
  %43 = or i1 %33, %42
  br label %44

44:                                               ; preds = %41, %32
  %.0 = phi i1 [ %43, %41 ], [ %33, %32 ]
  %45 = load float, ptr %6, align 4, !tbaa !5
  %46 = fcmp ogt float %45, 0.000000e+00
  br i1 %46, label %47, label %53

47:                                               ; preds = %44
  %48 = load float, ptr %2, align 4, !tbaa !5
  %49 = fsub float %48, %13
  %50 = fsub float %49, %.sroa.0.0.vec.extract
  %51 = tail call float @llvm.fmuladd.f32(float %50, float %45, float %13)
  %52 = tail call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %13, float noundef %51)
  store float %52, ptr %9, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %47, %44
  %54 = getelementptr inbounds i8, ptr %6, i64 4
  %55 = load float, ptr %54, align 4, !tbaa !10
  %56 = fcmp ogt float %55, 0.000000e+00
  br i1 %56, label %57, label %65

57:                                               ; preds = %53
  %58 = getelementptr inbounds i8, ptr %9, i64 4
  %59 = getelementptr inbounds i8, ptr %2, i64 4
  %60 = load float, ptr %59, align 4, !tbaa !10
  %61 = fsub float %60, %16
  %.sroa.0.4.vec.extract12 = extractelement <2 x float> %.sroa.0.0, i64 1
  %62 = fsub float %61, %.sroa.0.4.vec.extract12
  %63 = tail call float @llvm.fmuladd.f32(float %62, float %55, float %16)
  %64 = tail call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %16, float noundef %63)
  store float %64, ptr %58, align 4, !tbaa !10
  br label %65

65:                                               ; preds = %57, %53
  br i1 %.0, label %66, label %74

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %67 = load float, ptr %21, align 4, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %21, i64 4
  %69 = load float, ptr %68, align 4, !tbaa !10
  %70 = load float, ptr %23, align 4, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %23, i64 4
  %72 = load float, ptr %71, align 4, !tbaa !10
  call void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %10, float noundef %67, float noundef %69, float noundef %70, float noundef %72)
  %73 = call noundef i32 @_ZN5ImGui11GetColorU32Eif(i32 noundef 0, float noundef 1.000000e+00)
  call void @_ZN10ImDrawList7AddTextEPK6ImFontfRK6ImVec2jPKcS7_fPK6ImVec4(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef null, float noundef 0.000000e+00, ptr noundef nonnull align 4 dereferenceable(8) %9, i32 noundef %73, ptr noundef %3, ptr noundef %4, float noundef 0.000000e+00, ptr noundef nonnull %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %76

74:                                               ; preds = %65
  %75 = tail call noundef i32 @_ZN5ImGui11GetColorU32Eif(i32 noundef 0, float noundef 1.000000e+00)
  call void @_ZN10ImDrawList7AddTextEPK6ImFontfRK6ImVec2jPKcS7_fPK6ImVec4(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef null, float noundef 0.000000e+00, ptr noundef nonnull align 4 dereferenceable(8) %9, i32 noundef %75, ptr noundef %3, ptr noundef %4, float noundef 0.000000e+00, ptr noundef null)
  br label %76

76:                                               ; preds = %74, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN5ImGui12CalcTextSizeEPKcS1_bf(ptr noundef, ptr noundef, i1 noundef zeroext, float noundef) local_unnamed_addr #5

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

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


; Effective O3 passes: AggressiveInstCombinePass,BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass