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

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

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

@GImPlot = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [104 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot8PlotTextEPKcddRK6ImVec2i = external hidden unnamed_addr constant [85 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 noundef ptr @_ZN6ImPlot15GetPlotDrawListEv() #4

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

declare void @_ZN6ImPlot16PushPlotClipRectEf(float noundef) #4

declare <2 x float> @_ZN5ImGui12CalcTextSizeEPKcS1_bf(ptr noundef, ptr noundef, i1 noundef zeroext, float noundef) #4

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

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

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

declare void @_ZN6ImPlot15PopPlotClipRectEv() #4

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

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

37:                                               ; preds = %5
  br label %38

38:                                               ; preds = %37, %5
  %39 = phi i1 [ false, %5 ], [ true, %37 ]
  br i1 %39, label %40, label %41

40:                                               ; preds = %38
  br label %43

41:                                               ; preds = %38
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 2662, ptr noundef @__PRETTY_FUNCTION__._ZN6ImPlot8PlotTextEPKcddRK6ImVec2i) #9
  unreachable

42:                                               ; No predecessors!
  br label %43

43:                                               ; preds = %42, %40
  call void @_ZN6ImPlotL9SetupLockEv()
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %44 = call noundef ptr @_ZN6ImPlot15GetPlotDrawListEv()
  store ptr %44, ptr %11, align 8, !tbaa !5
  call void @_ZN6ImPlot16PushPlotClipRectEf(float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  %45 = call noundef i32 @_ZN6ImPlotL16GetStyleColorU32Ei(i32 noundef 12)
  store i32 %45, ptr %12, align 4, !tbaa !11
  %46 = load i32, ptr %10, align 4, !tbaa !11
  %47 = call noundef zeroext i1 @_ZL9ImHasFlagIi16ImPlotTextFlags_EbT_T0_(i32 noundef %46, i32 noundef 1024)
  br i1 %47, label %48, label %94

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = call <2 x float> @_ZN6ImPlotL20CalcTextSizeVerticalEPKc(ptr noundef %49)
  store <2 x float> %50, ptr %14, align 4
  %51 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef 5.000000e-01)
  store <2 x float> %51, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %52 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef 5.000000e-01)
  store <2 x float> %52, ptr %15, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #10
  %53 = load double, ptr %7, align 8, !tbaa !9
  %54 = load double, ptr %8, align 8, !tbaa !9
  call void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %53, double noundef %54)
  %55 = call <2 x float> @_ZN6ImPlot12PlotToPixelsERK11ImPlotPointii(ptr noundef nonnull align 8 dereferenceable(16) %19, i32 noundef -1, i32 noundef -1)
  store <2 x float> %55, ptr %18, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %56 = getelementptr inbounds %struct.ImVec2, ptr %15, i32 0, i32 0
  %57 = load float, ptr %56, align 4, !tbaa !47
  %58 = fneg float %57
  %59 = getelementptr inbounds %struct.ImVec2, ptr %15, i32 0, i32 1
  %60 = load float, ptr %59, align 4, !tbaa !48
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %58, float noundef %60)
  %61 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %20)
  store <2 x float> %61, ptr %17, align 4
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %62)
  store <2 x float> %63, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  %64 = call noundef zeroext i1 @_ZN6ImPlotL12FitThisFrameEv()
  br i1 %64, label %65, label %89

65:                                               ; preds = %48
  %66 = load i32, ptr %10, align 4, !tbaa !11
  %67 = call noundef zeroext i1 @_ZL9ImHasFlagIi16ImPlotItemFlags_EbT_T0_(i32 noundef %66, i32 noundef 2)
  br i1 %67, label %89, label %68

68:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #10
  %69 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef -1, i32 noundef -1)
  %70 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %71 = extractvalue { double, double } %69, 0
  store double %71, ptr %70, align 8
  %72 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %73 = extractvalue { double, double } %69, 1
  store double %73, ptr %72, align 8
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %21)
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #10
  %74 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 0
  %75 = load float, ptr %74, align 4, !tbaa !47
  %76 = getelementptr inbounds %struct.ImVec2, ptr %13, i32 0, i32 0
  %77 = load float, ptr %76, align 4, !tbaa !47
  %78 = fadd float %75, %77
  %79 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 1
  %80 = load float, ptr %79, align 4, !tbaa !48
  %81 = getelementptr inbounds %struct.ImVec2, ptr %13, i32 0, i32 1
  %82 = load float, ptr %81, align 4, !tbaa !48
  %83 = fsub float %80, %82
  %84 = call { double, double } @_ZN6ImPlot12PixelsToPlotEffii(float noundef %78, float noundef %83, i32 noundef -1, i32 noundef -1)
  %85 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %86 = extractvalue { double, double } %84, 0
  store double %86, ptr %85, align 8
  %87 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %88 = extractvalue { double, double } %84, 1
  store double %88, ptr %87, align 8
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %22)
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  br label %89

