; LLVM IR from Razakhel/RaZ :: extern/implot/implot.ll (ZN6ImPlot19ShowPlotContextMenuER10ImPlotPlot)

; 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.ImPlotContext = type { %struct.ImPool.30, %struct.ImPool.32, ptr, ptr, ptr, ptr, ptr, %struct.ImPlotTicker, %struct.ImPlotAnnotationCollection, %struct.ImPlotTagCollection, i8, [3 x i8], %struct.ImPlotStyle, %struct.ImVector.3, %struct.ImVector.4, %struct.ImPlotColormapData, %struct.ImVector.7, %struct.tm, %struct.ImVector.38, %struct.ImVector.38, %struct.ImVector.7, i32, i32, %struct.ImPlotNextPlotData, %struct.ImPlotNextItemData, %struct.ImPlotInputMap, i8, %struct.ImGuiTextBuffer, ptr, %struct.ImPool.39, ptr, ptr }
%struct.ImPool.30 = type { %struct.ImVector.31, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.31 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.2 }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImPool.32 = type { %struct.ImVector.33, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.33 = type { i32, i32, ptr }
%struct.ImPlotTicker = type <{ %struct.ImVector.34, %struct.ImGuiTextBuffer, %struct.ImVec2, %struct.ImVec2, i32, [4 x i8] }>
%struct.ImVector.34 = type { i32, i32, ptr }
%struct.ImVec2 = type { float, float }
%struct.ImPlotAnnotationCollection = type <{ %struct.ImVector.35, %struct.ImGuiTextBuffer, i32, [4 x i8] }>
%struct.ImVector.35 = type { i32, i32, ptr }
%struct.ImPlotTagCollection = type <{ %struct.ImVector.36, %struct.ImGuiTextBuffer, i32, [4 x i8] }>
%struct.ImVector.36 = type { i32, i32, ptr }
%struct.ImPlotStyle = type <{ float, i32, float, float, float, float, float, float, float, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, [21 x %struct.ImVec4], i32, i8, i8, i8, i8 }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImPlotColormapData = type <{ %struct.ImVector.6, %struct.ImVector.7, %struct.ImVector.7, %struct.ImVector.6, %struct.ImVector.7, %struct.ImVector.7, %struct.ImGuiTextBuffer, %struct.ImVector.7, %struct.ImVector.37, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.37 = type { i32, i32, ptr }
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, ptr }
%struct.ImVector.38 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImPlotNextPlotData = type { [6 x i32], [6 x %struct.ImPlotRange], [6 x i8], [6 x i8], [6 x ptr], [6 x ptr] }
%struct.ImPlotRange = type { double, double }
%struct.ImPlotNextItemData = type { [5 x %struct.ImVec4], float, i32, float, float, float, float, float, float, float, i8, i8, i8, i8, i8, i8, i32 }
%struct.ImPlotInputMap = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float }
%struct.ImGuiTextBuffer = type { %struct.ImVector.20 }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImPool.39 = type { %struct.ImVector.40, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.40 = type { i32, i32, ptr }
%struct.ImPlotPlot = type <{ i32, i32, i32, i32, i32, [4 x i8], [6 x %struct.ImPlotAxis], %struct.ImGuiTextBuffer, %struct.ImPlotItemGroup, i32, i32, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImVec2, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, [3 x i8] }>
%struct.ImPlotAxis = type <{ i32, i32, i32, [4 x i8], %struct.ImPlotRange, i32, i32, %struct.ImPlotRange, ptr, %struct.ImPlotRange, %struct.ImPlotRange, %struct.ImPlotTicker, ptr, ptr, [16 x i8], ptr, ptr, ptr, i32, [4 x i8], %struct.ImPlotTime, %struct.ImPlotTime, ptr, ptr, ptr, float, float, double, double, double, float, float, %struct.ImRect, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, [4 x i8] }>
%struct.ImPlotTime = type <{ i64, i32, [4 x i8] }>
%struct.ImPlotItemGroup = type <{ i32, [4 x i8], %struct.ImPlotLegend, %struct.ImPool.42, i32, [4 x i8] }>
%struct.ImPlotLegend = type <{ i32, i32, i32, i32, %struct.ImVector.7, %struct.ImGuiTextBuffer, %struct.ImRect, i8, i8, i8, [5 x i8] }>
%struct.ImPool.42 = type { %struct.ImVector.43, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.43 = type { i32, i32, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImPlotSubplot = type <{ i32, i32, i32, [4 x i8], %struct.ImPlotItemGroup, i32, i32, i32, %struct.ImRect, %struct.ImRect, %struct.ImVec2, [4 x i8], %struct.ImVector.40, %struct.ImVector.40, %struct.ImVector.14, %struct.ImVector.14, %struct.ImVector.44, %struct.ImVector.44, [2 x float], i8, i8, [6 x i8] }>
%struct.ImVector.14 = type { i32, i32, ptr }
%struct.ImVector.44 = type { i32, i32, ptr }

@GImPlot = external dso_local global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [9 x i8], align 1

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

declare noundef i32 @_Z14ImFormatStringPcmPKcz(ptr noundef, i64 noundef, ptr noundef, ...) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372), ptr noundef, i1 noundef zeroext) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6ImPlot21BeginDisabledControlsEb(i1 noundef zeroext) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6ImPlot19EndDisabledControlsEb(i1 noundef zeroext) #5

declare noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef, i1 noundef zeroext) #3

declare void @_ZN5ImGui9SeparatorEv() #3

declare void @_ZN5ImGui7EndMenuEv() #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ImPlot21ShowLegendContextMenuER12ImPlotLegendb(ptr noundef nonnull align 8 dereferenceable(67), i1 noundef zeroext) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot23ShowSubplotsContextMenuER13ImPlotSubplot(ptr noundef nonnull align 8 dereferenceable(306)) #4

declare noundef zeroext i1 @_ZN5ImGui8MenuItemEPKcS1_bb(ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL10ImFlipFlagIi19ImPlotSubplotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot19ShowPlotContextMenuER10ImPlotPlot(ptr noundef nonnull align 8 dereferenceable(2533) %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca i8, align 1
  %5 = alloca [16 x i8], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #6
  %11 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.ImPlotContext, ptr %11, i32 0, i32 4
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.ImPlotPlot, ptr %14, i32 0, i32 8
  %16 = icmp eq ptr %13, %15
  %17 = zext i1 %16 to i8
  store i8 %17, ptr %3, align 1, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.ImPlotPlot, ptr %18, i32 0, i32 1
  %20 = load i32, ptr %19, align 4, !tbaa !45
  %21 = call noundef zeroext i1 @_ZL9ImHasFlagIi12ImPlotFlags_EbT_T0_(i32 noundef %20, i32 noundef 256)
  %22 = zext i1 %21 to i8
  store i8 %22, ptr %4, align 1, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !52
  br label %23

23:                                               ; preds = %75, %1
  %24 = load i32, ptr %6, align 4, !tbaa !52
  %25 = icmp slt i32 %24, 3
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %78

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = load i32, ptr %6, align 4, !tbaa !52
  %30 = call noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5XAxisEi(ptr noundef nonnull align 8 dereferenceable(2533) %28, i32 noundef %29)
  store ptr %30, ptr %8, align 8, !tbaa !5
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImPlotAxis, ptr %31, i32 0, i32 42
  %33 = load i8, ptr %32, align 4, !tbaa !53, !range !58, !noundef !59
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %38

35:                                               ; preds = %27
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %36)
  br i1 %37, label %39, label %38

38:                                               ; preds = %35, %27
  store i32 4, ptr %7, align 4
  br label %72

39:                                               ; preds = %35
  %40 = load i32, ptr %6, align 4, !tbaa !52
  call void @_ZN5ImGui6PushIDEi(i32 noundef %40)
  %41 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  %42 = load i32, ptr %6, align 4, !tbaa !52
  %43 = icmp eq i32 %42, 0
  %44 = zext i1 %43 to i64
  %45 = select i1 %43, ptr @.str.120, ptr @.str.121
  %46 = load i32, ptr %6, align 4, !tbaa !52
  %47 = add nsw i32 %46, 1
  %48 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %41, i64 noundef 15, ptr noundef %45, i32 noundef %47)
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %49)
  br i1 %50, label %51, label %55

