; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/ImGui/implot.ll (ZN6ImPlot20ShowColormapSelectorEPKc)

; 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.ImPlotContext = type { %struct.ImPool.34, %struct.ImPool.36, ptr, ptr, ptr, ptr, ptr, %struct.ImPlotTicker, %struct.ImPlotAnnotationCollection, %struct.ImPlotTagCollection, i8, [3 x i8], %struct.ImPlotStyle, %struct.ImVector.6, %struct.ImVector.7, %struct.ImPlotColormapData, %struct.ImVector.10, %struct.tm, %struct.ImVector.42, %struct.ImVector.42, %struct.ImVector.10, i32, i32, %struct.ImPlotNextPlotData, %struct.ImPlotNextItemData, %struct.ImPlotInputMap, i8, %struct.ImGuiTextBuffer, ptr, %struct.ImPool.43, ptr, ptr }
%struct.ImPool.34 = type { %struct.ImVector.35, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.35 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.4 }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImPool.36 = type { %struct.ImVector.37, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.37 = type { i32, i32, ptr }
%struct.ImPlotTicker = type <{ %struct.ImVector.38, %struct.ImGuiTextBuffer, %struct.ImVec2, %struct.ImVec2, i32, [4 x i8] }>
%struct.ImVector.38 = type { i32, i32, ptr }
%struct.ImPlotAnnotationCollection = type <{ %struct.ImVector.39, %struct.ImGuiTextBuffer, i32, [4 x i8] }>
%struct.ImVector.39 = type { i32, i32, ptr }
%struct.ImPlotTagCollection = type <{ %struct.ImVector.40, %struct.ImGuiTextBuffer, i32, [4 x i8] }>
%struct.ImVector.40 = type { i32, i32, ptr }
%struct.ImPlotStyle = type <{ float, i32, float, float, float, float, float, float, float, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, [21 x %struct.ImVec4], i32, i8, i8, i8, i8 }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImPlotColormapData = type <{ %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.10, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.10, %struct.ImGuiTextBuffer, %struct.ImVector.10, %struct.ImVector.41, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.41 = type { i32, i32, ptr }
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, ptr }
%struct.ImVector.42 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImPlotNextPlotData = type { [6 x i32], [6 x %struct.ImPlotRange], [6 x i8], [6 x i8], [6 x ptr], [6 x ptr] }
%struct.ImPlotRange = type { double, double }
%struct.ImPlotNextItemData = type { [5 x %struct.ImVec4], float, i32, float, float, float, float, float, float, float, i8, i8, i8, i8, i8, i8, i32 }
%struct.ImPlotInputMap = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float }
%struct.ImGuiTextBuffer = type { %struct.ImVector.24 }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImPool.43 = type { %struct.ImVector.44, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.44 = type { i32, i32, ptr }

@GImPlot = external dso_local global ptr, align 8

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK18ImPlotColormapData7GetNameEi(ptr noundef nonnull align 8 dereferenceable(164), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ImPlot20ShowColormapSelectorEPKc(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %8 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  store ptr %8, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #5
  store i8 0, ptr %4, align 1, !tbaa !9
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.ImPlotContext, ptr %10, i32 0, i32 15
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.ImPlotContext, ptr %12, i32 0, i32 12
  %14 = getelementptr inbounds %struct.ImPlotStyle, ptr %13, i32 0, i32 28
  %15 = load i32, ptr %14, align 4, !tbaa !11
  %16 = call noundef ptr @_ZNK18ImPlotColormapData7GetNameEi(ptr noundef nonnull align 8 dereferenceable(164) %11, i32 noundef %15)
  %17 = call noundef zeroext i1 @_ZN5ImGui10BeginComboEPKcS1_i(ptr noundef %9, ptr noundef %16, i32 noundef 0)
  br i1 %17, label %18, label %50

18:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !45
  br label %19

19:                                               ; preds = %46, %18
  %20 = load i32, ptr %5, align 4, !tbaa !45
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.ImPlotContext, ptr %21, i32 0, i32 15
  %23 = getelementptr inbounds %struct.ImPlotColormapData, ptr %22, i32 0, i32 10
  %24 = load i32, ptr %23, align 8, !tbaa !46
  %25 = icmp slt i32 %20, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %49

27:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.ImPlotContext, ptr %28, i32 0, i32 15
  %30 = load i32, ptr %5, align 4, !tbaa !45
  %31 = call noundef ptr @_ZNK18ImPlotColormapData7GetNameEi(ptr noundef nonnull align 8 dereferenceable(164) %29, i32 noundef %30)
  store ptr %31, ptr %6, align 8, !tbaa !5
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ImPlotContext, ptr %33, i32 0, i32 12
  %35 = getelementptr inbounds %struct.ImPlotStyle, ptr %34, i32 0, i32 28
  %36 = load i32, ptr %35, align 4, !tbaa !11
  %37 = load i32, ptr %5, align 4, !tbaa !45
  %38 = icmp eq i32 %36, %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %39 = call noundef zeroext i1 @_ZN5ImGui10SelectableEPKcbiRK6ImVec2(ptr noundef %32, i1 noundef zeroext %38, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br i1 %39, label %40, label %45

40:                                               ; preds = %27
  %41 = load i32, ptr %5, align 4, !tbaa !45
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ImPlotContext, ptr %42, i32 0, i32 12
  %44 = getelementptr inbounds %struct.ImPlotStyle, ptr %43, i32 0, i32 28
  store i32 %41, ptr %44, align 4, !tbaa !11
  call void @_ZN6ImPlot13BustItemCacheEv()
  store i8 1, ptr %4, align 1, !tbaa !9
  br label %45

45:                                               ; preds = %40, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %5, align 4, !tbaa !45
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %5, align 4, !tbaa !45
  br label %19, !llvm.loop !47

49:                                               ; preds = %26
  call void @_ZN5ImGui8EndComboEv()
  br label %50

50:                                               ; preds = %49, %1
  %51 = load i8, ptr %4, align 1, !tbaa !9, !range !49, !noundef !50
  %52 = trunc i8 %51 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret i1 %52
}

declare noundef zeroext i1 @_ZN5ImGui10BeginComboEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) #4

declare noundef zeroext i1 @_ZN5ImGui10SelectableEPKcbiRK6ImVec2(ptr noundef, i1 noundef zeroext, i32 noundef, ptr noundef nonnull align 4 dereferenceable(8)) #4

declare void @_ZN6ImPlot13BustItemCacheEv() #4

declare void @_ZN5ImGui8EndComboEv() #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !15, i64 768}
!12 = !{!"_ZTS13ImPlotContext", !13, i64 0, !18, i64 40, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !20, i64 120, !26, i64 176, !28, i64 216, !10, i64 256, !30, i64 260, !31, i64 776, !32, i64 792, !33, i64 808, !35, i64 976, !37, i64 992, !39, i64 1048, !39, i64 1064, !35, i64 1080, !15, i64 1096, !15, i64 1100, !40, i64 1104, !41, i64 1336, !42, i64 1464, !10, i64 1512, !22, i64 1520, !6, i64 1536, !43, i64 1544, !6, i64 1584, !6, i64 1592}
!13 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !14, i64 0, !16, i64 16, !15, i64 32, !15, i64 36}
!14 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !15, i64 0, !15, i64 4, !6, i64 8}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS12ImGuiStorage", !17, i64 0}
!17 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !15, i64 0, !15, i64 4, !6, i64 8}
!18 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !19, i64 0, !16, i64 16, !15, i64 32, !15, i64 36}
!19 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !15, i64 0, !15, i64 4, !6, i64 8}
!20 = !{!"_ZTS12ImPlotTicker", !21, i64 0, !22, i64 16, !24, i64 32, !24, i64 40, !15, i64 48}
!21 = !{!"_ZTS8ImVectorI10ImPlotTickE", !15, i64 0, !15, i64 4, !6, i64 8}
!22 = !{!"_ZTS15ImGuiTextBuffer", !23, i64 0}
!23 = !{!"_ZTS8ImVectorIcE", !15, i64 0, !15, i64 4, !6, i64 8}
!24 = !{!"_ZTS6ImVec2", !25, i64 0, !25, i64 4}
!25 = !{!"float", !7, i64 0}
!26 = !{!"_ZTS26ImPlotAnnotationCollection", !27, i64 0, !22, i64 16, !15, i64 32}
!27 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !15, i64 0, !15, i64 4, !6, i64 8}
!28 = !{!"_ZTS19ImPlotTagCollection", !29, i64 0, !22, i64 16, !15, i64 32}
!29 = !{!"_ZTS8ImVectorI9ImPlotTagE", !15, i64 0, !15, i64 4, !6, i64 8}
!30 = !{!"_ZTS11ImPlotStyle", !25, i64 0, !15, i64 4, !25, i64 8, !25, i64 12, !25, i64 16, !25, i64 20, !25, i64 24, !25, i64 28, !25, i64 32, !25, i64 36, !25, i64 40, !24, i64 44, !24, i64 52, !24, i64 60, !24, i64 68, !24, i64 76, !24, i64 84, !24, i64 92, !24, i64 100, !24, i64 108, !24, i64 116, !24, i64 124, !24, i64 132, !24, i64 140, !24, i64 148, !24, i64 156, !24, i64 164, !7, i64 172, !15, i64 508, !10, i64 512, !10, i64 513, !10, i64 514}
!31 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !15, i64 0, !15, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !15, i64 0, !15, i64 4, !6, i64 8}
!33 = !{!"_ZTS18ImPlotColormapData", !34, i64 0, !35, i64 16, !35, i64 32, !34, i64 48, !35, i64 64, !35, i64 80, !22, i64 96, !35, i64 112, !36, i64 128, !16, i64 144, !15, i64 160}
!34 = !{!"_ZTS8ImVectorIjE", !15, i64 0, !15, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorIiE", !15, i64 0, !15, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorIbE", !15, i64 0, !15, i64 4, !6, i64 8}
!37 = !{!"_ZTS2tm", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !38, i64 40, !6, i64 48}
!38 = !{!"long", !7, i64 0}
!39 = !{!"_ZTS8ImVectorIdE", !15, i64 0, !15, i64 4, !6, i64 8}
!40 = !{!"_ZTS18ImPlotNextPlotData", !7, i64 0, !7, i64 24, !7, i64 120, !7, i64 126, !7, i64 136, !7, i64 184}
!41 = !{!"_ZTS18ImPlotNextItemData", !7, i64 0, !25, i64 80, !15, i64 84, !25, i64 88, !25, i64 92, !25, i64 96, !25, i64 100, !25, i64 104, !25, i64 108, !25, i64 112, !10, i64 116, !10, i64 117, !10, i64 118, !10, i64 119, !10, i64 120, !10, i64 121, !15, i64 124}
!42 = !{!"_ZTS14ImPlotInputMap", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !25, i64 44}
!43 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !44, i64 0, !16, i64 16, !15, i64 32, !15, i64 36}
!44 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !15, i64 0, !15, i64 4, !6, i64 8}
!45 = !{!15, !15, i64 0}
!46 = !{!12, !15, i64 968}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}
!49 = !{i8 0, i8 2}
!50 = !{}


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

