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

; 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 }
%struct.ImGuiStyleMod = type { i32, %union.anon }
%union.anon = type { [2 x i32] }
%"struct.ImPlot::ImPlotStyleVarInfo" = type { i32, i32, i32 }

@GImPlot = external dso_local global ptr, align 8
@.str.78 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.233 = external hidden unnamed_addr constant [91 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot11PopStyleVarEi = external hidden unnamed_addr constant [30 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot11PopStyleVarEi(i32 noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %7 = load ptr, ptr @GImPlot, align 8, !tbaa !9
  store ptr %7, ptr %3, align 8, !tbaa !9
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = load ptr, ptr %3, align 8, !tbaa !9
  %10 = getelementptr inbounds %struct.ImPlotContext, ptr %9, i32 0, i32 14
  %11 = getelementptr inbounds %struct.ImVector.7, ptr %10, i32 0, i32 0
  %12 = load i32, ptr %11, align 8, !tbaa !11
  %13 = icmp sle i32 %8, %12
  br i1 %13, label %14, label %15

14:                                               ; preds = %1
  br label %15

15:                                               ; preds = %14, %1
  %16 = phi i1 [ false, %1 ], [ true, %14 ]
  br i1 %16, label %17, label %18

17:                                               ; preds = %15
  br label %20

18:                                               ; preds = %15
  call void @__assert_fail(ptr noundef @.str.233, ptr noundef @.str.78, i32 noundef 4354, ptr noundef @__PRETTY_FUNCTION__._ZN6ImPlot11PopStyleVarEi) #6
  unreachable

19:                                               ; No predecessors!
  br label %20

20:                                               ; preds = %19, %17
  br label %21

21:                                               ; preds = %94, %20
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %24, label %99

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %25 = load ptr, ptr %3, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.ImPlotContext, ptr %25, i32 0, i32 14
  %27 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8ImVectorI13ImGuiStyleModE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
  store ptr %27, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct.ImGuiStyleMod, ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 4, !tbaa !45
  %31 = call noundef ptr @_ZN6ImPlotL19GetPlotStyleVarInfoEi(i32 noundef %30)
  store ptr %31, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  %33 = load ptr, ptr %3, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.ImPlotContext, ptr %33, i32 0, i32 12
  %35 = call noundef ptr @_ZNK6ImPlot18ImPlotStyleVarInfo9GetVarPtrEP11ImPlotStyle(ptr noundef nonnull align 4 dereferenceable(12) %32, ptr noundef %34)
  store ptr %35, ptr %6, align 8, !tbaa !9
  %36 = load ptr, ptr %5, align 8, !tbaa !9
  %37 = getelementptr inbounds %"struct.ImPlot::ImPlotStyleVarInfo", ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 4, !tbaa !47
  %39 = icmp eq i32 %38, 8
  br i1 %39, label %40, label %52

40:                                               ; preds = %24
  %41 = load ptr, ptr %5, align 8, !tbaa !9
  %42 = getelementptr inbounds %"struct.ImPlot::ImPlotStyleVarInfo", ptr %41, i32 0, i32 1
  %43 = load i32, ptr %42, align 4, !tbaa !49
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %52

45:                                               ; preds = %40
  %46 = load ptr, ptr %4, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct.ImGuiStyleMod, ptr %46, i32 0, i32 1
  %48 = getelementptr inbounds [2 x float], ptr %47, i64 0, i64 0
  %49 = load float, ptr %48, align 4, !tbaa !50
  %50 = load ptr, ptr %6, align 8, !tbaa !9
  %51 = getelementptr inbounds float, ptr %50, i64 0
  store float %49, ptr %51, align 4, !tbaa !51
  br label %94

52:                                               ; preds = %40, %24
  %53 = load ptr, ptr %5, align 8, !tbaa !9
  %54 = getelementptr inbounds %"struct.ImPlot::ImPlotStyleVarInfo", ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 4, !tbaa !47
  %56 = icmp eq i32 %55, 8
  br i1 %56, label %57, label %75

57:                                               ; preds = %52
  %58 = load ptr, ptr %5, align 8, !tbaa !9
  %59 = getelementptr inbounds %"struct.ImPlot::ImPlotStyleVarInfo", ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !49
  %61 = icmp eq i32 %60, 2
  br i1 %61, label %62, label %75

62:                                               ; preds = %57
  %63 = load ptr, ptr %4, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.ImGuiStyleMod, ptr %63, i32 0, i32 1
  %65 = getelementptr inbounds [2 x float], ptr %64, i64 0, i64 0
  %66 = load float, ptr %65, align 4, !tbaa !50
  %67 = load ptr, ptr %6, align 8, !tbaa !9
  %68 = getelementptr inbounds float, ptr %67, i64 0
  store float %66, ptr %68, align 4, !tbaa !51
  %69 = load ptr, ptr %4, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.ImGuiStyleMod, ptr %69, i32 0, i32 1
  %71 = getelementptr inbounds [2 x float], ptr %70, i64 0, i64 1
  %72 = load float, ptr %71, align 4, !tbaa !50
  %73 = load ptr, ptr %6, align 8, !tbaa !9
  %74 = getelementptr inbounds float, ptr %73, i64 1
  store float %72, ptr %74, align 4, !tbaa !51
  br label %93

75:                                               ; preds = %57, %52
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = getelementptr inbounds %"struct.ImPlot::ImPlotStyleVarInfo", ptr %76, i32 0, i32 0
  %78 = load i32, ptr %77, align 4, !tbaa !47
  %79 = icmp eq i32 %78, 4
  br i1 %79, label %80, label %92

80:                                               ; preds = %75
  %81 = load ptr, ptr %5, align 8, !tbaa !9
  %82 = getelementptr inbounds %"struct.ImPlot::ImPlotStyleVarInfo", ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 4, !tbaa !49
  %84 = icmp eq i32 %83, 1
  br i1 %84, label %85, label %92

85:                                               ; preds = %80
  %86 = load ptr, ptr %4, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.ImGuiStyleMod, ptr %86, i32 0, i32 1
  %88 = getelementptr inbounds [2 x i32], ptr %87, i64 0, i64 0
  %89 = load i32, ptr %88, align 4, !tbaa !50
  %90 = load ptr, ptr %6, align 8, !tbaa !9
  %91 = getelementptr inbounds i32, ptr %90, i64 0
  store i32 %89, ptr %91, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %85, %80, %75
  br label %93

93:                                               ; preds = %92, %62
  br label %94

94:                                               ; preds = %93, %45
  %95 = load ptr, ptr %3, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct.ImPlotContext, ptr %95, i32 0, i32 14
  call void @_ZN8ImVectorI13ImGuiStyleModE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(16) %96)
  %97 = load i32, ptr %2, align 4, !tbaa !5
  %98 = add nsw i32 %97, -1
  store i32 %98, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  br label %21, !llvm.loop !52

99:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN6ImPlotL19GetPlotStyleVarInfoEi(i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImPlot18ImPlotStyleVarInfo9GetVarPtrEP11ImPlotStyle(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN8ImVectorI13ImGuiStyleModE4backEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorI13ImGuiStyleModE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 792}
!12 = !{!"_ZTS13ImPlotContext", !13, i64 0, !17, i64 40, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !19, i64 120, !25, i64 176, !27, i64 216, !29, i64 256, !30, i64 260, !31, i64 776, !32, i64 792, !33, i64 808, !35, i64 976, !37, i64 992, !39, i64 1048, !39, i64 1064, !35, i64 1080, !6, i64 1096, !6, i64 1100, !40, i64 1104, !41, i64 1336, !42, i64 1464, !29, i64 1512, !21, i64 1520, !10, i64 1536, !43, i64 1544, !10, i64 1584, !10, i64 1592}
!13 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !14, i64 0, !15, i64 16, !6, i64 32, !6, i64 36}
!14 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !6, i64 0, !6, i64 4, !10, i64 8}
!15 = !{!"_ZTS12ImGuiStorage", !16, i64 0}
!16 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !6, i64 0, !6, i64 4, !10, i64 8}
!17 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !18, i64 0, !15, i64 16, !6, i64 32, !6, i64 36}
!18 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !6, i64 0, !6, i64 4, !10, i64 8}
!19 = !{!"_ZTS12ImPlotTicker", !20, i64 0, !21, i64 16, !23, i64 32, !23, i64 40, !6, i64 48}
!20 = !{!"_ZTS8ImVectorI10ImPlotTickE", !6, i64 0, !6, i64 4, !10, i64 8}
!21 = !{!"_ZTS15ImGuiTextBuffer", !22, i64 0}
!22 = !{!"_ZTS8ImVectorIcE", !6, i64 0, !6, i64 4, !10, i64 8}
!23 = !{!"_ZTS6ImVec2", !24, i64 0, !24, i64 4}
!24 = !{!"float", !7, i64 0}
!25 = !{!"_ZTS26ImPlotAnnotationCollection", !26, i64 0, !21, i64 16, !6, i64 32}
!26 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !6, i64 0, !6, i64 4, !10, i64 8}
!27 = !{!"_ZTS19ImPlotTagCollection", !28, i64 0, !21, i64 16, !6, i64 32}
!28 = !{!"_ZTS8ImVectorI9ImPlotTagE", !6, i64 0, !6, i64 4, !10, i64 8}
!29 = !{!"bool", !7, i64 0}
!30 = !{!"_ZTS11ImPlotStyle", !24, i64 0, !6, i64 4, !24, i64 8, !24, i64 12, !24, i64 16, !24, i64 20, !24, i64 24, !24, i64 28, !24, i64 32, !24, i64 36, !24, i64 40, !23, i64 44, !23, i64 52, !23, i64 60, !23, i64 68, !23, i64 76, !23, i64 84, !23, i64 92, !23, i64 100, !23, i64 108, !23, i64 116, !23, i64 124, !23, i64 132, !23, i64 140, !23, i64 148, !23, i64 156, !23, i64 164, !7, i64 172, !6, i64 508, !29, i64 512, !29, i64 513, !29, i64 514}
!31 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !6, i64 0, !6, i64 4, !10, i64 8}
!32 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !6, i64 0, !6, i64 4, !10, i64 8}
!33 = !{!"_ZTS18ImPlotColormapData", !34, i64 0, !35, i64 16, !35, i64 32, !34, i64 48, !35, i64 64, !35, i64 80, !21, i64 96, !35, i64 112, !36, i64 128, !15, i64 144, !6, i64 160}
!34 = !{!"_ZTS8ImVectorIjE", !6, i64 0, !6, i64 4, !10, i64 8}
!35 = !{!"_ZTS8ImVectorIiE", !6, i64 0, !6, i64 4, !10, i64 8}
!36 = !{!"_ZTS8ImVectorIbE", !6, i64 0, !6, i64 4, !10, i64 8}
!37 = !{!"_ZTS2tm", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !38, i64 40, !10, i64 48}
!38 = !{!"long", !7, i64 0}
!39 = !{!"_ZTS8ImVectorIdE", !6, i64 0, !6, i64 4, !10, i64 8}
!40 = !{!"_ZTS18ImPlotNextPlotData", !7, i64 0, !7, i64 24, !7, i64 120, !7, i64 126, !7, i64 136, !7, i64 184}
!41 = !{!"_ZTS18ImPlotNextItemData", !7, i64 0, !24, i64 80, !6, i64 84, !24, i64 88, !24, i64 92, !24, i64 96, !24, i64 100, !24, i64 104, !24, i64 108, !24, i64 112, !29, i64 116, !29, i64 117, !29, i64 118, !29, i64 119, !29, i64 120, !29, i64 121, !6, i64 124}
!42 = !{!"_ZTS14ImPlotInputMap", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !24, i64 44}
!43 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !44, i64 0, !15, i64 16, !6, i64 32, !6, i64 36}
!44 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !6, i64 0, !6, i64 4, !10, i64 8}
!45 = !{!46, !6, i64 0}
!46 = !{!"_ZTS13ImGuiStyleMod", !6, i64 0, !7, i64 4}
!47 = !{!48, !6, i64 0}
!48 = !{!"_ZTSN6ImPlot18ImPlotStyleVarInfoE", !6, i64 0, !6, i64 4, !6, i64 8}
!49 = !{!48, !6, i64 4}
!50 = !{!7, !7, i64 0}
!51 = !{!24, !24, i64 0}
!52 = distinct !{!52, !53}
!53 = !{!"llvm.loop.mustprogress"}


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

