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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ImPlotRect = type { %struct.ImPlotRange, %struct.ImPlotRange }
%struct.ImPlotRange = type { double, double }
%struct.ImPlotPoint = type { double, double }
%struct.ImVec2 = type { float, float }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImPlotContext = type { %struct.ImPool.34, %struct.ImPool.36, ptr, ptr, ptr, ptr, ptr, %struct.ImPlotTicker, %struct.ImPlotAnnotationCollection, %struct.ImPlotTagCollection, i8, [3 x i8], %struct.ImPlotStyle, %struct.ImVector.6, %struct.ImVector.7, %struct.ImPlotColormapData, %struct.ImVector.10, %struct.tm, %struct.ImVector.42, %struct.ImVector.42, %struct.ImVector.10, i32, i32, %struct.ImPlotNextPlotData, %struct.ImPlotNextItemData, %struct.ImPlotInputMap, i8, %struct.ImGuiTextBuffer, ptr, %struct.ImPool.43, ptr, ptr }
%struct.ImPool.34 = type { %struct.ImVector.35, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.35 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.4 }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImPool.36 = type { %struct.ImVector.37, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.37 = type { i32, i32, ptr }
%struct.ImPlotTicker = type <{ %struct.ImVector.38, %struct.ImGuiTextBuffer, %struct.ImVec2, %struct.ImVec2, i32, [4 x i8] }>
%struct.ImVector.38 = type { i32, i32, ptr }
%struct.ImPlotAnnotationCollection = type <{ %struct.ImVector.39, %struct.ImGuiTextBuffer, i32, [4 x i8] }>
%struct.ImVector.39 = type { i32, i32, ptr }
%struct.ImPlotTagCollection = type <{ %struct.ImVector.40, %struct.ImGuiTextBuffer, i32, [4 x i8] }>
%struct.ImVector.40 = type { i32, i32, ptr }
%struct.ImPlotStyle = type <{ float, i32, float, float, float, float, float, float, float, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, [21 x %struct.ImVec4], i32, i8, i8, i8, i8 }>
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImPlotColormapData = type <{ %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.10, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.10, %struct.ImGuiTextBuffer, %struct.ImVector.10, %struct.ImVector.41, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.41 = type { i32, i32, ptr }
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, ptr }
%struct.ImVector.42 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImPlotNextPlotData = type { [6 x i32], [6 x %struct.ImPlotRange], [6 x i8], [6 x i8], [6 x ptr], [6 x ptr] }
%struct.ImPlotNextItemData = type { [5 x %struct.ImVec4], float, i32, float, float, float, float, float, float, float, i8, i8, i8, i8, i8, i8, i32 }
%struct.ImPlotInputMap = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float }
%struct.ImGuiTextBuffer = type { %struct.ImVector.24 }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImPool.43 = type { %struct.ImVector.44, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.44 = type { i32, i32, ptr }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, float, float, float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, float, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [652 x i32], [652 x i8], [16 x float], ptr, %struct.ImVec2, [5 x i8], float, float, i32, i8, i8, i8, i8, i32, [652 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], i8, [5 x float], [5 x float], [5 x float], float, i8, i8, i8, i8, i16, %struct.ImVector }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVector = 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.216 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [104 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot8DragRectEiPdS0_S0_S0_RK6ImVec4i = external hidden unnamed_addr constant [104 x i8], align 1
@__const._ZN6ImPlot8DragRectEiPdS0_S0_S0_RK6ImVec4i.h = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4

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

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

declare void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(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, i32 noundef) #3

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

declare void @_ZN5ImGui5PopIDEv() #3

declare noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv() #3

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

declare void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(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, i32 noundef, float noundef) #3

declare <2 x float> @_ZN5ImGui11GetMousePosEv() #3

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

declare noundef zeroext i1 @_ZN5ImGui20IsMouseDoubleClickedEi(i32 noundef) #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot13GetPlotLimitsEii(ptr dead_on_unwind noalias writable sret(%struct.ImPlotRect) align 8, i32 noundef, i32 noundef) #6

declare void @_ZN5ImGui6PushIDEPKc(ptr noundef) #3

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6ImPlot8DragRectEiPdS0_S0_S0_RK6ImVec4i(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull align 4 dereferenceable(16) %5, i32 noundef %6) #9 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.ImPlotPoint, align 8
  %16 = alloca %struct.ImPlotPoint, align 8
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca [4 x i8], align 1
  %21 = alloca [4 x ptr], align 16
  %22 = alloca [4 x ptr], align 16
  %23 = alloca [4 x %struct.ImVec2], align 16
  %24 = alloca i32, align 4
  %25 = alloca %struct.ImVec2, align 4
  %26 = alloca %struct.ImVec2, align 4
  %27 = alloca %struct.ImRect, align 4
  %28 = alloca %struct.ImVec2, align 4
  %29 = alloca %struct.ImVec2, align 4
  %30 = alloca %struct.ImRect, align 4
  %31 = alloca [4 x i32], align 16
  %32 = alloca %struct.ImVec4, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i8, align 1
  %37 = alloca i8, align 1
  %38 = alloca i8, align 1
  %39 = alloca %struct.ImRect, align 4
  %40 = alloca i32, align 4
  %41 = alloca %struct.ImPlotPoint, align 8
  %42 = alloca %struct.ImVec2, align 4
  %43 = alloca i32, align 4
  %44 = alloca %struct.ImRect, align 4
  %45 = alloca i32, align 4
  %46 = alloca %struct.ImPlotPoint, align 8
  %47 = alloca %struct.ImPlotPoint, align 8
  %48 = alloca %struct.ImVec2, align 4
  %49 = alloca %struct.ImVec2, align 4
  %50 = alloca %struct.ImRect, align 4
  %51 = alloca i32, align 4
  %52 = alloca %struct.ImPlotPoint, align 8
  %53 = alloca %struct.ImPlotPoint, align 8
  %54 = alloca %struct.ImPlotRect, align 8
  %55 = alloca ptr, align 8
  %56 = alloca i32, align 4
  %57 = alloca %struct.ImVec2, align 4
  %58 = alloca %struct.ImVec2, align 4
  %59 = alloca %struct.ImRect, align 4
  %60 = alloca %struct.ImVec2, align 4
  %61 = alloca %struct.ImVec2, align 4
  %62 = alloca %struct.ImVec2, align 4
  %63 = alloca i32, align 4
  store i32 %0, ptr %8, align 4, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !5
  call void @_ZN5ImGui6PushIDEPKc(ptr noundef @.str.216)
  %64 = load ptr, ptr @GImPlot, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.ImPlotContext, ptr %64, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %69

68:                                               ; preds = %7
  br label %69

69:                                               ; preds = %68, %7
  %70 = phi i1 [ false, %7 ], [ true, %68 ]
  br i1 %70, label %71, label %72

71:                                               ; preds = %69
  br label %74

72:                                               ; preds = %69
  call void @__assert_fail(ptr noundef @.str.218, ptr noundef @.str.78, i32 noundef 3972, ptr noundef @__PRETTY_FUNCTION__._ZN6ImPlot8DragRectEiPdS0_S0_S0_RK6ImVec4i) #10
  unreachable

73:                                               ; No predecessors!
  br label %74

74:                                               ; preds = %73, %71
  call void @_ZN6ImPlotL9SetupLockEv()
  %75 = load i32, ptr %14, align 4, !tbaa !5
  %76 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %75, i32 noundef 2)
  br i1 %76, label %88, label %77

77:                                               ; preds = %74
  %78 = call noundef zeroext i1 @_ZN6ImPlotL12FitThisFrameEv()
  br i1 %78, label %79, label %88

79:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #11
  %80 = load ptr, ptr %9, align 8, !tbaa !9
  %81 = load double, ptr %80, align 8, !tbaa !45
  %82 = load ptr, ptr %10, align 8, !tbaa !9
  %83 = load double, ptr %82, align 8, !tbaa !45
  call void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef %81, double noundef %83)
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %15)
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #11
  %84 = load ptr, ptr %11, align 8, !tbaa !9
  %85 = load double, ptr %84, align 8, !tbaa !45
  %86 = load ptr, ptr %12, align 8, !tbaa !9
  %87 = load double, ptr %86, align 8, !tbaa !45
  call void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef %85, double noundef %87)
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %16)
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #11
  br label %88

88:                                               ; preds = %79, %77, %74
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #11
  %89 = load i32, ptr %14, align 4, !tbaa !5
  %90 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %89, i32 noundef 4)
  %91 = xor i1 %90, true
  %92 = zext i1 %91 to i8
  store i8 %92, ptr %17, align 1, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #11
  %93 = load i32, ptr %14, align 4, !tbaa !5
  %94 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %93, i32 noundef 1)
  %95 = xor i1 %94, true
  %96 = zext i1 %95 to i8
  store i8 %96, ptr %18, align 1, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #11
  %97 = load i32, ptr %14, align 4, !tbaa !5
  %98 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %97, i32 noundef 8)
  %99 = xor i1 %98, true
  %100 = zext i1 %99 to i8
  store i8 %100, ptr %19, align 1, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %20, ptr align 1 @__const._ZN6ImPlot8DragRectEiPdS0_S0_S0_RK6ImVec4i.h, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #11
  %101 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %101, ptr %21, align 8, !tbaa !9
  %102 = getelementptr inbounds ptr, ptr %21, i64 1
  %103 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %103, ptr %102, align 8, !tbaa !9
  %104 = getelementptr inbounds ptr, ptr %21, i64 2
  %105 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %105, ptr %104, align 8, !tbaa !9
  %106 = getelementptr inbounds ptr, ptr %21, i64 3
  %107 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %107, ptr %106, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #11
  %108 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %108, ptr %22, align 8, !tbaa !9
  %109 = getelementptr inbounds ptr, ptr %22, i64 1
  %110 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %110, ptr %109, align 8, !tbaa !9
  %111 = getelementptr inbounds ptr, ptr %22, i64 2
  %112 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %112, ptr %111, align 8, !tbaa !9
  %113 = getelementptr inbounds ptr, ptr %22, i64 3
  %114 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %114, ptr %113, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #11
  %115 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i32 0, i32 0
  %116 = getelementptr inbounds %struct.ImVec2, ptr %115, i64 4
  br label %117

117:                                              ; preds = %117, %88
  %118 = phi ptr [ %115, %88 ], [ %119, %117 ]
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %118)
  %119 = getelementptr inbounds %struct.ImVec2, ptr %118, i64 1
  %120 = icmp eq ptr %119, %116
  br i1 %120, label %121, label %117

121:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #11
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %141, %121
  %123 = load i32, ptr %24, align 4, !tbaa !5
  %124 = icmp slt i32 %123, 4
  br i1 %124, label %126, label %125

125:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #11
  br label %144

126:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #11
  %127 = load i32, ptr %24, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [4 x ptr], ptr %21, i64 0, i64 %128
  %130 = load ptr, ptr %129, align 8, !tbaa !9
  %131 = load double, ptr %130, align 8, !tbaa !45
  %132 = load i32, ptr %24, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [4 x ptr], ptr %22, i64 0, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !9
  %136 = load double, ptr %135, align 8, !tbaa !45
  %137 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %131, double noundef %136, i32 noundef -1, i32 noundef -1)
  store <2 x float> %137, ptr %25, align 4
  %138 = load i32, ptr %24, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 %139
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %140, ptr align 4 %25, i64 8, i1 false), !tbaa.struct !48
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  br label %141

141:                                              ; preds = %126
  %142 = load i32, ptr %24, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %24, align 4, !tbaa !5
  br label %122, !llvm.loop !50

144:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #11
  %145 = load ptr, ptr %9, align 8, !tbaa !9
  %146 = load double, ptr %145, align 8, !tbaa !45
  %147 = load ptr, ptr %11, align 8, !tbaa !9
  %148 = load double, ptr %147, align 8, !tbaa !45
  %149 = fadd double %146, %148
  %150 = fdiv double %149, 2.000000e+00
  %151 = load ptr, ptr %10, align 8, !tbaa !9
  %152 = load double, ptr %151, align 8, !tbaa !45
  %153 = load ptr, ptr %12, align 8, !tbaa !9
  %154 = load double, ptr %153, align 8, !tbaa !45
  %155 = fadd double %152, %154
  %156 = fdiv double %155, 2.000000e+00
  %157 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %150, double noundef %156, i32 noundef -1, i32 noundef -1)
  store <2 x float> %157, ptr %26, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #11
  %158 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 0
  %159 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 2
  %160 = call <2 x float> @_ZL5ImMinRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %158, ptr noundef nonnull align 4 dereferenceable(8) %159)
  store <2 x float> %160, ptr %28, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #11
  %161 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 0
  %162 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 2
  %163 = call <2 x float> @_ZL5ImMaxRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %161, ptr noundef nonnull align 4 dereferenceable(8) %162)
  store <2 x float> %163, ptr %29, align 4
  call void @_ZN6ImRectC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %29)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %27, i64 16, i1 false), !tbaa.struct !52
  call void @_ZN6ImRect6ExpandEf(ptr noundef nonnull align 4 dereferenceable(16) %30, float noundef 4.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #11
  %164 = load i8, ptr %18, align 1, !tbaa !47, !range !53, !noundef !54
  %165 = trunc i8 %164 to i1
  br i1 %165, label %166, label %223

166:                                              ; preds = %144
  %167 = getelementptr inbounds %struct.ImRect, ptr %27, i32 0, i32 0
  %168 = getelementptr inbounds %struct.ImVec2, ptr %167, i32 0, i32 0
  %169 = load float, ptr %168, align 4, !tbaa !55
  %170 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 0
  %171 = getelementptr inbounds %struct.ImVec2, ptr %170, i32 0, i32 0
  %172 = load float, ptr %171, align 16, !tbaa !57
  %173 = fcmp oeq float %169, %172
  br i1 %173, label %174, label %182

174:                                              ; preds = %166
  %175 = getelementptr inbounds %struct.ImRect, ptr %27, i32 0, i32 0
  %176 = getelementptr inbounds %struct.ImVec2, ptr %175, i32 0, i32 1
  %177 = load float, ptr %176, align 4, !tbaa !58
  %178 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 0
  %179 = getelementptr inbounds %struct.ImVec2, ptr %178, i32 0, i32 1
  %180 = load float, ptr %179, align 4, !tbaa !59
  %181 = fcmp oeq float %177, %180
  br i1 %181, label %200, label %182

182:                                              ; preds = %174, %166
  %183 = getelementptr inbounds %struct.ImRect, ptr %27, i32 0, i32 1
  %184 = getelementptr inbounds %struct.ImVec2, ptr %183, i32 0, i32 0
  %185 = load float, ptr %184, align 4, !tbaa !60
  %186 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 0
  %187 = getelementptr inbounds %struct.ImVec2, ptr %186, i32 0, i32 0
  %188 = load float, ptr %187, align 16, !tbaa !57
  %189 = fcmp oeq float %185, %188
  br i1 %189, label %190, label %198

190:                                              ; preds = %182
  %191 = getelementptr inbounds %struct.ImRect, ptr %27, i32 0, i32 1
  %192 = getelementptr inbounds %struct.ImVec2, ptr %191, i32 0, i32 1
  %193 = load float, ptr %192, align 4, !tbaa !61
  %194 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 0
  %195 = getelementptr inbounds %struct.ImVec2, ptr %194, i32 0, i32 1
  %196 = load float, ptr %195, align 4, !tbaa !59
  %197 = fcmp oeq float %193, %196
  br label %198

198:                                              ; preds = %190, %182
  %199 = phi i1 [ false, %182 ], [ %197, %190 ]
  br label %200

200:                                              ; preds = %198, %174
  %201 = phi i1 [ true, %174 ], [ %199, %198 ]
  %202 = zext i1 %201 to i64
  %203 = select i1 %201, i32 6, i32 5
  %204 = getelementptr inbounds [4 x i32], ptr %31, i64 0, i64 0
  store i32 %203, ptr %204, align 16, !tbaa !5
  %205 = getelementptr inbounds [4 x i32], ptr %31, i64 0, i64 0
  %206 = load i32, ptr %205, align 16, !tbaa !5
  %207 = icmp eq i32 %206, 6
  %208 = zext i1 %207 to i64
  %209 = select i1 %207, i32 5, i32 6
  %210 = getelementptr inbounds [4 x i32], ptr %31, i64 0, i64 1
  store i32 %209, ptr %210, align 4, !tbaa !5
  %211 = getelementptr inbounds [4 x i32], ptr %31, i64 0, i64 1
  %212 = load i32, ptr %211, align 4, !tbaa !5
  %213 = icmp eq i32 %212, 6
  %214 = zext i1 %213 to i64
  %215 = select i1 %213, i32 5, i32 6
  %216 = getelementptr inbounds [4 x i32], ptr %31, i64 0, i64 2
  store i32 %215, ptr %216, align 8, !tbaa !5
  %217 = getelementptr inbounds [4 x i32], ptr %31, i64 0, i64 2
  %218 = load i32, ptr %217, align 8, !tbaa !5
  %219 = icmp eq i32 %218, 6
  %220 = zext i1 %219 to i64
  %221 = select i1 %219, i32 5, i32 6
  %222 = getelementptr inbounds [4 x i32], ptr %31, i64 0, i64 3
  store i32 %221, ptr %222, align 4, !tbaa !5
  br label %223

223:                                              ; preds = %200, %144
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #11
  %224 = load ptr, ptr %13, align 8, !tbaa !9
  %225 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %224)
  br i1 %225, label %226, label %228

226:                                              ; preds = %223
  %227 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef 0)
  br label %230

228:                                              ; preds = %223
  %229 = load ptr, ptr %13, align 8, !tbaa !9
  br label %230

230:                                              ; preds = %228, %226
  %231 = phi ptr [ %227, %226 ], [ %229, %228 ]
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %231, i64 16, i1 false), !tbaa.struct !52
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #11
  %232 = call noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %32)
  store i32 %232, ptr %33, align 4, !tbaa !5
  %233 = getelementptr inbounds %struct.ImVec4, ptr %32, i32 0, i32 3
  %234 = load float, ptr %233, align 4, !tbaa !62
  %235 = fmul float %234, 2.500000e-01
  store float %235, ptr %233, align 4, !tbaa !62
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #11
  %236 = call noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %32)
  store i32 %236, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #11
  %237 = call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  %238 = load i32, ptr %8, align 4, !tbaa !5
  %239 = call noundef i32 @_ZN11ImGuiWindow5GetIDEi(ptr noundef nonnull align 8 dereferenceable(981) %237, i32 noundef %238)
  store i32 %239, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #11
  store i8 0, ptr %36, align 1, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #11
  store i8 0, ptr %37, align 1, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #11
  store i8 0, ptr %38, align 1, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #11
  %240 = getelementptr inbounds %struct.ImVec2, ptr %26, i32 0, i32 0
  %241 = load float, ptr %240, align 4, !tbaa !57
  %242 = fsub float %241, 4.000000e+00
  %243 = getelementptr inbounds %struct.ImVec2, ptr %26, i32 0, i32 1
  %244 = load float, ptr %243, align 4, !tbaa !59
  %245 = fsub float %244, 4.000000e+00
  %246 = getelementptr inbounds %struct.ImVec2, ptr %26, i32 0, i32 0
  %247 = load float, ptr %246, align 4, !tbaa !57
  %248 = fadd float %247, 4.000000e+00
  %249 = getelementptr inbounds %struct.ImVec2, ptr %26, i32 0, i32 1
  %250 = load float, ptr %249, align 4, !tbaa !59
  %251 = fadd float %250, 4.000000e+00
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %39, float noundef %242, float noundef %245, float noundef %248, float noundef %251)
  %252 = load i32, ptr %35, align 4, !tbaa !5
  call void @_ZN5ImGui11KeepAliveIDEj(i32 noundef %252)
  %253 = load i8, ptr %17, align 1, !tbaa !47, !range !53, !noundef !54
  %254 = trunc i8 %253 to i1
  br i1 %254, label %255, label %258

255:                                              ; preds = %230
  %256 = load i32, ptr %35, align 4, !tbaa !5
  %257 = call noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %39, i32 noundef %256, ptr noundef %37, ptr noundef %38, i32 noundef 0)
  br label %258

258:                                              ; preds = %255, %230
  %259 = load i8, ptr %37, align 1, !tbaa !47, !range !53, !noundef !54
  %260 = trunc i8 %259 to i1
  br i1 %260, label %264, label %261

261:                                              ; preds = %258
  %262 = load i8, ptr %38, align 1, !tbaa !47, !range !53, !noundef !54
  %263 = trunc i8 %262 to i1
  br i1 %263, label %264, label %268

264:                                              ; preds = %261, %258
  %265 = load i8, ptr %18, align 1, !tbaa !47, !range !53, !noundef !54
  %266 = trunc i8 %265 to i1
  br i1 %266, label %267, label %268

267:                                              ; preds = %264
  call void @_ZN5ImGui14SetMouseCursorEi(i32 noundef 2)
  br label %268

268:                                              ; preds = %267, %264, %261
  %269 = load i8, ptr %38, align 1, !tbaa !47, !range !53, !noundef !54
  %270 = trunc i8 %269 to i1
  br i1 %270, label %271, label %306

271:                                              ; preds = %268
  %272 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %272, label %273, label %306

273:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #11
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %274

274:                                              ; preds = %302, %273
  %275 = load i32, ptr %40, align 4, !tbaa !5
  %276 = icmp slt i32 %275, 4
  br i1 %276, label %278, label %277

277:                                              ; preds = %274
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #11
  br label %305

278:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #11
  %279 = load i32, ptr %40, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 %280
  %282 = call noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv()
  %283 = getelementptr inbounds %struct.ImGuiIO, ptr %282, i32 0, i32 54
  %284 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %281, ptr noundef nonnull align 4 dereferenceable(8) %283)
  store <2 x float> %284, ptr %42, align 4
  %285 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %42, i32 noundef -1, i32 noundef -1)
  %286 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %287 = extractvalue { double, double } %285, 0
  store double %287, ptr %286, align 8
  %288 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %289 = extractvalue { double, double } %285, 1
  store double %289, ptr %288, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #11
  %290 = getelementptr inbounds %struct.ImPlotPoint, ptr %41, i32 0, i32 1
  %291 = load double, ptr %290, align 8, !tbaa !64
  %292 = load i32, ptr %40, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [4 x ptr], ptr %22, i64 0, i64 %293
  %295 = load ptr, ptr %294, align 8, !tbaa !9
  store double %291, ptr %295, align 8, !tbaa !45
  %296 = getelementptr inbounds %struct.ImPlotPoint, ptr %41, i32 0, i32 0
  %297 = load double, ptr %296, align 8, !tbaa !66
  %298 = load i32, ptr %40, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [4 x ptr], ptr %21, i64 0, i64 %299
  %301 = load ptr, ptr %300, align 8, !tbaa !9
  store double %297, ptr %301, align 8, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #11
  br label %302

302:                                              ; preds = %278
  %303 = load i32, ptr %40, align 4, !tbaa !5
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %40, align 4, !tbaa !5
  br label %274, !llvm.loop !67

305:                                              ; preds = %277
  store i8 1, ptr %36, align 1, !tbaa !47
  br label %306

306:                                              ; preds = %305, %271, %268
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #11
  store i32 0, ptr %43, align 4, !tbaa !5
  br label %307

307:                                              ; preds = %596, %306
  %308 = load i32, ptr %43, align 4, !tbaa !5
  %309 = icmp slt i32 %308, 4
  br i1 %309, label %311, label %310

310:                                              ; preds = %307
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #11
  br label %599

311:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #11
  %312 = load i32, ptr %43, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 %313
  %315 = getelementptr inbounds %struct.ImVec2, ptr %314, i32 0, i32 0
  %316 = load float, ptr %315, align 8, !tbaa !57
  %317 = fsub float %316, 4.000000e+00
  %318 = load i32, ptr %43, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 %319
  %321 = getelementptr inbounds %struct.ImVec2, ptr %320, i32 0, i32 1
  %322 = load float, ptr %321, align 4, !tbaa !59
  %323 = fsub float %322, 4.000000e+00
  %324 = load i32, ptr %43, align 4, !tbaa !5
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 %325
  %327 = getelementptr inbounds %struct.ImVec2, ptr %326, i32 0, i32 0
  %328 = load float, ptr %327, align 8, !tbaa !57
  %329 = fadd float %328, 4.000000e+00
  %330 = load i32, ptr %43, align 4, !tbaa !5
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 %331
  %333 = getelementptr inbounds %struct.ImVec2, ptr %332, i32 0, i32 1
  %334 = load float, ptr %333, align 4, !tbaa !59
  %335 = fadd float %334, 4.000000e+00
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %44, float noundef %317, float noundef %323, float noundef %329, float noundef %335)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %44, i64 16, i1 false), !tbaa.struct !52
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #11
  %336 = load i32, ptr %35, align 4, !tbaa !5
  %337 = load i32, ptr %43, align 4, !tbaa !5
  %338 = add i32 %336, %337
  %339 = add i32 %338, 1
  store i32 %339, ptr %45, align 4, !tbaa !5
  %340 = load i32, ptr %45, align 4, !tbaa !5
  call void @_ZN5ImGui11KeepAliveIDEj(i32 noundef %340)
  %341 = load i8, ptr %17, align 1, !tbaa !47, !range !53, !noundef !54
  %342 = trunc i8 %341 to i1
  br i1 %342, label %343, label %346

343:                                              ; preds = %311
  %344 = load i32, ptr %45, align 4, !tbaa !5
  %345 = call noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %39, i32 noundef %344, ptr noundef %37, ptr noundef %38, i32 noundef 0)
  br label %346

346:                                              ; preds = %343, %311
  %347 = load i8, ptr %37, align 1, !tbaa !47, !range !53, !noundef !54
  %348 = trunc i8 %347 to i1
  br i1 %348, label %352, label %349

349:                                              ; preds = %346
  %350 = load i8, ptr %38, align 1, !tbaa !47, !range !53, !noundef !54
  %351 = trunc i8 %350 to i1
  br i1 %351, label %352, label %360

352:                                              ; preds = %349, %346
  %353 = load i8, ptr %18, align 1, !tbaa !47, !range !53, !noundef !54
  %354 = trunc i8 %353 to i1
  br i1 %354, label %355, label %360

355:                                              ; preds = %352
  %356 = load i32, ptr %43, align 4, !tbaa !5
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds [4 x i32], ptr %31, i64 0, i64 %357
  %359 = load i32, ptr %358, align 4, !tbaa !5
  call void @_ZN5ImGui14SetMouseCursorEi(i32 noundef %359)
  br label %360

360:                                              ; preds = %355, %352, %349
  %361 = load i8, ptr %38, align 1, !tbaa !47, !range !53, !noundef !54
  %362 = trunc i8 %361 to i1
  br i1 %362, label %363, label %388

363:                                              ; preds = %360
  %364 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %364, label %365, label %388

365:                                              ; preds = %363
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #11
  %366 = call { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef -1, i32 noundef -1)
  %367 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %368 = extractvalue { double, double } %366, 0
  store double %368, ptr %367, align 8
  %369 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %370 = extractvalue { double, double } %366, 1
  store double %370, ptr %369, align 8
  %371 = getelementptr inbounds %struct.ImPlotPoint, ptr %46, i32 0, i32 0
  %372 = load double, ptr %371, align 8, !tbaa !66
  %373 = load i32, ptr %43, align 4, !tbaa !5
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [4 x ptr], ptr %21, i64 0, i64 %374
  %376 = load ptr, ptr %375, align 8, !tbaa !9
  store double %372, ptr %376, align 8, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #11
  %377 = call { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef -1, i32 noundef -1)
  %378 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %379 = extractvalue { double, double } %377, 0
  store double %379, ptr %378, align 8
  %380 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %381 = extractvalue { double, double } %377, 1
  store double %381, ptr %380, align 8
  %382 = getelementptr inbounds %struct.ImPlotPoint, ptr %47, i32 0, i32 1
  %383 = load double, ptr %382, align 8, !tbaa !64
  %384 = load i32, ptr %43, align 4, !tbaa !5
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds [4 x ptr], ptr %22, i64 0, i64 %385
  %387 = load ptr, ptr %386, align 8, !tbaa !9
  store double %383, ptr %387, align 8, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #11
  store i8 1, ptr %36, align 1, !tbaa !47
  br label %388

388:                                              ; preds = %365, %363, %360
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #11
  %389 = load i32, ptr %43, align 4, !tbaa !5
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 %390
  %392 = load i32, ptr %43, align 4, !tbaa !5
  %393 = add nsw i32 %392, 1
  %394 = srem i32 %393, 4
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 %395
  %397 = call <2 x float> @_ZL5ImMinRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %391, ptr noundef nonnull align 4 dereferenceable(8) %396)
  store <2 x float> %397, ptr %48, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #11
  %398 = load i32, ptr %43, align 4, !tbaa !5
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 %399
  %401 = load i32, ptr %43, align 4, !tbaa !5
  %402 = add nsw i32 %401, 1
  %403 = srem i32 %402, 4
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 %404
  %406 = call <2 x float> @_ZL5ImMaxRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %400, ptr noundef nonnull align 4 dereferenceable(8) %405)
  store <2 x float> %406, ptr %49, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #11
  %407 = load i32, ptr %43, align 4, !tbaa !5
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 %408
  %410 = load i8, ptr %409, align 1, !tbaa !47, !range !53, !noundef !54
  %411 = trunc i8 %410 to i1
  br i1 %411, label %412, label %425

412:                                              ; preds = %388
  %413 = getelementptr inbounds %struct.ImVec2, ptr %48, i32 0, i32 0
  %414 = load float, ptr %413, align 4, !tbaa !57
  %415 = fadd float %414, 4.000000e+00
  %416 = getelementptr inbounds %struct.ImVec2, ptr %48, i32 0, i32 1
  %417 = load float, ptr %416, align 4, !tbaa !59
  %418 = fsub float %417, 4.000000e+00
  %419 = getelementptr inbounds %struct.ImVec2, ptr %49, i32 0, i32 0
  %420 = load float, ptr %419, align 4, !tbaa !57
  %421 = fsub float %420, 4.000000e+00
  %422 = getelementptr inbounds %struct.ImVec2, ptr %49, i32 0, i32 1
  %423 = load float, ptr %422, align 4, !tbaa !59
  %424 = fadd float %423, 4.000000e+00
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %50, float noundef %415, float noundef %418, float noundef %421, float noundef %424)
  br label %438

425:                                              ; preds = %388
  %426 = getelementptr inbounds %struct.ImVec2, ptr %48, i32 0, i32 0
  %427 = load float, ptr %426, align 4, !tbaa !57
  %428 = fsub float %427, 4.000000e+00
  %429 = getelementptr inbounds %struct.ImVec2, ptr %48, i32 0, i32 1
  %430 = load float, ptr %429, align 4, !tbaa !59
  %431 = fadd float %430, 4.000000e+00
  %432 = getelementptr inbounds %struct.ImVec2, ptr %49, i32 0, i32 0
  %433 = load float, ptr %432, align 4, !tbaa !57
  %434 = fadd float %433, 4.000000e+00
  %435 = getelementptr inbounds %struct.ImVec2, ptr %49, i32 0, i32 1
  %436 = load float, ptr %435, align 4, !tbaa !59
  %437 = fsub float %436, 4.000000e+00
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %50, float noundef %428, float noundef %431, float noundef %434, float noundef %437)
  br label %438

438:                                              ; preds = %425, %412
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %50, i64 16, i1 false), !tbaa.struct !52
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #11
  %439 = load i32, ptr %35, align 4, !tbaa !5
  %440 = load i32, ptr %43, align 4, !tbaa !5
  %441 = add i32 %439, %440
  %442 = add i32 %441, 5
  store i32 %442, ptr %51, align 4, !tbaa !5
  %443 = load i32, ptr %51, align 4, !tbaa !5
  call void @_ZN5ImGui11KeepAliveIDEj(i32 noundef %443)
  %444 = load i8, ptr %17, align 1, !tbaa !47, !range !53, !noundef !54
  %445 = trunc i8 %444 to i1
  br i1 %445, label %446, label %449

446:                                              ; preds = %438
  %447 = load i32, ptr %51, align 4, !tbaa !5
  %448 = call noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %39, i32 noundef %447, ptr noundef %37, ptr noundef %38, i32 noundef 0)
  br label %449

449:                                              ; preds = %446, %438
  %450 = load i8, ptr %37, align 1, !tbaa !47, !range !53, !noundef !54
  %451 = trunc i8 %450 to i1
  br i1 %451, label %455, label %452