@GImPlot = external dso_local local_unnamed_addr global ptr, align 8

; 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 nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK18ImPlotColormapData7GetNameEi(ptr noundef nonnull align 8 dereferenceable(164), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ImPlot20ShowColormapSelectorEPKc(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca %struct.ImVec2, align 4
  %3 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 808
  %5 = getelementptr inbounds i8, ptr %3, i64 768
  %6 = load i32, ptr %5, align 4, !tbaa !9
  %7 = tail call noundef ptr @_ZNK18ImPlotColormapData7GetNameEi(ptr noundef nonnull align 8 dereferenceable(164) %4, i32 noundef %6)
  %8 = tail call noundef zeroext i1 @_ZN5ImGui10BeginComboEPKcS1_i(ptr noundef %0, ptr noundef %7, i32 noundef 0)
  br i1 %8, label %.preheader, label %21

.preheader:                                       ; preds = %1
  %9 = getelementptr inbounds i8, ptr %3, i64 968
  %10 = load i32, ptr %9, align 8, !tbaa !44
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %17, %.preheader
  %.0.lcssa = phi i1 [ false, %.preheader ], [ %.1, %17 ]
  call void @_ZN5ImGui8EndComboEv()
  br label %21

.lr.ph:                                           ; preds = %.preheader, %17
  %.015 = phi i1 [ %.1, %17 ], [ false, %.preheader ]
  %.01314 = phi i32 [ %18, %17 ], [ 0, %.preheader ]
  %12 = call noundef ptr @_ZNK18ImPlotColormapData7GetNameEi(ptr noundef nonnull align 8 dereferenceable(164) %4, i32 noundef %.01314)
  %13 = load i32, ptr %5, align 4, !tbaa !9
  %14 = icmp eq i32 %13, %.01314
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %15 = call noundef zeroext i1 @_ZN5ImGui10SelectableEPKcbiRK6ImVec2(ptr noundef %12, i1 noundef zeroext %14, i32 noundef 0, ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  br i1 %15, label %16, label %17

16:                                               ; preds = %.lr.ph
  store i32 %.01314, ptr %5, align 4, !tbaa !9
  call void @_ZN6ImPlot13BustItemCacheEv()
  br label %17

17:                                               ; preds = %16, %.lr.ph
  %.1 = phi i1 [ true, %16 ], [ %.015, %.lr.ph ]
  %18 = add nuw nsw i32 %.01314, 1
  %19 = load i32, ptr %9, align 8, !tbaa !44
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %.lr.ph, label %._crit_edge, !llvm.loop !45

21:                                               ; preds = %._crit_edge, %1
  %.2 = phi i1 [ %.0.lcssa, %._crit_edge ], [ false, %1 ]
  ret i1 %.2
}

declare noundef zeroext i1 @_ZN5ImGui10BeginComboEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN5ImGui10SelectableEPKcbiRK6ImVec2(ptr noundef, i1 noundef zeroext, i32 noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

declare void @_ZN6ImPlot13BustItemCacheEv() local_unnamed_addr #4

declare void @_ZN5ImGui8EndComboEv() local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { 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, !13, i64 768}
!10 = !{!"_ZTS13ImPlotContext", !11, i64 0, !16, i64 40, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !18, i64 120, !24, i64 176, !26, i64 216, !28, i64 256, !29, i64 260, !30, i64 776, !31, i64 792, !32, i64 808, !34, i64 976, !36, i64 992, !38, i64 1048, !38, i64 1064, !34, i64 1080, !13, i64 1096, !13, i64 1100, !39, i64 1104, !40, i64 1336, !41, i64 1464, !28, i64 1512, !20, i64 1520, !6, i64 1536, !42, i64 1544, !6, i64 1584, !6, i64 1592}
!11 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !12, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!12 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !13, i64 0, !13, i64 4, !6, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS12ImGuiStorage", !15, i64 0}
!15 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!16 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !17, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!17 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !13, i64 0, !13, i64 4, !6, i64 8}
!18 = !{!"_ZTS12ImPlotTicker", !19, i64 0, !20, i64 16, !22, i64 32, !22, i64 40, !13, i64 48}
!19 = !{!"_ZTS8ImVectorI10ImPlotTickE", !13, i64 0, !13, i64 4, !6, i64 8}
!20 = !{!"_ZTS15ImGuiTextBuffer", !21, i64 0}
!21 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!22 = !{!"_ZTS6ImVec2", !23, i64 0, !23, i64 4}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTS26ImPlotAnnotationCollection", !25, i64 0, !20, i64 16, !13, i64 32}
!25 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !13, i64 0, !13, i64 4, !6, i64 8}
!26 = !{!"_ZTS19ImPlotTagCollection", !27, i64 0, !20, i64 16, !13, i64 32}
!27 = !{!"_ZTS8ImVectorI9ImPlotTagE", !13, i64 0, !13, i64 4, !6, i64 8}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTS11ImPlotStyle", !23, i64 0, !13, i64 4, !23, i64 8, !23, i64 12, !23, i64 16, !23, i64 20, !23, i64 24, !23, i64 28, !23, i64 32, !23, i64 36, !23, i64 40, !22, i64 44, !22, i64 52, !22, i64 60, !22, i64 68, !22, i64 76, !22, i64 84, !22, i64 92, !22, i64 100, !22, i64 108, !22, i64 116, !22, i64 124, !22, i64 132, !22, i64 140, !22, i64 148, !22, i64 156, !22, i64 164, !7, i64 172, !13, i64 508, !28, i64 512, !28, i64 513, !28, i64 514}
!30 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!32 = !{!"_ZTS18ImPlotColormapData", !33, i64 0, !34, i64 16, !34, i64 32, !33, i64 48, !34, i64 64, !34, i64 80, !20, i64 96, !34, i64 112, !35, i64 128, !14, i64 144, !13, i64 160}
!33 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorIbE", !13, i64 0, !13, i64 4, !6, i64 8}
!36 = !{!"_ZTS2tm", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !37, i64 40, !6, i64 48}
!37 = !{!"long", !7, i64 0}
!38 = !{!"_ZTS8ImVectorIdE", !13, i64 0, !13, i64 4, !6, i64 8}
!39 = !{!"_ZTS18ImPlotNextPlotData", !7, i64 0, !7, i64 24, !7, i64 120, !7, i64 126, !7, i64 136, !7, i64 184}
!40 = !{!"_ZTS18ImPlotNextItemData", !7, i64 0, !23, i64 80, !13, i64 84, !23, i64 88, !23, i64 92, !23, i64 96, !23, i64 100, !23, i64 104, !23, i64 108, !23, i64 112, !28, i64 116, !28, i64 117, !28, i64 118, !28, i64 119, !28, i64 120, !28, i64 121, !13, i64 124}
!41 = !{!"_ZTS14ImPlotInputMap", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !23, i64 44}
!42 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !43, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!43 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!44 = !{!10, !13, i64 968}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}


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