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

; 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.ImPlotRect = type { %struct.ImPlotRange, %struct.ImPlotRange }
%struct.ImPlotRange = type { double, double }
%struct.ImPlotPoint = type { double, double }
%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.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 }
%struct.ImPlotPlot = type <{ i32, i32, i32, i32, i32, [4 x i8], [6 x %struct.ImPlotAxis], %struct.ImGuiTextBuffer, %struct.ImPlotItemGroup, i32, i32, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImVec2, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, [3 x i8] }>
%struct.ImPlotAxis = type <{ i32, i32, i32, [4 x i8], %struct.ImPlotRange, i32, i32, %struct.ImPlotRange, ptr, %struct.ImPlotRange, %struct.ImPlotRange, %struct.ImPlotTicker, ptr, ptr, [16 x i8], ptr, ptr, ptr, i32, [4 x i8], %struct.ImPlotTime, %struct.ImPlotTime, ptr, ptr, ptr, float, float, double, double, double, float, float, %struct.ImRect, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, [4 x i8] }>
%struct.ImPlotTime = type <{ i64, i32, [4 x i8] }>
%struct.ImPlotItemGroup = type <{ i32, [4 x i8], %struct.ImPlotLegend, %struct.ImPool.46, i32, [4 x i8] }>
%struct.ImPlotLegend = type <{ i32, i32, i32, i32, %struct.ImVector.10, %struct.ImGuiTextBuffer, %struct.ImRect, i8, i8, i8, [5 x i8] }>
%struct.ImPool.46 = type { %struct.ImVector.47, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.47 = type { i32, i32, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }

@GImPlot = external dso_local global ptr, align 8
@.str.78 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [106 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot16GetPlotSelectionEii = external hidden unnamed_addr constant [52 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: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN6ImPlotL9SetupLockEv() #4

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImPlotRectC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot16GetPlotSelectionEii(ptr dead_on_unwind noalias writable sret(%struct.ImPlotRect) align 8 %0, i32 noundef %1, i32 noundef %2) #6 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.ImPlotPoint, align 8
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca %struct.ImPlotPoint, align 8
  %12 = alloca %struct.ImVec2, align 4
  store i32 %1, ptr %4, align 4, !tbaa !5
  store i32 %2, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %13 = load ptr, ptr @GImPlot, align 8, !tbaa !9
  store ptr %13, ptr %6, align 8, !tbaa !9
  %14 = load ptr, ptr %6, align 8, !tbaa !9
  %15 = getelementptr inbounds %struct.ImPlotContext, ptr %14, i32 0, i32 2
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %3
  br label %19

19:                                               ; preds = %18, %3
  %20 = phi i1 [ false, %3 ], [ true, %18 ]
  br i1 %20, label %21, label %22

21:                                               ; preds = %19
  br label %24

22:                                               ; preds = %19
  call void @__assert_fail(ptr noundef @.str.198, ptr noundef @.str.78, i32 noundef 3689, ptr noundef @__PRETTY_FUNCTION__._ZN6ImPlot16GetPlotSelectionEii) #8
  unreachable

23:                                               ; No predecessors!
  br label %24

24:                                               ; preds = %23, %21
  call void @_ZN6ImPlotL9SetupLockEv()
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %25 = load ptr, ptr %6, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.ImPlotContext, ptr %25, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  store ptr %27, ptr %7, align 8, !tbaa !9
  %28 = load ptr, ptr %7, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct.ImPlotPlot, ptr %28, i32 0, i32 25
  %30 = load i8, ptr %29, align 1, !tbaa !45, !range !52, !noundef !53
  %31 = trunc i8 %30 to i1
  br i1 %31, label %33, label %32

32:                                               ; preds = %24
  call void @_ZN10ImPlotRectC2Edddd(ptr noundef nonnull align 8 dereferenceable(32) %0, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
  store i32 1, ptr %8, align 4
  br label %90

33:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %34 = load ptr, ptr %7, align 8, !tbaa !9
  %35 = getelementptr inbounds %struct.ImPlotPlot, ptr %34, i32 0, i32 15
  %36 = getelementptr inbounds %struct.ImRect, ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %7, align 8, !tbaa !9
  %38 = getelementptr inbounds %struct.ImPlotPlot, ptr %37, i32 0, i32 13
  %39 = getelementptr inbounds %struct.ImRect, ptr %38, i32 0, i32 0
  %40 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(8) %39)
  store <2 x float> %40, ptr %10, align 4
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef %41, i32 noundef %42)
  %44 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %45 = extractvalue { double, double } %43, 0
  store double %45, ptr %44, align 8
  %46 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %47 = extractvalue { double, double } %43, 1
  store double %47, ptr %46, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %48 = load ptr, ptr %7, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.ImPlotPlot, ptr %48, i32 0, i32 15
  %50 = getelementptr inbounds %struct.ImRect, ptr %49, i32 0, i32 1
  %51 = load ptr, ptr %7, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.ImPlotPlot, ptr %51, i32 0, i32 13
  %53 = getelementptr inbounds %struct.ImRect, ptr %52, i32 0, i32 0
  %54 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %50, ptr noundef nonnull align 4 dereferenceable(8) %53)
  store <2 x float> %54, ptr %12, align 4
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %55, i32 noundef %56)
  %58 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %59 = extractvalue { double, double } %57, 0
  store double %59, ptr %58, align 8
  %60 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %61 = extractvalue { double, double } %57, 1
  store double %61, ptr %60, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @_ZN10ImPlotRectC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %62 = getelementptr inbounds %struct.ImPlotPoint, ptr %9, i32 0, i32 0
  %63 = load double, ptr %62, align 8, !tbaa !54
  %64 = getelementptr inbounds %struct.ImPlotPoint, ptr %11, i32 0, i32 0
  %65 = load double, ptr %64, align 8, !tbaa !54
  %66 = call noundef double @_ZL5ImMinIdET_S0_S0_(double noundef %63, double noundef %65)
  %67 = getelementptr inbounds %struct.ImPlotRect, ptr %0, i32 0, i32 0
  %68 = getelementptr inbounds %struct.ImPlotRange, ptr %67, i32 0, i32 0
  store double %66, ptr %68, align 8, !tbaa !57
  %69 = getelementptr inbounds %struct.ImPlotPoint, ptr %9, i32 0, i32 0
  %70 = load double, ptr %69, align 8, !tbaa !54
  %71 = getelementptr inbounds %struct.ImPlotPoint, ptr %11, i32 0, i32 0
  %72 = load double, ptr %71, align 8, !tbaa !54
  %73 = call noundef double @_ZL5ImMaxIdET_S0_S0_(double noundef %70, double noundef %72)
  %74 = getelementptr inbounds %struct.ImPlotRect, ptr %0, i32 0, i32 0
  %75 = getelementptr inbounds %struct.ImPlotRange, ptr %74, i32 0, i32 1
  store double %73, ptr %75, align 8, !tbaa !60
  %76 = getelementptr inbounds %struct.ImPlotPoint, ptr %9, i32 0, i32 1
  %77 = load double, ptr %76, align 8, !tbaa !61
  %78 = getelementptr inbounds %struct.ImPlotPoint, ptr %11, i32 0, i32 1
  %79 = load double, ptr %78, align 8, !tbaa !61
  %80 = call noundef double @_ZL5ImMinIdET_S0_S0_(double noundef %77, double noundef %79)
  %81 = getelementptr inbounds %struct.ImPlotRect, ptr %0, i32 0, i32 1
  %82 = getelementptr inbounds %struct.ImPlotRange, ptr %81, i32 0, i32 0
  store double %80, ptr %82, align 8, !tbaa !62
  %83 = getelementptr inbounds %struct.ImPlotPoint, ptr %9, i32 0, i32 1
  %84 = load double, ptr %83, align 8, !tbaa !61
  %85 = getelementptr inbounds %struct.ImPlotPoint, ptr %11, i32 0, i32 1
  %86 = load double, ptr %85, align 8, !tbaa !61
  %87 = call noundef double @_ZL5ImMaxIdET_S0_S0_(double noundef %84, double noundef %86)
  %88 = getelementptr inbounds %struct.ImPlotRect, ptr %0, i32 0, i32 1
  %89 = getelementptr inbounds %struct.ImPlotRange, ptr %88, i32 0, i32 1
  store double %87, ptr %89, align 8, !tbaa !63
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  br label %90

