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

; 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.ImVec4 = type { float, float, float, float }
%struct.ImPlotContext = type { %struct.ImPool, %struct.ImPool.121, ptr, ptr, ptr, ptr, ptr, %struct.ImPlotTicker, %struct.ImPlotAnnotationCollection, %struct.ImPlotTagCollection, i8, [3 x i8], %struct.ImPlotStyle, %struct.ImVector.127, %struct.ImVector.128, %struct.ImPlotColormapData, %struct.ImVector.130, %struct.tm, %struct.ImVector.132, %struct.ImVector.132, %struct.ImVector.130, i32, i32, %struct.ImPlotNextPlotData, %struct.ImPlotNextItemData, %struct.ImPlotInputMap, i8, %struct.ImGuiTextBuffer, ptr, %struct.ImPool.133, ptr, ptr }
%struct.ImPool = type { %struct.ImVector, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.120 }
%struct.ImVector.120 = type { i32, i32, ptr }
%struct.ImPool.121 = type { %struct.ImVector.122, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.122 = type { i32, i32, ptr }
%struct.ImPlotTicker = type <{ %struct.ImVector.123, %struct.ImGuiTextBuffer, %struct.ImVec2, %struct.ImVec2, i32, [4 x i8] }>
%struct.ImVector.123 = type { i32, i32, ptr }
%struct.ImVec2 = type { float, float }
%struct.ImPlotAnnotationCollection = type <{ %struct.ImVector.125, %struct.ImGuiTextBuffer, i32, [4 x i8] }>
%struct.ImVector.125 = type { i32, i32, ptr }
%struct.ImPlotTagCollection = type <{ %struct.ImVector.126, %struct.ImGuiTextBuffer, i32, [4 x i8] }>
%struct.ImVector.126 = 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.127 = type { i32, i32, ptr }
%struct.ImVector.128 = type { i32, i32, ptr }
%struct.ImPlotColormapData = type <{ %struct.ImVector.129, %struct.ImVector.130, %struct.ImVector.130, %struct.ImVector.129, %struct.ImVector.130, %struct.ImVector.130, %struct.ImGuiTextBuffer, %struct.ImVector.130, %struct.ImVector.131, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.129 = type { i32, i32, ptr }
%struct.ImVector.131 = type { i32, i32, ptr }
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, ptr }
%struct.ImVector.132 = type { i32, i32, ptr }
%struct.ImVector.130 = 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.124 }
%struct.ImVector.124 = type { i32, i32, ptr }
%struct.ImPool.133 = type { %struct.ImVector.134, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.134 = type { i32, i32, ptr }
%struct.ImPlotItem = type <{ i32, i32, %struct.ImRect, i32, i8, i8, i8, i8 }>
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImPlotItemGroup = type <{ i32, [4 x i8], %struct.ImPlotLegend, %struct.ImPool.236, i32, [4 x i8] }>
%struct.ImPlotLegend = type <{ i32, i32, i32, i32, %struct.ImVector.130, %struct.ImGuiTextBuffer, %struct.ImRect, i8, i8, i8, [5 x i8] }>
%struct.ImPool.236 = type { %struct.ImVector.237, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.237 = 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] }>

@GImPlot = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [95 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot9BeginItemEPKcii = external hidden unnamed_addr constant [65 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: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

declare void @_ZN6ImPlot16PushPlotClipRectEf(float noundef) #4

declare { <2 x float>, <2 x float> } @_ZN5ImGui23ColorConvertU32ToFloat4Ej(i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6ImPlot17RegisterOrGetItemEPKciPb(ptr noundef, i32 noundef, ptr noundef) #5

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

20:                                               ; preds = %3
  br label %21

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

23:                                               ; preds = %21
  br label %26

24:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 403, ptr noundef @__PRETTY_FUNCTION__._ZN6ImPlot9BeginItemEPKcii) #10
  unreachable

25:                                               ; No predecessors!
  br label %26

26:                                               ; preds = %25, %23
  call void @_ZN6ImPlotL9SetupLockEv()
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load i32, ptr %6, align 4, !tbaa !9
  %29 = call noundef ptr @_ZN6ImPlot17RegisterOrGetItemEPKciPb(ptr noundef %27, i32 noundef %28, ptr noundef %9)
  store ptr %29, ptr %10, align 8, !tbaa !5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImPlotContext, ptr %31, i32 0, i32 5
  store ptr %30, ptr %32, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ImPlotContext, ptr %33, i32 0, i32 24
  store ptr %34, ptr %11, align 8, !tbaa !5
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = icmp ne i32 %35, -1
  br i1 %36, label %37, label %81

37:                                               ; preds = %26
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %7, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [5 x %struct.ImVec4], ptr %39, i64 0, i64 %41
  %43 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %42)
  br i1 %43, label %53, label %44

44:                                               ; preds = %37
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [5 x %struct.ImVec4], ptr %46, i64 0, i64 %48
  %50 = call noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %49)
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ImPlotItem, ptr %51, i32 0, i32 1
  store i32 %50, ptr %52, align 4, !tbaa !46
  br label %80

53:                                               ; preds = %37
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ImPlotContext, ptr %54, i32 0, i32 12
  %56 = getelementptr inbounds %struct.ImPlotStyle, ptr %55, i32 0, i32 27
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [21 x %struct.ImVec4], ptr %56, i64 0, i64 %58
  %60 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %59)
  br i1 %60, label %71, label %61

61:                                               ; preds = %53
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ImPlotContext, ptr %62, i32 0, i32 12
  %64 = getelementptr inbounds %struct.ImPlotStyle, ptr %63, i32 0, i32 27
  %65 = load i32, ptr %7, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [21 x %struct.ImVec4], ptr %64, i64 0, i64 %66
  %68 = call noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %67)
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ImPlotItem, ptr %69, i32 0, i32 1
  store i32 %68, ptr %70, align 4, !tbaa !46
  br label %79

71:                                               ; preds = %53
  %72 = load i8, ptr %9, align 1, !tbaa !49, !range !50, !noundef !51
  %73 = trunc i8 %72 to i1
  br i1 %73, label %74, label %78

74:                                               ; preds = %71
  %75 = call noundef i32 @_ZN6ImPlot20NextColormapColorU32Ev()
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ImPlotItem, ptr %76, i32 0, i32 1
  store i32 %75, ptr %77, align 4, !tbaa !46
  br label %78

78:                                               ; preds = %74, %71
  br label %79

79:                                               ; preds = %78, %61
  br label %80

80:                                               ; preds = %79, %44
  br label %89

81:                                               ; preds = %26
  %82 = load i8, ptr %9, align 1, !tbaa !49, !range !50, !noundef !51
  %83 = trunc i8 %82 to i1
  br i1 %83, label %84, label %88

84:                                               ; preds = %81
  %85 = call noundef i32 @_ZN6ImPlot20NextColormapColorU32Ev()
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.ImPlotItem, ptr %86, i32 0, i32 1
  store i32 %85, ptr %87, align 4, !tbaa !46
  br label %88

88:                                               ; preds = %84, %81
  br label %89

89:                                               ; preds = %88, %80
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ImPlotContext, ptr %90, i32 0, i32 24
  %92 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %91, i32 0, i32 14
  %93 = load i8, ptr %92, align 8, !tbaa !52, !range !50, !noundef !51
  %94 = trunc i8 %93 to i1
  br i1 %94, label %95, label %115

95:                                               ; preds = %89
  %96 = load i8, ptr %9, align 1, !tbaa !49, !range !50, !noundef !51
  %97 = trunc i8 %96 to i1
  br i1 %97, label %104, label %98

98:                                               ; preds = %95
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.ImPlotContext, ptr %99, i32 0, i32 24
  %101 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %100, i32 0, i32 16
  %102 = load i32, ptr %101, align 4, !tbaa !53
  %103 = icmp eq i32 %102, 1
  br i1 %103, label %104, label %114

104:                                              ; preds = %98, %95
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.ImPlotContext, ptr %105, i32 0, i32 24
  %107 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %106, i32 0, i32 15
  %108 = load i8, ptr %107, align 1, !tbaa !54, !range !50, !noundef !51
  %109 = trunc i8 %108 to i1
  %110 = xor i1 %109, true
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ImPlotItem, ptr %111, i32 0, i32 4
  %113 = zext i1 %110 to i8
  store i8 %113, ptr %112, align 4, !tbaa !55
  br label %114

114:                                              ; preds = %104, %98
  br label %115

115:                                              ; preds = %114, %89
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.ImPlotItem, ptr %116, i32 0, i32 4
  %118 = load i8, ptr %117, align 4, !tbaa !55, !range !50, !noundef !51
  %119 = trunc i8 %118 to i1
  br i1 %119, label %128, label %120

120:                                              ; preds = %115
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ImPlotContext, ptr %121, i32 0, i32 24
  call void @_ZN18ImPlotNextItemData5ResetEv(ptr noundef nonnull align 4 dereferenceable(128) %122)
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ImPlotContext, ptr %124, i32 0, i32 6
  store ptr %123, ptr %125, align 8, !tbaa !56
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.ImPlotContext, ptr %126, i32 0, i32 5
  store ptr null, ptr %127, align 8, !tbaa !45
  store i1 false, ptr %4, align 1
  store i32 1, ptr %12, align 4
  br label %554

128:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #9
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.ImPlotItem, ptr %129, i32 0, i32 1
  %131 = load i32, ptr %130, align 4, !tbaa !46
  %132 = call { <2 x float>, <2 x float> } @_ZN5ImGui23ColorConvertU32ToFloat4Ej(i32 noundef %131)
  %133 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %13, i32 0, i32 0
  %134 = extractvalue { <2 x float>, <2 x float> } %132, 0
  store <2 x float> %134, ptr %133, align 4
  %135 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %13, i32 0, i32 1
  %136 = extractvalue { <2 x float>, <2 x float> } %132, 1
  store <2 x float> %136, ptr %135, align 4
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %137, i32 0, i32 0
  %139 = getelementptr inbounds [5 x %struct.ImVec4], ptr %138, i64 0, i64 0
  %140 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %139)
  br i1 %140, label %141, label %151

141:                                              ; preds = %128
  %142 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoEi(i32 noundef 0)
  br i1 %142, label %143, label %144

143:                                              ; preds = %141
  br label %149

144:                                              ; preds = %141
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ImPlotContext, ptr %145, i32 0, i32 12
  %147 = getelementptr inbounds %struct.ImPlotStyle, ptr %146, i32 0, i32 27
  %148 = getelementptr inbounds [21 x %struct.ImVec4], ptr %147, i64 0, i64 0
  br label %149

149:                                              ; preds = %144, %143
  %150 = phi ptr [ %13, %143 ], [ %148, %144 ]
  br label %155

151:                                              ; preds = %128
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %152, i32 0, i32 0
  %154 = getelementptr inbounds [5 x %struct.ImVec4], ptr %153, i64 0, i64 0
  br label %155

155:                                              ; preds = %151, %149
  %156 = phi ptr [ %150, %149 ], [ %154, %151 ]
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %157, i32 0, i32 0
  %159 = getelementptr inbounds [5 x %struct.ImVec4], ptr %158, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %159, ptr align 4 %156, i64 16, i1 false), !tbaa.struct !57
  %160 = load ptr, ptr %11, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %160, i32 0, i32 0
  %162 = getelementptr inbounds [5 x %struct.ImVec4], ptr %161, i64 0, i64 1
  %163 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %162)
  br i1 %163, label %164, label %174

164:                                              ; preds = %155
  %165 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoEi(i32 noundef 1)
  br i1 %165, label %166, label %167

166:                                              ; preds = %164
  br label %172

167:                                              ; preds = %164
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ImPlotContext, ptr %168, i32 0, i32 12
  %170 = getelementptr inbounds %struct.ImPlotStyle, ptr %169, i32 0, i32 27
  %171 = getelementptr inbounds [21 x %struct.ImVec4], ptr %170, i64 0, i64 1
  br label %172

172:                                              ; preds = %167, %166
  %173 = phi ptr [ %13, %166 ], [ %171, %167 ]
  br label %178

174:                                              ; preds = %155
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %175, i32 0, i32 0
  %177 = getelementptr inbounds [5 x %struct.ImVec4], ptr %176, i64 0, i64 1
  br label %178

178:                                              ; preds = %174, %172
  %179 = phi ptr [ %173, %172 ], [ %177, %174 ]
  %180 = load ptr, ptr %11, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %180, i32 0, i32 0
  %182 = getelementptr inbounds [5 x %struct.ImVec4], ptr %181, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %182, ptr align 4 %179, i64 16, i1 false), !tbaa.struct !57
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds [5 x %struct.ImVec4], ptr %184, i64 0, i64 2
  %186 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %185)
  br i1 %186, label %187, label %200

187:                                              ; preds = %178
  %188 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoEi(i32 noundef 2)
  br i1 %188, label %189, label %193

189:                                              ; preds = %187
  %190 = load ptr, ptr %11, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds [5 x %struct.ImVec4], ptr %191, i64 0, i64 0
  br label %198

193:                                              ; preds = %187
  %194 = load ptr, ptr %8, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.ImPlotContext, ptr %194, i32 0, i32 12
  %196 = getelementptr inbounds %struct.ImPlotStyle, ptr %195, i32 0, i32 27
  %197 = getelementptr inbounds [21 x %struct.ImVec4], ptr %196, i64 0, i64 2
  br label %198

198:                                              ; preds = %193, %189
  %199 = phi ptr [ %192, %189 ], [ %197, %193 ]
  br label %204

200:                                              ; preds = %178
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %201, i32 0, i32 0
  %203 = getelementptr inbounds [5 x %struct.ImVec4], ptr %202, i64 0, i64 2
  br label %204

204:                                              ; preds = %200, %198
  %205 = phi ptr [ %199, %198 ], [ %203, %200 ]
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %206, i32 0, i32 0
  %208 = getelementptr inbounds [5 x %struct.ImVec4], ptr %207, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %208, ptr align 4 %205, i64 16, i1 false), !tbaa.struct !57
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %209, i32 0, i32 0
  %211 = getelementptr inbounds [5 x %struct.ImVec4], ptr %210, i64 0, i64 3
  %212 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %211)
  br i1 %212, label %213, label %226

213:                                              ; preds = %204
  %214 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoEi(i32 noundef 3)
  br i1 %214, label %215, label %219

215:                                              ; preds = %213
  %216 = load ptr, ptr %11, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %216, i32 0, i32 0
  %218 = getelementptr inbounds [5 x %struct.ImVec4], ptr %217, i64 0, i64 0
  br label %224

219:                                              ; preds = %213
  %220 = load ptr, ptr %8, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.ImPlotContext, ptr %220, i32 0, i32 12
  %222 = getelementptr inbounds %struct.ImPlotStyle, ptr %221, i32 0, i32 27
  %223 = getelementptr inbounds [21 x %struct.ImVec4], ptr %222, i64 0, i64 3
  br label %224

224:                                              ; preds = %219, %215
  %225 = phi ptr [ %218, %215 ], [ %223, %219 ]
  br label %230

226:                                              ; preds = %204
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %227, i32 0, i32 0
  %229 = getelementptr inbounds [5 x %struct.ImVec4], ptr %228, i64 0, i64 3
  br label %230

230:                                              ; preds = %226, %224
  %231 = phi ptr [ %225, %224 ], [ %229, %226 ]
  %232 = load ptr, ptr %11, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %232, i32 0, i32 0
  %234 = getelementptr inbounds [5 x %struct.ImVec4], ptr %233, i64 0, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %234, ptr align 4 %231, i64 16, i1 false), !tbaa.struct !57
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  %235 = load ptr, ptr %11, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %235, i32 0, i32 0
  %237 = getelementptr inbounds [5 x %struct.ImVec4], ptr %236, i64 0, i64 4
  %238 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %237)
  br i1 %238, label %239, label %245

239:                                              ; preds = %230
  %240 = call { <2 x float>, <2 x float> } @_ZN6ImPlotL17GetStyleColorVec4Ei(i32 noundef 4)
  %241 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %14, i32 0, i32 0
  %242 = extractvalue { <2 x float>, <2 x float> } %240, 0
  store <2 x float> %242, ptr %241, align 4
  %243 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %14, i32 0, i32 1
  %244 = extractvalue { <2 x float>, <2 x float> } %240, 1
  store <2 x float> %244, ptr %243, align 4
  br label %249

245:                                              ; preds = %230
  %246 = load ptr, ptr %11, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %246, i32 0, i32 0
  %248 = getelementptr inbounds [5 x %struct.ImVec4], ptr %247, i64 0, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %248, i64 16, i1 false), !tbaa.struct !57
  br label %249

249:                                              ; preds = %245, %239
  %250 = load ptr, ptr %11, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %250, i32 0, i32 0
  %252 = getelementptr inbounds [5 x %struct.ImVec4], ptr %251, i64 0, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %252, ptr align 4 %14, i64 16, i1 false), !tbaa.struct !57
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  %253 = load ptr, ptr %11, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %253, i32 0, i32 1
  %255 = load float, ptr %254, align 4, !tbaa !59
  %256 = fcmp olt float %255, 0.000000e+00
  br i1 %256, label %257, label %262

257:                                              ; preds = %249
  %258 = load ptr, ptr %8, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.ImPlotContext, ptr %258, i32 0, i32 12
  %260 = getelementptr inbounds %struct.ImPlotStyle, ptr %259, i32 0, i32 0
  %261 = load float, ptr %260, align 4, !tbaa !60
  br label %266

262:                                              ; preds = %249
  %263 = load ptr, ptr %11, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %263, i32 0, i32 1
  %265 = load float, ptr %264, align 4, !tbaa !59
  br label %266

266:                                              ; preds = %262, %257
  %267 = phi float [ %261, %257 ], [ %265, %262 ]
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %268, i32 0, i32 1
  store float %267, ptr %269, align 4, !tbaa !59
  %270 = load ptr, ptr %11, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %270, i32 0, i32 2
  %272 = load i32, ptr %271, align 4, !tbaa !61
  %273 = icmp slt i32 %272, 0
  br i1 %273, label %274, label %279

274:                                              ; preds = %266
  %275 = load ptr, ptr %8, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.ImPlotContext, ptr %275, i32 0, i32 12
  %277 = getelementptr inbounds %struct.ImPlotStyle, ptr %276, i32 0, i32 1
  %278 = load i32, ptr %277, align 4, !tbaa !62
  br label %283

279:                                              ; preds = %266
  %280 = load ptr, ptr %11, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %280, i32 0, i32 2
  %282 = load i32, ptr %281, align 4, !tbaa !61
  br label %283

283:                                              ; preds = %279, %274
  %284 = phi i32 [ %278, %274 ], [ %282, %279 ]
  %285 = load ptr, ptr %11, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %285, i32 0, i32 2
  store i32 %284, ptr %286, align 4, !tbaa !61
  %287 = load ptr, ptr %11, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %287, i32 0, i32 3
  %289 = load float, ptr %288, align 4, !tbaa !63
  %290 = fcmp olt float %289, 0.000000e+00
  br i1 %290, label %291, label %296

291:                                              ; preds = %283
  %292 = load ptr, ptr %8, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.ImPlotContext, ptr %292, i32 0, i32 12
  %294 = getelementptr inbounds %struct.ImPlotStyle, ptr %293, i32 0, i32 2
  %295 = load float, ptr %294, align 4, !tbaa !64
  br label %300

296:                                              ; preds = %283
  %297 = load ptr, ptr %11, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %297, i32 0, i32 3
  %299 = load float, ptr %298, align 4, !tbaa !63
  br label %300

300:                                              ; preds = %296, %291
  %301 = phi float [ %295, %291 ], [ %299, %296 ]
  %302 = load ptr, ptr %11, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %302, i32 0, i32 3
  store float %301, ptr %303, align 4, !tbaa !63
  %304 = load ptr, ptr %11, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %304, i32 0, i32 4
  %306 = load float, ptr %305, align 4, !tbaa !65
  %307 = fcmp olt float %306, 0.000000e+00
  br i1 %307, label %308, label %313

308:                                              ; preds = %300
  %309 = load ptr, ptr %8, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.ImPlotContext, ptr %309, i32 0, i32 12
  %311 = getelementptr inbounds %struct.ImPlotStyle, ptr %310, i32 0, i32 3
  %312 = load float, ptr %311, align 4, !tbaa !66
  br label %317

313:                                              ; preds = %300
  %314 = load ptr, ptr %11, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %314, i32 0, i32 4
  %316 = load float, ptr %315, align 4, !tbaa !65
  br label %317

317:                                              ; preds = %313, %308
  %318 = phi float [ %312, %308 ], [ %316, %313 ]
  %319 = load ptr, ptr %11, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %319, i32 0, i32 4
  store float %318, ptr %320, align 4, !tbaa !65
  %321 = load ptr, ptr %11, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %321, i32 0, i32 5
  %323 = load float, ptr %322, align 4, !tbaa !67
  %324 = fcmp olt float %323, 0.000000e+00
  br i1 %324, label %325, label %330

325:                                              ; preds = %317
  %326 = load ptr, ptr %8, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.ImPlotContext, ptr %326, i32 0, i32 12
  %328 = getelementptr inbounds %struct.ImPlotStyle, ptr %327, i32 0, i32 4
  %329 = load float, ptr %328, align 4, !tbaa !68
  br label %334

330:                                              ; preds = %317
  %331 = load ptr, ptr %11, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %331, i32 0, i32 5
  %333 = load float, ptr %332, align 4, !tbaa !67
  br label %334

334:                                              ; preds = %330, %325
  %335 = phi float [ %329, %325 ], [ %333, %330 ]
  %336 = load ptr, ptr %11, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %336, i32 0, i32 5
  store float %335, ptr %337, align 4, !tbaa !67
  %338 = load ptr, ptr %11, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %338, i32 0, i32 6
  %340 = load float, ptr %339, align 4, !tbaa !69
  %341 = fcmp olt float %340, 0.000000e+00
  br i1 %341, label %342, label %347

342:                                              ; preds = %334
  %343 = load ptr, ptr %8, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.ImPlotContext, ptr %343, i32 0, i32 12
  %345 = getelementptr inbounds %struct.ImPlotStyle, ptr %344, i32 0, i32 5
  %346 = load float, ptr %345, align 4, !tbaa !70
  br label %351

347:                                              ; preds = %334
  %348 = load ptr, ptr %11, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %348, i32 0, i32 6
  %350 = load float, ptr %349, align 4, !tbaa !69
  br label %351

351:                                              ; preds = %347, %342
  %352 = phi float [ %346, %342 ], [ %350, %347 ]
  %353 = load ptr, ptr %11, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %353, i32 0, i32 6
  store float %352, ptr %354, align 4, !tbaa !69
  %355 = load ptr, ptr %11, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %355, i32 0, i32 7
  %357 = load float, ptr %356, align 4, !tbaa !71
  %358 = fcmp olt float %357, 0.000000e+00
  br i1 %358, label %359, label %364

359:                                              ; preds = %351
  %360 = load ptr, ptr %8, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.ImPlotContext, ptr %360, i32 0, i32 12
  %362 = getelementptr inbounds %struct.ImPlotStyle, ptr %361, i32 0, i32 6
  %363 = load float, ptr %362, align 4, !tbaa !72
  br label %368

364:                                              ; preds = %351
  %365 = load ptr, ptr %11, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %365, i32 0, i32 7
  %367 = load float, ptr %366, align 4, !tbaa !71
  br label %368

368:                                              ; preds = %364, %359
  %369 = phi float [ %363, %359 ], [ %367, %364 ]
  %370 = load ptr, ptr %11, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %370, i32 0, i32 7
  store float %369, ptr %371, align 4, !tbaa !71
  %372 = load ptr, ptr %11, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %372, i32 0, i32 8
  %374 = load float, ptr %373, align 4, !tbaa !73
  %375 = fcmp olt float %374, 0.000000e+00
  br i1 %375, label %376, label %381

376:                                              ; preds = %368
  %377 = load ptr, ptr %8, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.ImPlotContext, ptr %377, i32 0, i32 12
  %379 = getelementptr inbounds %struct.ImPlotStyle, ptr %378, i32 0, i32 7
  %380 = load float, ptr %379, align 4, !tbaa !74
  br label %385

381:                                              ; preds = %368
  %382 = load ptr, ptr %11, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %382, i32 0, i32 8
  %384 = load float, ptr %383, align 4, !tbaa !73
  br label %385

385:                                              ; preds = %381, %376
  %386 = phi float [ %380, %376 ], [ %384, %381 ]
  %387 = load ptr, ptr %11, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %387, i32 0, i32 8
  store float %386, ptr %388, align 4, !tbaa !73
  %389 = load ptr, ptr %11, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %389, i32 0, i32 9
  %391 = load float, ptr %390, align 4, !tbaa !75
  %392 = fcmp olt float %391, 0.000000e+00
  br i1 %392, label %393, label %398

393:                                              ; preds = %385
  %394 = load ptr, ptr %8, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.ImPlotContext, ptr %394, i32 0, i32 12
  %396 = getelementptr inbounds %struct.ImPlotStyle, ptr %395, i32 0, i32 8
  %397 = load float, ptr %396, align 4, !tbaa !76
  br label %402

398:                                              ; preds = %385
  %399 = load ptr, ptr %11, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %399, i32 0, i32 9
  %401 = load float, ptr %400, align 4, !tbaa !75
  br label %402

402:                                              ; preds = %398, %393
  %403 = phi float [ %397, %393 ], [ %401, %398 ]
  %404 = load ptr, ptr %11, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %404, i32 0, i32 9
  store float %403, ptr %405, align 4, !tbaa !75
  %406 = load ptr, ptr %11, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %406, i32 0, i32 5
  %408 = load float, ptr %407, align 4, !tbaa !67
  %409 = load ptr, ptr %11, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %409, i32 0, i32 0
  %411 = getelementptr inbounds [5 x %struct.ImVec4], ptr %410, i64 0, i64 1
  %412 = getelementptr inbounds %struct.ImVec4, ptr %411, i32 0, i32 3
  %413 = load float, ptr %412, align 4, !tbaa !77
  %414 = fmul float %413, %408
  store float %414, ptr %412, align 4, !tbaa !77
  %415 = load ptr, ptr %11, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %415, i32 0, i32 5
  %417 = load float, ptr %416, align 4, !tbaa !67
  %418 = load ptr, ptr %11, align 8, !tbaa !5
  %419 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %418, i32 0, i32 0
  %420 = getelementptr inbounds [5 x %struct.ImVec4], ptr %419, i64 0, i64 3
  %421 = getelementptr inbounds %struct.ImVec4, ptr %420, i32 0, i32 3
  %422 = load float, ptr %421, align 4, !tbaa !77
  %423 = fmul float %422, %417
  store float %423, ptr %421, align 4, !tbaa !77
  %424 = load ptr, ptr %10, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.ImPlotItem, ptr %424, i32 0, i32 5
  %426 = load i8, ptr %425, align 1, !tbaa !79, !range !50, !noundef !51
  %427 = trunc i8 %426 to i1
  br i1 %427, label %428, label %503

428:                                              ; preds = %402
  %429 = load ptr, ptr %8, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.ImPlotContext, ptr %429, i32 0, i32 4
  %431 = load ptr, ptr %430, align 8, !tbaa !80
  %432 = getelementptr inbounds %struct.ImPlotItemGroup, ptr %431, i32 0, i32 2
  %433 = getelementptr inbounds %struct.ImPlotLegend, ptr %432, i32 0, i32 0
  %434 = load i32, ptr %433, align 8, !tbaa !81
  %435 = call noundef zeroext i1 @_ZL9ImHasFlagIi18ImPlotLegendFlags_EbT_T0_(i32 noundef %434, i32 noundef 2)
  br i1 %435, label %449, label %436

436:                                              ; preds = %428
  %437 = load ptr, ptr %11, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %437, i32 0, i32 1
  %439 = load float, ptr %438, align 4, !tbaa !59
  %440 = fmul float %439, 2.000000e+00
  store float %440, ptr %438, align 4, !tbaa !59
  %441 = load ptr, ptr %11, align 8, !tbaa !5
  %442 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %441, i32 0, i32 3
  %443 = load float, ptr %442, align 4, !tbaa !63
  %444 = fmul float %443, 1.250000e+00
  store float %444, ptr %442, align 4, !tbaa !63
  %445 = load ptr, ptr %11, align 8, !tbaa !5
  %446 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %445, i32 0, i32 4
  %447 = load float, ptr %446, align 4, !tbaa !65
  %448 = fmul float %447, 2.000000e+00
  store float %448, ptr %446, align 4, !tbaa !65
  br label %449

449:                                              ; preds = %436, %428
  %450 = load ptr, ptr %8, align 8, !tbaa !5
  %451 = getelementptr inbounds %struct.ImPlotContext, ptr %450, i32 0, i32 4
  %452 = load ptr, ptr %451, align 8, !tbaa !80
  %453 = getelementptr inbounds %struct.ImPlotItemGroup, ptr %452, i32 0, i32 2
  %454 = getelementptr inbounds %struct.ImPlotLegend, ptr %453, i32 0, i32 0
  %455 = load i32, ptr %454, align 8, !tbaa !81
  %456 = call noundef zeroext i1 @_ZL9ImHasFlagIi18ImPlotLegendFlags_EbT_T0_(i32 noundef %455, i32 noundef 4)
  br i1 %456, label %502, label %457

457:                                              ; preds = %449
  %458 = load ptr, ptr %8, align 8, !tbaa !5
  %459 = getelementptr inbounds %struct.ImPlotContext, ptr %458, i32 0, i32 2
  %460 = load ptr, ptr %459, align 8, !tbaa !11
  %461 = call noundef i32 @_ZN10ImPlotPlot12EnabledAxesXEv(ptr noundef nonnull align 8 dereferenceable(2533) %460)
  %462 = icmp sgt i32 %461, 1
  br i1 %462, label %463, label %479

463:                                              ; preds = %457
  %464 = load ptr, ptr %10, align 8, !tbaa !5
  %465 = getelementptr inbounds %struct.ImPlotItem, ptr %464, i32 0, i32 1
  %466 = load i32, ptr %465, align 4, !tbaa !46
  %467 = load ptr, ptr %8, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct.ImPlotContext, ptr %467, i32 0, i32 2
  %469 = load ptr, ptr %468, align 8, !tbaa !11
  %470 = getelementptr inbounds %struct.ImPlotPlot, ptr %469, i32 0, i32 6
  %471 = load ptr, ptr %8, align 8, !tbaa !5
  %472 = getelementptr inbounds %struct.ImPlotContext, ptr %471, i32 0, i32 2
  %473 = load ptr, ptr %472, align 8, !tbaa !11
  %474 = getelementptr inbounds %struct.ImPlotPlot, ptr %473, i32 0, i32 9
  %475 = load i32, ptr %474, align 8, !tbaa !86
  %476 = sext i32 %475 to i64
  %477 = getelementptr inbounds [6 x %struct.ImPlotAxis], ptr %470, i64 0, i64 %476
  %478 = getelementptr inbounds %struct.ImPlotAxis, ptr %477, i32 0, i32 41
  store i32 %466, ptr %478, align 8, !tbaa !88
  br label %479

479:                                              ; preds = %463, %457
  %480 = load ptr, ptr %8, align 8, !tbaa !5
  %481 = getelementptr inbounds %struct.ImPlotContext, ptr %480, i32 0, i32 2
  %482 = load ptr, ptr %481, align 8, !tbaa !11
  %483 = call noundef i32 @_ZN10ImPlotPlot12EnabledAxesYEv(ptr noundef nonnull align 8 dereferenceable(2533) %482)
  %484 = icmp sgt i32 %483, 1
  br i1 %484, label %485, label %501

485:                                              ; preds = %479
  %486 = load ptr, ptr %10, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.ImPlotItem, ptr %486, i32 0, i32 1
  %488 = load i32, ptr %487, align 4, !tbaa !46
  %489 = load ptr, ptr %8, align 8, !tbaa !5
  %490 = getelementptr inbounds %struct.ImPlotContext, ptr %489, i32 0, i32 2
  %491 = load ptr, ptr %490, align 8, !tbaa !11
  %492 = getelementptr inbounds %struct.ImPlotPlot, ptr %491, i32 0, i32 6
  %493 = load ptr, ptr %8, align 8, !tbaa !5
  %494 = getelementptr inbounds %struct.ImPlotContext, ptr %493, i32 0, i32 2
  %495 = load ptr, ptr %494, align 8, !tbaa !11
  %496 = getelementptr inbounds %struct.ImPlotPlot, ptr %495, i32 0, i32 10
  %497 = load i32, ptr %496, align 4, !tbaa !93
  %498 = sext i32 %497 to i64
  %499 = getelementptr inbounds [6 x %struct.ImPlotAxis], ptr %492, i64 0, i64 %498
  %500 = getelementptr inbounds %struct.ImPlotAxis, ptr %499, i32 0, i32 41
  store i32 %488, ptr %500, align 8, !tbaa !88
  br label %501

501:                                              ; preds = %485, %479
  br label %502

502:                                              ; preds = %501, %449
  br label %503

503:                                              ; preds = %502, %402
  %504 = load ptr, ptr %11, align 8, !tbaa !5
  %505 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %504, i32 0, i32 0
  %506 = getelementptr inbounds [5 x %struct.ImVec4], ptr %505, i64 0, i64 0
  %507 = getelementptr inbounds %struct.ImVec4, ptr %506, i32 0, i32 3
  %508 = load float, ptr %507, align 4, !tbaa !77
  %509 = fcmp ogt float %508, 0.000000e+00
  br i1 %509, label %510, label %515

510:                                              ; preds = %503
  %511 = load ptr, ptr %11, align 8, !tbaa !5
  %512 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %511, i32 0, i32 1
  %513 = load float, ptr %512, align 4, !tbaa !59
  %514 = fcmp ogt float %513, 0.000000e+00
  br label %515

515:                                              ; preds = %510, %503
  %516 = phi i1 [ false, %503 ], [ %514, %510 ]
  %517 = load ptr, ptr %11, align 8, !tbaa !5
  %518 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %517, i32 0, i32 10
  %519 = zext i1 %516 to i8
  store i8 %519, ptr %518, align 4, !tbaa !94
  %520 = load ptr, ptr %11, align 8, !tbaa !5
  %521 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %520, i32 0, i32 0
  %522 = getelementptr inbounds [5 x %struct.ImVec4], ptr %521, i64 0, i64 1
  %523 = getelementptr inbounds %struct.ImVec4, ptr %522, i32 0, i32 3
  %524 = load float, ptr %523, align 4, !tbaa !77
  %525 = fcmp ogt float %524, 0.000000e+00
  %526 = load ptr, ptr %11, align 8, !tbaa !5
  %527 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %526, i32 0, i32 11
  %528 = zext i1 %525 to i8
  store i8 %528, ptr %527, align 1, !tbaa !95
  %529 = load ptr, ptr %11, align 8, !tbaa !5
  %530 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %529, i32 0, i32 0
  %531 = getelementptr inbounds [5 x %struct.ImVec4], ptr %530, i64 0, i64 3
  %532 = getelementptr inbounds %struct.ImVec4, ptr %531, i32 0, i32 3
  %533 = load float, ptr %532, align 4, !tbaa !77
  %534 = fcmp ogt float %533, 0.000000e+00
  %535 = load ptr, ptr %11, align 8, !tbaa !5
  %536 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %535, i32 0, i32 13
  %537 = zext i1 %534 to i8
  store i8 %537, ptr %536, align 1, !tbaa !96
  %538 = load ptr, ptr %11, align 8, !tbaa !5
  %539 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %538, i32 0, i32 0
  %540 = getelementptr inbounds [5 x %struct.ImVec4], ptr %539, i64 0, i64 2
  %541 = getelementptr inbounds %struct.ImVec4, ptr %540, i32 0, i32 3
  %542 = load float, ptr %541, align 4, !tbaa !77
  %543 = fcmp ogt float %542, 0.000000e+00
  br i1 %543, label %544, label %549

544:                                              ; preds = %515
  %545 = load ptr, ptr %11, align 8, !tbaa !5
  %546 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %545, i32 0, i32 4
  %547 = load float, ptr %546, align 4, !tbaa !65
  %548 = fcmp ogt float %547, 0.000000e+00
  br label %549

549:                                              ; preds = %544, %515
  %550 = phi i1 [ false, %515 ], [ %548, %544 ]
  %551 = load ptr, ptr %11, align 8, !tbaa !5
  %552 = getelementptr inbounds %struct.ImPlotNextItemData, ptr %551, i32 0, i32 12
  %553 = zext i1 %550 to i8
  store i8 %553, ptr %552, align 2, !tbaa !97
  call void @_ZN6ImPlot16PushPlotClipRectEf(float noundef 0.000000e+00)
  store i1 true, ptr %4, align 1
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  br label %554

554:                                              ; preds = %549, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  %555 = load i1, ptr %4, align 1
  ret i1 %555
}

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

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

declare noundef i32 @_ZN6ImPlot20NextColormapColorU32Ev() #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN18ImPlotNextItemData5ResetEv(ptr noundef nonnull align 4 dereferenceable(128)) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, <2 x float> } @_ZN6ImPlotL17GetStyleColorVec4Ei(i32 noundef) #8

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 80}
!12 = !{!"_ZTS13ImPlotContext", !13, i64 0, !17, i64 40, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, 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, !10, i64 1096, !10, i64 1100, !40, i64 1104, !41, i64 1336, !42, i64 1464, !29, i64 1512, !21, i64 1520, !6, i64 1536, !43, i64 1544, !6, i64 1584, !6, i64 1592}
!13 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !14, i64 0, !15, i64 16, !10, i64 32, !10, i64 36}
!14 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !10, i64 0, !10, i64 4, !6, i64 8}
!15 = !{!"_ZTS12ImGuiStorage", !16, i64 0}
!16 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !10, i64 0, !10, i64 4, !6, i64 8}
!17 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !18, i64 0, !15, i64 16, !10, i64 32, !10, i64 36}
!18 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !10, i64 0, !10, i64 4, !6, i64 8}
!19 = !{!"_ZTS12ImPlotTicker", !20, i64 0, !21, i64 16, !23, i64 32, !23, i64 40, !10, i64 48}
!20 = !{!"_ZTS8ImVectorI10ImPlotTickE", !10, i64 0, !10, i64 4, !6, i64 8}
!21 = !{!"_ZTS15ImGuiTextBuffer", !22, i64 0}
!22 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !6, i64 8}
!23 = !{!"_ZTS6ImVec2", !24, i64 0, !24, i64 4}
!24 = !{!"float", !7, i64 0}
!25 = !{!"_ZTS26ImPlotAnnotationCollection", !26, i64 0, !21, i64 16, !10, i64 32}
!26 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !10, i64 0, !10, i64 4, !6, i64 8}
!27 = !{!"_ZTS19ImPlotTagCollection", !28, i64 0, !21, i64 16, !10, i64 32}
!28 = !{!"_ZTS8ImVectorI9ImPlotTagE", !10, i64 0, !10, i64 4, !6, i64 8}
!29 = !{!"bool", !7, i64 0}
!30 = !{!"_ZTS11ImPlotStyle", !24, i64 0, !10, 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, !10, i64 508, !29, i64 512, !29, i64 513, !29, i64 514}
!31 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !10, i64 0, !10, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !6, 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, !10, i64 160}
!34 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorIbE", !10, i64 0, !10, i64 4, !6, i64 8}
!37 = !{!"_ZTS2tm", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !38, i64 40, !6, i64 48}
!38 = !{!"long", !7, i64 0}
!39 = !{!"_ZTS8ImVectorIdE", !10, i64 0, !10, i64 4, !6, 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, !10, 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, !10, i64 124}
!42 = !{!"_ZTS14ImPlotInputMap", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !24, i64 44}
!43 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !44, i64 0, !15, i64 16, !10, i64 32, !10, i64 36}
!44 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!45 = !{!12, !6, i64 104}
!46 = !{!47, !10, i64 4}
!47 = !{!"_ZTS10ImPlotItem", !10, i64 0, !10, i64 4, !48, i64 8, !10, i64 24, !29, i64 28, !29, i64 29, !29, i64 30}
!48 = !{!"_ZTS6ImRect", !23, i64 0, !23, i64 8}
!49 = !{!29, !29, i64 0}
!50 = !{i8 0, i8 2}
!51 = !{}
!52 = !{!12, !29, i64 1456}
!53 = !{!12, !10, i64 1460}
!54 = !{!12, !29, i64 1457}
!55 = !{!47, !29, i64 28}
!56 = !{!12, !6, i64 112}
!57 = !{i64 0, i64 4, !58, i64 4, i64 4, !58, i64 8, i64 4, !58, i64 12, i64 4, !58}
!58 = !{!24, !24, i64 0}
!59 = !{!41, !24, i64 80}
!60 = !{!12, !24, i64 260}
!61 = !{!41, !10, i64 84}
!62 = !{!12, !10, i64 264}
!63 = !{!41, !24, i64 88}
!64 = !{!12, !24, i64 268}
!65 = !{!41, !24, i64 92}
!66 = !{!12, !24, i64 272}
!67 = !{!41, !24, i64 96}
!68 = !{!12, !24, i64 276}
!69 = !{!41, !24, i64 100}
!70 = !{!12, !24, i64 280}
!71 = !{!41, !24, i64 104}
!72 = !{!12, !24, i64 284}
!73 = !{!41, !24, i64 108}
!74 = !{!12, !24, i64 288}
!75 = !{!41, !24, i64 112}
!76 = !{!12, !24, i64 292}
!77 = !{!78, !24, i64 12}
!78 = !{!"_ZTS6ImVec4", !24, i64 0, !24, i64 4, !24, i64 8, !24, i64 12}
!79 = !{!47, !29, i64 29}
!80 = !{!12, !6, i64 96}
!81 = !{!82, !10, i64 8}
!82 = !{!"_ZTS15ImPlotItemGroup", !10, i64 0, !83, i64 8, !84, i64 80, !10, i64 120}
!83 = !{!"_ZTS12ImPlotLegend", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !35, i64 16, !21, i64 32, !48, i64 48, !29, i64 64, !29, i64 65, !29, i64 66}
!84 = !{!"_ZTS6ImPoolI10ImPlotItemE", !85, i64 0, !15, i64 16, !10, i64 32, !10, i64 36}
!85 = !{!"_ZTS8ImVectorI10ImPlotItemE", !10, i64 0, !10, i64 4, !6, i64 8}
!86 = !{!87, !10, i64 2424}
!87 = !{!"_ZTS10ImPlotPlot", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24, !21, i64 2280, !82, i64 2296, !10, i64 2424, !10, i64 2428, !48, i64 2432, !48, i64 2448, !48, i64 2464, !48, i64 2480, !48, i64 2496, !23, i64 2512, !10, i64 2520, !29, i64 2524, !29, i64 2525, !29, i64 2526, !29, i64 2527, !29, i64 2528, !29, i64 2529, !29, i64 2530, !29, i64 2531, !29, i64 2532}
!88 = !{!89, !10, i64 360}
!89 = !{!"_ZTS10ImPlotAxis", !10, i64 0, !10, i64 4, !10, i64 8, !90, i64 16, !10, i64 32, !10, i64 36, !90, i64 40, !6, i64 56, !90, i64 64, !90, i64 80, !19, i64 96, !6, i64 152, !6, i64 160, !7, i64 168, !6, i64 184, !6, i64 192, !6, i64 200, !10, i64 208, !92, i64 216, !92, i64 232, !6, i64 248, !6, i64 256, !6, i64 264, !24, i64 272, !24, i64 276, !91, i64 280, !91, i64 288, !91, i64 296, !24, i64 304, !24, i64 308, !48, i64 312, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !29, i64 364, !29, i64 365, !29, i64 366, !29, i64 367, !29, i64 368, !29, i64 369, !29, i64 370, !29, i64 371}
!90 = !{!"_ZTS11ImPlotRange", !91, i64 0, !91, i64 8}
!91 = !{!"double", !7, i64 0}
!92 = !{!"_ZTS10ImPlotTime", !38, i64 0, !10, i64 8}
!93 = !{!87, !10, i64 2428}
!94 = !{!41, !29, i64 116}
!95 = !{!41, !29, i64 117}
!96 = !{!41, !29, i64 119}
!97 = !{!41, !29, i64 118}


; 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.ImVec4 = type { float, float, float, float }
%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.ImPlotRange = type { double, double }
%struct.ImPlotTicker = type <{ %struct.ImVector.123, %struct.ImGuiTextBuffer, %struct.ImVec2, %struct.ImVec2, i32, [4 x i8] }>
%struct.ImVector.123 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.124 }
%struct.ImVector.124 = type { i32, i32, ptr }
%struct.ImVec2 = type { float, float }
%struct.ImPlotTime = type <{ i64, i32, [4 x i8] }>
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }

@GImPlot = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [95 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot9BeginItemEPKcii = external hidden unnamed_addr constant [65 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: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

declare void @_ZN6ImPlot16PushPlotClipRectEf(float noundef) local_unnamed_addr #4

declare { <2 x float>, <2 x float> } @_ZN5ImGui23ColorConvertU32ToFloat4Ej(i32 noundef) local_unnamed_addr #4

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

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

9:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 403, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImPlot9BeginItemEPKcii) #9
  unreachable

10:                                               ; preds = %3
  tail call void @_ZN6ImPlotL9SetupLockEv()
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #10
  %11 = call noundef ptr @_ZN6ImPlot17RegisterOrGetItemEPKciPb(ptr noundef %0, i32 noundef %1, ptr noundef nonnull %4)
  %12 = getelementptr inbounds i8, ptr %6, i64 104
  store ptr %11, ptr %12, align 8, !tbaa !44
  %13 = getelementptr inbounds i8, ptr %6, i64 1336
  %.not127 = icmp eq i32 %2, -1
  br i1 %.not127, label %31, label %14

14:                                               ; preds = %10
  %15 = sext i32 %2 to i64
  %16 = getelementptr inbounds [5 x %struct.ImVec4], ptr %13, i64 0, i64 %15
  %17 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %16)
  br i1 %17, label %20, label %18

18:                                               ; preds = %14
  %19 = call noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %16)
  br label %.sink.split

20:                                               ; preds = %14
  %21 = getelementptr inbounds i8, ptr %6, i64 432
  %22 = getelementptr inbounds [21 x %struct.ImVec4], ptr %21, i64 0, i64 %15
  %23 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %22)
  br i1 %23, label %26, label %24

24:                                               ; preds = %20
  %25 = call noundef i32 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %22)
  br label %.sink.split

26:                                               ; preds = %20
  %27 = load i8, ptr %4, align 1, !tbaa !45, !range !46, !noundef !47
  %28 = trunc nuw i8 %27 to i1
  br i1 %28, label %29, label %37

29:                                               ; preds = %26
  %30 = call noundef i32 @_ZN6ImPlot20NextColormapColorU32Ev()
  br label %.sink.split

31:                                               ; preds = %10
  %32 = load i8, ptr %4, align 1, !tbaa !45, !range !46, !noundef !47
  %33 = trunc nuw i8 %32 to i1
  br i1 %33, label %34, label %37

34:                                               ; preds = %31
  %35 = call noundef i32 @_ZN6ImPlot20NextColormapColorU32Ev()
  br label %.sink.split

.sink.split:                                      ; preds = %24, %29, %18, %34
  %.sink = phi i32 [ %35, %34 ], [ %19, %18 ], [ %30, %29 ], [ %25, %24 ]
  %36 = getelementptr inbounds i8, ptr %11, i64 4
  store i32 %.sink, ptr %36, align 4, !tbaa !48
  br label %37

37:                                               ; preds = %.sink.split, %31, %26
  %38 = getelementptr inbounds i8, ptr %6, i64 1456
  %39 = load i8, ptr %38, align 8, !tbaa !51, !range !46, !noundef !47
  %40 = trunc nuw i8 %39 to i1
  br i1 %40, label %41, label %53

41:                                               ; preds = %37
  %42 = load i8, ptr %4, align 1, !tbaa !45, !range !46, !noundef !47
  %43 = trunc nuw i8 %42 to i1
  br i1 %43, label %48, label %44

44:                                               ; preds = %41
  %45 = getelementptr inbounds i8, ptr %6, i64 1460
  %46 = load i32, ptr %45, align 4, !tbaa !52
  %47 = icmp eq i32 %46, 1
  br i1 %47, label %48, label %53

48:                                               ; preds = %44, %41
  %49 = getelementptr inbounds i8, ptr %6, i64 1457
  %50 = load i8, ptr %49, align 1, !tbaa !53, !range !46, !noundef !47
  %51 = xor i8 %50, 1
  %52 = getelementptr inbounds i8, ptr %11, i64 28
  store i8 %51, ptr %52, align 4, !tbaa !54
  br label %53

53:                                               ; preds = %44, %48, %37
  %54 = getelementptr inbounds i8, ptr %11, i64 28
  %55 = load i8, ptr %54, align 4, !tbaa !54, !range !46, !noundef !47
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %59, label %57

57:                                               ; preds = %53
  call void @_ZN18ImPlotNextItemData5ResetEv(ptr noundef nonnull align 4 dereferenceable(128) %13)
  %58 = getelementptr inbounds i8, ptr %6, i64 112
  store ptr %11, ptr %58, align 8, !tbaa !55
  store ptr null, ptr %12, align 8, !tbaa !44
  br label %253

59:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #10
  %60 = getelementptr inbounds i8, ptr %11, i64 4
  %61 = load i32, ptr %60, align 4, !tbaa !48
  %62 = call { <2 x float>, <2 x float> } @_ZN5ImGui23ColorConvertU32ToFloat4Ej(i32 noundef %61)
  %63 = extractvalue { <2 x float>, <2 x float> } %62, 0
  store <2 x float> %63, ptr %5, align 8
  %64 = getelementptr inbounds i8, ptr %5, i64 8
  %65 = extractvalue { <2 x float>, <2 x float> } %62, 1
  store <2 x float> %65, ptr %64, align 8
  %66 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %13)
  br i1 %66, label %67, label %71

67:                                               ; preds = %59
  %68 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoEi(i32 noundef 0)
  %69 = getelementptr inbounds i8, ptr %6, i64 432
  %70 = select i1 %68, ptr %5, ptr %69
  br label %71

71:                                               ; preds = %59, %67
  %72 = phi ptr [ %70, %67 ], [ %13, %59 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(16) %72, i64 16, i1 false), !tbaa.struct !56
  %73 = getelementptr inbounds i8, ptr %6, i64 1352
  %74 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %73)
  br i1 %74, label %75, label %79

75:                                               ; preds = %71
  %76 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoEi(i32 noundef 1)
  %77 = getelementptr inbounds i8, ptr %6, i64 448
  %78 = select i1 %76, ptr %5, ptr %77
  br label %79

79:                                               ; preds = %71, %75
  %80 = phi ptr [ %78, %75 ], [ %73, %71 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %73, ptr noundef nonnull align 4 dereferenceable(16) %80, i64 16, i1 false), !tbaa.struct !56
  %81 = getelementptr inbounds i8, ptr %6, i64 1368
  %82 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %81)
  br i1 %82, label %83, label %87

83:                                               ; preds = %79
  %84 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoEi(i32 noundef 2)
  %85 = getelementptr inbounds i8, ptr %6, i64 464
  %86 = select i1 %84, ptr %13, ptr %85
  br label %87

87:                                               ; preds = %79, %83
  %88 = phi ptr [ %86, %83 ], [ %81, %79 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %81, ptr noundef nonnull align 4 dereferenceable(16) %88, i64 16, i1 false), !tbaa.struct !56
  %89 = getelementptr inbounds i8, ptr %6, i64 1384
  %90 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %89)
  br i1 %90, label %91, label %95

91:                                               ; preds = %87
  %92 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoEi(i32 noundef 3)
  %93 = getelementptr inbounds i8, ptr %6, i64 480
  %94 = select i1 %92, ptr %13, ptr %93
  br label %95

95:                                               ; preds = %87, %91
  %96 = phi ptr [ %94, %91 ], [ %89, %87 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %89, ptr noundef nonnull align 4 dereferenceable(16) %96, i64 16, i1 false), !tbaa.struct !56
  %97 = getelementptr inbounds i8, ptr %6, i64 1400
  %98 = call noundef zeroext i1 @_ZN6ImPlotL11IsColorAutoERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16) %97)
  br i1 %98, label %99, label %103

99:                                               ; preds = %95
  %100 = call { <2 x float>, <2 x float> } @_ZN6ImPlotL17GetStyleColorVec4Ei(i32 noundef 4)
  %101 = extractvalue { <2 x float>, <2 x float> } %100, 0
  %102 = extractvalue { <2 x float>, <2 x float> } %100, 1
  br label %104

103:                                              ; preds = %95
  %.sroa.0.0.copyload = load <2 x float>, ptr %97, align 4
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 1408
  %.sroa.5.0.copyload = load <2 x float>, ptr %.sroa.5.0..sroa_idx, align 4
  br label %104

104:                                              ; preds = %103, %99
  %.sroa.5.0 = phi <2 x float> [ %102, %99 ], [ %.sroa.5.0.copyload, %103 ]
  %.sroa.0.0 = phi <2 x float> [ %101, %99 ], [ %.sroa.0.0.copyload, %103 ]
  store <2 x float> %.sroa.0.0, ptr %97, align 4
  %.sroa.5.0..sroa_idx2 = getelementptr inbounds i8, ptr %6, i64 1408
  store <2 x float> %.sroa.5.0, ptr %.sroa.5.0..sroa_idx2, align 4
  %105 = getelementptr inbounds i8, ptr %6, i64 1416
  %106 = load float, ptr %105, align 4, !tbaa !58
  %107 = fcmp olt float %106, 0.000000e+00
  br i1 %107, label %108, label %111

108:                                              ; preds = %104
  %109 = getelementptr inbounds i8, ptr %6, i64 260
  %110 = load float, ptr %109, align 4, !tbaa !59
  br label %111

111:                                              ; preds = %104, %108
  %112 = phi float [ %110, %108 ], [ %106, %104 ]
  store float %112, ptr %105, align 4, !tbaa !58
  %113 = getelementptr inbounds i8, ptr %6, i64 1420
  %114 = load i32, ptr %113, align 4, !tbaa !60
  %115 = icmp slt i32 %114, 0
  br i1 %115, label %116, label %119

116:                                              ; preds = %111
  %117 = getelementptr inbounds i8, ptr %6, i64 264
  %118 = load i32, ptr %117, align 4, !tbaa !61
  br label %119

119:                                              ; preds = %111, %116
  %120 = phi i32 [ %118, %116 ], [ %114, %111 ]
  store i32 %120, ptr %113, align 4, !tbaa !60
  %121 = getelementptr inbounds i8, ptr %6, i64 1424
  %122 = load float, ptr %121, align 4, !tbaa !62
  %123 = fcmp olt float %122, 0.000000e+00
  br i1 %123, label %124, label %127

124:                                              ; preds = %119
  %125 = getelementptr inbounds i8, ptr %6, i64 268
  %126 = load float, ptr %125, align 4, !tbaa !63
  br label %127

127:                                              ; preds = %119, %124
  %128 = phi float [ %126, %124 ], [ %122, %119 ]
  store float %128, ptr %121, align 4, !tbaa !62
  %129 = getelementptr inbounds i8, ptr %6, i64 1428
  %130 = load float, ptr %129, align 4, !tbaa !64
  %131 = fcmp olt float %130, 0.000000e+00
  br i1 %131, label %132, label %135

132:                                              ; preds = %127
  %133 = getelementptr inbounds i8, ptr %6, i64 272
  %134 = load float, ptr %133, align 4, !tbaa !65
  br label %135

135:                                              ; preds = %127, %132
  %136 = phi float [ %134, %132 ], [ %130, %127 ]
  store float %136, ptr %129, align 4, !tbaa !64
  %137 = getelementptr inbounds i8, ptr %6, i64 1432
  %138 = load float, ptr %137, align 4, !tbaa !66
  %139 = fcmp olt float %138, 0.000000e+00
  br i1 %139, label %140, label %143

140:                                              ; preds = %135
  %141 = getelementptr inbounds i8, ptr %6, i64 276
  %142 = load float, ptr %141, align 4, !tbaa !67
  br label %143

143:                                              ; preds = %135, %140
  %144 = phi float [ %142, %140 ], [ %138, %135 ]
  store float %144, ptr %137, align 4, !tbaa !66
  %145 = getelementptr inbounds i8, ptr %6, i64 1436
  %146 = load float, ptr %145, align 4, !tbaa !68
  %147 = fcmp olt float %146, 0.000000e+00
  br i1 %147, label %148, label %151

148:                                              ; preds = %143
  %149 = getelementptr inbounds i8, ptr %6, i64 280
  %150 = load float, ptr %149, align 4, !tbaa !69
  br label %151

151:                                              ; preds = %143, %148
  %152 = phi float [ %150, %148 ], [ %146, %143 ]
  store float %152, ptr %145, align 4, !tbaa !68
  %153 = getelementptr inbounds i8, ptr %6, i64 1440
  %154 = load float, ptr %153, align 4, !tbaa !70
  %155 = fcmp olt float %154, 0.000000e+00
  br i1 %155, label %156, label %159

156:                                              ; preds = %151
  %157 = getelementptr inbounds i8, ptr %6, i64 284
  %158 = load float, ptr %157, align 4, !tbaa !71
  br label %159

159:                                              ; preds = %151, %156
  %160 = phi float [ %158, %156 ], [ %154, %151 ]
  store float %160, ptr %153, align 4, !tbaa !70
  %161 = getelementptr inbounds i8, ptr %6, i64 1444
  %162 = load float, ptr %161, align 4, !tbaa !72
  %163 = fcmp olt float %162, 0.000000e+00
  br i1 %163, label %164, label %167

164:                                              ; preds = %159
  %165 = getelementptr inbounds i8, ptr %6, i64 288
  %166 = load float, ptr %165, align 4, !tbaa !73
  br label %167

167:                                              ; preds = %159, %164
  %168 = phi float [ %166, %164 ], [ %162, %159 ]
  store float %168, ptr %161, align 4, !tbaa !72
  %169 = getelementptr inbounds i8, ptr %6, i64 1448
  %170 = load float, ptr %169, align 4, !tbaa !74
  %171 = fcmp olt float %170, 0.000000e+00
  br i1 %171, label %172, label %175

172:                                              ; preds = %167
  %173 = getelementptr inbounds i8, ptr %6, i64 292
  %174 = load float, ptr %173, align 4, !tbaa !75
  br label %175

175:                                              ; preds = %167, %172
  %176 = phi float [ %174, %172 ], [ %170, %167 ]
  store float %176, ptr %169, align 4, !tbaa !74
  %177 = getelementptr inbounds i8, ptr %6, i64 1364
  %178 = load float, ptr %177, align 4, !tbaa !76
  %179 = fmul float %144, %178
  store float %179, ptr %177, align 4, !tbaa !76
  %180 = getelementptr inbounds i8, ptr %6, i64 1396
  %181 = load float, ptr %180, align 4, !tbaa !76
  %182 = fmul float %144, %181
  store float %182, ptr %180, align 4, !tbaa !76
  %183 = getelementptr inbounds i8, ptr %11, i64 29
  %184 = load i8, ptr %183, align 1, !tbaa !78, !range !46, !noundef !47
  %185 = trunc nuw i8 %184 to i1
  br i1 %185, label %186, label %224

186:                                              ; preds = %175
  %187 = getelementptr inbounds i8, ptr %6, i64 96
  %188 = load ptr, ptr %187, align 8, !tbaa !79
  %189 = getelementptr inbounds i8, ptr %188, i64 8
  %190 = load i32, ptr %189, align 8, !tbaa !80
  %191 = call noundef zeroext i1 @_ZL9ImHasFlagIi18ImPlotLegendFlags_EbT_T0_(i32 noundef %190, i32 noundef 2)
  br i1 %191, label %197, label %192

192:                                              ; preds = %186
  %193 = load float, ptr %105, align 4, !tbaa !58
  %194 = fmul float %193, 2.000000e+00
  store float %194, ptr %105, align 4, !tbaa !58
  %195 = load <2 x float>, ptr %121, align 4, !tbaa !57
  %196 = fmul <2 x float> %195, <float 1.250000e+00, float 2.000000e+00>
  store <2 x float> %196, ptr %121, align 4, !tbaa !57
  br label %197

197:                                              ; preds = %192, %186
  %198 = load ptr, ptr %187, align 8, !tbaa !79
  %199 = getelementptr inbounds i8, ptr %198, i64 8
  %200 = load i32, ptr %199, align 8, !tbaa !80
  %201 = call noundef zeroext i1 @_ZL9ImHasFlagIi18ImPlotLegendFlags_EbT_T0_(i32 noundef %200, i32 noundef 4)
  br i1 %201, label %224, label %202

202:                                              ; preds = %197
  %203 = load ptr, ptr %7, align 8, !tbaa !9
  %204 = call noundef i32 @_ZN10ImPlotPlot12EnabledAxesXEv(ptr noundef nonnull align 8 dereferenceable(2533) %203)
  %205 = icmp sgt i32 %204, 1
  %.pre = load ptr, ptr %7, align 8, !tbaa !9
  br i1 %205, label %206, label %213

206:                                              ; preds = %202
  %207 = load i32, ptr %60, align 4, !tbaa !48
  %208 = getelementptr inbounds i8, ptr %.pre, i64 24
  %209 = getelementptr inbounds i8, ptr %.pre, i64 2424
  %210 = load i32, ptr %209, align 8, !tbaa !85
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [6 x %struct.ImPlotAxis], ptr %208, i64 0, i64 %211, i32 41
  store i32 %207, ptr %212, align 8, !tbaa !87
  br label %213

213:                                              ; preds = %206, %202
  %214 = call noundef i32 @_ZN10ImPlotPlot12EnabledAxesYEv(ptr noundef nonnull align 8 dereferenceable(2533) %.pre)
  %215 = icmp sgt i32 %214, 1
  br i1 %215, label %216, label %224

216:                                              ; preds = %213
  %217 = load i32, ptr %60, align 4, !tbaa !48
  %218 = load ptr, ptr %7, align 8, !tbaa !9
  %219 = getelementptr inbounds i8, ptr %218, i64 24
  %220 = getelementptr inbounds i8, ptr %218, i64 2428
  %221 = load i32, ptr %220, align 4, !tbaa !92
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [6 x %struct.ImPlotAxis], ptr %219, i64 0, i64 %222, i32 41
  store i32 %217, ptr %223, align 8, !tbaa !87
  br label %224

224:                                              ; preds = %197, %216, %213, %175
  %225 = getelementptr inbounds i8, ptr %6, i64 1348
  %226 = load float, ptr %225, align 4, !tbaa !76
  %227 = fcmp ogt float %226, 0.000000e+00
  br i1 %227, label %228, label %232

228:                                              ; preds = %224
  %229 = load float, ptr %105, align 4, !tbaa !58
  %230 = fcmp ogt float %229, 0.000000e+00
  %231 = zext i1 %230 to i8
  br label %232

232:                                              ; preds = %228, %224
  %233 = phi i8 [ 0, %224 ], [ %231, %228 ]
  %234 = getelementptr inbounds i8, ptr %6, i64 1452
  store i8 %233, ptr %234, align 4, !tbaa !93
  %235 = load float, ptr %177, align 4, !tbaa !76
  %236 = fcmp ogt float %235, 0.000000e+00
  %237 = getelementptr inbounds i8, ptr %6, i64 1453
  %238 = zext i1 %236 to i8
  store i8 %238, ptr %237, align 1, !tbaa !94
  %239 = load float, ptr %180, align 4, !tbaa !76
  %240 = fcmp ogt float %239, 0.000000e+00
  %241 = getelementptr inbounds i8, ptr %6, i64 1455
  %242 = zext i1 %240 to i8
  store i8 %242, ptr %241, align 1, !tbaa !95
  %243 = getelementptr inbounds i8, ptr %6, i64 1380
  %244 = load float, ptr %243, align 4, !tbaa !76
  %245 = fcmp ogt float %244, 0.000000e+00
  br i1 %245, label %246, label %250

246:                                              ; preds = %232
  %247 = load float, ptr %129, align 4, !tbaa !64
  %248 = fcmp ogt float %247, 0.000000e+00
  %249 = zext i1 %248 to i8
  br label %250

250:                                              ; preds = %246, %232
  %251 = phi i8 [ 0, %232 ], [ %249, %246 ]
  %252 = getelementptr inbounds i8, ptr %6, i64 1454
  store i8 %251, ptr %252, align 2, !tbaa !96
  call void @_ZN6ImPlot16PushPlotClipRectEf(float noundef 0.000000e+00)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  br label %253

253:                                              ; preds = %250, %57
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #10
  ret i1 %56
}

; 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 @_ZN5ImGui23ColorConvertFloat4ToU32ERK6ImVec4(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4

declare noundef i32 @_ZN6ImPlot20NextColormapColorU32Ev() local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN18ImPlotNextItemData5ResetEv(ptr noundef nonnull align 4 dereferenceable(128)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, <2 x float> } @_ZN6ImPlotL17GetStyleColorVec4Ei(i32 noundef) local_unnamed_addr #8

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 80}
!10 = !{!"_ZTS13ImPlotContext", !11, i64 0, !16, i64 40, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !18, i64 120, !24, i64 176, !26, i64 216, !28, i64 256, !29, i64 260, !30, i64 776, !31, i64 792, !32, i64 808, !34, i64 976, !36, i64 992, !38, i64 1048, !38, i64 1064, !34, i64 1080, !13, i64 1096, !13, i64 1100, !39, i64 1104, !40, i64 1336, !41, i64 1464, !28, i64 1512, !20, i64 1520, !6, i64 1536, !42, i64 1544, !6, i64 1584, !6, i64 1592}
!11 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !12, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!12 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !13, i64 0, !13, i64 4, !6, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS12ImGuiStorage", !15, i64 0}
!15 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!16 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !17, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!17 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !13, i64 0, !13, i64 4, !6, i64 8}
!18 = !{!"_ZTS12ImPlotTicker", !19, i64 0, !20, i64 16, !22, i64 32, !22, i64 40, !13, i64 48}
!19 = !{!"_ZTS8ImVectorI10ImPlotTickE", !13, i64 0, !13, i64 4, !6, i64 8}
!20 = !{!"_ZTS15ImGuiTextBuffer", !21, i64 0}
!21 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!22 = !{!"_ZTS6ImVec2", !23, i64 0, !23, i64 4}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTS26ImPlotAnnotationCollection", !25, i64 0, !20, i64 16, !13, i64 32}
!25 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !13, i64 0, !13, i64 4, !6, i64 8}
!26 = !{!"_ZTS19ImPlotTagCollection", !27, i64 0, !20, i64 16, !13, i64 32}
!27 = !{!"_ZTS8ImVectorI9ImPlotTagE", !13, i64 0, !13, i64 4, !6, i64 8}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTS11ImPlotStyle", !23, i64 0, !13, i64 4, !23, i64 8, !23, i64 12, !23, i64 16, !23, i64 20, !23, i64 24, !23, i64 28, !23, i64 32, !23, i64 36, !23, i64 40, !22, i64 44, !22, i64 52, !22, i64 60, !22, i64 68, !22, i64 76, !22, i64 84, !22, i64 92, !22, i64 100, !22, i64 108, !22, i64 116, !22, i64 124, !22, i64 132, !22, i64 140, !22, i64 148, !22, i64 156, !22, i64 164, !7, i64 172, !13, i64 508, !28, i64 512, !28, i64 513, !28, i64 514}
!30 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!32 = !{!"_ZTS18ImPlotColormapData", !33, i64 0, !34, i64 16, !34, i64 32, !33, i64 48, !34, i64 64, !34, i64 80, !20, i64 96, !34, i64 112, !35, i64 128, !14, i64 144, !13, i64 160}
!33 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorIbE", !13, i64 0, !13, i64 4, !6, i64 8}
!36 = !{!"_ZTS2tm", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !37, i64 40, !6, i64 48}
!37 = !{!"long", !7, i64 0}
!38 = !{!"_ZTS8ImVectorIdE", !13, i64 0, !13, i64 4, !6, i64 8}
!39 = !{!"_ZTS18ImPlotNextPlotData", !7, i64 0, !7, i64 24, !7, i64 120, !7, i64 126, !7, i64 136, !7, i64 184}
!40 = !{!"_ZTS18ImPlotNextItemData", !7, i64 0, !23, i64 80, !13, i64 84, !23, i64 88, !23, i64 92, !23, i64 96, !23, i64 100, !23, i64 104, !23, i64 108, !23, i64 112, !28, i64 116, !28, i64 117, !28, i64 118, !28, i64 119, !28, i64 120, !28, i64 121, !13, i64 124}
!41 = !{!"_ZTS14ImPlotInputMap", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !23, i64 44}
!42 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !43, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!43 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!44 = !{!10, !6, i64 104}
!45 = !{!28, !28, i64 0}
!46 = !{i8 0, i8 2}
!47 = !{}
!48 = !{!49, !13, i64 4}
!49 = !{!"_ZTS10ImPlotItem", !13, i64 0, !13, i64 4, !50, i64 8, !13, i64 24, !28, i64 28, !28, i64 29, !28, i64 30}
!50 = !{!"_ZTS6ImRect", !22, i64 0, !22, i64 8}
!51 = !{!10, !28, i64 1456}
!52 = !{!10, !13, i64 1460}
!53 = !{!10, !28, i64 1457}
!54 = !{!49, !28, i64 28}
!55 = !{!10, !6, i64 112}
!56 = !{i64 0, i64 4, !57, i64 4, i64 4, !57, i64 8, i64 4, !57, i64 12, i64 4, !57}
!57 = !{!23, !23, i64 0}
!58 = !{!40, !23, i64 80}
!59 = !{!10, !23, i64 260}
!60 = !{!40, !13, i64 84}
!61 = !{!10, !13, i64 264}
!62 = !{!40, !23, i64 88}
!63 = !{!10, !23, i64 268}
!64 = !{!40, !23, i64 92}
!65 = !{!10, !23, i64 272}
!66 = !{!40, !23, i64 96}
!67 = !{!10, !23, i64 276}
!68 = !{!40, !23, i64 100}
!69 = !{!10, !23, i64 280}
!70 = !{!40, !23, i64 104}
!71 = !{!10, !23, i64 284}
!72 = !{!40, !23, i64 108}
!73 = !{!10, !23, i64 288}
!74 = !{!40, !23, i64 112}
!75 = !{!10, !23, i64 292}
!76 = !{!77, !23, i64 12}
!77 = !{!"_ZTS6ImVec4", !23, i64 0, !23, i64 4, !23, i64 8, !23, i64 12}
!78 = !{!49, !28, i64 29}
!79 = !{!10, !6, i64 96}
!80 = !{!81, !13, i64 8}
!81 = !{!"_ZTS15ImPlotItemGroup", !13, i64 0, !82, i64 8, !83, i64 80, !13, i64 120}
!82 = !{!"_ZTS12ImPlotLegend", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !34, i64 16, !20, i64 32, !50, i64 48, !28, i64 64, !28, i64 65, !28, i64 66}
!83 = !{!"_ZTS6ImPoolI10ImPlotItemE", !84, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!84 = !{!"_ZTS8ImVectorI10ImPlotItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!85 = !{!86, !13, i64 2424}
!86 = !{!"_ZTS10ImPlotPlot", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !7, i64 24, !20, i64 2280, !81, i64 2296, !13, i64 2424, !13, i64 2428, !50, i64 2432, !50, i64 2448, !50, i64 2464, !50, i64 2480, !50, i64 2496, !22, i64 2512, !13, i64 2520, !28, i64 2524, !28, i64 2525, !28, i64 2526, !28, i64 2527, !28, i64 2528, !28, i64 2529, !28, i64 2530, !28, i64 2531, !28, i64 2532}
!87 = !{!88, !13, i64 360}
!88 = !{!"_ZTS10ImPlotAxis", !13, i64 0, !13, i64 4, !13, i64 8, !89, i64 16, !13, i64 32, !13, i64 36, !89, i64 40, !6, i64 56, !89, i64 64, !89, 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, !91, i64 216, !91, i64 232, !6, i64 248, !6, i64 256, !6, i64 264, !23, i64 272, !23, i64 276, !90, i64 280, !90, i64 288, !90, i64 296, !23, i64 304, !23, i64 308, !50, 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}
!89 = !{!"_ZTS11ImPlotRange", !90, i64 0, !90, i64 8}
!90 = !{!"double", !7, i64 0}
!91 = !{!"_ZTS10ImPlotTime", !37, i64 0, !13, i64 8}
!92 = !{!86, !13, i64 2428}
!93 = !{!40, !28, i64 116}
!94 = !{!40, !28, i64 117}
!95 = !{!40, !28, i64 119}
!96 = !{!40, !28, i64 118}


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