89:                                               ; preds = %68, %65, %48
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %16, i64 8, i1 false), !tbaa.struct !49
  %91 = load i32, ptr %12, align 4, !tbaa !11
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = load <2 x float>, ptr %23, align 4
  call void @_ZN6ImPlot15AddTextVerticalEP10ImDrawList6ImVec2jPKcS4_(ptr noundef %90, <2 x float> %93, i32 noundef %91, ptr noundef %92, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  br label %124

94:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = call <2 x float> @_ZN5ImGui12CalcTextSizeEPKcS1_bf(ptr noundef %95, ptr noundef null, i1 noundef zeroext false, float noundef -1.000000e+00)
  store <2 x float> %96, ptr %24, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #10
  %97 = load double, ptr %7, align 8, !tbaa !9
  %98 = load double, ptr %8, align 8, !tbaa !9
  call void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %28, double noundef %97, double noundef %98)
  %99 = call <2 x float> @_ZN6ImPlot12PlotToPixelsERK11ImPlotPointii(ptr noundef nonnull align 8 dereferenceable(16) %28, i32 noundef -1, i32 noundef -1)
  store <2 x float> %99, ptr %27, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  %100 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef 5.000000e-01)
  store <2 x float> %100, ptr %29, align 4
  %101 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(8) %29)
  store <2 x float> %101, ptr %26, align 4
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(8) %102)
  store <2 x float> %103, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  %104 = call noundef zeroext i1 @_ZN6ImPlotL12FitThisFrameEv()
  br i1 %104, label %105, label %120

105:                                              ; preds = %94
  %106 = load i32, ptr %10, align 4, !tbaa !11
  %107 = call noundef zeroext i1 @_ZL9ImHasFlagIi16ImPlotItemFlags_EbT_T0_(i32 noundef %106, i32 noundef 2)
  br i1 %107, label %120, label %108

108:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #10
  %109 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %25, i32 noundef -1, i32 noundef -1)
  %110 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %111 = extractvalue { double, double } %109, 0
  store double %111, ptr %110, align 8
  %112 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %113 = extractvalue { double, double } %109, 1
  store double %113, ptr %112, align 8
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %30)
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  %114 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %24)
  store <2 x float> %114, ptr %32, align 4
  %115 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %32, i32 noundef -1, i32 noundef -1)
  %116 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %117 = extractvalue { double, double } %115, 0
  store double %117, ptr %116, align 8
  %118 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %119 = extractvalue { double, double } %115, 1
  store double %119, ptr %118, align 8
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %31)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  br label %120

120:                                              ; preds = %108, %105, %94
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = load i32, ptr %12, align 4, !tbaa !11
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN10ImDrawList7AddTextERK6ImVec2jPKcS4_(ptr noundef nonnull align 8 dereferenceable(196) %121, ptr noundef nonnull align 4 dereferenceable(8) %25, i32 noundef %122, ptr noundef %123, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %124

124:                                              ; preds = %120, %89
  call void @_ZN6ImPlot15PopPlotClipRectEv()
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN6ImPlotL16GetStyleColorU32Ei(i32 noundef) #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZN6ImPlotL20CalcTextSizeVerticalEPKc(ptr noundef) #6

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

declare <2 x float> @_ZN6ImPlot12PlotToPixelsERK11ImPlotPointii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) #4

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

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

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

declare { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) #4

declare { double, double } @_ZN6ImPlot12PixelsToPlotEffii(float noundef, float noundef, i32 noundef, i32 noundef) #4

declare void @_ZN6ImPlot15AddTextVerticalEP10ImDrawList6ImVec2jPKcS4_(ptr noundef, <2 x float>, i32 noundef, ptr noundef, ptr noundef) #4

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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #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 = { 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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 80}
!14 = !{!"_ZTS13ImPlotContext", !15, i64 0, !19, i64 40, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !21, i64 120, !27, i64 176, !29, i64 216, !31, i64 256, !32, i64 260, !33, i64 776, !34, i64 792, !35, i64 808, !37, i64 976, !39, i64 992, !41, i64 1048, !41, i64 1064, !37, i64 1080, !12, i64 1096, !12, i64 1100, !42, i64 1104, !43, i64 1336, !44, i64 1464, !31, i64 1512, !23, i64 1520, !6, i64 1536, !45, i64 1544, !6, i64 1584, !6, i64 1592}
!15 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !16, i64 0, !17, i64 16, !12, i64 32, !12, i64 36}
!16 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !12, i64 0, !12, i64 4, !6, i64 8}
!17 = !{!"_ZTS12ImGuiStorage", !18, i64 0}
!18 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !12, i64 0, !12, i64 4, !6, i64 8}
!19 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !20, i64 0, !17, i64 16, !12, i64 32, !12, i64 36}
!20 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !12, i64 0, !12, i64 4, !6, i64 8}
!21 = !{!"_ZTS12ImPlotTicker", !22, i64 0, !23, i64 16, !25, i64 32, !25, i64 40, !12, i64 48}
!22 = !{!"_ZTS8ImVectorI10ImPlotTickE", !12, i64 0, !12, i64 4, !6, i64 8}
!23 = !{!"_ZTS15ImGuiTextBuffer", !24, i64 0}
!24 = !{!"_ZTS8ImVectorIcE", !12, i64 0, !12, i64 4, !6, i64 8}
!25 = !{!"_ZTS6ImVec2", !26, i64 0, !26, i64 4}
!26 = !{!"float", !7, i64 0}
!27 = !{!"_ZTS26ImPlotAnnotationCollection", !28, i64 0, !23, i64 16, !12, i64 32}
!28 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !12, i64 0, !12, i64 4, !6, i64 8}
!29 = !{!"_ZTS19ImPlotTagCollection", !30, i64 0, !23, i64 16, !12, i64 32}
!30 = !{!"_ZTS8ImVectorI9ImPlotTagE", !12, i64 0, !12, i64 4, !6, i64 8}
!31 = !{!"bool", !7, i64 0}
!32 = !{!"_ZTS11ImPlotStyle", !26, i64 0, !12, i64 4, !26, i64 8, !26, i64 12, !26, i64 16, !26, i64 20, !26, i64 24, !26, i64 28, !26, i64 32, !26, i64 36, !26, i64 40, !25, i64 44, !25, i64 52, !25, i64 60, !25, i64 68, !25, i64 76, !25, i64 84, !25, i64 92, !25, i64 100, !25, i64 108, !25, i64 116, !25, i64 124, !25, i64 132, !25, i64 140, !25, i64 148, !25, i64 156, !25, i64 164, !7, i64 172, !12, i64 508, !31, i64 512, !31, i64 513, !31, i64 514}
!33 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !12, i64 0, !12, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !12, i64 0, !12, i64 4, !6, i64 8}
!35 = !{!"_ZTS18ImPlotColormapData", !36, i64 0, !37, i64 16, !37, i64 32, !36, i64 48, !37, i64 64, !37, i64 80, !23, i64 96, !37, i64 112, !38, i64 128, !17, i64 144, !12, i64 160}
!36 = !{!"_ZTS8ImVectorIjE", !12, i64 0, !12, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorIiE", !12, i64 0, !12, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorIbE", !12, i64 0, !12, i64 4, !6, i64 8}
!39 = !{!"_ZTS2tm", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !40, i64 40, !6, i64 48}
!40 = !{!"long", !7, i64 0}
!41 = !{!"_ZTS8ImVectorIdE", !12, i64 0, !12, i64 4, !6, i64 8}
!42 = !{!"_ZTS18ImPlotNextPlotData", !7, i64 0, !7, i64 24, !7, i64 120, !7, i64 126, !7, i64 136, !7, i64 184}
!43 = !{!"_ZTS18ImPlotNextItemData", !7, i64 0, !26, i64 80, !12, i64 84, !26, i64 88, !26, i64 92, !26, i64 96, !26, i64 100, !26, i64 104, !26, i64 108, !26, i64 112, !31, i64 116, !31, i64 117, !31, i64 118, !31, i64 119, !31, i64 120, !31, i64 121, !12, i64 124}
!44 = !{!"_ZTS14ImPlotInputMap", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !26, i64 44}
!45 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !46, i64 0, !17, i64 16, !12, i64 32, !12, i64 36}
!46 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !12, i64 0, !12, i64 4, !6, i64 8}
!47 = !{!25, !26, i64 0}
!48 = !{!25, !26, i64 4}
!49 = !{i64 0, i64 4, !50, i64 4, i64 4, !50}
!50 = !{!26, !26, i64 0}


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

@GImPlot = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [104 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot8PlotTextEPKcddRK6ImVec2i = external hidden unnamed_addr constant [85 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: inlinehint mustprogress uwtable
declare hidden void @_ZN6ImPlotL9SetupLockEv() local_unnamed_addr #1

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

declare noundef ptr @_ZN6ImPlot15GetPlotDrawListEv() local_unnamed_addr #3

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

declare void @_ZN6ImPlot16PushPlotClipRectEf(float noundef) local_unnamed_addr #3

declare <2 x float> @_ZN5ImGui12CalcTextSizeEPKcS1_bf(ptr noundef, ptr noundef, i1 noundef zeroext, float noundef) local_unnamed_addr #3

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

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

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

declare void @_ZN6ImPlot15PopPlotClipRectEv() local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot8PlotTextEPKcddRK6ImVec2i(ptr noundef %0, double noundef %1, double noundef %2, ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %4) local_unnamed_addr #7 {
  %6 = alloca %struct.ImVec2, align 8
  %7 = alloca %struct.ImVec2, align 8
  %8 = alloca %struct.ImVec2, align 8
  %9 = alloca %struct.ImVec2, align 8
  %10 = alloca %struct.ImVec2, align 8
  %11 = alloca %struct.ImPlotPoint, align 8
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca %struct.ImPlotPoint, align 8
  %14 = alloca %struct.ImPlotPoint, align 8
  %15 = alloca %struct.ImVec2, align 8
  %16 = alloca %struct.ImVec2, align 8
  %17 = alloca %struct.ImVec2, align 8
  %18 = alloca %struct.ImVec2, align 8
  %19 = alloca %struct.ImPlotPoint, align 8
  %20 = alloca %struct.ImVec2, align 8
  %21 = alloca %struct.ImPlotPoint, align 8
  %22 = alloca %struct.ImPlotPoint, align 8
  %23 = alloca %struct.ImVec2, align 8
  %24 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 80
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %.not = icmp eq ptr %26, null
  br i1 %.not, label %27, label %28

27:                                               ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 2662, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImPlot8PlotTextEPKcddRK6ImVec2i) #8
  unreachable

28:                                               ; preds = %5
  tail call void @_ZN6ImPlotL9SetupLockEv()
  %29 = tail call noundef ptr @_ZN6ImPlot15GetPlotDrawListEv()
  tail call void @_ZN6ImPlot16PushPlotClipRectEf(float noundef 0.000000e+00)
  %30 = tail call noundef i32 @_ZN6ImPlotL16GetStyleColorU32Ei(i32 noundef 12)
  %31 = tail call noundef zeroext i1 @_ZL9ImHasFlagIi16ImPlotTextFlags_EbT_T0_(i32 noundef %4, i32 noundef 1024)
  br i1 %31, label %32, label %61

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %33 = tail call <2 x float> @_ZN6ImPlotL20CalcTextSizeVerticalEPKc(ptr noundef %0)
  store <2 x float> %33, ptr %7, align 8
  %34 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 5.000000e-01)
  store <2 x float> %34, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  %35 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef 5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  call void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef %1, double noundef %2)
  %36 = call <2 x float> @_ZN6ImPlot12PlotToPixelsERK11ImPlotPointii(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef -1, i32 noundef -1)
  store <2 x float> %36, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %.sroa.01.0.vec.extract = extractelement <2 x float> %35, i64 0
  %37 = fneg float %.sroa.01.0.vec.extract
  %.sroa.01.4.vec.extract = extractelement <2 x float> %35, i64 1
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %37, float noundef %.sroa.01.4.vec.extract)
  %38 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %38, ptr %9, align 8
  %39 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %39, ptr %8, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  %40 = call noundef zeroext i1 @_ZN6ImPlotL12FitThisFrameEv()
  br i1 %40, label %41, label %60

41:                                               ; preds = %32
  %42 = call noundef zeroext i1 @_ZL9ImHasFlagIi16ImPlotItemFlags_EbT_T0_(i32 noundef %4, i32 noundef 2)
  br i1 %42, label %60, label %43

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  %44 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %8, i32 noundef -1, i32 noundef -1)
  %45 = extractvalue { double, double } %44, 0
  store double %45, ptr %13, align 8
  %46 = getelementptr inbounds i8, ptr %13, i64 8
  %47 = extractvalue { double, double } %44, 1
  store double %47, ptr %46, align 8
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %13)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %48 = load float, ptr %8, align 8, !tbaa !44
  %49 = load float, ptr %6, align 8, !tbaa !44
  %50 = fadd float %48, %49
  %51 = getelementptr inbounds i8, ptr %8, i64 4
  %52 = load float, ptr %51, align 4, !tbaa !45
  %53 = getelementptr inbounds i8, ptr %6, i64 4
  %54 = load float, ptr %53, align 4, !tbaa !45
  %55 = fsub float %52, %54
  %56 = call { double, double } @_ZN6ImPlot12PixelsToPlotEffii(float noundef %50, float noundef %55, i32 noundef -1, i32 noundef -1)
  %57 = extractvalue { double, double } %56, 0
  store double %57, ptr %14, align 8
  %58 = getelementptr inbounds i8, ptr %14, i64 8
  %59 = extractvalue { double, double } %56, 1
  store double %59, ptr %58, align 8
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  %.sroa.0.0.copyload.pre = load <2 x float>, ptr %8, align 8
  br label %60

60:                                               ; preds = %43, %41, %32
  %.sroa.0.0.copyload = phi <2 x float> [ %.sroa.0.0.copyload.pre, %43 ], [ %39, %41 ], [ %39, %32 ]
  call void @_ZN6ImPlot15AddTextVerticalEP10ImDrawList6ImVec2jPKcS4_(ptr noundef %29, <2 x float> %.sroa.0.0.copyload, i32 noundef %30, ptr noundef %0, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  br label %81

61:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  %62 = tail call <2 x float> @_ZN5ImGui12CalcTextSizeEPKcS1_bf(ptr noundef %0, ptr noundef null, i1 noundef zeroext false, float noundef -1.000000e+00)
  store <2 x float> %62, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #9
  call void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %1, double noundef %2)
  %63 = call <2 x float> @_ZN6ImPlot12PlotToPixelsERK11ImPlotPointii(ptr noundef nonnull align 8 dereferenceable(16) %19, i32 noundef -1, i32 noundef -1)
  store <2 x float> %63, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  %64 = call <2 x float> @_ZmlRK6ImVec2f(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef 5.000000e-01)
  store <2 x float> %64, ptr %20, align 8
  %65 = call <2 x float> @_ZmiRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %20)
  store <2 x float> %65, ptr %17, align 8
  %66 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %66, ptr %16, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #9
  %67 = call noundef zeroext i1 @_ZN6ImPlotL12FitThisFrameEv()
  br i1 %67, label %68, label %80

68:                                               ; preds = %61
  %69 = call noundef zeroext i1 @_ZL9ImHasFlagIi16ImPlotItemFlags_EbT_T0_(i32 noundef %4, i32 noundef 2)
  br i1 %69, label %80, label %70

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #9
  %71 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef -1, i32 noundef -1)
  %72 = extractvalue { double, double } %71, 0
  store double %72, ptr %21, align 8
  %73 = getelementptr inbounds i8, ptr %21, i64 8
  %74 = extractvalue { double, double } %71, 1
  store double %74, ptr %73, align 8
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %21)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #9
  %75 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %75, ptr %23, align 8
  %76 = call { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef -1, i32 noundef -1)
  %77 = extractvalue { double, double } %76, 0
  store double %77, ptr %22, align 8
  %78 = getelementptr inbounds i8, ptr %22, i64 8
  %79 = extractvalue { double, double } %76, 1
  store double %79, ptr %78, align 8
  call void @_ZN6ImPlotL8FitPointERK11ImPlotPoint(ptr noundef nonnull align 8 dereferenceable(16) %22)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #9
  br label %80

80:                                               ; preds = %70, %68, %61
  call void @_ZN10ImDrawList7AddTextERK6ImVec2jPKcS4_(ptr noundef nonnull align 8 dereferenceable(196) %29, ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef %30, ptr noundef %0, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  br label %81

81:                                               ; preds = %80, %60
  call void @_ZN6ImPlot15PopPlotClipRectEv()
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN6ImPlotL16GetStyleColorU32Ei(i32 noundef) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZN6ImPlotL20CalcTextSizeVerticalEPKc(ptr noundef) local_unnamed_addr #5

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

declare <2 x float> @_ZN6ImPlot12PlotToPixelsERK11ImPlotPointii(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) local_unnamed_addr #3

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

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

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

declare { double, double } @_ZN6ImPlot12PixelsToPlotERK6ImVec2ii(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef) local_unnamed_addr #3

declare { double, double } @_ZN6ImPlot12PixelsToPlotEffii(float noundef, float noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @_ZN6ImPlot15AddTextVerticalEP10ImDrawList6ImVec2jPKcS4_(ptr noundef, <2 x float>, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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


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