90:                                               ; preds = %33, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImPlotRectC2Edddd(ptr noundef nonnull align 8 dereferenceable(32), double noundef, double noundef, double noundef, double noundef) unnamed_addr #5 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 80}
!12 = !{!"_ZTS13ImPlotContext", !13, i64 0, !17, i64 40, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !19, i64 120, !25, i64 176, !27, i64 216, !29, 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, !6, i64 1096, !6, i64 1100, !40, i64 1104, !41, i64 1336, !42, i64 1464, !29, i64 1512, !21, i64 1520, !10, i64 1536, !43, i64 1544, !10, i64 1584, !10, i64 1592}
!13 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !14, i64 0, !15, i64 16, !6, i64 32, !6, i64 36}
!14 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !6, i64 0, !6, i64 4, !10, i64 8}
!15 = !{!"_ZTS12ImGuiStorage", !16, i64 0}
!16 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !6, i64 0, !6, i64 4, !10, i64 8}
!17 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !18, i64 0, !15, i64 16, !6, i64 32, !6, i64 36}
!18 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !6, i64 0, !6, i64 4, !10, i64 8}
!19 = !{!"_ZTS12ImPlotTicker", !20, i64 0, !21, i64 16, !23, i64 32, !23, i64 40, !6, i64 48}
!20 = !{!"_ZTS8ImVectorI10ImPlotTickE", !6, i64 0, !6, i64 4, !10, i64 8}
!21 = !{!"_ZTS15ImGuiTextBuffer", !22, i64 0}
!22 = !{!"_ZTS8ImVectorIcE", !6, i64 0, !6, i64 4, !10, i64 8}
!23 = !{!"_ZTS6ImVec2", !24, i64 0, !24, i64 4}
!24 = !{!"float", !7, i64 0}
!25 = !{!"_ZTS26ImPlotAnnotationCollection", !26, i64 0, !21, i64 16, !6, i64 32}
!26 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !6, i64 0, !6, i64 4, !10, i64 8}
!27 = !{!"_ZTS19ImPlotTagCollection", !28, i64 0, !21, i64 16, !6, i64 32}
!28 = !{!"_ZTS8ImVectorI9ImPlotTagE", !6, i64 0, !6, i64 4, !10, i64 8}
!29 = !{!"bool", !7, i64 0}
!30 = !{!"_ZTS11ImPlotStyle", !24, i64 0, !6, i64 4, !24, i64 8, !24, i64 12, !24, i64 16, !24, i64 20, !24, i64 24, !24, i64 28, !24, i64 32, !24, i64 36, !24, i64 40, !23, i64 44, !23, i64 52, !23, i64 60, !23, i64 68, !23, i64 76, !23, i64 84, !23, i64 92, !23, i64 100, !23, i64 108, !23, i64 116, !23, i64 124, !23, i64 132, !23, i64 140, !23, i64 148, !23, i64 156, !23, i64 164, !7, i64 172, !6, i64 508, !29, i64 512, !29, i64 513, !29, i64 514}
!31 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !6, i64 0, !6, i64 4, !10, i64 8}
!32 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !6, i64 0, !6, i64 4, !10, i64 8}
!33 = !{!"_ZTS18ImPlotColormapData", !34, i64 0, !35, i64 16, !35, i64 32, !34, i64 48, !35, i64 64, !35, i64 80, !21, i64 96, !35, i64 112, !36, i64 128, !15, i64 144, !6, i64 160}
!34 = !{!"_ZTS8ImVectorIjE", !6, i64 0, !6, i64 4, !10, i64 8}
!35 = !{!"_ZTS8ImVectorIiE", !6, i64 0, !6, i64 4, !10, i64 8}
!36 = !{!"_ZTS8ImVectorIbE", !6, i64 0, !6, i64 4, !10, i64 8}
!37 = !{!"_ZTS2tm", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !38, i64 40, !10, i64 48}
!38 = !{!"long", !7, i64 0}
!39 = !{!"_ZTS8ImVectorIdE", !6, i64 0, !6, i64 4, !10, 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, !24, i64 80, !6, i64 84, !24, i64 88, !24, i64 92, !24, i64 96, !24, i64 100, !24, i64 104, !24, i64 108, !24, i64 112, !29, i64 116, !29, i64 117, !29, i64 118, !29, i64 119, !29, i64 120, !29, i64 121, !6, i64 124}
!42 = !{!"_ZTS14ImPlotInputMap", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !24, i64 44}
!43 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !44, i64 0, !15, i64 16, !6, i64 32, !6, i64 36}
!44 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !6, i64 0, !6, i64 4, !10, i64 8}
!45 = !{!46, !29, i64 2531}
!46 = !{!"_ZTS10ImPlotPlot", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !7, i64 24, !21, i64 2280, !47, i64 2296, !6, i64 2424, !6, i64 2428, !49, i64 2432, !49, i64 2448, !49, i64 2464, !49, i64 2480, !49, i64 2496, !23, i64 2512, !6, i64 2520, !29, i64 2524, !29, i64 2525, !29, i64 2526, !29, i64 2527, !29, i64 2528, !29, i64 2529, !29, i64 2530, !29, i64 2531, !29, i64 2532}
!47 = !{!"_ZTS15ImPlotItemGroup", !6, i64 0, !48, i64 8, !50, i64 80, !6, i64 120}
!48 = !{!"_ZTS12ImPlotLegend", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !35, i64 16, !21, i64 32, !49, i64 48, !29, i64 64, !29, i64 65, !29, i64 66}
!49 = !{!"_ZTS6ImRect", !23, i64 0, !23, i64 8}
!50 = !{!"_ZTS6ImPoolI10ImPlotItemE", !51, i64 0, !15, i64 16, !6, i64 32, !6, i64 36}
!51 = !{!"_ZTS8ImVectorI10ImPlotItemE", !6, i64 0, !6, i64 4, !10, i64 8}
!52 = !{i8 0, i8 2}
!53 = !{}
!54 = !{!55, !56, i64 0}
!55 = !{!"_ZTS11ImPlotPoint", !56, i64 0, !56, i64 8}
!56 = !{!"double", !7, i64 0}
!57 = !{!58, !56, i64 0}
!58 = !{!"_ZTS10ImPlotRect", !59, i64 0, !59, i64 16}
!59 = !{!"_ZTS11ImPlotRange", !56, i64 0, !56, i64 8}
!60 = !{!58, !56, i64 8}
!61 = !{!55, !56, i64 8}
!62 = !{!58, !56, i64 16}
!63 = !{!58, !56, i64 24}


; 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.ImPlotRect = type { %struct.ImPlotRange, %struct.ImPlotRange }
%struct.ImPlotRange = type { double, double }
%struct.ImVec2 = type { float, float }

@GImPlot = external dso_local local_unnamed_addr global ptr, align 8
@.str.78 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.198 = external hidden unnamed_addr constant [106 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot16GetPlotSelectionEii = external hidden unnamed_addr constant [52 x i8], align 1

; 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: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL5ImMinIdET_S0_S0_(double noundef, double noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL5ImMaxIdET_S0_S0_(double noundef, double noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN6ImPlotL9SetupLockEv() local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImPlotRectC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot16GetPlotSelectionEii(ptr dead_on_unwind noalias writable sret(%struct.ImPlotRect) align 8 %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #6 {
  %4 = alloca %struct.ImVec2, align 8
  %5 = alloca %struct.ImVec2, align 8
  %6 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 80
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %9, label %10

9:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.198, ptr noundef nonnull @.str.78, i32 noundef 3689, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImPlot16GetPlotSelectionEii) #7
  unreachable

10:                                               ; preds = %3
  tail call void @_ZN6ImPlotL9SetupLockEv()
  %11 = load ptr, ptr %7, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %11, i64 2531
  %13 = load i8, ptr %12, align 1, !tbaa !44, !range !51, !noundef !52
  %14 = trunc nuw i8 %13 to i1
  br i1 %14, label %16, label %15

15:                                               ; preds = %10
  tail call void @_ZN10ImPlotRectC2Edddd(ptr noundef nonnull align 8 dereferenceable(32) %0, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %35

16:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %17 = getelementptr inbounds i8, ptr %11, i64 2496
  %18 = getelementptr inbounds i8, ptr %11, i64 2464
  %19 = tail call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store <2 x float> %19, ptr %4, align 8
  %20 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %1, i32 noundef %2)
  %21 = extractvalue { double, double } %20, 0
  %22 = extractvalue { double, double } %20, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %23 = getelementptr inbounds i8, ptr %11, i64 2504
  %24 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store <2 x float> %24, ptr %5, align 8
  %25 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef %1, i32 noundef %2)
  %26 = extractvalue { double, double } %25, 0
  %27 = extractvalue { double, double } %25, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @_ZN10ImPlotRectC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %28 = call noundef double @_ZL5ImMinIdET_S0_S0_(double noundef %21, double noundef %26)
  store double %28, ptr %0, align 8, !tbaa !53
  %29 = call noundef double @_ZL5ImMaxIdET_S0_S0_(double noundef %21, double noundef %26)
  %30 = getelementptr inbounds i8, ptr %0, i64 8
  store double %29, ptr %30, align 8, !tbaa !57
  %31 = call noundef double @_ZL5ImMinIdET_S0_S0_(double noundef %22, double noundef %27)
  %32 = getelementptr inbounds i8, ptr %0, i64 16
  store double %31, ptr %32, align 8, !tbaa !58
  %33 = call noundef double @_ZL5ImMaxIdET_S0_S0_(double noundef %22, double noundef %27)
  %34 = getelementptr inbounds i8, ptr %0, i64 24
  store double %33, ptr %34, align 8, !tbaa !59
  br label %35

35:                                               ; preds = %16, %15
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImPlotRectC2Edddd(ptr noundef nonnull align 8 dereferenceable(32), double noundef, double noundef, double noundef, double noundef) unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 #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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #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 = { noreturn nounwind }
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 = !{!10, !6, i64 80}
!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 = !{!45, !28, i64 2531}
!45 = !{!"_ZTS10ImPlotPlot", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !7, i64 24, !20, i64 2280, !46, i64 2296, !13, i64 2424, !13, i64 2428, !48, i64 2432, !48, i64 2448, !48, i64 2464, !48, i64 2480, !48, i64 2496, !22, i64 2512, !13, i64 2520, !28, i64 2524, !28, i64 2525, !28, i64 2526, !28, i64 2527, !28, i64 2528, !28, i64 2529, !28, i64 2530, !28, i64 2531, !28, i64 2532}
!46 = !{!"_ZTS15ImPlotItemGroup", !13, i64 0, !47, i64 8, !49, i64 80, !13, i64 120}
!47 = !{!"_ZTS12ImPlotLegend", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !34, i64 16, !20, i64 32, !48, i64 48, !28, i64 64, !28, i64 65, !28, i64 66}
!48 = !{!"_ZTS6ImRect", !22, i64 0, !22, i64 8}
!49 = !{!"_ZTS6ImPoolI10ImPlotItemE", !50, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!50 = !{!"_ZTS8ImVectorI10ImPlotItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!51 = !{i8 0, i8 2}
!52 = !{}
!53 = !{!54, !56, i64 0}
!54 = !{!"_ZTS10ImPlotRect", !55, i64 0, !55, i64 16}
!55 = !{!"_ZTS11ImPlotRange", !56, i64 0, !56, i64 8}
!56 = !{!"double", !7, i64 0}
!57 = !{!54, !56, i64 8}
!58 = !{!54, !56, i64 16}
!59 = !{!54, !56, i64 24}


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