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

; 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.ImPlotPoint = type { double, double }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImVec2 = type { float, float }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%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.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
@.str.78 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.208 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.210 = external hidden unnamed_addr constant [105 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot9DragPointEiPdS0_RK6ImVec4fi = external hidden unnamed_addr constant [92 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 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

declare noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef) #2

declare void @_ZN5ImGui11KeepAliveIDEj(i32 noundef) #2

declare noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2

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

declare void @_ZN5ImGui5PopIDEv() #2

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

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

declare void @_ZN5ImGui14SetMouseCursorEi(i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5ImGui16GetCurrentWindowEv() #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot16PushPlotClipRectEf(float noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot15PopPlotClipRectEv() #5

declare noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef, double noundef, i32 noundef, i32 noundef) #8

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef, i32 noundef) #8

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ImPlot9DragPointEiPdS0_RK6ImVec4fi(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %4, i32 noundef %5) #8 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.ImPlotPoint, align 8
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca float, align 4
  %18 = alloca %struct.ImVec4, align 4
  %19 = alloca i32, align 4
  %20 = alloca %struct.ImVec2, align 4
  %21 = alloca i32, align 4
  %22 = alloca %struct.ImRect, align 4
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca %struct.ImPlotPoint, align 8
  %27 = alloca %struct.ImPlotPoint, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %struct.ImVec2, align 4
  store i32 %0, ptr %7, align 4, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !9
  store float %4, ptr %11, align 4, !tbaa !11
  store i32 %5, ptr %12, align 4, !tbaa !5
  call void @_ZN5ImGui6PushIDEPKc(ptr noundef @.str.208)
  %30 = load ptr, ptr @GImPlot, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.ImPlotContext, ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %6
  br label %35

35:                                               ; preds = %34, %6
  %36 = phi i1 [ false, %6 ], [ true, %34 ]
  br i1 %36, label %37, label %38

37:                                               ; preds = %35
  br label %40

38:                                               ; preds = %35
  call void @__assert_fail(ptr noundef @.str.210, ptr noundef @.str.78, i32 noundef 3824, ptr noundef @__PRETTY_FUNCTION__._ZN6ImPlot9DragPointEiPdS0_RK6ImVec4fi) #9
  unreachable

39:                                               ; No predecessors!
  br label %40

40:                                               ; preds = %39, %37
  call void @_ZN6ImPlotL9SetupLockEv()
  %41 = load i32, ptr %12, align 4, !tbaa !5
  %42 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %41, i32 noundef 2)
  br i1 %42, label %50, label %43

43:                                               ; preds = %40
  %44 = call noundef zeroext i1 @_ZN6ImPlotL12FitThisFrameEv()
  br i1 %44, label %45, label %50

45:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #10
  %46 = load ptr, ptr %8, align 8, !tbaa !9
  %47 = load double, ptr %46, align 8, !tbaa !46
  %48 = load ptr, ptr %9, align 8, !tbaa !9
  %49 = load double, ptr %48, align 8, !tbaa !46
  call void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef %47, double noundef %49)
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %13)
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #10
  br label %50

50:                                               ; preds = %45, %43, %40
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #10
  %51 = load i32, ptr %12, align 4, !tbaa !5
  %52 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %51, i32 noundef 4)
  %53 = xor i1 %52, true
  %54 = zext i1 %53 to i8
  store i8 %54, ptr %14, align 1, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #10
  %55 = load i32, ptr %12, align 4, !tbaa !5
  %56 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %55, i32 noundef 1)
  %57 = xor i1 %56, true
  %58 = zext i1 %57 to i8
  store i8 %58, ptr %15, align 1, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #10
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %59, i32 noundef 8)
  %61 = xor i1 %60, true
  %62 = zext i1 %61 to i8
  store i8 %62, ptr %16, align 1, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #10
  %63 = load float, ptr %11, align 4, !tbaa !11
  %64 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef 4.000000e+00, float noundef %63)
  store float %64, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #10
  %65 = load ptr, ptr %10, align 8, !tbaa !9
  %66 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %65)
  br i1 %66, label %67, label %69

67:                                               ; preds = %50
  %68 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef 0)
  br label %71