452:                                              ; preds = %449
  %453 = load i8, ptr %38, align 1, !tbaa !47, !range !53, !noundef !54
  %454 = trunc i8 %453 to i1
  br i1 %454, label %455, label %467

455:                                              ; preds = %452, %449
  %456 = load i8, ptr %18, align 1, !tbaa !47, !range !53, !noundef !54
  %457 = trunc i8 %456 to i1
  br i1 %457, label %458, label %467

458:                                              ; preds = %455
  %459 = load i32, ptr %43, align 4, !tbaa !5
  %460 = sext i32 %459 to i64
  %461 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 %460
  %462 = load i8, ptr %461, align 1, !tbaa !47, !range !53, !noundef !54
  %463 = trunc i8 %462 to i1
  br i1 %463, label %464, label %465

464:                                              ; preds = %458
  call void @_ZN5ImGui14SetMouseCursorEi(i32 noundef 3)
  br label %466

465:                                              ; preds = %458
  call void @_ZN5ImGui14SetMouseCursorEi(i32 noundef 4)
  br label %466

466:                                              ; preds = %465, %464
  br label %467

467:                                              ; preds = %466, %455, %452
  %468 = load i8, ptr %38, align 1, !tbaa !47, !range !53, !noundef !54
  %469 = trunc i8 %468 to i1
  br i1 %469, label %470, label %503

470:                                              ; preds = %467
  %471 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %471, label %472, label %503

472:                                              ; preds = %470
  %473 = load i32, ptr %43, align 4, !tbaa !5
  %474 = sext i32 %473 to i64
  %475 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 %474
  %476 = load i8, ptr %475, align 1, !tbaa !47, !range !53, !noundef !54
  %477 = trunc i8 %476 to i1
  br i1 %477, label %478, label %490

478:                                              ; preds = %472
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #11
  %479 = call { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef -1, i32 noundef -1)
  %480 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %481 = extractvalue { double, double } %479, 0
  store double %481, ptr %480, align 8
  %482 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %483 = extractvalue { double, double } %479, 1
  store double %483, ptr %482, align 8
  %484 = getelementptr inbounds %struct.ImPlotPoint, ptr %52, i32 0, i32 1
  %485 = load double, ptr %484, align 8, !tbaa !64
  %486 = load i32, ptr %43, align 4, !tbaa !5
  %487 = sext i32 %486 to i64
  %488 = getelementptr inbounds [4 x ptr], ptr %22, i64 0, i64 %487
  %489 = load ptr, ptr %488, align 8, !tbaa !9
  store double %485, ptr %489, align 8, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #11
  br label %502

490:                                              ; preds = %472
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #11
  %491 = call { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef -1, i32 noundef -1)
  %492 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %493 = extractvalue { double, double } %491, 0
  store double %493, ptr %492, align 8
  %494 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %495 = extractvalue { double, double } %491, 1
  store double %495, ptr %494, align 8
  %496 = getelementptr inbounds %struct.ImPlotPoint, ptr %53, i32 0, i32 0
  %497 = load double, ptr %496, align 8, !tbaa !66
  %498 = load i32, ptr %43, align 4, !tbaa !5
  %499 = sext i32 %498 to i64
  %500 = getelementptr inbounds [4 x ptr], ptr %21, i64 0, i64 %499
  %501 = load ptr, ptr %500, align 8, !tbaa !9
  store double %497, ptr %501, align 8, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #11
  br label %502

502:                                              ; preds = %490, %478
  store i8 1, ptr %36, align 1, !tbaa !47
  br label %503

503:                                              ; preds = %502, %470, %467
  %504 = load i8, ptr %37, align 1, !tbaa !47, !range !53, !noundef !54
  %505 = trunc i8 %504 to i1
  br i1 %505, label %506, label %595

506:                                              ; preds = %503
  %507 = call noundef zeroext i1 @_ZN5ImGui20IsMouseDoubleClickedEi(i32 noundef 0)
  br i1 %507, label %508, label %595

508:                                              ; preds = %506
  call void @llvm.lifetime.start.p0(i64 32, ptr %54) #11
  call void @_ZN6ImPlot13GetPlotLimitsEii(ptr dead_on_unwind writable sret(%struct.ImPlotRect) align 8 %54, i32 noundef -1, i32 noundef -1)
  %509 = load i32, ptr %43, align 4, !tbaa !5
  %510 = sext i32 %509 to i64
  %511 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 %510
  %512 = load i8, ptr %511, align 1, !tbaa !47, !range !53, !noundef !54
  %513 = trunc i8 %512 to i1
  br i1 %513, label %514, label %554

514:                                              ; preds = %508
  %515 = load i32, ptr %43, align 4, !tbaa !5
  %516 = sext i32 %515 to i64
  %517 = getelementptr inbounds [4 x ptr], ptr %22, i64 0, i64 %516
  %518 = load ptr, ptr %517, align 8, !tbaa !9
  %519 = load ptr, ptr %10, align 8, !tbaa !9
  %520 = icmp eq ptr %518, %519
  br i1 %520, label %521, label %527

521:                                              ; preds = %514
  %522 = load ptr, ptr %10, align 8, !tbaa !9
  %523 = load double, ptr %522, align 8, !tbaa !45
  %524 = load ptr, ptr %12, align 8, !tbaa !9
  %525 = load double, ptr %524, align 8, !tbaa !45
  %526 = fcmp olt double %523, %525
  br i1 %526, label %540, label %527

527:                                              ; preds = %521, %514
  %528 = load i32, ptr %43, align 4, !tbaa !5
  %529 = sext i32 %528 to i64
  %530 = getelementptr inbounds [4 x ptr], ptr %22, i64 0, i64 %529
  %531 = load ptr, ptr %530, align 8, !tbaa !9
  %532 = load ptr, ptr %12, align 8, !tbaa !9
  %533 = icmp eq ptr %531, %532
  br i1 %533, label %534, label %544

534:                                              ; preds = %527
  %535 = load ptr, ptr %12, align 8, !tbaa !9
  %536 = load double, ptr %535, align 8, !tbaa !45
  %537 = load ptr, ptr %10, align 8, !tbaa !9
  %538 = load double, ptr %537, align 8, !tbaa !45
  %539 = fcmp olt double %536, %538
  br i1 %539, label %540, label %544

540:                                              ; preds = %534, %521
  %541 = getelementptr inbounds %struct.ImPlotRect, ptr %54, i32 0, i32 1
  %542 = getelementptr inbounds %struct.ImPlotRange, ptr %541, i32 0, i32 0
  %543 = load double, ptr %542, align 8, !tbaa !68
  br label %548

544:                                              ; preds = %534, %527
  %545 = getelementptr inbounds %struct.ImPlotRect, ptr %54, i32 0, i32 1
  %546 = getelementptr inbounds %struct.ImPlotRange, ptr %545, i32 0, i32 1
  %547 = load double, ptr %546, align 8, !tbaa !71
  br label %548

548:                                              ; preds = %544, %540
  %549 = phi double [ %543, %540 ], [ %547, %544 ]
  %550 = load i32, ptr %43, align 4, !tbaa !5
  %551 = sext i32 %550 to i64
  %552 = getelementptr inbounds [4 x ptr], ptr %22, i64 0, i64 %551
  %553 = load ptr, ptr %552, align 8, !tbaa !9
  store double %549, ptr %553, align 8, !tbaa !45
  br label %594

554:                                              ; preds = %508
  %555 = load i32, ptr %43, align 4, !tbaa !5
  %556 = sext i32 %555 to i64
  %557 = getelementptr inbounds [4 x ptr], ptr %21, i64 0, i64 %556
  %558 = load ptr, ptr %557, align 8, !tbaa !9
  %559 = load ptr, ptr %9, align 8, !tbaa !9
  %560 = icmp eq ptr %558, %559
  br i1 %560, label %561, label %567

561:                                              ; preds = %554
  %562 = load ptr, ptr %9, align 8, !tbaa !9
  %563 = load double, ptr %562, align 8, !tbaa !45
  %564 = load ptr, ptr %11, align 8, !tbaa !9
  %565 = load double, ptr %564, align 8, !tbaa !45
  %566 = fcmp olt double %563, %565
  br i1 %566, label %580, label %567

567:                                              ; preds = %561, %554
  %568 = load i32, ptr %43, align 4, !tbaa !5
  %569 = sext i32 %568 to i64
  %570 = getelementptr inbounds [4 x ptr], ptr %21, i64 0, i64 %569
  %571 = load ptr, ptr %570, align 8, !tbaa !9
  %572 = load ptr, ptr %11, align 8, !tbaa !9
  %573 = icmp eq ptr %571, %572
  br i1 %573, label %574, label %584

574:                                              ; preds = %567
  %575 = load ptr, ptr %11, align 8, !tbaa !9
  %576 = load double, ptr %575, align 8, !tbaa !45
  %577 = load ptr, ptr %9, align 8, !tbaa !9
  %578 = load double, ptr %577, align 8, !tbaa !45
  %579 = fcmp olt double %576, %578
  br i1 %579, label %580, label %584

580:                                              ; preds = %574, %561
  %581 = getelementptr inbounds %struct.ImPlotRect, ptr %54, i32 0, i32 0
  %582 = getelementptr inbounds %struct.ImPlotRange, ptr %581, i32 0, i32 0
  %583 = load double, ptr %582, align 8, !tbaa !72
  br label %588

584:                                              ; preds = %574, %567
  %585 = getelementptr inbounds %struct.ImPlotRect, ptr %54, i32 0, i32 0
  %586 = getelementptr inbounds %struct.ImPlotRange, ptr %585, i32 0, i32 1
  %587 = load double, ptr %586, align 8, !tbaa !73
  br label %588

588:                                              ; preds = %584, %580
  %589 = phi double [ %583, %580 ], [ %587, %584 ]
  %590 = load i32, ptr %43, align 4, !tbaa !5
  %591 = sext i32 %590 to i64
  %592 = getelementptr inbounds [4 x ptr], ptr %21, i64 0, i64 %591
  %593 = load ptr, ptr %592, align 8, !tbaa !9
  store double %589, ptr %593, align 8, !tbaa !45
  br label %594

594:                                              ; preds = %588, %548
  store i8 1, ptr %36, align 1, !tbaa !47
  call void @llvm.lifetime.end.p0(i64 32, ptr %54) #11
  br label %595

595:                                              ; preds = %594, %506, %503
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #11
  br label %596

596:                                              ; preds = %595
  %597 = load i32, ptr %43, align 4, !tbaa !5
  %598 = add nsw i32 %597, 1
  store i32 %598, ptr %43, align 4, !tbaa !5
  br label %307, !llvm.loop !74

599:                                              ; preds = %310
  call void @_ZN6ImPlot16PushPlotClipRectEf(float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #11
  %600 = call noundef ptr @_ZN6ImPlot15GetPlotDrawListEv()
  store ptr %600, ptr %55, align 8, !tbaa !9
  %601 = load i8, ptr %36, align 1, !tbaa !47, !range !53, !noundef !54
  %602 = trunc i8 %601 to i1
  br i1 %602, label %603, label %649

603:                                              ; preds = %599
  %604 = load i8, ptr %19, align 1, !tbaa !47, !range !53, !noundef !54
  %605 = trunc i8 %604 to i1
  br i1 %605, label %606, label %649

606:                                              ; preds = %603
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #11
  store i32 0, ptr %56, align 4, !tbaa !5
  br label %607

607:                                              ; preds = %626, %606
  %608 = load i32, ptr %56, align 4, !tbaa !5
  %609 = icmp slt i32 %608, 4
  br i1 %609, label %611, label %610

610:                                              ; preds = %607
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #11
  br label %629

611:                                              ; preds = %607
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #11
  %612 = load i32, ptr %56, align 4, !tbaa !5
  %613 = sext i32 %612 to i64
  %614 = getelementptr inbounds [4 x ptr], ptr %21, i64 0, i64 %613
  %615 = load ptr, ptr %614, align 8, !tbaa !9
  %616 = load double, ptr %615, align 8, !tbaa !45
  %617 = load i32, ptr %56, align 4, !tbaa !5
  %618 = sext i32 %617 to i64
  %619 = getelementptr inbounds [4 x ptr], ptr %22, i64 0, i64 %618
  %620 = load ptr, ptr %619, align 8, !tbaa !9
  %621 = load double, ptr %620, align 8, !tbaa !45
  %622 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %616, double noundef %621, i32 noundef -1, i32 noundef -1)
  store <2 x float> %622, ptr %57, align 4
  %623 = load i32, ptr %56, align 4, !tbaa !5
  %624 = sext i32 %623 to i64
  %625 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 %624
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %625, ptr align 4 %57, i64 8, i1 false), !tbaa.struct !48
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #11
  br label %626

626:                                              ; preds = %611
  %627 = load i32, ptr %56, align 4, !tbaa !5
  %628 = add nsw i32 %627, 1
  store i32 %628, ptr %56, align 4, !tbaa !5
  br label %607, !llvm.loop !75

629:                                              ; preds = %610
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #11
  %630 = load ptr, ptr %9, align 8, !tbaa !9
  %631 = load double, ptr %630, align 8, !tbaa !45
  %632 = load ptr, ptr %11, align 8, !tbaa !9
  %633 = load double, ptr %632, align 8, !tbaa !45
  %634 = fadd double %631, %633
  %635 = fdiv double %634, 2.000000e+00
  %636 = load ptr, ptr %10, align 8, !tbaa !9
  %637 = load double, ptr %636, align 8, !tbaa !45
  %638 = load ptr, ptr %12, align 8, !tbaa !9
  %639 = load double, ptr %638, align 8, !tbaa !45
  %640 = fadd double %637, %639
  %641 = fdiv double %640, 2.000000e+00
  %642 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %635, double noundef %641, i32 noundef -1, i32 noundef -1)
  store <2 x float> %642, ptr %58, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %58, i64 8, i1 false), !tbaa.struct !48
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #11
  %643 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 0
  %644 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 2
  %645 = call <2 x float> @_ZL5ImMinRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %643, ptr noundef nonnull align 4 dereferenceable(8) %644)
  store <2 x float> %645, ptr %60, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #11
  %646 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 0
  %647 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 2
  %648 = call <2 x float> @_ZL5ImMaxRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %646, ptr noundef nonnull align 4 dereferenceable(8) %647)
  store <2 x float> %648, ptr %61, align 4
  call void @_ZN6ImRectC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16) %59, ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(8) %61)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %59, i64 16, i1 false), !tbaa.struct !52
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #11
  br label %649

649:                                              ; preds = %629, %603, %599
  %650 = load ptr, ptr %55, align 8, !tbaa !9
  %651 = getelementptr inbounds %struct.ImRect, ptr %27, i32 0, i32 0
  %652 = getelementptr inbounds %struct.ImRect, ptr %27, i32 0, i32 1
  %653 = load i32, ptr %34, align 4, !tbaa !5
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %650, ptr noundef nonnull align 4 dereferenceable(8) %651, ptr noundef nonnull align 4 dereferenceable(8) %652, i32 noundef %653, float noundef 0.000000e+00, i32 noundef 0)
  %654 = load ptr, ptr %55, align 8, !tbaa !9
  %655 = getelementptr inbounds %struct.ImRect, ptr %27, i32 0, i32 0
  %656 = getelementptr inbounds %struct.ImRect, ptr %27, i32 0, i32 1
  %657 = load i32, ptr %33, align 4, !tbaa !5
  call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %654, ptr noundef nonnull align 4 dereferenceable(8) %655, ptr noundef nonnull align 4 dereferenceable(8) %656, i32 noundef %657, float noundef 0.000000e+00, i32 noundef 0, float noundef 1.000000e+00)
  %658 = load i8, ptr %17, align 1, !tbaa !47, !range !53, !noundef !54
  %659 = trunc i8 %658 to i1
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #11
  br i1 %659, label %660, label %668

660:                                              ; preds = %649
  %661 = load i8, ptr %36, align 1, !tbaa !47, !range !53, !noundef !54
  %662 = trunc i8 %661 to i1
  br i1 %662, label %666, label %663

663:                                              ; preds = %660
  %664 = call <2 x float> @_ZN5ImGui11GetMousePosEv()
  store <2 x float> %664, ptr %62, align 4
  %665 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(8) %62)
  br label %666

666:                                              ; preds = %663, %660
  %667 = phi i1 [ true, %660 ], [ %665, %663 ]
  br label %668

668:                                              ; preds = %666, %649
  %669 = phi i1 [ false, %649 ], [ %667, %666 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #11
  br i1 %669, label %670, label %687

670:                                              ; preds = %668
  %671 = load ptr, ptr %55, align 8, !tbaa !9
  %672 = load i32, ptr %33, align 4, !tbaa !5
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(196) %671, ptr noundef nonnull align 4 dereferenceable(8) %26, float noundef 4.000000e+00, i32 noundef %672, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #11
  store i32 0, ptr %63, align 4, !tbaa !5
  br label %673

673:                                              ; preds = %683, %670
  %674 = load i32, ptr %63, align 4, !tbaa !5
  %675 = icmp slt i32 %674, 4
  br i1 %675, label %677, label %676

676:                                              ; preds = %673
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #11
  br label %686

677:                                              ; preds = %673
  %678 = load ptr, ptr %55, align 8, !tbaa !9
  %679 = load i32, ptr %63, align 4, !tbaa !5
  %680 = sext i32 %679 to i64
  %681 = getelementptr inbounds [4 x %struct.ImVec2], ptr %23, i64 0, i64 %680
  %682 = load i32, ptr %33, align 4, !tbaa !5
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(196) %678, ptr noundef nonnull align 4 dereferenceable(8) %681, float noundef 4.000000e+00, i32 noundef %682, i32 noundef 0)
  br label %683

683:                                              ; preds = %677
  %684 = load i32, ptr %63, align 4, !tbaa !5
  %685 = add nsw i32 %684, 1
  store i32 %685, ptr %63, align 4, !tbaa !5
  br label %673, !llvm.loop !76

686:                                              ; preds = %676
  br label %687