51:                                               ; preds = %39
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %52, ptr noundef nonnull align 8 dereferenceable(372) %53)
  br label %57

55:                                               ; preds = %39
  %56 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  br label %57

57:                                               ; preds = %55, %51
  %58 = phi ptr [ %54, %51 ], [ %56, %55 ]
  %59 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %58, i1 noundef zeroext true)
  br i1 %59, label %60, label %71

60:                                               ; preds = %57
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = load i8, ptr %4, align 1, !tbaa !44, !range !58, !noundef !59
  %63 = trunc i8 %62 to i1
  br i1 %63, label %64, label %68

64:                                               ; preds = %60
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ImPlotAxis, ptr %65, i32 0, i32 8
  %67 = load ptr, ptr %66, align 8, !tbaa !60
  br label %69

68:                                               ; preds = %60
  br label %69

69:                                               ; preds = %68, %64
  %70 = phi ptr [ %67, %64 ], [ null, %68 ]
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %61, ptr noundef %70, i1 noundef zeroext false)
  call void @_ZN5ImGui7EndMenuEv()
  br label %71

71:                                               ; preds = %69, %57
  call void @_ZN5ImGui5PopIDEv()
  store i32 0, ptr %7, align 4
  br label %72

72:                                               ; preds = %71, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %73 = load i32, ptr %7, align 4
  switch i32 %73, label %265 [
    i32 0, label %74
    i32 4, label %75
  ]

74:                                               ; preds = %72
  br label %75

75:                                               ; preds = %74, %72
  %76 = load i32, ptr %6, align 4, !tbaa !52
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %6, align 4, !tbaa !52
  br label %23, !llvm.loop !61

78:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !52
  br label %79

79:                                               ; preds = %131, %78
  %80 = load i32, ptr %9, align 4, !tbaa !52
  %81 = icmp slt i32 %80, 3
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %134

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = load i32, ptr %9, align 4, !tbaa !52
  %86 = call noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5YAxisEi(ptr noundef nonnull align 8 dereferenceable(2533) %84, i32 noundef %85)
  store ptr %86, ptr %10, align 8, !tbaa !5
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ImPlotAxis, ptr %87, i32 0, i32 42
  %89 = load i8, ptr %88, align 4, !tbaa !53, !range !58, !noundef !59
  %90 = trunc i8 %89 to i1
  br i1 %90, label %91, label %94

91:                                               ; preds = %83
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %92)
  br i1 %93, label %95, label %94

94:                                               ; preds = %91, %83
  store i32 7, ptr %7, align 4
  br label %128

95:                                               ; preds = %91
  %96 = load i32, ptr %9, align 4, !tbaa !52
  call void @_ZN5ImGui6PushIDEi(i32 noundef %96)
  %97 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  %98 = load i32, ptr %9, align 4, !tbaa !52
  %99 = icmp eq i32 %98, 0
  %100 = zext i1 %99 to i64
  %101 = select i1 %99, ptr @.str.122, ptr @.str.123
  %102 = load i32, ptr %9, align 4, !tbaa !52
  %103 = add nsw i32 %102, 1
  %104 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef %97, i64 noundef 15, ptr noundef %101, i32 noundef %103)
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %105)
  br i1 %106, label %107, label %111

107:                                              ; preds = %95
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %108, ptr noundef nonnull align 8 dereferenceable(372) %109)
  br label %113

111:                                              ; preds = %95
  %112 = getelementptr inbounds [16 x i8], ptr %5, i64 0, i64 0
  br label %113

113:                                              ; preds = %111, %107
  %114 = phi ptr [ %110, %107 ], [ %112, %111 ]
  %115 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %114, i1 noundef zeroext true)
  br i1 %115, label %116, label %127

116:                                              ; preds = %113
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load i8, ptr %4, align 1, !tbaa !44, !range !58, !noundef !59
  %119 = trunc i8 %118 to i1
  br i1 %119, label %120, label %124

120:                                              ; preds = %116
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ImPlotAxis, ptr %121, i32 0, i32 8
  %123 = load ptr, ptr %122, align 8, !tbaa !60
  br label %125

124:                                              ; preds = %116
  br label %125

125:                                              ; preds = %124, %120
  %126 = phi ptr [ %123, %120 ], [ null, %124 ]
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %117, ptr noundef %126, i1 noundef zeroext false)
  call void @_ZN5ImGui7EndMenuEv()
  br label %127

127:                                              ; preds = %125, %113
  call void @_ZN5ImGui5PopIDEv()
  store i32 0, ptr %7, align 4
  br label %128

128:                                              ; preds = %127, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %129 = load i32, ptr %7, align 4
  switch i32 %129, label %265 [
    i32 0, label %130
    i32 7, label %131
  ]

130:                                              ; preds = %128
  br label %131

131:                                              ; preds = %130, %128
  %132 = load i32, ptr %9, align 4, !tbaa !52
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %9, align 4, !tbaa !52
  br label %79, !llvm.loop !63

134:                                              ; preds = %82
  call void @_ZN5ImGui9SeparatorEv()
  %135 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.ImPlotContext, ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct.ImPlotItemGroup, ptr %137, i32 0, i32 2
  %139 = getelementptr inbounds %struct.ImPlotLegend, ptr %138, i32 0, i32 0
  %140 = load i32, ptr %139, align 8, !tbaa !64
  %141 = call noundef zeroext i1 @_ZL9ImHasFlagIi18ImPlotLegendFlags_EbT_T0_(i32 noundef %140, i32 noundef 8)
  br i1 %141, label %189, label %142

142:                                              ; preds = %134
  %143 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef @.str.124, i1 noundef zeroext true)
  br i1 %143, label %144, label %188

144:                                              ; preds = %142
  %145 = load i8, ptr %3, align 1, !tbaa !44, !range !58, !noundef !59
  %146 = trunc i8 %145 to i1
  br i1 %146, label %147, label %161

147:                                              ; preds = %144
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.ImPlotPlot, ptr %148, i32 0, i32 8
  %150 = getelementptr inbounds %struct.ImPlotItemGroup, ptr %149, i32 0, i32 2
  %151 = load ptr, ptr %2, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.ImPlotPlot, ptr %151, i32 0, i32 1
  %153 = load i32, ptr %152, align 4, !tbaa !45
  %154 = call noundef zeroext i1 @_ZL9ImHasFlagIi12ImPlotFlags_EbT_T0_(i32 noundef %153, i32 noundef 2)
  %155 = xor i1 %154, true
  %156 = call noundef zeroext i1 @_ZN6ImPlot21ShowLegendContextMenuER12ImPlotLegendb(ptr noundef nonnull align 8 dereferenceable(67) %150, i1 noundef zeroext %155)
  br i1 %156, label %157, label %160

157:                                              ; preds = %147
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.ImPlotPlot, ptr %158, i32 0, i32 1
  call void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %159, i32 noundef 2)
  br label %160

160:                                              ; preds = %157, %147
  br label %187

161:                                              ; preds = %144
  %162 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.ImPlotContext, ptr %162, i32 0, i32 3
  %164 = load ptr, ptr %163, align 8, !tbaa !65
  %165 = icmp ne ptr %164, null
  br i1 %165, label %166, label %186

166:                                              ; preds = %161
  %167 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.ImPlotContext, ptr %167, i32 0, i32 3
  %169 = load ptr, ptr %168, align 8, !tbaa !65
  %170 = getelementptr inbounds %struct.ImPlotSubplot, ptr %169, i32 0, i32 4
  %171 = getelementptr inbounds %struct.ImPlotItemGroup, ptr %170, i32 0, i32 2
  %172 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.ImPlotContext, ptr %172, i32 0, i32 3
  %174 = load ptr, ptr %173, align 8, !tbaa !65
  %175 = getelementptr inbounds %struct.ImPlotSubplot, ptr %174, i32 0, i32 1
  %176 = load i32, ptr %175, align 4, !tbaa !66
  %177 = call noundef zeroext i1 @_ZL9ImHasFlagIi19ImPlotSubplotFlags_EbT_T0_(i32 noundef %176, i32 noundef 2)
  %178 = xor i1 %177, true
  %179 = call noundef zeroext i1 @_ZN6ImPlot21ShowLegendContextMenuER12ImPlotLegendb(ptr noundef nonnull align 8 dereferenceable(67) %171, i1 noundef zeroext %178)
  br i1 %179, label %180, label %185

180:                                              ; preds = %166
  %181 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.ImPlotContext, ptr %181, i32 0, i32 3
  %183 = load ptr, ptr %182, align 8, !tbaa !65
  %184 = getelementptr inbounds %struct.ImPlotSubplot, ptr %183, i32 0, i32 1
  call void @_ZL10ImFlipFlagIi19ImPlotSubplotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %184, i32 noundef 2)
  br label %185

185:                                              ; preds = %180, %166
  br label %186

186:                                              ; preds = %185, %161
  br label %187

187:                                              ; preds = %186, %160
  call void @_ZN5ImGui7EndMenuEv()
  br label %188

188:                                              ; preds = %187, %142
  br label %189

189:                                              ; preds = %188, %134
  %190 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef @.str.115, i1 noundef zeroext true)
  br i1 %190, label %191, label %245

191:                                              ; preds = %189
  %192 = load ptr, ptr %2, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.ImPlotPlot, ptr %192, i32 0, i32 1
  %194 = load i32, ptr %193, align 4, !tbaa !45
  %195 = call noundef zeroext i1 @_ZL9ImHasFlagIi12ImPlotFlags_EbT_T0_(i32 noundef %194, i32 noundef 256)
  %196 = call noundef zeroext i1 @_ZN5ImGui8MenuItemEPKcS1_bb(ptr noundef @.str.125, ptr noundef null, i1 noundef zeroext %195, i1 noundef zeroext true)
  br i1 %196, label %197, label %200

197:                                              ; preds = %191
  %198 = load ptr, ptr %2, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.ImPlotPlot, ptr %198, i32 0, i32 1
  call void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %199, i32 noundef 256)
  br label %200

200:                                              ; preds = %197, %191
  %201 = load ptr, ptr %2, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.ImPlotPlot, ptr %201, i32 0, i32 1
  %203 = load i32, ptr %202, align 4, !tbaa !45
  %204 = call noundef zeroext i1 @_ZL9ImHasFlagIi12ImPlotFlags_EbT_T0_(i32 noundef %203, i32 noundef 32)
  %205 = xor i1 %204, true
  %206 = call noundef zeroext i1 @_ZN5ImGui8MenuItemEPKcS1_bb(ptr noundef @.str.126, ptr noundef null, i1 noundef zeroext %205, i1 noundef zeroext true)
  br i1 %206, label %207, label %210

207:                                              ; preds = %200
  %208 = load ptr, ptr %2, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.ImPlotPlot, ptr %208, i32 0, i32 1
  call void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %209, i32 noundef 32)
  br label %210

210:                                              ; preds = %207, %200
  %211 = load ptr, ptr %2, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.ImPlotPlot, ptr %211, i32 0, i32 17
  %213 = load i32, ptr %212, align 8, !tbaa !70
  %214 = icmp eq i32 %213, -1
  call void @_ZN6ImPlot21BeginDisabledControlsEb(i1 noundef zeroext %214)
  %215 = load ptr, ptr %2, align 8, !tbaa !5
  %216 = call noundef zeroext i1 @_ZNK10ImPlotPlot8HasTitleEv(ptr noundef nonnull align 8 dereferenceable(2533) %215)
  %217 = call noundef zeroext i1 @_ZN5ImGui8MenuItemEPKcS1_bb(ptr noundef @.str.116, ptr noundef null, i1 noundef zeroext %216, i1 noundef zeroext true)
  br i1 %217, label %218, label %221

218:                                              ; preds = %210
  %219 = load ptr, ptr %2, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.ImPlotPlot, ptr %219, i32 0, i32 1
  call void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %220, i32 noundef 1)
  br label %221

221:                                              ; preds = %218, %210
  %222 = load ptr, ptr %2, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.ImPlotPlot, ptr %222, i32 0, i32 17
  %224 = load i32, ptr %223, align 8, !tbaa !70
  %225 = icmp eq i32 %224, -1
  call void @_ZN6ImPlot19EndDisabledControlsEb(i1 noundef zeroext %225)
  %226 = load ptr, ptr %2, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.ImPlotPlot, ptr %226, i32 0, i32 1
  %228 = load i32, ptr %227, align 4, !tbaa !45
  %229 = call noundef zeroext i1 @_ZL9ImHasFlagIi12ImPlotFlags_EbT_T0_(i32 noundef %228, i32 noundef 4)
  %230 = xor i1 %229, true
  %231 = call noundef zeroext i1 @_ZN5ImGui8MenuItemEPKcS1_bb(ptr noundef @.str.127, ptr noundef null, i1 noundef zeroext %230, i1 noundef zeroext true)
  br i1 %231, label %232, label %235

232:                                              ; preds = %221
  %233 = load ptr, ptr %2, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.ImPlotPlot, ptr %233, i32 0, i32 1
  call void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %234, i32 noundef 4)
  br label %235

235:                                              ; preds = %232, %221
  %236 = load ptr, ptr %2, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.ImPlotPlot, ptr %236, i32 0, i32 1
  %238 = load i32, ptr %237, align 4, !tbaa !45
  %239 = call noundef zeroext i1 @_ZL9ImHasFlagIi12ImPlotFlags_EbT_T0_(i32 noundef %238, i32 noundef 512)
  %240 = call noundef zeroext i1 @_ZN5ImGui8MenuItemEPKcS1_bb(ptr noundef @.str.20, ptr noundef null, i1 noundef zeroext %239, i1 noundef zeroext true)
  br i1 %240, label %241, label %244

241:                                              ; preds = %235
  %242 = load ptr, ptr %2, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.ImPlotPlot, ptr %242, i32 0, i32 1
  call void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %243, i32 noundef 512)
  br label %244

244:                                              ; preds = %241, %235
  call void @_ZN5ImGui7EndMenuEv()
  br label %245

245:                                              ; preds = %244, %189
  %246 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.ImPlotContext, ptr %246, i32 0, i32 3
  %248 = load ptr, ptr %247, align 8, !tbaa !65
  %249 = icmp ne ptr %248, null
  br i1 %249, label %250, label %264

250:                                              ; preds = %245
  %251 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.ImPlotContext, ptr %251, i32 0, i32 2
  %253 = load ptr, ptr %252, align 8, !tbaa !71
  %254 = getelementptr inbounds %struct.ImPlotPlot, ptr %253, i32 0, i32 1
  %255 = load i32, ptr %254, align 4, !tbaa !45
  %256 = call noundef zeroext i1 @_ZL9ImHasFlagIi19ImPlotSubplotFlags_EbT_T0_(i32 noundef %255, i32 noundef 4)
  br i1 %256, label %264, label %257