@GImPlot = external dso_local local_unnamed_addr global ptr, align 8
@.str.78 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.233 = external hidden unnamed_addr constant [91 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot11PopStyleVarEi = external hidden unnamed_addr constant [30 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN6ImPlot11PopStyleVarEi(i32 noundef %0) local_unnamed_addr #1 {
  %2 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %2, i64 792
  %4 = load i32, ptr %3, align 8, !tbaa !9
  %.not = icmp slt i32 %4, %0
  br i1 %.not, label %7, label %.preheader

.preheader:                                       ; preds = %1
  %5 = icmp sgt i32 %0, 0
  br i1 %5, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %6 = getelementptr inbounds i8, ptr %2, i64 260
  br label %8

7:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.233, ptr noundef nonnull @.str.78, i32 noundef 4354, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImPlot11PopStyleVarEi) #3
  unreachable

8:                                                ; preds = %.lr.ph, %.thread23
  %.024 = phi i32 [ %0, %.lr.ph ], [ %33, %.thread23 ]
  %9 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8ImVectorI13ImGuiStyleModE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %10 = load i32, ptr %9, align 4, !tbaa !44
  %11 = tail call noundef ptr @_ZN6ImPlotL19GetPlotStyleVarInfoEi(i32 noundef %10)
  %12 = tail call noundef ptr @_ZNK6ImPlot18ImPlotStyleVarInfo9GetVarPtrEP11ImPlotStyle(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull %6)
  %13 = load i32, ptr %11, align 4, !tbaa !46
  switch i32 %13, label %.thread23 [
    i32 8, label %14
    i32 4, label %26
  ]

14:                                               ; preds = %8
  %15 = getelementptr inbounds i8, ptr %11, i64 4
  %16 = load i32, ptr %15, align 4, !tbaa !48
  switch i32 %16, label %.thread23 [
    i32 1, label %17
    i32 2, label %20
  ]

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %9, i64 4
  %19 = load float, ptr %18, align 4, !tbaa !49
  store float %19, ptr %12, align 4, !tbaa !50
  br label %.thread23

20:                                               ; preds = %14
  %21 = getelementptr inbounds i8, ptr %9, i64 4
  %22 = load float, ptr %21, align 4, !tbaa !49
  store float %22, ptr %12, align 4, !tbaa !50
  %23 = getelementptr inbounds i8, ptr %9, i64 8
  %24 = load float, ptr %23, align 4, !tbaa !49
  %25 = getelementptr inbounds i8, ptr %12, i64 4
  store float %24, ptr %25, align 4, !tbaa !50
  br label %.thread23

26:                                               ; preds = %8
  %27 = getelementptr inbounds i8, ptr %11, i64 4
  %28 = load i32, ptr %27, align 4, !tbaa !48
  %29 = icmp eq i32 %28, 1
  br i1 %29, label %30, label %.thread23

30:                                               ; preds = %26
  %31 = getelementptr inbounds i8, ptr %9, i64 4
  %32 = load i32, ptr %31, align 4, !tbaa !49
  store i32 %32, ptr %12, align 4, !tbaa !51
  br label %.thread23

.thread23:                                        ; preds = %14, %8, %20, %30, %26, %17
  tail call void @_ZN8ImVectorI13ImGuiStyleModE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %33 = add nsw i32 %.024, -1
  %34 = icmp sgt i32 %.024, 1
  br i1 %34, label %8, label %._crit_edge, !llvm.loop !52

._crit_edge:                                      ; preds = %.thread23, %.preheader
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN6ImPlotL19GetPlotStyleVarInfoEi(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImPlot18ImPlotStyleVarInfo9GetVarPtrEP11ImPlotStyle(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN8ImVectorI13ImGuiStyleModE4backEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8ImVectorI13ImGuiStyleModE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass