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

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

%struct.ImPlotContext = type { %struct.ImPool.34, %struct.ImPool.36, ptr, ptr, ptr, ptr, ptr, %struct.ImPlotTicker, %struct.ImPlotAnnotationCollection, %struct.ImPlotTagCollection, i8, [3 x i8], %struct.ImPlotStyle, %struct.ImVector.6, %struct.ImVector.7, %struct.ImPlotColormapData, %struct.ImVector.10, %struct.tm, %struct.ImVector.42, %struct.ImVector.42, %struct.ImVector.10, i32, i32, %struct.ImPlotNextPlotData, %struct.ImPlotNextItemData, %struct.ImPlotInputMap, i8, %struct.ImGuiTextBuffer, ptr, %struct.ImPool.43, ptr, ptr }
%struct.ImPool.34 = type { %struct.ImVector.35, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.35 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.4 }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImPool.36 = type { %struct.ImVector.37, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.37 = type { i32, i32, ptr }
%struct.ImPlotTicker = type <{ %struct.ImVector.38, %struct.ImGuiTextBuffer, %struct.ImVec2, %struct.ImVec2, i32, [4 x i8] }>
%struct.ImVector.38 = type { i32, i32, ptr }
%struct.ImVec2 = type { float, float }
%struct.ImPlotAnnotationCollection = type <{ %struct.ImVector.39, %struct.ImGuiTextBuffer, i32, [4 x i8] }>
%struct.ImVector.39 = type { i32, i32, ptr }
%struct.ImPlotTagCollection = type <{ %struct.ImVector.40, %struct.ImGuiTextBuffer, i32, [4 x i8] }>
%struct.ImVector.40 = type { i32, i32, ptr }
%struct.ImPlotStyle = type <{ float, i32, float, float, float, float, float, float, float, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, [21 x %struct.ImVec4], i32, i8, i8, i8, i8 }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImPlotColormapData = type <{ %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.10, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.10, %struct.ImGuiTextBuffer, %struct.ImVector.10, %struct.ImVector.41, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.41 = type { i32, i32, ptr }
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, ptr }
%struct.ImVector.42 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImPlotNextPlotData = type { [6 x i32], [6 x %struct.ImPlotRange], [6 x i8], [6 x i8], [6 x ptr], [6 x ptr] }
%struct.ImPlotRange = type { double, double }
%struct.ImPlotNextItemData = type { [5 x %struct.ImVec4], float, i32, float, float, float, float, float, float, float, i8, i8, i8, i8, i8, i8, i32 }
%struct.ImPlotInputMap = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float }
%struct.ImGuiTextBuffer = type { %struct.ImVector.24 }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImPool.43 = type { %struct.ImVector.44, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.44 = type { i32, i32, ptr }

@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Deep = external hidden unnamed_addr constant [10 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Dark = external hidden unnamed_addr constant [9 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Pastel = external hidden unnamed_addr constant [9 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Paired = external hidden unnamed_addr constant [12 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Viridis = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Plasma = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Hot = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Cool = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Pink = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Jet = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Twilight = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.RdBu = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.BrBG = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.PiYG = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Spectral = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Greys = external hidden unnamed_addr constant [2 x i32], align 4
@.str.33 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [6 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 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot10InitializeEP13ImPlotContext(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca [10 x i32], align 16
  %4 = alloca [9 x i32], align 16
  %5 = alloca [9 x i32], align 16
  %6 = alloca [12 x i32], align 16
  %7 = alloca [11 x i32], align 16
  %8 = alloca [11 x i32], align 16
  %9 = alloca [11 x i32], align 16
  %10 = alloca [11 x i32], align 16
  %11 = alloca [11 x i32], align 16
  %12 = alloca [11 x i32], align 16
  %13 = alloca [11 x i32], align 16
  %14 = alloca [11 x i32], align 16
  %15 = alloca [11 x i32], align 16
  %16 = alloca [11 x i32], align 16
  %17 = alloca [11 x i32], align 16
  %18 = alloca [2 x i32], align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN6ImPlot19ResetCtxForNextPlotEP13ImPlotContext(ptr noundef %19)
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN6ImPlot27ResetCtxForNextAlignedPlotsEP13ImPlotContext(ptr noundef %20)
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN6ImPlot22ResetCtxForNextSubplotEP13ImPlotContext(ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 40, ptr %3) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Deep, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr %4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Dark, i64 36, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr %5) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Pastel, i64 36, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr %6) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Paired, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Viridis, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %8) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Plasma, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %9) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Hot, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Cool, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %11) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Pink, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %12) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Jet, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %13) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Twilight, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %14) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.RdBu, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %15) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.BrBG, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %16) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.PiYG, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr %17) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Spectral, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Greys, i64 8, i1 false)
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ImPlotContext, ptr %22, i32 0, i32 15
  %24 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
  %25 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %23, ptr noundef @.str.33, ptr noundef %24, i32 noundef 10, i1 noundef zeroext true)
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.ImPlotContext, ptr %26, i32 0, i32 15
  %28 = getelementptr inbounds [9 x i32], ptr %4, i64 0, i64 0
  %29 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %27, ptr noundef @.str.34, ptr noundef %28, i32 noundef 9, i1 noundef zeroext true)
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ImPlotContext, ptr %30, i32 0, i32 15
  %32 = getelementptr inbounds [9 x i32], ptr %5, i64 0, i64 0
  %33 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %31, ptr noundef @.str.35, ptr noundef %32, i32 noundef 9, i1 noundef zeroext true)
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ImPlotContext, ptr %34, i32 0, i32 15
  %36 = getelementptr inbounds [12 x i32], ptr %6, i64 0, i64 0
  %37 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %35, ptr noundef @.str.36, ptr noundef %36, i32 noundef 12, i1 noundef zeroext true)
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ImPlotContext, ptr %38, i32 0, i32 15
  %40 = getelementptr inbounds [11 x i32], ptr %7, i64 0, i64 0
  %41 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %39, ptr noundef @.str.37, ptr noundef %40, i32 noundef 11, i1 noundef zeroext false)
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ImPlotContext, ptr %42, i32 0, i32 15
  %44 = getelementptr inbounds [11 x i32], ptr %8, i64 0, i64 0
  %45 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %43, ptr noundef @.str.38, ptr noundef %44, i32 noundef 11, i1 noundef zeroext false)
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ImPlotContext, ptr %46, i32 0, i32 15
  %48 = getelementptr inbounds [11 x i32], ptr %9, i64 0, i64 0
  %49 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %47, ptr noundef @.str.39, ptr noundef %48, i32 noundef 11, i1 noundef zeroext false)
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ImPlotContext, ptr %50, i32 0, i32 15
  %52 = getelementptr inbounds [11 x i32], ptr %10, i64 0, i64 0
  %53 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %51, ptr noundef @.str.40, ptr noundef %52, i32 noundef 11, i1 noundef zeroext false)
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ImPlotContext, ptr %54, i32 0, i32 15
  %56 = getelementptr inbounds [11 x i32], ptr %11, i64 0, i64 0
  %57 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %55, ptr noundef @.str.41, ptr noundef %56, i32 noundef 11, i1 noundef zeroext false)
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.ImPlotContext, ptr %58, i32 0, i32 15
  %60 = getelementptr inbounds [11 x i32], ptr %12, i64 0, i64 0
  %61 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %59, ptr noundef @.str.42, ptr noundef %60, i32 noundef 11, i1 noundef zeroext false)
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ImPlotContext, ptr %62, i32 0, i32 15
  %64 = getelementptr inbounds [11 x i32], ptr %13, i64 0, i64 0
  %65 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %63, ptr noundef @.str.43, ptr noundef %64, i32 noundef 11, i1 noundef zeroext false)
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.ImPlotContext, ptr %66, i32 0, i32 15
  %68 = getelementptr inbounds [11 x i32], ptr %14, i64 0, i64 0
  %69 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %67, ptr noundef @.str.44, ptr noundef %68, i32 noundef 11, i1 noundef zeroext false)
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ImPlotContext, ptr %70, i32 0, i32 15
  %72 = getelementptr inbounds [11 x i32], ptr %15, i64 0, i64 0
  %73 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %71, ptr noundef @.str.45, ptr noundef %72, i32 noundef 11, i1 noundef zeroext false)
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ImPlotContext, ptr %74, i32 0, i32 15
  %76 = getelementptr inbounds [11 x i32], ptr %16, i64 0, i64 0
  %77 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %75, ptr noundef @.str.46, ptr noundef %76, i32 noundef 11, i1 noundef zeroext false)
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.ImPlotContext, ptr %78, i32 0, i32 15
  %80 = getelementptr inbounds [11 x i32], ptr %17, i64 0, i64 0
  %81 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %79, ptr noundef @.str.47, ptr noundef %80, i32 noundef 11, i1 noundef zeroext false)
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ImPlotContext, ptr %82, i32 0, i32 15
  %84 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 0
  %85 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %83, ptr noundef @.str.48, ptr noundef %84, i32 noundef 2, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot19ResetCtxForNextPlotEP13ImPlotContext(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImPlot27ResetCtxForNextAlignedPlotsEP13ImPlotContext(ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImPlot22ResetCtxForNextSubplotEP13ImPlotContext(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164), ptr noundef, ptr noundef, i32 noundef, i1 noundef zeroext) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 #4 = { 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"}


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

@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Deep = external hidden unnamed_addr constant [10 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Dark = external hidden unnamed_addr constant [9 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Pastel = external hidden unnamed_addr constant [9 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Paired = external hidden unnamed_addr constant [12 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Viridis = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Plasma = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Hot = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Cool = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Pink = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Jet = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Twilight = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.RdBu = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.BrBG = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.PiYG = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Spectral = external hidden unnamed_addr constant [11 x i32], align 16
@__const._ZN6ImPlot10InitializeEP13ImPlotContext.Greys = external hidden unnamed_addr constant [2 x i32], align 4
@.str.33 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [6 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 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot10InitializeEP13ImPlotContext(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca [10 x i32], align 16
  %3 = alloca [9 x i32], align 16
  %4 = alloca [9 x i32], align 16
  %5 = alloca [12 x i32], align 16
  %6 = alloca [11 x i32], align 16
  %7 = alloca [11 x i32], align 16
  %8 = alloca [11 x i32], align 16
  %9 = alloca [11 x i32], align 16
  %10 = alloca [11 x i32], align 16
  %11 = alloca [11 x i32], align 16
  %12 = alloca [11 x i32], align 16
  %13 = alloca [11 x i32], align 16
  %14 = alloca [11 x i32], align 16
  %15 = alloca [11 x i32], align 16
  %16 = alloca [11 x i32], align 16
  %17 = alloca [2 x i32], align 8
  tail call void @_ZN6ImPlot19ResetCtxForNextPlotEP13ImPlotContext(ptr noundef %0)
  tail call void @_ZN6ImPlot27ResetCtxForNextAlignedPlotsEP13ImPlotContext(ptr noundef %0)
  tail call void @_ZN6ImPlot22ResetCtxForNextSubplotEP13ImPlotContext(ptr noundef %0)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %2, ptr noundef nonnull align 16 dereferenceable(40) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Deep, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %3) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) %3, ptr noundef nonnull align 16 dereferenceable(36) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Dark, i64 36, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(36) %4, ptr noundef nonnull align 16 dereferenceable(36) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Pastel, i64 36, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %5, ptr noundef nonnull align 16 dereferenceable(48) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Paired, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %6) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %6, ptr noundef nonnull align 16 dereferenceable(44) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Viridis, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %7, ptr noundef nonnull align 16 dereferenceable(44) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Plasma, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %8) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %8, ptr noundef nonnull align 16 dereferenceable(44) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Hot, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %9) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %9, ptr noundef nonnull align 16 dereferenceable(44) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Cool, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %10, ptr noundef nonnull align 16 dereferenceable(44) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Pink, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %11) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %11, ptr noundef nonnull align 16 dereferenceable(44) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Jet, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %12) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %12, ptr noundef nonnull align 16 dereferenceable(44) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Twilight, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %13) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %13, ptr noundef nonnull align 16 dereferenceable(44) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.RdBu, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %14) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %14, ptr noundef nonnull align 16 dereferenceable(44) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.BrBG, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %15) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %15, ptr noundef nonnull align 16 dereferenceable(44) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.PiYG, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %16) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(44) %16, ptr noundef nonnull align 16 dereferenceable(44) @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Spectral, i64 44, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  %18 = load i64, ptr @__const._ZN6ImPlot10InitializeEP13ImPlotContext.Greys, align 4
  store i64 %18, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr %0, i64 808
  %20 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.33, ptr noundef nonnull %2, i32 noundef 10, i1 noundef zeroext true)
  %21 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.34, ptr noundef nonnull %3, i32 noundef 9, i1 noundef zeroext true)
  %22 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.35, ptr noundef nonnull %4, i32 noundef 9, i1 noundef zeroext true)
  %23 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.36, ptr noundef nonnull %5, i32 noundef 12, i1 noundef zeroext true)
  %24 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.37, ptr noundef nonnull %6, i32 noundef 11, i1 noundef zeroext false)
  %25 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.38, ptr noundef nonnull %7, i32 noundef 11, i1 noundef zeroext false)
  %26 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.39, ptr noundef nonnull %8, i32 noundef 11, i1 noundef zeroext false)
  %27 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.40, ptr noundef nonnull %9, i32 noundef 11, i1 noundef zeroext false)
  %28 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.41, ptr noundef nonnull %10, i32 noundef 11, i1 noundef zeroext false)
  %29 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.42, ptr noundef nonnull %11, i32 noundef 11, i1 noundef zeroext false)
  %30 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.43, ptr noundef nonnull %12, i32 noundef 11, i1 noundef zeroext false)
  %31 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.44, ptr noundef nonnull %13, i32 noundef 11, i1 noundef zeroext false)
  %32 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.45, ptr noundef nonnull %14, i32 noundef 11, i1 noundef zeroext false)
  %33 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.46, ptr noundef nonnull %15, i32 noundef 11, i1 noundef zeroext false)
  %34 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.47, ptr noundef nonnull %16, i32 noundef 11, i1 noundef zeroext false)
  %35 = call noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164) %19, ptr noundef nonnull @.str.48, ptr noundef nonnull %17, i32 noundef 2, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot19ResetCtxForNextPlotEP13ImPlotContext(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImPlot27ResetCtxForNextAlignedPlotsEP13ImPlotContext(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImPlot22ResetCtxForNextSubplotEP13ImPlotContext(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN18ImPlotColormapData6AppendEPKcPKjib(ptr noundef nonnull align 8 dereferenceable(164), ptr noundef, ptr noundef, i32 noundef, i1 noundef zeroext) 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 = { 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 = { 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 #4 = { 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)"}


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