687:                                              ; preds = %686, %668
  call void @_ZN6ImPlot15PopPlotClipRectEv()
  call void @_ZN5ImGui5PopIDEv()
  %688 = load i8, ptr %36, align 1, !tbaa !47, !range !53, !noundef !54
  %689 = trunc i8 %688 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #11
  ret i1 %689
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL5ImMinRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL5ImMaxRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 80}
!12 = !{!"_ZTS13ImPlotContext", !13, i64 0, !17, i64 40, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !19, i64 120, !25, i64 176, !27, i64 216, !29, i64 256, !30, i64 260, !31, i64 776, !32, i64 792, !33, i64 808, !35, i64 976, !37, i64 992, !39, i64 1048, !39, i64 1064, !35, i64 1080, !6, i64 1096, !6, i64 1100, !40, i64 1104, !41, i64 1336, !42, i64 1464, !29, i64 1512, !21, i64 1520, !10, i64 1536, !43, i64 1544, !10, i64 1584, !10, i64 1592}
!13 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !14, i64 0, !15, i64 16, !6, i64 32, !6, i64 36}
!14 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !6, i64 0, !6, i64 4, !10, i64 8}
!15 = !{!"_ZTS12ImGuiStorage", !16, i64 0}
!16 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !6, i64 0, !6, i64 4, !10, i64 8}
!17 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !18, i64 0, !15, i64 16, !6, i64 32, !6, i64 36}
!18 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !6, i64 0, !6, i64 4, !10, i64 8}
!19 = !{!"_ZTS12ImPlotTicker", !20, i64 0, !21, i64 16, !23, i64 32, !23, i64 40, !6, i64 48}
!20 = !{!"_ZTS8ImVectorI10ImPlotTickE", !6, i64 0, !6, i64 4, !10, i64 8}
!21 = !{!"_ZTS15ImGuiTextBuffer", !22, i64 0}
!22 = !{!"_ZTS8ImVectorIcE", !6, i64 0, !6, i64 4, !10, i64 8}
!23 = !{!"_ZTS6ImVec2", !24, i64 0, !24, i64 4}
!24 = !{!"float", !7, i64 0}
!25 = !{!"_ZTS26ImPlotAnnotationCollection", !26, i64 0, !21, i64 16, !6, i64 32}
!26 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !6, i64 0, !6, i64 4, !10, i64 8}
!27 = !{!"_ZTS19ImPlotTagCollection", !28, i64 0, !21, i64 16, !6, i64 32}
!28 = !{!"_ZTS8ImVectorI9ImPlotTagE", !6, i64 0, !6, i64 4, !10, i64 8}
!29 = !{!"bool", !7, i64 0}
!30 = !{!"_ZTS11ImPlotStyle", !24, i64 0, !6, i64 4, !24, i64 8, !24, i64 12, !24, i64 16, !24, i64 20, !24, i64 24, !24, i64 28, !24, i64 32, !24, i64 36, !24, i64 40, !23, i64 44, !23, i64 52, !23, i64 60, !23, i64 68, !23, i64 76, !23, i64 84, !23, i64 92, !23, i64 100, !23, i64 108, !23, i64 116, !23, i64 124, !23, i64 132, !23, i64 140, !23, i64 148, !23, i64 156, !23, i64 164, !7, i64 172, !6, i64 508, !29, i64 512, !29, i64 513, !29, i64 514}
!31 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !6, i64 0, !6, i64 4, !10, i64 8}
!32 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !6, i64 0, !6, i64 4, !10, i64 8}
!33 = !{!"_ZTS18ImPlotColormapData", !34, i64 0, !35, i64 16, !35, i64 32, !34, i64 48, !35, i64 64, !35, i64 80, !21, i64 96, !35, i64 112, !36, i64 128, !15, i64 144, !6, i64 160}
!34 = !{!"_ZTS8ImVectorIjE", !6, i64 0, !6, i64 4, !10, i64 8}
!35 = !{!"_ZTS8ImVectorIiE", !6, i64 0, !6, i64 4, !10, i64 8}
!36 = !{!"_ZTS8ImVectorIbE", !6, i64 0, !6, i64 4, !10, i64 8}
!37 = !{!"_ZTS2tm", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !38, i64 40, !10, i64 48}
!38 = !{!"long", !7, i64 0}
!39 = !{!"_ZTS8ImVectorIdE", !6, i64 0, !6, i64 4, !10, i64 8}
!40 = !{!"_ZTS18ImPlotNextPlotData", !7, i64 0, !7, i64 24, !7, i64 120, !7, i64 126, !7, i64 136, !7, i64 184}
!41 = !{!"_ZTS18ImPlotNextItemData", !7, i64 0, !24, i64 80, !6, i64 84, !24, i64 88, !24, i64 92, !24, i64 96, !24, i64 100, !24, i64 104, !24, i64 108, !24, i64 112, !29, i64 116, !29, i64 117, !29, i64 118, !29, i64 119, !29, i64 120, !29, i64 121, !6, i64 124}
!42 = !{!"_ZTS14ImPlotInputMap", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !24, i64 44}
!43 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !44, i64 0, !15, i64 16, !6, i64 32, !6, i64 36}
!44 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !6, i64 0, !6, i64 4, !10, i64 8}
!45 = !{!46, !46, i64 0}
!46 = !{!"double", !7, i64 0}
!47 = !{!29, !29, i64 0}
!48 = !{i64 0, i64 4, !49, i64 4, i64 4, !49}
!49 = !{!24, !24, i64 0}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}
!52 = !{i64 0, i64 4, !49, i64 4, i64 4, !49, i64 8, i64 4, !49, i64 12, i64 4, !49}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!56, !24, i64 0}
!56 = !{!"_ZTS6ImRect", !23, i64 0, !23, i64 8}
!57 = !{!23, !24, i64 0}
!58 = !{!56, !24, i64 4}
!59 = !{!23, !24, i64 4}
!60 = !{!56, !24, i64 8}
!61 = !{!56, !24, i64 12}
!62 = !{!63, !24, i64 12}
!63 = !{!"_ZTS6ImVec4", !24, i64 0, !24, i64 4, !24, i64 8, !24, i64 12}
!64 = !{!65, !46, i64 8}
!65 = !{!"_ZTS11ImPlotPoint", !46, i64 0, !46, i64 8}
!66 = !{!65, !46, i64 0}
!67 = distinct !{!67, !51}
!68 = !{!69, !46, i64 16}
!69 = !{!"_ZTS10ImPlotRect", !70, i64 0, !70, i64 16}
!70 = !{!"_ZTS11ImPlotRange", !46, i64 0, !46, i64 8}
!71 = !{!69, !46, i64 24}
!72 = !{!69, !46, i64 0}
!73 = !{!69, !46, i64 8}
!74 = distinct !{!74, !51}
!75 = distinct !{!75, !51}
!76 = distinct !{!76, !51}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ImPlotRect = type { %struct.ImPlotRange, %struct.ImPlotRange }
%struct.ImPlotRange = type { double, double }
%struct.ImPlotPoint = type { double, double }
%struct.ImVec2 = type { float, float }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%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.216 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [104 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot8DragRectEiPdS0_S0_S0_RK6ImVec4i = external hidden unnamed_addr constant [104 x i8], align 1
@__const._ZN6ImPlot8DragRectEiPdS0_S0_S0_RK6ImVec4i.h = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

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

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

declare void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(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, 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 #5

declare void @_ZN5ImGui5PopIDEv() local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv() local_unnamed_addr #3

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

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

; 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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

declare void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(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, i32 noundef, float noundef) local_unnamed_addr #3

declare <2 x float> @_ZN5ImGui11GetMousePosEv() local_unnamed_addr #3

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

declare noundef zeroext i1 @_ZN5ImGui20IsMouseDoubleClickedEi(i32 noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot13GetPlotLimitsEii(ptr dead_on_unwind noalias writable sret(%struct.ImPlotRect) align 8, i32 noundef, i32 noundef) local_unnamed_addr #6

declare void @_ZN5ImGui6PushIDEPKc(ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

34:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.218, ptr noundef nonnull @.str.78, i32 noundef 3972, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImPlot8DragRectEiPdS0_S0_S0_RK6ImVec4i) #10
  unreachable

35:                                               ; preds = %7
  tail call void @_ZN6ImPlotL9SetupLockEv()
  %36 = tail call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %6, i32 noundef 2)
  br i1 %36, label %.preheader157.preheader, label %37

37:                                               ; preds = %35
  %38 = tail call noundef zeroext i1 @_ZN6ImPlotL12FitThisFrameEv()
  br i1 %38, label %39, label %.preheader157.preheader

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #11
  %40 = load double, ptr %1, align 8, !tbaa !44
  %41 = load double, ptr %2, align 8, !tbaa !44
  call void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef %40, double noundef %41)
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #11
  %42 = load double, ptr %3, align 8, !tbaa !44
  %43 = load double, ptr %4, align 8, !tbaa !44
  call void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef %42, double noundef %43)
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #11
  br label %.preheader157.preheader

.preheader157.preheader:                          ; preds = %39, %37, %35
  %44 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %6, i32 noundef 4)
  %45 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %6, i32 noundef 1)
  %46 = call noundef zeroext i1 @_ZL9ImHasFlagIi20ImPlotDragToolFlags_EbT_T0_(i32 noundef %6, i32 noundef 8)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #11
  store ptr %1, ptr %10, align 16, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %10, i64 8
  store ptr %3, ptr %47, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %10, i64 16
  store ptr %3, ptr %48, align 16, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %10, i64 24
  store ptr %1, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #11
  store ptr %2, ptr %11, align 16, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr %2, ptr %50, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %11, i64 16
  store ptr %4, ptr %51, align 16, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %11, i64 24
  store ptr %4, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #11
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %12)
  %.ptr.1 = getelementptr inbounds i8, ptr %12, i64 8
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %12, i64 16
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %12, i64 24
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.3)
  %53 = load double, ptr %1, align 8, !tbaa !44
  %54 = load double, ptr %2, align 8, !tbaa !44
  %55 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %53, double noundef %54, i32 noundef -1, i32 noundef -1)
  store <2 x float> %55, ptr %12, align 16
  %56 = load double, ptr %3, align 8, !tbaa !44
  %57 = load double, ptr %2, align 8, !tbaa !44
  %58 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %56, double noundef %57, i32 noundef -1, i32 noundef -1)
  store <2 x float> %58, ptr %.ptr.1, align 8
  %59 = load double, ptr %3, align 8, !tbaa !44
  %60 = load double, ptr %4, align 8, !tbaa !44
  %61 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %59, double noundef %60, i32 noundef -1, i32 noundef -1)
  store <2 x float> %61, ptr %.ptr.2, align 16
  %62 = load double, ptr %1, align 8, !tbaa !44
  %63 = load double, ptr %4, align 8, !tbaa !44
  %64 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %62, double noundef %63, i32 noundef -1, i32 noundef -1)
  store <2 x float> %64, ptr %.ptr.3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #11
  %65 = load double, ptr %1, align 8, !tbaa !44
  %66 = load double, ptr %3, align 8, !tbaa !44
  %67 = fadd double %65, %66
  %68 = fmul double %67, 5.000000e-01
  %69 = load double, ptr %2, align 8, !tbaa !44
  %70 = load double, ptr %4, align 8, !tbaa !44
  %71 = fadd double %69, %70
  %72 = fmul double %71, 5.000000e-01
  %73 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %68, double noundef %72, i32 noundef -1, i32 noundef -1)
  store <2 x float> %73, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #11
  %74 = call <2 x float> @_ZL5ImMinRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2)
  store <2 x float> %74, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #11
  %75 = call <2 x float> @_ZL5ImMaxRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2)
  store <2 x float> %75, ptr %16, align 8
  call void @_ZN6ImRectC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #11
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(16) %14, i64 16, i1 false), !tbaa.struct !46
  call void @_ZN6ImRect6ExpandEf(ptr noundef nonnull align 4 dereferenceable(16) %17, float noundef 4.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #11
  %76 = extractelement <2 x float> %73, i64 0
  %77 = extractelement <2 x float> %73, i64 1
  br i1 %45, label %105, label %78

78:                                               ; preds = %.preheader157.preheader
  %79 = load float, ptr %14, align 4, !tbaa !48
  %80 = load float, ptr %12, align 16, !tbaa !50
  %81 = fcmp oeq float %79, %80
  br i1 %81, label %82, label %._crit_edge

._crit_edge:                                      ; preds = %78
  %.phi.trans.insert = getelementptr inbounds i8, ptr %12, i64 4
  %.pre = load float, ptr %.phi.trans.insert, align 4
  br label %88

82:                                               ; preds = %78
  %83 = getelementptr inbounds i8, ptr %14, i64 4
  %84 = load float, ptr %83, align 4, !tbaa !51
  %85 = getelementptr inbounds i8, ptr %12, i64 4
  %86 = load float, ptr %85, align 4
  %87 = fcmp oeq float %84, %86
  br i1 %87, label %.thread152, label %88

.thread152:                                       ; preds = %82
  store i32 6, ptr %18, align 16, !tbaa !52
  br label %99

88:                                               ; preds = %._crit_edge, %82
  %89 = phi float [ %.pre, %._crit_edge ], [ %86, %82 ]
  %90 = getelementptr inbounds i8, ptr %14, i64 8
  %91 = load float, ptr %90, align 4, !tbaa !53
  %92 = fcmp oeq float %91, %80
  %93 = getelementptr inbounds i8, ptr %14, i64 12
  %94 = load float, ptr %93, align 4
  %95 = fcmp oeq float %94, %89
  %96 = select i1 %92, i1 %95, i1 false
  %cond.fr150 = freeze i1 %96
  br i1 %cond.fr150, label %97, label %98

97:                                               ; preds = %88
  store i32 6, ptr %18, align 16, !tbaa !52
  br label %99

98:                                               ; preds = %88
  store i32 5, ptr %18, align 16, !tbaa !52
  br label %99

99:                                               ; preds = %98, %.thread152, %97
  %100 = phi i32 [ 6, %.thread152 ], [ 6, %97 ], [ 5, %98 ]
  %101 = phi i32 [ 5, %.thread152 ], [ 5, %97 ], [ 6, %98 ]
  %102 = getelementptr inbounds i8, ptr %18, i64 4
  store i32 %101, ptr %102, align 4, !tbaa !52
  %103 = getelementptr inbounds i8, ptr %18, i64 8
  store i32 %100, ptr %103, align 8, !tbaa !52
  %104 = getelementptr inbounds i8, ptr %18, i64 12
  store i32 %101, ptr %104, align 4, !tbaa !52
  br label %105

105:                                              ; preds = %99, %.preheader157.preheader
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #11
  %106 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %5)
  br i1 %106, label %107, label %109

107:                                              ; preds = %105
  %108 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN5ImGui17GetStyleColorVec4Ei(i32 noundef 0)
  br label %109

109:                                              ; preds = %105, %107
  %110 = phi ptr [ %108, %107 ], [ %5, %105 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(16) %110, i64 16, i1 false), !tbaa.struct !46
  %111 = call noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %19)
  %112 = getelementptr inbounds i8, ptr %19, i64 12
  %113 = load float, ptr %112, align 4, !tbaa !54
  %114 = fmul float %113, 2.500000e-01
  store float %114, ptr %112, align 4, !tbaa !54
  %115 = call noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %19)
  %116 = call noundef ptr @_ZN5ImGui16GetCurrentWindowEv()
  %117 = call noundef i32 @_ZN11ImGuiWindow5GetIDEi(ptr noundef nonnull align 8 dereferenceable(981) %116, i32 noundef %0)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #11
  store i8 0, ptr %20, align 1, !tbaa !56
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #11
  store i8 0, ptr %21, align 1, !tbaa !56
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #11
  %118 = fadd float %76, -4.000000e+00
  %119 = fadd float %77, -4.000000e+00
  %120 = fadd float %76, 4.000000e+00
  %121 = fadd float %77, 4.000000e+00
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %22, float noundef %118, float noundef %119, float noundef %120, float noundef %121)
  call void @_ZN5ImGui11KeepAliveIDEj(i32 noundef %117)
  br i1 %44, label %124, label %122

122:                                              ; preds = %109
  %123 = call noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %22, i32 noundef %117, ptr noundef nonnull %20, ptr noundef nonnull %21, i32 noundef 0)
  br label %124

124:                                              ; preds = %122, %109
  %125 = load i8, ptr %20, align 1, !tbaa !56, !range !57, !noundef !58
  %126 = trunc nuw i8 %125 to i1
  br i1 %126, label %130, label %127

127:                                              ; preds = %124
  %128 = load i8, ptr %21, align 1, !tbaa !56, !range !57, !noundef !58
  %129 = trunc nuw i8 %128 to i1
  %.not143 = xor i1 %129, true
  %brmerge = or i1 %45, %.not143
  br i1 %brmerge, label %132, label %131

130:                                              ; preds = %124
  br i1 %45, label %132, label %131

131:                                              ; preds = %127, %130
  call void @_ZN5ImGui14SetMouseCursorEi(i32 noundef 2)
  br label %132

132:                                              ; preds = %127, %131, %130
  %133 = load i8, ptr %21, align 1, !tbaa !56, !range !57, !noundef !58
  %134 = trunc nuw i8 %133 to i1
  br i1 %134, label %135, label %.loopexit156

135:                                              ; preds = %132
  %136 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %136, label %.preheader155.preheader, label %.loopexit156

.preheader155.preheader:                          ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #11
  %137 = call noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv()
  %138 = getelementptr inbounds i8, ptr %137, i64 240
  %139 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %138)
  store <2 x float> %139, ptr %23, align 8
  %140 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef -1, i32 noundef -1)
  %141 = extractvalue { double, double } %140, 0
  %142 = extractvalue { double, double } %140, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #11
  store double %142, ptr %2, align 8, !tbaa !44
  store double %141, ptr %1, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #11
  %143 = call noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv()
  %144 = getelementptr inbounds i8, ptr %143, i64 240
  %145 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.1, ptr noundef nonnull align 4 dereferenceable(8) %144)
  store <2 x float> %145, ptr %23, align 8
  %146 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef -1, i32 noundef -1)
  %147 = extractvalue { double, double } %146, 0
  %148 = extractvalue { double, double } %146, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #11
  store double %148, ptr %2, align 8, !tbaa !44
  store double %147, ptr %3, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #11
  %149 = call noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv()
  %150 = getelementptr inbounds i8, ptr %149, i64 240
  %151 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2, ptr noundef nonnull align 4 dereferenceable(8) %150)
  store <2 x float> %151, ptr %23, align 8
  %152 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef -1, i32 noundef -1)
  %153 = extractvalue { double, double } %152, 0
  %154 = extractvalue { double, double } %152, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #11
  store double %154, ptr %4, align 8, !tbaa !44
  store double %153, ptr %3, align 8, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #11
  %155 = call noundef nonnull align 8 dereferenceable(14280) ptr @_ZN5ImGui5GetIOEv()
  %156 = getelementptr inbounds i8, ptr %155, i64 240
  %157 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.3, ptr noundef nonnull align 4 dereferenceable(8) %156)
  store <2 x float> %157, ptr %23, align 8
  %158 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef -1, i32 noundef -1)
  %159 = extractvalue { double, double } %158, 0
  %160 = extractvalue { double, double } %158, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #11
  store double %160, ptr %4, align 8, !tbaa !44
  store double %159, ptr %1, align 8, !tbaa !44
  br label %.loopexit156

.loopexit156:                                     ; preds = %.preheader155.preheader, %135, %132
  %.0134 = phi i1 [ false, %135 ], [ false, %132 ], [ true, %.preheader155.preheader ]
  %161 = getelementptr inbounds i8, ptr %26, i64 8
  %162 = getelementptr inbounds i8, ptr %26, i64 24
  %163 = getelementptr inbounds i8, ptr %26, i64 16
  br label %189

164:                                              ; preds = %303
  call void @_ZN6ImPlot16PushPlotClipRectEf(float noundef 0.000000e+00)
  %165 = call noundef ptr @_ZN6ImPlot15GetPlotDrawListEv()
  %.not148 = xor i1 %.4, true
  %brmerge149 = or i1 %46, %.not148
  br i1 %brmerge149, label %304, label %.preheader.preheader

.preheader.preheader:                             ; preds = %164
  %166 = load double, ptr %1, align 8, !tbaa !44
  %167 = load double, ptr %2, align 8, !tbaa !44
  %168 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %166, double noundef %167, i32 noundef -1, i32 noundef -1)
  store <2 x float> %168, ptr %12, align 16
  %169 = load double, ptr %3, align 8, !tbaa !44
  %170 = load double, ptr %2, align 8, !tbaa !44
  %171 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %169, double noundef %170, i32 noundef -1, i32 noundef -1)
  store <2 x float> %171, ptr %.ptr.1, align 8
  %172 = load double, ptr %3, align 8, !tbaa !44
  %173 = load double, ptr %4, align 8, !tbaa !44
  %174 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %172, double noundef %173, i32 noundef -1, i32 noundef -1)
  store <2 x float> %174, ptr %.ptr.2, align 16
  %175 = load double, ptr %1, align 8, !tbaa !44
  %176 = load double, ptr %4, align 8, !tbaa !44
  %177 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %175, double noundef %176, i32 noundef -1, i32 noundef -1)
  store <2 x float> %177, ptr %.ptr.3, align 8
  %178 = load double, ptr %1, align 8, !tbaa !44
  %179 = load double, ptr %3, align 8, !tbaa !44
  %180 = fadd double %178, %179
  %181 = fmul double %180, 5.000000e-01
  %182 = load double, ptr %2, align 8, !tbaa !44
  %183 = load double, ptr %4, align 8, !tbaa !44
  %184 = fadd double %182, %183
  %185 = fmul double %184, 5.000000e-01
  %186 = call <2 x float> @_ZN6ImPlot12PlotToPixelsEddii(double noundef %181, double noundef %185, i32 noundef -1, i32 noundef -1)
  store <2 x float> %186, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #11
  %187 = call <2 x float> @_ZL5ImMinRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2)
  store <2 x float> %187, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #11
  %188 = call <2 x float> @_ZL5ImMaxRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2)
  store <2 x float> %188, ptr %29, align 8
  call void @_ZN6ImRectC2ERK6ImVec2S2_(ptr noundef nonnull align 4 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %29)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(16) %27, i64 16, i1 false), !tbaa.struct !46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #11
  br label %304

189:                                              ; preds = %.loopexit156, %303
  %indvars.iv = phi i64 [ 0, %.loopexit156 ], [ %indvars.iv.next, %303 ]
  %.1161 = phi i1 [ %.0134, %.loopexit156 ], [ %.4, %303 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #11
  %190 = getelementptr inbounds [4 x %struct.ImVec2], ptr %12, i64 0, i64 %indvars.iv
  %191 = load float, ptr %190, align 8, !tbaa !50
  %192 = fadd float %191, -4.000000e+00
  %193 = getelementptr inbounds i8, ptr %190, i64 4
  %194 = load float, ptr %193, align 4, !tbaa !59
  %195 = fadd float %194, -4.000000e+00
  %196 = fadd float %191, 4.000000e+00
  %197 = fadd float %194, 4.000000e+00
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %24, float noundef %192, float noundef %195, float noundef %196, float noundef %197)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(16) %24, i64 16, i1 false), !tbaa.struct !46
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #11
  %198 = trunc nuw nsw i64 %indvars.iv to i32
  %199 = add i32 %117, %198
  %200 = add i32 %199, 1
  call void @_ZN5ImGui11KeepAliveIDEj(i32 noundef %200)
  br i1 %44, label %203, label %201

201:                                              ; preds = %189
  %202 = call noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %22, i32 noundef %200, ptr noundef nonnull %20, ptr noundef nonnull %21, i32 noundef 0)
  br label %203

203:                                              ; preds = %201, %189
  %204 = load i8, ptr %20, align 1, !tbaa !56, !range !57, !noundef !58
  %205 = trunc nuw i8 %204 to i1
  br i1 %205, label %209, label %206

206:                                              ; preds = %203
  %207 = load i8, ptr %21, align 1, !tbaa !56, !range !57, !noundef !58
  %208 = trunc nuw i8 %207 to i1
  %.not144 = xor i1 %208, true
  %brmerge145 = or i1 %45, %.not144
  br i1 %brmerge145, label %213, label %210

209:                                              ; preds = %203
  br i1 %45, label %213, label %210

210:                                              ; preds = %206, %209
  %211 = getelementptr inbounds [4 x i32], ptr %18, i64 0, i64 %indvars.iv
  %212 = load i32, ptr %211, align 4, !tbaa !52
  call void @_ZN5ImGui14SetMouseCursorEi(i32 noundef %212)
  br label %213

213:                                              ; preds = %206, %210, %209
  %214 = load i8, ptr %21, align 1, !tbaa !56, !range !57, !noundef !58
  %215 = trunc nuw i8 %214 to i1
  br i1 %215, label %216, label %227

216:                                              ; preds = %213
  %217 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %217, label %218, label %227

218:                                              ; preds = %216
  %219 = call { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef -1, i32 noundef -1)
  %220 = extractvalue { double, double } %219, 0
  %221 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %indvars.iv
  %222 = load ptr, ptr %221, align 8, !tbaa !5
  store double %220, ptr %222, align 8, !tbaa !44
  %223 = call { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef -1, i32 noundef -1)
  %224 = extractvalue { double, double } %223, 1
  %225 = getelementptr inbounds [4 x ptr], ptr %11, i64 0, i64 %indvars.iv
  %226 = load ptr, ptr %225, align 8, !tbaa !5
  store double %224, ptr %226, align 8, !tbaa !44
  br label %227

227:                                              ; preds = %218, %216, %213
  %.2 = phi i1 [ true, %218 ], [ %.1161, %216 ], [ %.1161, %213 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %228 = and i64 %indvars.iv.next, 3
  %229 = getelementptr inbounds [4 x %struct.ImVec2], ptr %12, i64 0, i64 %228
  %230 = call <2 x float> @_ZL5ImMinRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %190, ptr noundef nonnull align 4 dereferenceable(8) %229)
  %231 = call <2 x float> @_ZL5ImMaxRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %190, ptr noundef nonnull align 4 dereferenceable(8) %229)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #11
  %232 = getelementptr inbounds [4 x i8], ptr @__const._ZN6ImPlot8DragRectEiPdS0_S0_S0_RK6ImVec4i.h, i64 0, i64 %indvars.iv
  %233 = load i8, ptr %232, align 1, !tbaa !56, !range !57, !noundef !58
  %234 = trunc nuw i8 %233 to i1
  %.sroa.023.0.vec.extract = extractelement <2 x float> %230, i64 0
  %.sroa.023.4.vec.extract = extractelement <2 x float> %230, i64 1
  %.sroa.018.0.vec.extract = extractelement <2 x float> %231, i64 0
  %.sroa.018.4.vec.extract = extractelement <2 x float> %231, i64 1
  %. = select i1 %234, float 4.000000e+00, float -4.000000e+00
  %.190 = select i1 %234, float -4.000000e+00, float 4.000000e+00
  %235 = fadd float %.sroa.023.0.vec.extract, %.
  %236 = fadd float %.sroa.023.4.vec.extract, %.190
  %237 = fadd float %.sroa.018.0.vec.extract, %.190
  %238 = fadd float %.sroa.018.4.vec.extract, %.
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %25, float noundef %235, float noundef %236, float noundef %237, float noundef %238)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(16) %25, i64 16, i1 false), !tbaa.struct !46
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #11
  %239 = add i32 %199, 5
  call void @_ZN5ImGui11KeepAliveIDEj(i32 noundef %239)
  br i1 %44, label %242, label %240

240:                                              ; preds = %227
  %241 = call noundef zeroext i1 @_ZN5ImGui14ButtonBehaviorERK6ImRectjPbS3_i(ptr noundef nonnull align 4 dereferenceable(16) %22, i32 noundef %239, ptr noundef nonnull %20, ptr noundef nonnull %21, i32 noundef 0)
  br label %242

242:                                              ; preds = %240, %227
  %243 = load i8, ptr %20, align 1, !tbaa !56, !range !57, !noundef !58
  %244 = trunc nuw i8 %243 to i1
  br i1 %244, label %248, label %245

245:                                              ; preds = %242
  %246 = load i8, ptr %21, align 1, !tbaa !56, !range !57, !noundef !58
  %247 = trunc nuw i8 %246 to i1
  %.not146 = xor i1 %247, true
  %brmerge147 = or i1 %45, %.not146
  br i1 %brmerge147, label %249, label %.sink.split

248:                                              ; preds = %242
  br i1 %45, label %249, label %.sink.split

.sink.split:                                      ; preds = %245, %248
  %.191 = select i1 %234, i32 3, i32 4
  call void @_ZN5ImGui14SetMouseCursorEi(i32 noundef %.191)
  br label %249

249:                                              ; preds = %.sink.split, %245, %248
  %250 = load i8, ptr %21, align 1, !tbaa !56, !range !57, !noundef !58
  %251 = trunc nuw i8 %250 to i1
  br i1 %251, label %252, label %259

252:                                              ; preds = %249
  %253 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %253, label %.sink.split184, label %259

.sink.split184:                                   ; preds = %252
  %254 = call { double, double } @_ZN6ImPlot15GetPlotMousePosEii(i32 noundef -1, i32 noundef -1)
  %255 = extractvalue { double, double } %254, 1
  %256 = extractvalue { double, double } %254, 0
  %.sink188 = select i1 %234, ptr %11, ptr %10
  %.sink185 = select i1 %234, double %255, double %256
  %257 = getelementptr inbounds [4 x ptr], ptr %.sink188, i64 0, i64 %indvars.iv
  %258 = load ptr, ptr %257, align 8, !tbaa !5
  store double %.sink185, ptr %258, align 8, !tbaa !44
  br label %259

259:                                              ; preds = %.sink.split184, %252, %249
  %.3 = phi i1 [ %.2, %252 ], [ %.2, %249 ], [ true, %.sink.split184 ]
  %260 = load i8, ptr %20, align 1, !tbaa !56, !range !57, !noundef !58
  %261 = trunc nuw i8 %260 to i1
  br i1 %261, label %262, label %303

262:                                              ; preds = %259
  %263 = call noundef zeroext i1 @_ZN5ImGui20IsMouseDoubleClickedEi(i32 noundef 0)
  br i1 %263, label %264, label %303

264:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #11
  call void @_ZN6ImPlot13GetPlotLimitsEii(ptr dead_on_unwind nonnull writable sret(%struct.ImPlotRect) align 8 %26, i32 noundef -1, i32 noundef -1)
  br i1 %234, label %265, label %282

265:                                              ; preds = %264
  %266 = getelementptr inbounds [4 x ptr], ptr %11, i64 0, i64 %indvars.iv
  %267 = load ptr, ptr %266, align 8, !tbaa !5
  %268 = icmp eq ptr %267, %2
  br i1 %268, label %269, label %273

269:                                              ; preds = %265
  %270 = load double, ptr %2, align 8, !tbaa !44
  %271 = load double, ptr %4, align 8, !tbaa !44
  %272 = fcmp olt double %270, %271
  br i1 %272, label %280, label %273

273:                                              ; preds = %269, %265
  %274 = icmp eq ptr %267, %4
  br i1 %274, label %275, label %279

275:                                              ; preds = %273
  %276 = load double, ptr %4, align 8, !tbaa !44
  %277 = load double, ptr %2, align 8, !tbaa !44
  %278 = fcmp olt double %276, %277
  br i1 %278, label %280, label %279

279:                                              ; preds = %275, %273
  br label %280

280:                                              ; preds = %269, %275, %279
  %.sink189 = phi ptr [ %162, %279 ], [ %163, %275 ], [ %163, %269 ]
  %281 = load double, ptr %.sink189, align 8, !tbaa !44
  store double %281, ptr %267, align 8, !tbaa !44
  br label %302

282:                                              ; preds = %264
  %283 = getelementptr inbounds [4 x ptr], ptr %10, i64 0, i64 %indvars.iv
  %284 = load ptr, ptr %283, align 8, !tbaa !5
  %285 = icmp eq ptr %284, %1
  br i1 %285, label %286, label %290

286:                                              ; preds = %282
  %287 = load double, ptr %1, align 8, !tbaa !44
  %288 = load double, ptr %3, align 8, !tbaa !44
  %289 = fcmp olt double %287, %288
  br i1 %289, label %296, label %290

290:                                              ; preds = %286, %282
  %291 = icmp eq ptr %284, %3
  br i1 %291, label %292, label %298

292:                                              ; preds = %290
  %293 = load double, ptr %3, align 8, !tbaa !44
  %294 = load double, ptr %1, align 8, !tbaa !44
  %295 = fcmp olt double %293, %294
  br i1 %295, label %296, label %298

296:                                              ; preds = %292, %286
  %297 = load double, ptr %26, align 8, !tbaa !60
  br label %300

298:                                              ; preds = %292, %290
  %299 = load double, ptr %161, align 8, !tbaa !63
  br label %300

300:                                              ; preds = %298, %296
  %301 = phi double [ %297, %296 ], [ %299, %298 ]
  store double %301, ptr %284, align 8, !tbaa !44
  br label %302

302:                                              ; preds = %300, %280
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #11
  br label %303

303:                                              ; preds = %302, %262, %259
  %.4 = phi i1 [ true, %302 ], [ %.3, %262 ], [ %.3, %259 ]
  %exitcond.not = icmp eq i64 %indvars.iv.next, 4
  br i1 %exitcond.not, label %164, label %189, !llvm.loop !64

304:                                              ; preds = %164, %.preheader.preheader
  %305 = getelementptr inbounds i8, ptr %14, i64 8
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %165, ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %305, i32 noundef %115, float noundef 0.000000e+00, i32 noundef 0)
  call void @_ZN10ImDrawList7AddRectERK6ImVec2S2_jfif(ptr noundef nonnull align 8 dereferenceable(196) %165, ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %305, i32 noundef %111, float noundef 0.000000e+00, i32 noundef 0, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #11
  br i1 %44, label %.critedge, label %306

306:                                              ; preds = %304
  br i1 %.4, label %.critedge2, label %307

307:                                              ; preds = %306
  %308 = call <2 x float> @_ZN5ImGui11GetMousePosEv()
  store <2 x float> %308, ptr %30, align 8
  %309 = call noundef zeroext i1 @_ZNK6ImRect8ContainsERK6ImVec2(ptr noundef nonnull align 4 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(8) %30)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #11
  br i1 %309, label %.loopexit.loopexit, label %.loopexit

.critedge2:                                       ; preds = %306
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #11
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %.critedge2, %307
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(196) %165, ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef 4.000000e+00, i32 noundef %111, i32 noundef 0)
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(196) %165, ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef 4.000000e+00, i32 noundef %111, i32 noundef 0)
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(196) %165, ptr noundef nonnull align 4 dereferenceable(8) %.ptr.1, float noundef 4.000000e+00, i32 noundef %111, i32 noundef 0)
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(196) %165, ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2, float noundef 4.000000e+00, i32 noundef %111, i32 noundef 0)
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(196) %165, ptr noundef nonnull align 4 dereferenceable(8) %.ptr.3, float noundef 4.000000e+00, i32 noundef %111, i32 noundef 0)
  br label %.loopexit

.critedge:                                        ; preds = %304
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #11
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.critedge, %307
  call void @_ZN6ImPlot15PopPlotClipRectEv()
  call void @_ZN5ImGui5PopIDEv()
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #11
  ret i1 %.4
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL5ImMinRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZL5ImMaxRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #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 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 = { 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 #9 = { 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 #10 = { noreturn nounwind }
attributes #11 = { 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 = !{!49, !23, i64 0}
!49 = !{!"_ZTS6ImRect", !22, i64 0, !22, i64 8}
!50 = !{!22, !23, i64 0}
!51 = !{!49, !23, i64 4}
!52 = !{!13, !13, i64 0}
!53 = !{!49, !23, i64 8}
!54 = !{!55, !23, i64 12}
!55 = !{!"_ZTS6ImVec4", !23, i64 0, !23, i64 4, !23, i64 8, !23, i64 12}
!56 = !{!28, !28, i64 0}
!57 = !{i8 0, i8 2}
!58 = !{}
!59 = !{!22, !23, i64 4}
!60 = !{!61, !45, i64 0}
!61 = !{!"_ZTS10ImPlotRect", !62, i64 0, !62, i64 16}
!62 = !{!"_ZTS11ImPlotRange", !45, i64 0, !45, i64 8}
!63 = !{!61, !45, i64 8}
!64 = distinct !{!64, !65}
!65 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass