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

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

@GImPlot = external dso_local global ptr, align 8
@.str.78 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.212 = external hidden unnamed_addr constant [99 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot9DragLineXEiPdRK6ImVec4fi = external hidden unnamed_addr constant [82 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: 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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) #3

declare void @_ZN5ImGui11KeepAliveIDEj(i32 noundef) #3

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

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

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

; 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 #6 align 2

declare void @_ZN5ImGui14SetMouseCursorEi(i32 noundef) #3

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

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

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

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

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

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

; 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: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef, i32 noundef) #5

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

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

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

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

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

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

42:                                               ; preds = %5
  br label %43

43:                                               ; preds = %42, %5
  %44 = phi i1 [ false, %5 ], [ true, %42 ]
  br i1 %44, label %45, label %46

45:                                               ; preds = %43
  br label %48

46:                                               ; preds = %43
  call void @__assert_fail(ptr noundef @.str.212, ptr noundef @.str.78, i32 noundef 3870, ptr noundef @__PRETTY_FUNCTION__._ZN6ImPlot9DragLineXEiPdRK6ImVec4fi) #10
  unreachable

47:                                               ; No predecessors!
  br label %48

48:                                               ; preds = %47, %45
  call void @_ZN6ImPlotL9SetupLockEv()
  %49 = load i32, ptr %10, align 4, !tbaa !5
  %50 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %49, i32 noundef 2)
  br i1 %50, label %56, label %51

51:                                               ; preds = %48
  %52 = call noundef zeroext i1 @_ZN6ImPlotL12FitThisFrameEv()
  br i1 %52, label %53, label %56

53:                                               ; preds = %51
  %54 = load ptr, ptr %7, align 8, !tbaa !9
  %55 = load double, ptr %54, align 8, !tbaa !46
  call void @_ZN6ImPlotL9FitPointXEd(double noundef %55)
  br label %56

56:                                               ; preds = %53, %51, %48
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #9
  %57 = load i32, ptr %10, align 4, !tbaa !5
  %58 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %57, i32 noundef 4)
  %59 = xor i1 %58, true
  %60 = zext i1 %59 to i8
  store i8 %60, ptr %12, align 1, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #9
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %61, i32 noundef 1)
  %63 = xor i1 %62, true
  %64 = zext i1 %63 to i8
  store i8 %64, ptr %13, align 1, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #9
  %65 = load i32, ptr %10, align 4, !tbaa !5
  %66 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %65, i32 noundef 8)
  %67 = xor i1 %66, true
  %68 = zext i1 %67 to i8
  store i8 %68, ptr %14, align 1, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %69 = load float, ptr %9, align 4, !tbaa !11
  %70 = fdiv float %69, 2.000000e+00
  %71 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef 4.000000e+00, float noundef %70)
  store float %71, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %72 = load ptr, ptr %11, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct.ImPlotContext, ptr %72, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  %75 = getelementptr inbounds %struct.ImPlotPlot, ptr %74, i32 0, i32 13
  %76 = getelementptr inbounds %struct.ImRect, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds %struct.ImVec2, ptr %76, i32 0, i32 1
  %78 = load float, ptr %77, align 4, !tbaa !49
  store float %78, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %79 = load ptr, ptr %11, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.ImPlotContext, ptr %79, i32 0, i32 2
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = getelementptr inbounds %struct.ImPlotPlot, ptr %81, i32 0, i32 13
  %83 = getelementptr inbounds %struct.ImRect, ptr %82, i32 0, i32 1
  %84 = getelementptr inbounds %struct.ImVec2, ptr %83, i32 0, i32 1
  %85 = load float, ptr %84, align 4, !tbaa !56
  store float %85, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %86 = load ptr, ptr %7, align 8, !tbaa !9
  %87 = load double, ptr %86, align 8, !tbaa !46
  %88 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %87, double noundef 0.000000e+00, i32 noundef -1, i32 noundef -1)
  store <2 x float> %88, ptr %19, align 4
  %89 = getelementptr inbounds %struct.ImVec2, ptr %19, i32 0, i32 0
  %90 = load float, ptr %89, align 4, !tbaa !57
  %91 = fadd float %90, 5.000000e-01
  %92 = fptosi float %91 to i32
  %93 = sitofp i32 %92 to float
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  store float %93, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %94 = call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = call noundef i32 @_ZN11ImGuiWindow5GetIDEi(ptr noundef nonnull align 8 dereferenceable(981) %94, i32 noundef %95)
  store i32 %96, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #9
  %97 = load float, ptr %18, align 4, !tbaa !11
  %98 = load float, ptr %15, align 4, !tbaa !11
  %99 = fsub float %97, %98
  %100 = load float, ptr %16, align 4, !tbaa !11
  %101 = load float, ptr %18, align 4, !tbaa !11
  %102 = load float, ptr %15, align 4, !tbaa !11
  %103 = fadd float %101, %102
  %104 = load float, ptr %17, align 4, !tbaa !11
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %21, float noundef %99, float noundef %100, float noundef %103, float noundef %104)
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #9
  store i8 0, ptr %22, align 1, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #9
  store i8 0, ptr %23, align 1, !tbaa !48
  %105 = load i32, ptr %20, align 4, !tbaa !5
  call void @_ZN5ImGui11KeepAliveIDEj(i32 noundef %105)
  %106 = load i8, ptr %12, align 1, !tbaa !48, !range !58, !noundef !59
  %107 = trunc i8 %106 to i1
  br i1 %107, label %108, label %111

108:                                              ; preds = %56
  %109 = load i32, ptr %20, align 4, !tbaa !5
  %110 = call noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %21, i32 noundef %109, ptr noundef %22, ptr noundef %23, i32 noundef 0)
  br label %111

111:                                              ; preds = %108, %56
  %112 = load i8, ptr %22, align 1, !tbaa !48, !range !58, !noundef !59
  %113 = trunc i8 %112 to i1
  br i1 %113, label %117, label %114

114:                                              ; preds = %111
  %115 = load i8, ptr %23, align 1, !tbaa !48, !range !58, !noundef !59
  %116 = trunc i8 %115 to i1
  br i1 %116, label %117, label %121

117:                                              ; preds = %114, %111
  %118 = load i8, ptr %13, align 1, !tbaa !48, !range !58, !noundef !59
  %119 = trunc i8 %118 to i1
  br i1 %119, label %120, label %121

120:                                              ; preds = %117
  call void @_ZN5ImGui14SetMouseCursorEi(i32 noundef 4)
  br label %121

121:                                              ; preds = %120, %117, %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  %122 = load ptr, ptr %11, align 8, !tbaa !9
  %123 = getelementptr inbounds %struct.ImPlotContext, ptr %122, i32 0, i32 12
  %124 = getelementptr inbounds %struct.ImPlotStyle, ptr %123, i32 0, i32 11
  %125 = getelementptr inbounds %struct.ImVec2, ptr %124, i32 0, i32 0
  %126 = load float, ptr %125, align 4, !tbaa !60
  store float %126, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #9
  %127 = load ptr, ptr %8, align 8, !tbaa !9
  %128 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %127)
  br i1 %128, label %129, label %131

129:                                              ; preds = %121
  %130 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef 0)
  br label %133

131:                                              ; preds = %121
  %132 = load ptr, ptr %8, align 8, !tbaa !9
  br label %133

133:                                              ; preds = %131, %129
  %134 = phi ptr [ %130, %129 ], [ %132, %131 ]
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %134, i64 16, i1 false), !tbaa.struct !61
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %135 = call noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %25)
  store i32 %135, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #9
  store i8 0, ptr %27, align 1, !tbaa !48
  %136 = load i8, ptr %23, align 1, !tbaa !48, !range !58, !noundef !59
  %137 = trunc i8 %136 to i1
  br i1 %137, label %138, label %149

138:                                              ; preds = %133
  %139 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %139, label %140, label %149

140:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #9
  %141 = call { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef -1, i32 noundef -1)
  %142 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %143 = extractvalue { double, double } %141, 0
  store double %143, ptr %142, align 8
  %144 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %145 = extractvalue { double, double } %141, 1
  store double %145, ptr %144, align 8
  %146 = getelementptr inbounds %struct.ImPlotPoint, ptr %28, i32 0, i32 0
  %147 = load double, ptr %146, align 8, !tbaa !62
  %148 = load ptr, ptr %7, align 8, !tbaa !9
  store double %147, ptr %148, align 8, !tbaa !46
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  store i8 1, ptr %27, align 1, !tbaa !48
  br label %149

149:                                              ; preds = %140, %138, %133
  call void @_ZN6ImPlot16PushPlotClipRectEf(float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %150 = call noundef ptr @_ZN6ImPlot15GetPlotDrawListEv()
  store ptr %150, ptr %29, align 8, !tbaa !9
  %151 = load i8, ptr %27, align 1, !tbaa !48, !range !58, !noundef !59
  %152 = trunc i8 %151 to i1
  br i1 %152, label %153, label %165

153:                                              ; preds = %149
  %154 = load i8, ptr %14, align 1, !tbaa !48, !range !58, !noundef !59
  %155 = trunc i8 %154 to i1
  br i1 %155, label %156, label %165

156:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %157 = load ptr, ptr %7, align 8, !tbaa !9
  %158 = load double, ptr %157, align 8, !tbaa !46
  %159 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %158, double noundef 0.000000e+00, i32 noundef -1, i32 noundef -1)
  store <2 x float> %159, ptr %30, align 4
  %160 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 0
  %161 = load float, ptr %160, align 4, !tbaa !57
  %162 = fadd float %161, 5.000000e-01
  %163 = fptosi float %162 to i32
  %164 = sitofp i32 %163 to float
  store float %164, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %165

165:                                              ; preds = %156, %153, %149
  %166 = load ptr, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %167 = load float, ptr %18, align 4, !tbaa !11
  %168 = load float, ptr %16, align 4, !tbaa !11
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %31, float noundef %167, float noundef %168)
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %169 = load float, ptr %18, align 4, !tbaa !11
  %170 = load float, ptr %17, align 4, !tbaa !11
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %32, float noundef %169, float noundef %170)
  %171 = load i32, ptr %26, align 4, !tbaa !5
  %172 = load float, ptr %9, align 4, !tbaa !11
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %166, ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %32, i32 noundef %171, float noundef %172)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  %173 = load ptr, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %174 = load float, ptr %18, align 4, !tbaa !11
  %175 = load float, ptr %16, align 4, !tbaa !11
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %33, float noundef %174, float noundef %175)
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %176 = load float, ptr %18, align 4, !tbaa !11
  %177 = load float, ptr %16, align 4, !tbaa !11
  %178 = load float, ptr %24, align 4, !tbaa !11
  %179 = fadd float %177, %178
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %34, float noundef %176, float noundef %179)
  %180 = load i32, ptr %26, align 4, !tbaa !5
  %181 = load float, ptr %9, align 4, !tbaa !11
  %182 = fmul float 3.000000e+00, %181
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %173, ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(8) %34, i32 noundef %180, float noundef %182)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  %183 = load ptr, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %184 = load float, ptr %18, align 4, !tbaa !11
  %185 = load float, ptr %17, align 4, !tbaa !11
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %35, float noundef %184, float noundef %185)
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %186 = load float, ptr %18, align 4, !tbaa !11
  %187 = load float, ptr %17, align 4, !tbaa !11
  %188 = load float, ptr %24, align 4, !tbaa !11
  %189 = fsub float %187, %188
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %36, float noundef %186, float noundef %189)
  %190 = load i32, ptr %26, align 4, !tbaa !5
  %191 = load float, ptr %9, align 4, !tbaa !11
  %192 = fmul float 3.000000e+00, %191
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %183, ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(8) %36, i32 noundef %190, float noundef %192)
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  call void @_ZN6ImPlot15PopPlotClipRectEv()
  %193 = load i8, ptr %27, align 1, !tbaa !48, !range !58, !noundef !59
  %194 = trunc i8 %193 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  ret i1 %194
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN6ImPlotL9FitPointXEd(double noundef) #7

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 #5 = { 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 #6 = { 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 = { 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 #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 = { nounwind }
attributes #10 = { 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, !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 = !{!50, !12, i64 2468}
!50 = !{!"_ZTS10ImPlotPlot", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !7, i64 24, !23, i64 2280, !51, i64 2296, !6, i64 2424, !6, i64 2428, !53, i64 2432, !53, i64 2448, !53, i64 2464, !53, i64 2480, !53, i64 2496, !25, i64 2512, !6, i64 2520, !30, i64 2524, !30, i64 2525, !30, i64 2526, !30, i64 2527, !30, i64 2528, !30, i64 2529, !30, i64 2530, !30, i64 2531, !30, i64 2532}
!51 = !{!"_ZTS15ImPlotItemGroup", !6, i64 0, !52, i64 8, !54, i64 80, !6, i64 120}
!52 = !{!"_ZTS12ImPlotLegend", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !36, i64 16, !23, i64 32, !53, i64 48, !30, i64 64, !30, i64 65, !30, i64 66}
!53 = !{!"_ZTS6ImRect", !25, i64 0, !25, i64 8}
!54 = !{!"_ZTS6ImPoolI10ImPlotItemE", !55, i64 0, !17, i64 16, !6, i64 32, !6, i64 36}
!55 = !{!"_ZTS8ImVectorI10ImPlotItemE", !6, i64 0, !6, i64 4, !10, i64 8}
!56 = !{!50, !12, i64 2476}
!57 = !{!25, !12, i64 0}
!58 = !{i8 0, i8 2}
!59 = !{}
!60 = !{!14, !12, i64 304}
!61 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 4, !11, i64 12, i64 4, !11}
!62 = !{!63, !47, i64 0}
!63 = !{!"_ZTS11ImPlotPoint", !47, i64 0, !47, i64 8}


; 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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }
%struct.ImVec4 = type { float, float, 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.212 = external hidden unnamed_addr constant [99 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot9DragLineXEiPdRK6ImVec4fi = external hidden unnamed_addr constant [82 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 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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 #3

declare void @_ZN5ImGui11KeepAliveIDEj(i32 noundef) local_unnamed_addr #3

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

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

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

; 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 #6 align 2

declare void @_ZN5ImGui14SetMouseCursorEi(i32 noundef) local_unnamed_addr #3

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

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

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

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

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

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

; 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: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef, i32 noundef) local_unnamed_addr #5

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

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

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

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

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

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

19:                                               ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.212, ptr noundef nonnull @.str.78, i32 noundef 3870, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImPlot9DragLineXEiPdRK6ImVec4fi) #9
  unreachable

20:                                               ; preds = %5
  tail call void @_ZN6ImPlotL9SetupLockEv()
  %21 = tail call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %4, i32 noundef 2)
  br i1 %21, label %26, label %22

22:                                               ; preds = %20
  %23 = tail call noundef zeroext i1 @_ZN6ImPlotL12FitThisFrameEv()
  br i1 %23, label %24, label %26

24:                                               ; preds = %22
  %25 = load double, ptr %1, align 8, !tbaa !44
  tail call void @_ZN6ImPlotL9FitPointXEd(double noundef %25)
  br label %26

26:                                               ; preds = %24, %22, %20
  %27 = tail call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %4, i32 noundef 4)
  %28 = tail call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %4, i32 noundef 1)
  %29 = tail call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %4, i32 noundef 8)
  %30 = fmul float %3, 5.000000e-01
  %31 = tail call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef 4.000000e+00, float noundef %30)
  %32 = load ptr, ptr %17, align 8, !tbaa !9
  %33 = getelementptr inbounds i8, ptr %32, i64 2468
  %34 = load float, ptr %33, align 4, !tbaa !46
  %35 = getelementptr inbounds i8, ptr %32, i64 2476
  %36 = load float, ptr %35, align 4, !tbaa !53
  %37 = load double, ptr %1, align 8, !tbaa !44
  %38 = tail call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %37, double noundef 0.000000e+00, i32 noundef -1, i32 noundef -1)
  %.sroa.012.0.vec.extract = extractelement <2 x float> %38, i64 0
  %39 = fadd float %.sroa.012.0.vec.extract, 5.000000e-01
  %40 = fptosi float %39 to i32
  %41 = sitofp i32 %40 to float
  %42 = tail call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  %43 = tail call noundef i32 @_ZN11ImGuiWindow5GetIDEi(ptr noundef nonnull align 8 dereferenceable(981) %42, i32 noundef %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #10
  %44 = fsub float %41, %31
  %45 = fadd float %31, %41
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %6, float noundef %44, float noundef %34, float noundef %45, float noundef %36)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #10
  store i8 0, ptr %7, align 1, !tbaa !54
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #10
  store i8 0, ptr %8, align 1, !tbaa !54
  call void @_ZN5ImGui11KeepAliveIDEj(i32 noundef %43)
  br i1 %27, label %.thread, label %46

46:                                               ; preds = %26
  %47 = call noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef %43, ptr noundef nonnull %7, ptr noundef nonnull %8, i32 noundef 0)
  %.pre = load i8, ptr %7, align 1, !tbaa !54, !range !55
  %48 = trunc nuw i8 %.pre to i1
  br i1 %48, label %51, label %.thread

.thread:                                          ; preds = %26, %46
  %49 = load i8, ptr %8, align 1, !tbaa !54, !range !55, !noundef !56
  %50 = trunc nuw i8 %49 to i1
  %.not54 = xor i1 %50, true
  %brmerge = or i1 %28, %.not54
  br i1 %brmerge, label %53, label %52

51:                                               ; preds = %46
  br i1 %28, label %53, label %52

52:                                               ; preds = %.thread, %51
  call void @_ZN5ImGui14SetMouseCursorEi(i32 noundef 4)
  br label %53

53:                                               ; preds = %.thread, %52, %51
  %54 = getelementptr inbounds i8, ptr %16, i64 304
  %55 = load float, ptr %54, align 4, !tbaa !57
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #10
  %56 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %2)
  br i1 %56, label %57, label %59

57:                                               ; preds = %53
  %58 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef 0)
  br label %59

59:                                               ; preds = %53, %57
  %60 = phi ptr [ %58, %57 ], [ %2, %53 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(16) %60, i64 16, i1 false), !tbaa.struct !58
  %61 = call noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %9)
  %62 = load i8, ptr %8, align 1, !tbaa !54, !range !55, !noundef !56
  %63 = trunc nuw i8 %62 to i1
  br i1 %63, label %64, label %69

64:                                               ; preds = %59
  %65 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %65, label %66, label %69

66:                                               ; preds = %64
  %67 = call { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef -1, i32 noundef -1)
  %68 = extractvalue { double, double } %67, 0
  store double %68, ptr %1, align 8, !tbaa !44
  br label %69

69:                                               ; preds = %66, %64, %59
  %.053 = phi i1 [ true, %66 ], [ false, %64 ], [ false, %59 ]
  call void @_ZN6ImPlot16PushPlotClipRectEf(float noundef 0.000000e+00)
  %70 = call noundef ptr @_ZN6ImPlot15GetPlotDrawListEv()
  %.053.not = xor i1 %.053, true
  %brmerge55 = or i1 %29, %.053.not
  br i1 %brmerge55, label %77, label %71

71:                                               ; preds = %69
  %72 = load double, ptr %1, align 8, !tbaa !44
  %73 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %72, double noundef 0.000000e+00, i32 noundef -1, i32 noundef -1)
  %.sroa.0.0.vec.extract = extractelement <2 x float> %73, i64 0
  %74 = fadd float %.sroa.0.0.vec.extract, 5.000000e-01
  %75 = fptosi float %74 to i32
  %76 = sitofp i32 %75 to float
  br label %77

77:                                               ; preds = %69, %71
  %.0 = phi float [ %76, %71 ], [ %41, %69 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %.0, float noundef %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #10
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %.0, float noundef %36)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %70, ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %11, i32 noundef %61, float noundef %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #10
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %.0, float noundef %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #10
  %78 = fadd float %34, %55
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %.0, float noundef %78)
  %79 = fmul float %3, 3.000000e+00
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %70, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %13, i32 noundef %61, float noundef %79)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #10
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %.0, float noundef %36)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #10
  %80 = fsub float %36, %55
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %.0, float noundef %80)
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(196) %70, ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %15, i32 noundef %61, float noundef %79)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #10
  call void @_ZN6ImPlot15PopPlotClipRectEv()
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  ret i1 %.053
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN6ImPlotL9FitPointXEd(double noundef) local_unnamed_addr #7

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 #5 = { 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 #6 = { 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 = { 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 #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 = !{!47, !23, i64 2468}
!47 = !{!"_ZTS10ImPlotPlot", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !7, i64 24, !20, i64 2280, !48, i64 2296, !13, i64 2424, !13, i64 2428, !50, i64 2432, !50, i64 2448, !50, i64 2464, !50, i64 2480, !50, 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}
!48 = !{!"_ZTS15ImPlotItemGroup", !13, i64 0, !49, i64 8, !51, i64 80, !13, i64 120}
!49 = !{!"_ZTS12ImPlotLegend", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !34, i64 16, !20, i64 32, !50, i64 48, !28, i64 64, !28, i64 65, !28, i64 66}
!50 = !{!"_ZTS6ImRect", !22, i64 0, !22, i64 8}
!51 = !{!"_ZTS6ImPoolI10ImPlotItemE", !52, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!52 = !{!"_ZTS8ImVectorI10ImPlotItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!53 = !{!47, !23, i64 2476}
!54 = !{!28, !28, i64 0}
!55 = !{i8 0, i8 2}
!56 = !{}
!57 = !{!10, !23, i64 304}
!58 = !{i64 0, i64 4, !59, i64 4, i64 4, !59, i64 8, i64 4, !59, i64 12, i64 4, !59}
!59 = !{!23, !23, i64 0}


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