257:                                              ; preds = %250
  call void @_ZN5ImGui9SeparatorEv()
  %258 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef @.str.128, i1 noundef zeroext true)
  br i1 %258, label %259, label %263

259:                                              ; preds = %257
  %260 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.ImPlotContext, ptr %260, i32 0, i32 3
  %262 = load ptr, ptr %261, align 8, !tbaa !65
  call void @_ZN6ImPlot23ShowSubplotsContextMenuER13ImPlotSubplot(ptr noundef nonnull align 8 dereferenceable(306) %262)
  call void @_ZN5ImGui7EndMenuEv()
  br label %263

263:                                              ; preds = %259, %257
  br label %264

264:                                              ; preds = %263, %250, %245
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #6
  ret void

265:                                              ; preds = %128, %72
  unreachable
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5XAxisEi(ptr noundef nonnull align 8 dereferenceable(2533), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372)) #5 align 2

declare void @_ZN5ImGui6PushIDEi(i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533), ptr noundef nonnull align 8 dereferenceable(372)) #2 align 2

declare void @_ZN5ImGui5PopIDEv() #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5YAxisEi(ptr noundef nonnull align 8 dereferenceable(2533), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK10ImPlotPlot8HasTitleEv(ptr noundef nonnull align 8 dereferenceable(2533)) #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 96}
!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 = !{!28, !28, i64 0}
!45 = !{!46, !13, i64 4}
!46 = !{!"_ZTS10ImPlotPlot", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !7, i64 24, !20, i64 2280, !47, i64 2296, !13, i64 2424, !13, i64 2428, !49, i64 2432, !49, i64 2448, !49, i64 2464, !49, i64 2480, !49, i64 2496, !22, i64 2512, !13, i64 2520, !28, i64 2524, !28, i64 2525, !28, i64 2526, !28, i64 2527, !28, i64 2528, !28, i64 2529, !28, i64 2530, !28, i64 2531, !28, i64 2532}
!47 = !{!"_ZTS15ImPlotItemGroup", !13, i64 0, !48, i64 8, !50, i64 80, !13, i64 120}
!48 = !{!"_ZTS12ImPlotLegend", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !34, i64 16, !20, i64 32, !49, i64 48, !28, i64 64, !28, i64 65, !28, i64 66}
!49 = !{!"_ZTS6ImRect", !22, i64 0, !22, i64 8}
!50 = !{!"_ZTS6ImPoolI10ImPlotItemE", !51, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!51 = !{!"_ZTS8ImVectorI10ImPlotItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!52 = !{!13, !13, i64 0}
!53 = !{!54, !28, i64 364}
!54 = !{!"_ZTS10ImPlotAxis", !13, i64 0, !13, i64 4, !13, i64 8, !55, i64 16, !13, i64 32, !13, i64 36, !55, i64 40, !6, i64 56, !55, i64 64, !55, i64 80, !18, i64 96, !6, i64 152, !6, i64 160, !7, i64 168, !6, i64 184, !6, i64 192, !6, i64 200, !13, i64 208, !57, i64 216, !57, i64 232, !6, i64 248, !6, i64 256, !6, i64 264, !23, i64 272, !23, i64 276, !56, i64 280, !56, i64 288, !56, i64 296, !23, i64 304, !23, i64 308, !49, i64 312, !13, i64 328, !13, i64 332, !13, i64 336, !13, i64 340, !13, i64 344, !13, i64 348, !13, i64 352, !13, i64 356, !13, i64 360, !28, i64 364, !28, i64 365, !28, i64 366, !28, i64 367, !28, i64 368, !28, i64 369, !28, i64 370, !28, i64 371}
!55 = !{!"_ZTS11ImPlotRange", !56, i64 0, !56, i64 8}
!56 = !{!"double", !7, i64 0}
!57 = !{!"_ZTS10ImPlotTime", !37, i64 0, !13, i64 8}
!58 = !{i8 0, i8 2}
!59 = !{}
!60 = !{!54, !6, i64 56}
!61 = distinct !{!61, !62}
!62 = !{!"llvm.loop.mustprogress"}
!63 = distinct !{!63, !62}
!64 = !{!47, !13, i64 8}
!65 = !{!10, !6, i64 88}
!66 = !{!67, !13, i64 4}
!67 = !{!"_ZTS13ImPlotSubplot", !13, i64 0, !13, i64 4, !13, i64 8, !47, i64 16, !13, i64 144, !13, i64 148, !13, i64 152, !49, i64 156, !49, i64 172, !22, i64 188, !43, i64 200, !43, i64 216, !68, i64 232, !68, i64 248, !69, i64 264, !69, i64 280, !7, i64 296, !28, i64 304, !28, i64 305}
!68 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!69 = !{!"_ZTS8ImVectorI11ImPlotRangeE", !13, i64 0, !13, i64 4, !6, i64 8}
!70 = !{!46, !13, i64 2520}
!71 = !{!10, !6, i64 80}


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

@GImPlot = external dso_local local_unnamed_addr global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [9 x i8], align 1

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

declare noundef i32 @_Z14ImFormatStringPcmPKcz(ptr noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372), ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6ImPlot21BeginDisabledControlsEb(i1 noundef zeroext) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6ImPlot19EndDisabledControlsEb(i1 noundef zeroext) local_unnamed_addr #5

declare noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

declare void @_ZN5ImGui9SeparatorEv() local_unnamed_addr #3

declare void @_ZN5ImGui7EndMenuEv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ImPlot21ShowLegendContextMenuER12ImPlotLegendb(ptr noundef nonnull align 8 dereferenceable(67), i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot23ShowSubplotsContextMenuER13ImPlotSubplot(ptr noundef nonnull align 8 dereferenceable(306)) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN5ImGui8MenuItemEPKcS1_bb(ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL10ImFlipFlagIi19ImPlotSubplotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot19ShowPlotContextMenuER10ImPlotPlot(ptr noundef nonnull align 8 dereferenceable(2533) %0) local_unnamed_addr #4 {
  %2 = alloca [16 x i8], align 16
  %3 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 96
  %5 = load ptr, ptr %4, align 8, !tbaa !9
  %6 = getelementptr inbounds i8, ptr %0, i64 2296
  %7 = icmp eq ptr %5, %6
  %8 = getelementptr inbounds i8, ptr %0, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !44
  %10 = tail call noundef zeroext i1 @_ZL9ImHasFlagIi12ImPlotFlags_EbT_T0_(i32 noundef %9, i32 noundef 256)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %2, i8 0, i64 16, i1 false)
  %11 = tail call noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5XAxisEi(ptr noundef nonnull align 8 dereferenceable(2533) %0, i32 noundef 0)
  %12 = getelementptr inbounds i8, ptr %11, i64 364
  %13 = load i8, ptr %12, align 4, !tbaa !51, !range !56, !noundef !57
  %14 = trunc nuw i8 %13 to i1
  br i1 %10, label %.split.us.preheader, label %.split.preheader

.split.preheader:                                 ; preds = %1
  br i1 %14, label %122, label %.split.1

.split.us.preheader:                              ; preds = %1
  br i1 %14, label %15, label %.split.us.1

15:                                               ; preds = %.split.us.preheader
  %16 = tail call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %11)
  br i1 %16, label %17, label %.split.us.1

17:                                               ; preds = %15
  tail call void @_ZN5ImGui6PushIDEi(i32 noundef 0)
  %18 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %2, i64 noundef 15, ptr noundef nonnull @.str.120, i32 noundef 1)
  %19 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %11)
  br i1 %19, label %20, label %22

20:                                               ; preds = %17
  %21 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %0, ptr noundef nonnull align 8 dereferenceable(372) %11)
  br label %22

22:                                               ; preds = %20, %17
  %23 = phi ptr [ %21, %20 ], [ %2, %17 ]
  %24 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %23, i1 noundef zeroext true)
  br i1 %24, label %25, label %28

25:                                               ; preds = %22
  %26 = getelementptr inbounds i8, ptr %11, i64 56
  %27 = load ptr, ptr %26, align 8
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %11, ptr noundef %27, i1 noundef zeroext false)
  call void @_ZN5ImGui7EndMenuEv()
  br label %28

28:                                               ; preds = %25, %22
  call void @_ZN5ImGui5PopIDEv()
  br label %.split.us.1

.split.us.1:                                      ; preds = %28, %15, %.split.us.preheader
  %29 = call noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5XAxisEi(ptr noundef nonnull align 8 dereferenceable(2533) %0, i32 noundef 1)
  %30 = getelementptr inbounds i8, ptr %29, i64 364
  %31 = load i8, ptr %30, align 4, !tbaa !51, !range !56, !noundef !57
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %33, label %.split.us.2

33:                                               ; preds = %.split.us.1
  %34 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %29)
  br i1 %34, label %35, label %.split.us.2

35:                                               ; preds = %33
  call void @_ZN5ImGui6PushIDEi(i32 noundef 1)
  %36 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %2, i64 noundef 15, ptr noundef nonnull @.str.121, i32 noundef 2)
  %37 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %29)
  br i1 %37, label %38, label %40

38:                                               ; preds = %35
  %39 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %0, ptr noundef nonnull align 8 dereferenceable(372) %29)
  br label %40

40:                                               ; preds = %38, %35
  %41 = phi ptr [ %39, %38 ], [ %2, %35 ]
  %42 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %41, i1 noundef zeroext true)
  br i1 %42, label %43, label %46

43:                                               ; preds = %40
  %44 = getelementptr inbounds i8, ptr %29, i64 56
  %45 = load ptr, ptr %44, align 8
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %29, ptr noundef %45, i1 noundef zeroext false)
  call void @_ZN5ImGui7EndMenuEv()
  br label %46

46:                                               ; preds = %43, %40
  call void @_ZN5ImGui5PopIDEv()
  br label %.split.us.2

.split.us.2:                                      ; preds = %46, %33, %.split.us.1
  %47 = call noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5XAxisEi(ptr noundef nonnull align 8 dereferenceable(2533) %0, i32 noundef 2)
  %48 = getelementptr inbounds i8, ptr %47, i64 364
  %49 = load i8, ptr %48, align 4, !tbaa !51, !range !56, !noundef !57
  %50 = trunc nuw i8 %49 to i1
  br i1 %50, label %51, label %.preheader.split53.us.preheader

51:                                               ; preds = %.split.us.2
  %52 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %47)
  br i1 %52, label %53, label %.preheader.split53.us.preheader

53:                                               ; preds = %51
  call void @_ZN5ImGui6PushIDEi(i32 noundef 2)
  %54 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %2, i64 noundef 15, ptr noundef nonnull @.str.121, i32 noundef 3)
  %55 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %47)
  br i1 %55, label %56, label %58

56:                                               ; preds = %53
  %57 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %0, ptr noundef nonnull align 8 dereferenceable(372) %47)
  br label %58

58:                                               ; preds = %56, %53
  %59 = phi ptr [ %57, %56 ], [ %2, %53 ]
  %60 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %59, i1 noundef zeroext true)
  br i1 %60, label %61, label %64

61:                                               ; preds = %58
  %62 = getelementptr inbounds i8, ptr %47, i64 56
  %63 = load ptr, ptr %62, align 8
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %47, ptr noundef %63, i1 noundef zeroext false)
  call void @_ZN5ImGui7EndMenuEv()
  br label %64

64:                                               ; preds = %61, %58
  call void @_ZN5ImGui5PopIDEv()
  br label %.preheader.split53.us.preheader

.preheader.split53.preheader:                     ; preds = %165, %154, %.split.2
  %65 = call noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5YAxisEi(ptr noundef nonnull align 8 dereferenceable(2533) %0, i32 noundef 0)
  %66 = getelementptr inbounds i8, ptr %65, i64 364
  %67 = load i8, ptr %66, align 4, !tbaa !51, !range !56, !noundef !57
  %68 = trunc nuw i8 %67 to i1
  br i1 %68, label %172, label %.preheader.split53.1

.preheader.split53.us.preheader:                  ; preds = %.split.us.2, %51, %64
  %69 = call noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5YAxisEi(ptr noundef nonnull align 8 dereferenceable(2533) %0, i32 noundef 0)
  %70 = getelementptr inbounds i8, ptr %69, i64 364
  %71 = load i8, ptr %70, align 4, !tbaa !51, !range !56, !noundef !57
  %72 = trunc nuw i8 %71 to i1
  br i1 %72, label %73, label %.preheader.split53.us.1

73:                                               ; preds = %.preheader.split53.us.preheader
  %74 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %69)
  br i1 %74, label %75, label %.preheader.split53.us.1

75:                                               ; preds = %73
  call void @_ZN5ImGui6PushIDEi(i32 noundef 0)
  %76 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %2, i64 noundef 15, ptr noundef nonnull @.str.122, i32 noundef 1)
  %77 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %69)
  br i1 %77, label %78, label %80

78:                                               ; preds = %75
  %79 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %0, ptr noundef nonnull align 8 dereferenceable(372) %69)
  br label %80

80:                                               ; preds = %78, %75
  %81 = phi ptr [ %79, %78 ], [ %2, %75 ]
  %82 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %81, i1 noundef zeroext true)
  br i1 %82, label %83, label %86

83:                                               ; preds = %80
  %84 = getelementptr inbounds i8, ptr %69, i64 56
  %85 = load ptr, ptr %84, align 8
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %69, ptr noundef %85, i1 noundef zeroext false)
  call void @_ZN5ImGui7EndMenuEv()
  br label %86

86:                                               ; preds = %83, %80
  call void @_ZN5ImGui5PopIDEv()
  br label %.preheader.split53.us.1

.preheader.split53.us.1:                          ; preds = %86, %73, %.preheader.split53.us.preheader
  %87 = call noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5YAxisEi(ptr noundef nonnull align 8 dereferenceable(2533) %0, i32 noundef 1)
  %88 = getelementptr inbounds i8, ptr %87, i64 364
  %89 = load i8, ptr %88, align 4, !tbaa !51, !range !56, !noundef !57
  %90 = trunc nuw i8 %89 to i1
  br i1 %90, label %91, label %.preheader.split53.us.2

91:                                               ; preds = %.preheader.split53.us.1
  %92 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %87)
  br i1 %92, label %93, label %.preheader.split53.us.2

93:                                               ; preds = %91
  call void @_ZN5ImGui6PushIDEi(i32 noundef 1)
  %94 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %2, i64 noundef 15, ptr noundef nonnull @.str.123, i32 noundef 2)
  %95 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %87)
  br i1 %95, label %96, label %98

96:                                               ; preds = %93
  %97 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %0, ptr noundef nonnull align 8 dereferenceable(372) %87)
  br label %98

98:                                               ; preds = %96, %93
  %99 = phi ptr [ %97, %96 ], [ %2, %93 ]
  %100 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %99, i1 noundef zeroext true)
  br i1 %100, label %101, label %104

101:                                              ; preds = %98
  %102 = getelementptr inbounds i8, ptr %87, i64 56
  %103 = load ptr, ptr %102, align 8
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %87, ptr noundef %103, i1 noundef zeroext false)
  call void @_ZN5ImGui7EndMenuEv()
  br label %104

104:                                              ; preds = %101, %98
  call void @_ZN5ImGui5PopIDEv()
  br label %.preheader.split53.us.2