69:                                               ; preds = %50
  %70 = load ptr, ptr %10, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %69, %67
  %72 = phi ptr [ %68, %67 ], [ %70, %69 ]
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %72, i64 16, i1 false), !tbaa.struct !49
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  %73 = call noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %18)
  store i32 %73, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %74 = load ptr, ptr %8, align 8, !tbaa !9
  %75 = load double, ptr %74, align 8, !tbaa !46
  %76 = load ptr, ptr %9, align 8, !tbaa !9
  %77 = load double, ptr %76, align 8, !tbaa !46
  %78 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %75, double noundef %77, i32 noundef -1, i32 noundef -1)
  store <2 x float> %78, ptr %20, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #10
  %79 = call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %81 = call noundef i32 @_ZN11ImGuiWindow5GetIDEi(ptr noundef nonnull align 8 dereferenceable(981) %79, i32 noundef %80)
  store i32 %81, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #10
  %82 = getelementptr inbounds %struct.ImVec2, ptr %20, i32 0, i32 0
  %83 = load float, ptr %82, align 4, !tbaa !50
  %84 = load float, ptr %17, align 4, !tbaa !11
  %85 = fsub float %83, %84
  %86 = getelementptr inbounds %struct.ImVec2, ptr %20, i32 0, i32 1
  %87 = load float, ptr %86, align 4, !tbaa !51
  %88 = load float, ptr %17, align 4, !tbaa !11
  %89 = fsub float %87, %88
  %90 = getelementptr inbounds %struct.ImVec2, ptr %20, i32 0, i32 0
  %91 = load float, ptr %90, align 4, !tbaa !50
  %92 = load float, ptr %17, align 4, !tbaa !11
  %93 = fadd float %91, %92
  %94 = getelementptr inbounds %struct.ImVec2, ptr %20, i32 0, i32 1
  %95 = load float, ptr %94, align 4, !tbaa !51
  %96 = load float, ptr %17, align 4, !tbaa !11
  %97 = fadd float %95, %96
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %22, float noundef %85, float noundef %89, float noundef %93, float noundef %97)
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #10
  store i8 0, ptr %23, align 1, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #10
  store i8 0, ptr %24, align 1, !tbaa !48
  %98 = load i32, ptr %21, align 4, !tbaa !5
  call void @_ZN5ImGui11KeepAliveIDEj(i32 noundef %98)
  %99 = load i8, ptr %14, align 1, !tbaa !48, !range !52, !noundef !53
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %104

101:                                              ; preds = %71
  %102 = load i32, ptr %21, align 4, !tbaa !5
  %103 = call noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %22, i32 noundef %102, ptr noundef %23, ptr noundef %24, i32 noundef 0)
  br label %104

104:                                              ; preds = %101, %71
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #10
  store i8 0, ptr %25, align 1, !tbaa !48
  %105 = load i8, ptr %24, align 1, !tbaa !48, !range !52, !noundef !53
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %126

107:                                              ; preds = %104
  %108 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %108, label %109, label %126

109:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #10
  %110 = call { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef -1, i32 noundef -1)
  %111 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %112 = extractvalue { double, double } %110, 0
  store double %112, ptr %111, align 8
  %113 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %114 = extractvalue { double, double } %110, 1
  store double %114, ptr %113, align 8
  %115 = getelementptr inbounds %struct.ImPlotPoint, ptr %26, i32 0, i32 0
  %116 = load double, ptr %115, align 8, !tbaa !54
  %117 = load ptr, ptr %8, align 8, !tbaa !9
  store double %116, ptr %117, align 8, !tbaa !46
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #10
  %118 = call { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef -1, i32 noundef -1)
  %119 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %120 = extractvalue { double, double } %118, 0
  store double %120, ptr %119, align 8
  %121 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %122 = extractvalue { double, double } %118, 1
  store double %122, ptr %121, align 8
  %123 = getelementptr inbounds %struct.ImPlotPoint, ptr %27, i32 0, i32 1
  %124 = load double, ptr %123, align 8, !tbaa !56
  %125 = load ptr, ptr %9, align 8, !tbaa !9
  store double %124, ptr %125, align 8, !tbaa !46
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #10
  store i8 1, ptr %25, align 1, !tbaa !48
  br label %126

126:                                              ; preds = %109, %107, %104
  call void @_ZN6ImPlot16PushPlotClipRectEf(float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  %127 = call noundef ptr @_ZN6ImPlot15GetPlotDrawListEv()
  store ptr %127, ptr %28, align 8, !tbaa !9
  %128 = load i8, ptr %23, align 1, !tbaa !48, !range !52, !noundef !53
  %129 = trunc i8 %128 to i1
  br i1 %129, label %133, label %130

130:                                              ; preds = %126
  %131 = load i8, ptr %24, align 1, !tbaa !48, !range !52, !noundef !53
  %132 = trunc i8 %131 to i1
  br i1 %132, label %133, label %137

133:                                              ; preds = %130, %126
  %134 = load i8, ptr %15, align 1, !tbaa !48, !range !52, !noundef !53
  %135 = trunc i8 %134 to i1
  br i1 %135, label %136, label %137

136:                                              ; preds = %133
  call void @_ZN5ImGui14SetMouseCursorEi(i32 noundef 7)
  br label %137

137:                                              ; preds = %136, %133, %130
  %138 = load i8, ptr %25, align 1, !tbaa !48, !range !52, !noundef !53
  %139 = trunc i8 %138 to i1
  br i1 %139, label %140, label %149

140:                                              ; preds = %137
  %141 = load i8, ptr %16, align 1, !tbaa !48, !range !52, !noundef !53
  %142 = trunc i8 %141 to i1
  br i1 %142, label %143, label %149

143:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  %144 = load ptr, ptr %8, align 8, !tbaa !9
  %145 = load double, ptr %144, align 8, !tbaa !46
  %146 = load ptr, ptr %9, align 8, !tbaa !9
  %147 = load double, ptr %146, align 8, !tbaa !46
  %148 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %145, double noundef %147, i32 noundef -1, i32 noundef -1)
  store <2 x float> %148, ptr %29, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %29, i64 8, i1 false), !tbaa.struct !57
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  br label %149

149:                                              ; preds = %143, %140, %137
  %150 = load ptr, ptr %28, align 8, !tbaa !9
  %151 = load float, ptr %11, align 4, !tbaa !11
  %152 = load i32, ptr %19, align 4, !tbaa !5
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(196) %150, ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %151, i32 noundef %152, i32 noundef 0)
  call void @_ZN6ImPlot15PopPlotClipRectEv()
  call void @_ZN5ImGui5PopIDEv()
  %153 = load i8, ptr %25, align 1, !tbaa !48, !range !52, !noundef !53
  %154 = trunc i8 %153 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #10
  ret i1 %154
}

declare void @_ZN5ImGui6PushIDEPKc(ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef, i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN6ImPlotL12FitThisFrameEv() #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16)) #4

declare noundef i32 @_ZN11ImGuiWindow5GetIDEi(ptr noundef nonnull align 8 dereferenceable(981), i32 noundef) #2

declare noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef, float noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6ImPlot15GetPlotDrawListEv() #5

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

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


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

@GImPlot = external dso_local local_unnamed_addr global ptr, align 8
@.str.78 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.208 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.210 = external hidden unnamed_addr constant [105 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot9DragPointEiPdS0_RK6ImVec4fi = external hidden unnamed_addr constant [92 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 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef) local_unnamed_addr #2

declare void @_ZN5ImGui11KeepAliveIDEj(i32 noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, ptr noundef, ptr noundef, i32 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

declare void @_ZN5ImGui5PopIDEv() local_unnamed_addr #2

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

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

declare void @_ZN5ImGui14SetMouseCursorEi(i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5ImGui16GetCurrentWindowEv() local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot16PushPlotClipRectEf(float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot15PopPlotClipRectEv() local_unnamed_addr #5

declare noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef, double noundef, i32 noundef, i32 noundef) local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef, i32 noundef) local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ImPlot9DragPointEiPdS0_RK6ImVec4fi(i32 noundef %0, ptr nocapture noundef %1, ptr nocapture noundef %2, ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %4, i32 noundef %5) local_unnamed_addr #8 {
  %7 = alloca %struct.ImPlotPoint, align 8
  %8 = alloca %struct.ImVec4, align 4
  %9 = alloca %struct.ImVec2, align 8
  %10 = alloca %struct.ImRect, align 4
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  tail call void @_ZN5ImGui6PushIDEPKc(ptr noundef nonnull @.str.208)
  %13 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 80
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %16, label %17

16:                                               ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.210, ptr noundef nonnull @.str.78, i32 noundef 3824, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImPlot9DragPointEiPdS0_RK6ImVec4fi) #9
  unreachable

17:                                               ; preds = %6
  tail call void @_ZN6ImPlotL9SetupLockEv()
  %18 = tail call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %5, i32 noundef 2)
  br i1 %18, label %24, label %19

19:                                               ; preds = %17
  %20 = tail call noundef zeroext i1 @_ZN6ImPlotL12FitThisFrameEv()
  br i1 %20, label %21, label %24

21:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #10
  %22 = load double, ptr %1, align 8, !tbaa !44
  %23 = load double, ptr %2, align 8, !tbaa !44
  call void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %22, double noundef %23)
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  br label %24

24:                                               ; preds = %21, %19, %17
  %25 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %5, i32 noundef 4)
  %26 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %5, i32 noundef 1)
  %27 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %5, i32 noundef 8)
  %28 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef 4.000000e+00, float noundef %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #10
  %29 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %3)
  br i1 %29, label %30, label %32

30:                                               ; preds = %24
  %31 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef 0)
  br label %32

32:                                               ; preds = %24, %30
  %33 = phi ptr [ %31, %30 ], [ %3, %24 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %33, i64 16, i1 false), !tbaa.struct !46
  %34 = call noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  %35 = load double, ptr %1, align 8, !tbaa !44
  %36 = load double, ptr %2, align 8, !tbaa !44
  %37 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %35, double noundef %36, i32 noundef -1, i32 noundef -1)
  store <2 x float> %37, ptr %9, align 8
  %38 = call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  %39 = call noundef i32 @_ZN11ImGuiWindow5GetIDEi(ptr noundef nonnull align 8 dereferenceable(981) %38, i32 noundef %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #10
  %40 = extractelement <2 x float> %37, i64 0
  %41 = fsub float %40, %28
  %42 = extractelement <2 x float> %37, i64 1
  %43 = fsub float %42, %28
  %44 = fadd float %28, %40
  %45 = fadd float %28, %42
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %10, float noundef %41, float noundef %43, float noundef %44, float noundef %45)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #10
  store i8 0, ptr %11, align 1, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #10
  store i8 0, ptr %12, align 1, !tbaa !48
  call void @_ZN5ImGui11KeepAliveIDEj(i32 noundef %39)
  br i1 %25, label %.thread, label %46

46:                                               ; preds = %32
  %47 = call noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef %39, ptr noundef nonnull %11, ptr noundef nonnull %12, i32 noundef 0)
  %.pre = load i8, ptr %12, align 1, !tbaa !48, !range !49
  %48 = trunc nuw i8 %.pre to i1
  br i1 %48, label %49, label %.thread

49:                                               ; preds = %46
  %50 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %50, label %51, label %.thread

51:                                               ; preds = %49
  %52 = call { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef -1, i32 noundef -1)
  %53 = extractvalue { double, double } %52, 0
  store double %53, ptr %1, align 8, !tbaa !44
  %54 = call { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef -1, i32 noundef -1)
  %55 = extractvalue { double, double } %54, 1
  store double %55, ptr %2, align 8, !tbaa !44
  br label %.thread

.thread:                                          ; preds = %32, %51, %49, %46
  %.0 = phi i1 [ true, %51 ], [ false, %49 ], [ false, %46 ], [ false, %32 ]
  call void @_ZN6ImPlot16PushPlotClipRectEf(float noundef 0.000000e+00)
  %56 = call noundef ptr @_ZN6ImPlot15GetPlotDrawListEv()
  %57 = load i8, ptr %11, align 1, !tbaa !48, !range !49, !noundef !50
  %58 = trunc nuw i8 %57 to i1
  br i1 %58, label %62, label %59

59:                                               ; preds = %.thread
  %60 = load i8, ptr %12, align 1, !tbaa !48, !range !49, !noundef !50
  %61 = trunc nuw i8 %60 to i1
  %.not31 = xor i1 %61, true
  %brmerge = or i1 %26, %.not31
  br i1 %brmerge, label %64, label %63

62:                                               ; preds = %.thread
  br i1 %26, label %64, label %63

63:                                               ; preds = %59, %62
  call void @_ZN5ImGui14SetMouseCursorEi(i32 noundef 7)
  br label %64

64:                                               ; preds = %59, %63, %62
  %.0.not = xor i1 %.0, true
  %brmerge32 = or i1 %27, %.0.not
  br i1 %brmerge32, label %69, label %65

65:                                               ; preds = %64
  %66 = load double, ptr %1, align 8, !tbaa !44
  %67 = load double, ptr %2, align 8, !tbaa !44
  %68 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %66, double noundef %67, i32 noundef -1, i32 noundef -1)
  store <2 x float> %68, ptr %9, align 8
  br label %69

69:                                               ; preds = %64, %65
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(196) %56, ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %4, i32 noundef %34, i32 noundef 0)
  call void @_ZN6ImPlot15PopPlotClipRectEv()
  call void @_ZN5ImGui5PopIDEv()
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #10
  ret i1 %.0
}

declare void @_ZN5ImGui6PushIDEPKc(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN6ImPlotL12FitThisFrameEv() local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

declare noundef i32 @_ZN11ImGuiWindow5GetIDEi(ptr noundef nonnull align 8 dereferenceable(981), i32 noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6ImPlot15GetPlotDrawListEv() local_unnamed_addr #5

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 #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 = { 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 #7 = { 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 = { 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 #9 = { noreturn nounwind }
attributes #10 = { 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, !45, i64 0}
!45 = !{!"double", !7, i64 0}
!46 = !{i64 0, i64 4, !47, i64 4, i64 4, !47, i64 8, i64 4, !47, i64 12, i64 4, !47}
!47 = !{!23, !23, i64 0}
!48 = !{!28, !28, i64 0}
!49 = !{i8 0, i8 2}
!50 = !{}


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