.preheader.split53.us.2:                          ; preds = %104, %91, %.preheader.split53.us.1
  %105 = call noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5YAxisEi(ptr noundef nonnull align 8 dereferenceable(2533) %0, i32 noundef 2)
  %106 = getelementptr inbounds i8, ptr %105, i64 364
  %107 = load i8, ptr %106, align 4, !tbaa !51, !range !56, !noundef !57
  %108 = trunc nuw i8 %107 to i1
  br i1 %108, label %109, label %.split55.us

109:                                              ; preds = %.preheader.split53.us.2
  %110 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %105)
  br i1 %110, label %111, label %.split55.us

111:                                              ; preds = %109
  call void @_ZN5ImGui6PushIDEi(i32 noundef 2)
  %112 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %2, i64 noundef 15, ptr noundef nonnull @.str.123, i32 noundef 3)
  %113 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %105)
  br i1 %113, label %114, label %116

114:                                              ; preds = %111
  %115 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %0, ptr noundef nonnull align 8 dereferenceable(372) %105)
  br label %116

116:                                              ; preds = %114, %111
  %117 = phi ptr [ %115, %114 ], [ %2, %111 ]
  %118 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %117, i1 noundef zeroext true)
  br i1 %118, label %119, label %.split55.us.sink.split

119:                                              ; preds = %116
  %120 = getelementptr inbounds i8, ptr %105, i64 56
  %121 = load ptr, ptr %120, align 8
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %105, ptr noundef %121, i1 noundef zeroext false)
  br label %.split55.us.sink.split.sink.split

122:                                              ; preds = %.split.preheader
  %123 = tail call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %11)
  br i1 %123, label %124, label %.split.1

124:                                              ; preds = %122
  tail call void @_ZN5ImGui6PushIDEi(i32 noundef 0)
  %125 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %2, i64 noundef 15, ptr noundef nonnull @.str.120, i32 noundef 1)
  %126 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %11)
  br i1 %126, label %127, label %129

127:                                              ; preds = %124
  %128 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %0, ptr noundef nonnull align 8 dereferenceable(372) %11)
  br label %129

129:                                              ; preds = %124, %127
  %130 = phi ptr [ %128, %127 ], [ %2, %124 ]
  %131 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %130, i1 noundef zeroext true)
  br i1 %131, label %132, label %133

132:                                              ; preds = %129
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %11, ptr noundef null, i1 noundef zeroext false)
  call void @_ZN5ImGui7EndMenuEv()
  br label %133

133:                                              ; preds = %132, %129
  call void @_ZN5ImGui5PopIDEv()
  br label %.split.1

.split.1:                                         ; preds = %.split.preheader, %122, %133
  %134 = call noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5XAxisEi(ptr noundef nonnull align 8 dereferenceable(2533) %0, i32 noundef 1)
  %135 = getelementptr inbounds i8, ptr %134, i64 364
  %136 = load i8, ptr %135, align 4, !tbaa !51, !range !56, !noundef !57
  %137 = trunc nuw i8 %136 to i1
  br i1 %137, label %138, label %.split.2

138:                                              ; preds = %.split.1
  %139 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %134)
  br i1 %139, label %140, label %.split.2

140:                                              ; preds = %138
  call void @_ZN5ImGui6PushIDEi(i32 noundef 1)
  %141 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %2, i64 noundef 15, ptr noundef nonnull @.str.121, i32 noundef 2)
  %142 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %134)
  br i1 %142, label %143, label %145

143:                                              ; preds = %140
  %144 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %0, ptr noundef nonnull align 8 dereferenceable(372) %134)
  br label %145

145:                                              ; preds = %143, %140
  %146 = phi ptr [ %144, %143 ], [ %2, %140 ]
  %147 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %146, i1 noundef zeroext true)
  br i1 %147, label %148, label %149

148:                                              ; preds = %145
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %134, ptr noundef null, i1 noundef zeroext false)
  call void @_ZN5ImGui7EndMenuEv()
  br label %149

149:                                              ; preds = %148, %145
  call void @_ZN5ImGui5PopIDEv()
  br label %.split.2

.split.2:                                         ; preds = %149, %138, %.split.1
  %150 = call noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5XAxisEi(ptr noundef nonnull align 8 dereferenceable(2533) %0, i32 noundef 2)
  %151 = getelementptr inbounds i8, ptr %150, i64 364
  %152 = load i8, ptr %151, align 4, !tbaa !51, !range !56, !noundef !57
  %153 = trunc nuw i8 %152 to i1
  br i1 %153, label %154, label %.preheader.split53.preheader

154:                                              ; preds = %.split.2
  %155 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %150)
  br i1 %155, label %156, label %.preheader.split53.preheader

156:                                              ; preds = %154
  call void @_ZN5ImGui6PushIDEi(i32 noundef 2)
  %157 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %2, i64 noundef 15, ptr noundef nonnull @.str.121, i32 noundef 3)
  %158 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %150)
  br i1 %158, label %159, label %161

159:                                              ; preds = %156
  %160 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %0, ptr noundef nonnull align 8 dereferenceable(372) %150)
  br label %161

161:                                              ; preds = %159, %156
  %162 = phi ptr [ %160, %159 ], [ %2, %156 ]
  %163 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %162, i1 noundef zeroext true)
  br i1 %163, label %164, label %165

164:                                              ; preds = %161
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %150, ptr noundef null, i1 noundef zeroext false)
  call void @_ZN5ImGui7EndMenuEv()
  br label %165

165:                                              ; preds = %164, %161
  call void @_ZN5ImGui5PopIDEv()
  br label %.preheader.split53.preheader

.split55.us.sink.split.sink.split:                ; preds = %214, %119
  call void @_ZN5ImGui7EndMenuEv()
  br label %.split55.us.sink.split

.split55.us.sink.split:                           ; preds = %.split55.us.sink.split.sink.split, %116, %211
  call void @_ZN5ImGui5PopIDEv()
  br label %.split55.us

.split55.us:                                      ; preds = %.split55.us.sink.split, %.preheader.split53.2, %204, %.preheader.split53.us.2, %109
  call void @_ZN5ImGui9SeparatorEv()
  %166 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %167 = getelementptr inbounds i8, ptr %166, i64 96
  %168 = load ptr, ptr %167, align 8, !tbaa !9
  %169 = getelementptr inbounds i8, ptr %168, i64 8
  %170 = load i32, ptr %169, align 8, !tbaa !58
  %171 = call noundef zeroext i1 @_ZL9ImHasFlagIi18ImPlotLegendFlags_EbT_T0_(i32 noundef %170, i32 noundef 8)
  br i1 %171, label %242, label %215

172:                                              ; preds = %.preheader.split53.preheader
  %173 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %65)
  br i1 %173, label %174, label %.preheader.split53.1

174:                                              ; preds = %172
  call void @_ZN5ImGui6PushIDEi(i32 noundef 0)
  %175 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %2, i64 noundef 15, ptr noundef nonnull @.str.122, i32 noundef 1)
  %176 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %65)
  br i1 %176, label %177, label %179

177:                                              ; preds = %174
  %178 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %0, ptr noundef nonnull align 8 dereferenceable(372) %65)
  br label %179

179:                                              ; preds = %174, %177
  %180 = phi ptr [ %178, %177 ], [ %2, %174 ]
  %181 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %180, i1 noundef zeroext true)
  br i1 %181, label %182, label %183

182:                                              ; preds = %179
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %65, ptr noundef null, i1 noundef zeroext false)
  call void @_ZN5ImGui7EndMenuEv()
  br label %183

183:                                              ; preds = %182, %179
  call void @_ZN5ImGui5PopIDEv()
  br label %.preheader.split53.1

.preheader.split53.1:                             ; preds = %.preheader.split53.preheader, %172, %183
  %184 = call noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5YAxisEi(ptr noundef nonnull align 8 dereferenceable(2533) %0, i32 noundef 1)
  %185 = getelementptr inbounds i8, ptr %184, i64 364
  %186 = load i8, ptr %185, align 4, !tbaa !51, !range !56, !noundef !57
  %187 = trunc nuw i8 %186 to i1
  br i1 %187, label %188, label %.preheader.split53.2

188:                                              ; preds = %.preheader.split53.1
  %189 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %184)
  br i1 %189, label %190, label %.preheader.split53.2

190:                                              ; preds = %188
  call void @_ZN5ImGui6PushIDEi(i32 noundef 1)
  %191 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %2, i64 noundef 15, ptr noundef nonnull @.str.123, i32 noundef 2)
  %192 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %184)
  br i1 %192, label %193, label %195

193:                                              ; preds = %190
  %194 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %0, ptr noundef nonnull align 8 dereferenceable(372) %184)
  br label %195

195:                                              ; preds = %193, %190
  %196 = phi ptr [ %194, %193 ], [ %2, %190 ]
  %197 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %196, i1 noundef zeroext true)
  br i1 %197, label %198, label %199

198:                                              ; preds = %195
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %184, ptr noundef null, i1 noundef zeroext false)
  call void @_ZN5ImGui7EndMenuEv()
  br label %199

199:                                              ; preds = %198, %195
  call void @_ZN5ImGui5PopIDEv()
  br label %.preheader.split53.2

.preheader.split53.2:                             ; preds = %199, %188, %.preheader.split53.1
  %200 = call noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5YAxisEi(ptr noundef nonnull align 8 dereferenceable(2533) %0, i32 noundef 2)
  %201 = getelementptr inbounds i8, ptr %200, i64 364
  %202 = load i8, ptr %201, align 4, !tbaa !51, !range !56, !noundef !57
  %203 = trunc nuw i8 %202 to i1
  br i1 %203, label %204, label %.split55.us

204:                                              ; preds = %.preheader.split53.2
  %205 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372) %200)
  br i1 %205, label %206, label %.split55.us

206:                                              ; preds = %204
  call void @_ZN5ImGui6PushIDEi(i32 noundef 2)
  %207 = call noundef i32 (ptr, i64, ptr, ...) @_Z14ImFormatStringPcmPKcz(ptr noundef nonnull %2, i64 noundef 15, ptr noundef nonnull @.str.123, i32 noundef 3)
  %208 = call noundef zeroext i1 @_ZNK10ImPlotAxis8HasLabelEv(ptr noundef nonnull align 8 dereferenceable(372) %200)
  br i1 %208, label %209, label %211

209:                                              ; preds = %206
  %210 = call noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533) %0, ptr noundef nonnull align 8 dereferenceable(372) %200)
  br label %211

211:                                              ; preds = %209, %206
  %212 = phi ptr [ %210, %209 ], [ %2, %206 ]
  %213 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef %212, i1 noundef zeroext true)
  br i1 %213, label %214, label %.split55.us.sink.split

214:                                              ; preds = %211
  call void @_ZN6ImPlot19ShowAxisContextMenuER10ImPlotAxisPS0_b(ptr noundef nonnull align 8 dereferenceable(372) %200, ptr noundef null, i1 noundef zeroext false)
  br label %.split55.us.sink.split.sink.split

215:                                              ; preds = %.split55.us
  %216 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef nonnull @.str.124, i1 noundef zeroext true)
  br i1 %216, label %217, label %242

217:                                              ; preds = %215
  br i1 %7, label %218, label %225

218:                                              ; preds = %217
  %219 = getelementptr inbounds i8, ptr %0, i64 2304
  %220 = load i32, ptr %8, align 4, !tbaa !44
  %221 = call noundef zeroext i1 @_ZL9ImHasFlagIi12ImPlotFlags_EbT_T0_(i32 noundef %220, i32 noundef 2)
  %222 = xor i1 %221, true
  %223 = call noundef zeroext i1 @_ZN6ImPlot21ShowLegendContextMenuER12ImPlotLegendb(ptr noundef nonnull align 8 dereferenceable(67) %219, i1 noundef zeroext %222)
  br i1 %223, label %224, label %241

224:                                              ; preds = %218
  call void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 2)
  br label %241

225:                                              ; preds = %217
  %226 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %227 = getelementptr inbounds i8, ptr %226, i64 88
  %228 = load ptr, ptr %227, align 8, !tbaa !59
  %.not = icmp eq ptr %228, null
  br i1 %.not, label %241, label %229

229:                                              ; preds = %225
  %230 = getelementptr inbounds i8, ptr %228, i64 24
  %231 = getelementptr inbounds i8, ptr %228, i64 4
  %232 = load i32, ptr %231, align 4, !tbaa !60
  %233 = call noundef zeroext i1 @_ZL9ImHasFlagIi19ImPlotSubplotFlags_EbT_T0_(i32 noundef %232, i32 noundef 2)
  %234 = xor i1 %233, true
  %235 = call noundef zeroext i1 @_ZN6ImPlot21ShowLegendContextMenuER12ImPlotLegendb(ptr noundef nonnull align 8 dereferenceable(67) %230, i1 noundef zeroext %234)
  br i1 %235, label %236, label %241

236:                                              ; preds = %229
  %237 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %238 = getelementptr inbounds i8, ptr %237, i64 88
  %239 = load ptr, ptr %238, align 8, !tbaa !59
  %240 = getelementptr inbounds i8, ptr %239, i64 4
  call void @_ZL10ImFlipFlagIi19ImPlotSubplotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %240, i32 noundef 2)
  br label %241

241:                                              ; preds = %225, %236, %229, %218, %224
  call void @_ZN5ImGui7EndMenuEv()
  br label %242

242:                                              ; preds = %215, %241, %.split55.us
  %243 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef nonnull @.str.115, i1 noundef zeroext true)
  br i1 %243, label %244, label %276

244:                                              ; preds = %242
  %245 = load i32, ptr %8, align 4, !tbaa !44
  %246 = call noundef zeroext i1 @_ZL9ImHasFlagIi12ImPlotFlags_EbT_T0_(i32 noundef %245, i32 noundef 256)
  %247 = call noundef zeroext i1 @_ZN5ImGui8MenuItemEPKcS1_bb(ptr noundef nonnull @.str.125, ptr noundef null, i1 noundef zeroext %246, i1 noundef zeroext true)
  br i1 %247, label %248, label %249

248:                                              ; preds = %244
  call void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 256)
  br label %249

249:                                              ; preds = %248, %244
  %250 = load i32, ptr %8, align 4, !tbaa !44
  %251 = call noundef zeroext i1 @_ZL9ImHasFlagIi12ImPlotFlags_EbT_T0_(i32 noundef %250, i32 noundef 32)
  %252 = xor i1 %251, true
  %253 = call noundef zeroext i1 @_ZN5ImGui8MenuItemEPKcS1_bb(ptr noundef nonnull @.str.126, ptr noundef null, i1 noundef zeroext %252, i1 noundef zeroext true)
  br i1 %253, label %254, label %255

254:                                              ; preds = %249
  call void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 32)
  br label %255

255:                                              ; preds = %254, %249
  %256 = getelementptr inbounds i8, ptr %0, i64 2520
  %257 = load i32, ptr %256, align 8, !tbaa !64
  %258 = icmp eq i32 %257, -1
  call void @_ZN6ImPlot21BeginDisabledControlsEb(i1 noundef zeroext %258)
  %259 = call noundef zeroext i1 @_ZNK10ImPlotPlot8HasTitleEv(ptr noundef nonnull align 8 dereferenceable(2533) %0)
  %260 = call noundef zeroext i1 @_ZN5ImGui8MenuItemEPKcS1_bb(ptr noundef nonnull @.str.116, ptr noundef null, i1 noundef zeroext %259, i1 noundef zeroext true)
  br i1 %260, label %261, label %262

261:                                              ; preds = %255
  call void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 1)
  br label %262

262:                                              ; preds = %261, %255
  %263 = load i32, ptr %256, align 8, !tbaa !64
  %264 = icmp eq i32 %263, -1
  call void @_ZN6ImPlot19EndDisabledControlsEb(i1 noundef zeroext %264)
  %265 = load i32, ptr %8, align 4, !tbaa !44
  %266 = call noundef zeroext i1 @_ZL9ImHasFlagIi12ImPlotFlags_EbT_T0_(i32 noundef %265, i32 noundef 4)
  %267 = xor i1 %266, true
  %268 = call noundef zeroext i1 @_ZN5ImGui8MenuItemEPKcS1_bb(ptr noundef nonnull @.str.127, ptr noundef null, i1 noundef zeroext %267, i1 noundef zeroext true)
  br i1 %268, label %269, label %270

269:                                              ; preds = %262
  call void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 4)
  br label %270

270:                                              ; preds = %269, %262
  %271 = load i32, ptr %8, align 4, !tbaa !44
  %272 = call noundef zeroext i1 @_ZL9ImHasFlagIi12ImPlotFlags_EbT_T0_(i32 noundef %271, i32 noundef 512)
  %273 = call noundef zeroext i1 @_ZN5ImGui8MenuItemEPKcS1_bb(ptr noundef nonnull @.str.20, ptr noundef null, i1 noundef zeroext %272, i1 noundef zeroext true)
  br i1 %273, label %274, label %275

274:                                              ; preds = %270
  call void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef 512)
  br label %275

275:                                              ; preds = %274, %270
  call void @_ZN5ImGui7EndMenuEv()
  br label %276

276:                                              ; preds = %275, %242
  %277 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %278 = getelementptr inbounds i8, ptr %277, i64 88
  %279 = load ptr, ptr %278, align 8, !tbaa !59
  %.not50 = icmp eq ptr %279, null
  br i1 %.not50, label %292, label %280

280:                                              ; preds = %276
  %281 = getelementptr inbounds i8, ptr %277, i64 80
  %282 = load ptr, ptr %281, align 8, !tbaa !65
  %283 = getelementptr inbounds i8, ptr %282, i64 4
  %284 = load i32, ptr %283, align 4, !tbaa !44
  %285 = call noundef zeroext i1 @_ZL9ImHasFlagIi19ImPlotSubplotFlags_EbT_T0_(i32 noundef %284, i32 noundef 4)
  br i1 %285, label %292, label %286

286:                                              ; preds = %280
  call void @_ZN5ImGui9SeparatorEv()
  %287 = call noundef zeroext i1 @_ZN5ImGui9BeginMenuEPKcb(ptr noundef nonnull @.str.128, i1 noundef zeroext true)
  br i1 %287, label %288, label %292

288:                                              ; preds = %286
  %289 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %290 = getelementptr inbounds i8, ptr %289, i64 88
  %291 = load ptr, ptr %290, align 8, !tbaa !59
  call void @_ZN6ImPlot23ShowSubplotsContextMenuER13ImPlotSubplot(ptr noundef nonnull align 8 dereferenceable(306) %291)
  call void @_ZN5ImGui7EndMenuEv()
  br label %292

292:                                              ; preds = %286, %288, %280, %276
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5XAxisEi(ptr noundef nonnull align 8 dereferenceable(2533), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK10ImPlotAxis8HasMenusEv(ptr noundef nonnull align 8 dereferenceable(372)) local_unnamed_addr #5 align 2

declare void @_ZN5ImGui6PushIDEi(i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK10ImPlotPlot12GetAxisLabelERK10ImPlotAxis(ptr noundef nonnull align 8 dereferenceable(2533), ptr noundef nonnull align 8 dereferenceable(372)) local_unnamed_addr #2 align 2

declare void @_ZN5ImGui5PopIDEv() local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(372) ptr @_ZN10ImPlotPlot5YAxisEi(ptr noundef nonnull align 8 dereferenceable(2533), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL10ImFlipFlagIi12ImPlotFlags_EvRT_T0_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK10ImPlotPlot8HasTitleEv(ptr noundef nonnull align 8 dereferenceable(2533)) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 96}
!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, !13, i64 4}
!45 = !{!"_ZTS10ImPlotPlot", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !7, i64 24, !20, i64 2280, !46, i64 2296, !13, i64 2424, !13, i64 2428, !48, i64 2432, !48, i64 2448, !48, i64 2464, !48, i64 2480, !48, i64 2496, !22, i64 2512, !13, i64 2520, !28, i64 2524, !28, i64 2525, !28, i64 2526, !28, i64 2527, !28, i64 2528, !28, i64 2529, !28, i64 2530, !28, i64 2531, !28, i64 2532}
!46 = !{!"_ZTS15ImPlotItemGroup", !13, i64 0, !47, i64 8, !49, i64 80, !13, i64 120}
!47 = !{!"_ZTS12ImPlotLegend", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !34, i64 16, !20, i64 32, !48, i64 48, !28, i64 64, !28, i64 65, !28, i64 66}
!48 = !{!"_ZTS6ImRect", !22, i64 0, !22, i64 8}
!49 = !{!"_ZTS6ImPoolI10ImPlotItemE", !50, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!50 = !{!"_ZTS8ImVectorI10ImPlotItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!51 = !{!52, !28, i64 364}
!52 = !{!"_ZTS10ImPlotAxis", !13, i64 0, !13, i64 4, !13, i64 8, !53, i64 16, !13, i64 32, !13, i64 36, !53, i64 40, !6, i64 56, !53, i64 64, !53, i64 80, !18, i64 96, !6, i64 152, !6, i64 160, !7, i64 168, !6, i64 184, !6, i64 192, !6, i64 200, !13, i64 208, !55, i64 216, !55, i64 232, !6, i64 248, !6, i64 256, !6, i64 264, !23, i64 272, !23, i64 276, !54, i64 280, !54, i64 288, !54, i64 296, !23, i64 304, !23, i64 308, !48, i64 312, !13, i64 328, !13, i64 332, !13, i64 336, !13, i64 340, !13, i64 344, !13, i64 348, !13, i64 352, !13, i64 356, !13, i64 360, !28, i64 364, !28, i64 365, !28, i64 366, !28, i64 367, !28, i64 368, !28, i64 369, !28, i64 370, !28, i64 371}
!53 = !{!"_ZTS11ImPlotRange", !54, i64 0, !54, i64 8}
!54 = !{!"double", !7, i64 0}
!55 = !{!"_ZTS10ImPlotTime", !37, i64 0, !13, i64 8}
!56 = !{i8 0, i8 2}
!57 = !{}
!58 = !{!46, !13, i64 8}
!59 = !{!10, !6, i64 88}
!60 = !{!61, !13, i64 4}
!61 = !{!"_ZTS13ImPlotSubplot", !13, i64 0, !13, i64 4, !13, i64 8, !46, i64 16, !13, i64 144, !13, i64 148, !13, i64 152, !48, i64 156, !48, i64 172, !22, i64 188, !43, i64 200, !43, i64 216, !62, i64 232, !62, i64 248, !63, i64 264, !63, i64 280, !7, i64 296, !28, i64 304, !28, i64 305}
!62 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!63 = !{!"_ZTS8ImVectorI11ImPlotRangeE", !13, i64 0, !13, i64 4, !6, i64 8}
!64 = !{!45, !13, i64 2520}
!65 = !{!10, !6, i64 80}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass