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

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

@GImPlot = external dso_local global ptr, align 8

; 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) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZN6ImPlot6MkTimeEP2tm(ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local { i64, i32 } @_ZN6ImPlot9FloorTimeERK10ImPlotTimei(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %1) #3 {
  %3 = alloca %struct.ImPlotTime, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca { i64, i32 }, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.ImPlotContext, ptr %8, i32 0, i32 17
  %10 = call noundef ptr @_ZN6ImPlot7GetTimeERK10ImPlotTimeP2tm(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef %9)
  %11 = load i32, ptr %5, align 4, !tbaa !9
  switch i32 %11, label %47 [
    i32 2, label %12
    i32 1, label %16
    i32 0, label %25
    i32 7, label %27
    i32 6, label %31
    i32 5, label %35
    i32 4, label %39
    i32 3, label %43
  ]

12:                                               ; preds = %2
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.ImPlotTime, ptr %13, i32 0, i32 0
  %15 = load i64, ptr %14, align 8, !tbaa !11
  call void @_ZN10ImPlotTimeC2Eli(ptr noundef nonnull align 8 dereferenceable(12) %3, i64 noundef %15, i32 noundef 0)
  br label %53

16:                                               ; preds = %2
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ImPlotTime, ptr %17, i32 0, i32 0
  %19 = load i64, ptr %18, align 8, !tbaa !11
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ImPlotTime, ptr %20, i32 0, i32 1
  %22 = load i32, ptr %21, align 8, !tbaa !14
  %23 = sdiv i32 %22, 1000
  %24 = mul nsw i32 %23, 1000
  call void @_ZN10ImPlotTimeC2Eli(ptr noundef nonnull align 8 dereferenceable(12) %3, i64 noundef %19, i32 noundef %24)
  br label %53

25:                                               ; preds = %2
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %26, i64 16, i1 false), !tbaa.struct !15
  br label %53

27:                                               ; preds = %2
  %28 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.ImPlotContext, ptr %28, i32 0, i32 17
  %30 = getelementptr inbounds %struct.tm, ptr %29, i32 0, i32 4
  store i32 0, ptr %30, align 8, !tbaa !17
  br label %31

31:                                               ; preds = %27, %2
  %32 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.ImPlotContext, ptr %32, i32 0, i32 17
  %34 = getelementptr inbounds %struct.tm, ptr %33, i32 0, i32 3
  store i32 1, ptr %34, align 4, !tbaa !50
  br label %35

35:                                               ; preds = %31, %2
  %36 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ImPlotContext, ptr %36, i32 0, i32 17
  %38 = getelementptr inbounds %struct.tm, ptr %37, i32 0, i32 2
  store i32 0, ptr %38, align 8, !tbaa !51
  br label %39

39:                                               ; preds = %35, %2
  %40 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ImPlotContext, ptr %40, i32 0, i32 17
  %42 = getelementptr inbounds %struct.tm, ptr %41, i32 0, i32 1
  store i32 0, ptr %42, align 4, !tbaa !52
  br label %43

43:                                               ; preds = %39, %2
  %44 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ImPlotContext, ptr %44, i32 0, i32 17
  %46 = getelementptr inbounds %struct.tm, ptr %45, i32 0, i32 0
  store i32 0, ptr %46, align 8, !tbaa !53
  br label %49

47:                                               ; preds = %2
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %48, i64 16, i1 false), !tbaa.struct !15
  br label %53

49:                                               ; preds = %43
  %50 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ImPlotContext, ptr %50, i32 0, i32 17
  %52 = call { i64, i32 } @_ZN6ImPlot6MkTimeEP2tm(ptr noundef %51)
  store { i64, i32 } %52, ptr %6, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %6, i64 12, i1 false)
  br label %53

53:                                               ; preds = %49, %47, %25, %16, %12
  %54 = load { i64, i32 }, ptr %3, align 8
  ret { i64, i32 } %54
}

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

attributes #0 = { nocallback nofree 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 = { 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 = { 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 #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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS10ImPlotTime", !13, i64 0, !10, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !10, i64 8}
!15 = !{i64 0, i64 8, !16, i64 8, i64 4, !9}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !10, i64 1008}
!18 = !{!"_ZTS13ImPlotContext", !19, i64 0, !23, i64 40, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !25, i64 120, !31, i64 176, !33, i64 216, !35, i64 256, !36, i64 260, !37, i64 776, !38, i64 792, !39, i64 808, !41, i64 976, !43, i64 992, !44, i64 1048, !44, i64 1064, !41, i64 1080, !10, i64 1096, !10, i64 1100, !45, i64 1104, !46, i64 1336, !47, i64 1464, !35, i64 1512, !27, i64 1520, !6, i64 1536, !48, i64 1544, !6, i64 1584, !6, i64 1592}
!19 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !20, i64 0, !21, i64 16, !10, i64 32, !10, i64 36}
!20 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !10, i64 0, !10, i64 4, !6, i64 8}
!21 = !{!"_ZTS12ImGuiStorage", !22, i64 0}
!22 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !10, i64 0, !10, i64 4, !6, i64 8}
!23 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !24, i64 0, !21, i64 16, !10, i64 32, !10, i64 36}
!24 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !10, i64 0, !10, i64 4, !6, i64 8}
!25 = !{!"_ZTS12ImPlotTicker", !26, i64 0, !27, i64 16, !29, i64 32, !29, i64 40, !10, i64 48}
!26 = !{!"_ZTS8ImVectorI10ImPlotTickE", !10, i64 0, !10, i64 4, !6, i64 8}
!27 = !{!"_ZTS15ImGuiTextBuffer", !28, i64 0}
!28 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !6, i64 8}
!29 = !{!"_ZTS6ImVec2", !30, i64 0, !30, i64 4}
!30 = !{!"float", !7, i64 0}
!31 = !{!"_ZTS26ImPlotAnnotationCollection", !32, i64 0, !27, i64 16, !10, i64 32}
!32 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !10, i64 0, !10, i64 4, !6, i64 8}
!33 = !{!"_ZTS19ImPlotTagCollection", !34, i64 0, !27, i64 16, !10, i64 32}
!34 = !{!"_ZTS8ImVectorI9ImPlotTagE", !10, i64 0, !10, i64 4, !6, i64 8}
!35 = !{!"bool", !7, i64 0}
!36 = !{!"_ZTS11ImPlotStyle", !30, i64 0, !10, i64 4, !30, i64 8, !30, i64 12, !30, i64 16, !30, i64 20, !30, i64 24, !30, i64 28, !30, i64 32, !30, i64 36, !30, i64 40, !29, i64 44, !29, i64 52, !29, i64 60, !29, i64 68, !29, i64 76, !29, i64 84, !29, i64 92, !29, i64 100, !29, i64 108, !29, i64 116, !29, i64 124, !29, i64 132, !29, i64 140, !29, i64 148, !29, i64 156, !29, i64 164, !7, i64 172, !10, i64 508, !35, i64 512, !35, i64 513, !35, i64 514}
!37 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !10, i64 0, !10, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !6, i64 8}
!39 = !{!"_ZTS18ImPlotColormapData", !40, i64 0, !41, i64 16, !41, i64 32, !40, i64 48, !41, i64 64, !41, i64 80, !27, i64 96, !41, i64 112, !42, i64 128, !21, i64 144, !10, i64 160}
!40 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !6, i64 8}
!41 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorIbE", !10, i64 0, !10, i64 4, !6, i64 8}
!43 = !{!"_ZTS2tm", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !6, i64 48}
!44 = !{!"_ZTS8ImVectorIdE", !10, i64 0, !10, i64 4, !6, i64 8}
!45 = !{!"_ZTS18ImPlotNextPlotData", !7, i64 0, !7, i64 24, !7, i64 120, !7, i64 126, !7, i64 136, !7, i64 184}
!46 = !{!"_ZTS18ImPlotNextItemData", !7, i64 0, !30, i64 80, !10, i64 84, !30, i64 88, !30, i64 92, !30, i64 96, !30, i64 100, !30, i64 104, !30, i64 108, !30, i64 112, !35, i64 116, !35, i64 117, !35, i64 118, !35, i64 119, !35, i64 120, !35, i64 121, !10, i64 124}
!47 = !{!"_ZTS14ImPlotInputMap", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !30, i64 44}
!48 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !49, i64 0, !21, i64 16, !10, i64 32, !10, i64 36}
!49 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!50 = !{!18, !10, i64 1004}
!51 = !{!18, !10, i64 1000}
!52 = !{!18, !10, i64 996}
!53 = !{!18, !10, i64 992}


; 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.ImPlotTime = type <{ i64, i32, [4 x i8] }>

@GImPlot = external dso_local local_unnamed_addr global ptr, align 8

; 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) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZN6ImPlot6MkTimeEP2tm(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local { i64, i32 } @_ZN6ImPlot9FloorTimeERK10ImPlotTimei(ptr noundef nonnull align 8 dereferenceable(12) %0, i32 noundef %1) local_unnamed_addr #3 {
  %3 = alloca %struct.ImPlotTime, align 8
  %4 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 992
  %6 = tail call noundef ptr @_ZN6ImPlot7GetTimeERK10ImPlotTimeP2tm(ptr noundef nonnull align 8 dereferenceable(12) %0, ptr noundef nonnull %5)
  switch i32 %1, label %32 [
    i32 2, label %7
    i32 1, label %9
    i32 0, label %15
    i32 7, label %16
    i32 6, label %._crit_edge
    i32 5, label %._crit_edge6
    i32 4, label %._crit_edge8
    i32 3, label %._crit_edge10
  ]

._crit_edge10:                                    ; preds = %2
  %.pre11 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  br label %28

._crit_edge8:                                     ; preds = %2
  %.pre9 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  br label %25

._crit_edge6:                                     ; preds = %2
  %.pre7 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  br label %22

._crit_edge:                                      ; preds = %2
  %.pre = load ptr, ptr @GImPlot, align 8, !tbaa !5
  br label %19

7:                                                ; preds = %2
  %8 = load i64, ptr %0, align 8, !tbaa !9
  call void @_ZN10ImPlotTimeC2Eli(ptr noundef nonnull align 8 dereferenceable(12) %3, i64 noundef %8, i32 noundef 0)
  br label %33

9:                                                ; preds = %2
  %10 = load i64, ptr %0, align 8, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !13
  %.fr = freeze i32 %12
  %13 = srem i32 %.fr, 1000
  %14 = sub nsw i32 %.fr, %13
  call void @_ZN10ImPlotTimeC2Eli(ptr noundef nonnull align 8 dereferenceable(12) %3, i64 noundef %10, i32 noundef %14)
  br label %33

15:                                               ; preds = %2
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %0, i64 16, i1 false), !tbaa.struct !14
  br label %33

16:                                               ; preds = %2
  %17 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 1008
  store i32 0, ptr %18, align 8, !tbaa !17
  br label %19

19:                                               ; preds = %._crit_edge, %16
  %20 = phi ptr [ %.pre, %._crit_edge ], [ %17, %16 ]
  %21 = getelementptr inbounds i8, ptr %20, i64 1004
  store i32 1, ptr %21, align 4, !tbaa !50
  br label %22

22:                                               ; preds = %._crit_edge6, %19
  %23 = phi ptr [ %.pre7, %._crit_edge6 ], [ %20, %19 ]
  %24 = getelementptr inbounds i8, ptr %23, i64 1000
  store i32 0, ptr %24, align 8, !tbaa !51
  br label %25

25:                                               ; preds = %._crit_edge8, %22
  %26 = phi ptr [ %.pre9, %._crit_edge8 ], [ %23, %22 ]
  %27 = getelementptr inbounds i8, ptr %26, i64 996
  store i32 0, ptr %27, align 4, !tbaa !52
  br label %28

28:                                               ; preds = %._crit_edge10, %25
  %29 = phi ptr [ %.pre11, %._crit_edge10 ], [ %26, %25 ]
  %30 = getelementptr inbounds i8, ptr %29, i64 992
  store i32 0, ptr %30, align 8, !tbaa !53
  %31 = tail call { i64, i32 } @_ZN6ImPlot6MkTimeEP2tm(ptr noundef nonnull %30)
  %.fca.0.extract = extractvalue { i64, i32 } %31, 0
  %.fca.1.extract = extractvalue { i64, i32 } %31, 1
  store i64 %.fca.0.extract, ptr %3, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  br label %33

32:                                               ; preds = %2
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %0, i64 16, i1 false), !tbaa.struct !14
  br label %33

33:                                               ; preds = %28, %32, %15, %9, %7
  %.fca.0.load = load i64, ptr %3, align 8
  %.fca.0.insert = insertvalue { i64, i32 } poison, i64 %.fca.0.load, 0
  %.fca.1.gep = getelementptr inbounds i8, ptr %3, i64 8
  %.fca.1.load = load i32, ptr %.fca.1.gep, align 8
  %.fca.1.insert = insertvalue { i64, i32 } %.fca.0.insert, i32 %.fca.1.load, 1
  ret { i64, i32 } %.fca.1.insert
}

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

attributes #0 = { mustprogress nocallback nofree 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 = { 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 = { 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 #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" }

!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, !11, i64 0}
!10 = !{!"_ZTS10ImPlotTime", !11, i64 0, !12, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !12, i64 8}
!14 = !{i64 0, i64 8, !15, i64 8, i64 4, !16}
!15 = !{!11, !11, i64 0}
!16 = !{!12, !12, i64 0}
!17 = !{!18, !12, i64 1008}
!18 = !{!"_ZTS13ImPlotContext", !19, i64 0, !23, i64 40, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !25, i64 120, !31, i64 176, !33, i64 216, !35, i64 256, !36, i64 260, !37, i64 776, !38, i64 792, !39, i64 808, !41, i64 976, !43, i64 992, !44, i64 1048, !44, i64 1064, !41, i64 1080, !12, i64 1096, !12, i64 1100, !45, i64 1104, !46, i64 1336, !47, i64 1464, !35, i64 1512, !27, i64 1520, !6, i64 1536, !48, i64 1544, !6, i64 1584, !6, i64 1592}
!19 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !20, i64 0, !21, i64 16, !12, i64 32, !12, i64 36}
!20 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !12, i64 0, !12, i64 4, !6, i64 8}
!21 = !{!"_ZTS12ImGuiStorage", !22, i64 0}
!22 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !12, i64 0, !12, i64 4, !6, i64 8}
!23 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !24, i64 0, !21, i64 16, !12, i64 32, !12, i64 36}
!24 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !12, i64 0, !12, i64 4, !6, i64 8}
!25 = !{!"_ZTS12ImPlotTicker", !26, i64 0, !27, i64 16, !29, i64 32, !29, i64 40, !12, i64 48}
!26 = !{!"_ZTS8ImVectorI10ImPlotTickE", !12, i64 0, !12, i64 4, !6, i64 8}
!27 = !{!"_ZTS15ImGuiTextBuffer", !28, i64 0}
!28 = !{!"_ZTS8ImVectorIcE", !12, i64 0, !12, i64 4, !6, i64 8}
!29 = !{!"_ZTS6ImVec2", !30, i64 0, !30, i64 4}
!30 = !{!"float", !7, i64 0}
!31 = !{!"_ZTS26ImPlotAnnotationCollection", !32, i64 0, !27, i64 16, !12, i64 32}
!32 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !12, i64 0, !12, i64 4, !6, i64 8}
!33 = !{!"_ZTS19ImPlotTagCollection", !34, i64 0, !27, i64 16, !12, i64 32}
!34 = !{!"_ZTS8ImVectorI9ImPlotTagE", !12, i64 0, !12, i64 4, !6, i64 8}
!35 = !{!"bool", !7, i64 0}
!36 = !{!"_ZTS11ImPlotStyle", !30, i64 0, !12, i64 4, !30, i64 8, !30, i64 12, !30, i64 16, !30, i64 20, !30, i64 24, !30, i64 28, !30, i64 32, !30, i64 36, !30, i64 40, !29, i64 44, !29, i64 52, !29, i64 60, !29, i64 68, !29, i64 76, !29, i64 84, !29, i64 92, !29, i64 100, !29, i64 108, !29, i64 116, !29, i64 124, !29, i64 132, !29, i64 140, !29, i64 148, !29, i64 156, !29, i64 164, !7, i64 172, !12, i64 508, !35, i64 512, !35, i64 513, !35, i64 514}
!37 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !12, i64 0, !12, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !12, i64 0, !12, i64 4, !6, i64 8}
!39 = !{!"_ZTS18ImPlotColormapData", !40, i64 0, !41, i64 16, !41, i64 32, !40, i64 48, !41, i64 64, !41, i64 80, !27, i64 96, !41, i64 112, !42, i64 128, !21, i64 144, !12, i64 160}
!40 = !{!"_ZTS8ImVectorIjE", !12, i64 0, !12, i64 4, !6, i64 8}
!41 = !{!"_ZTS8ImVectorIiE", !12, i64 0, !12, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorIbE", !12, i64 0, !12, i64 4, !6, i64 8}
!43 = !{!"_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, !11, i64 40, !6, i64 48}
!44 = !{!"_ZTS8ImVectorIdE", !12, i64 0, !12, i64 4, !6, i64 8}
!45 = !{!"_ZTS18ImPlotNextPlotData", !7, i64 0, !7, i64 24, !7, i64 120, !7, i64 126, !7, i64 136, !7, i64 184}
!46 = !{!"_ZTS18ImPlotNextItemData", !7, i64 0, !30, i64 80, !12, i64 84, !30, i64 88, !30, i64 92, !30, i64 96, !30, i64 100, !30, i64 104, !30, i64 108, !30, i64 112, !35, i64 116, !35, i64 117, !35, i64 118, !35, i64 119, !35, i64 120, !35, i64 121, !12, i64 124}
!47 = !{!"_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, !30, i64 44}
!48 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !49, i64 0, !21, i64 16, !12, i64 32, !12, i64 36}
!49 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !12, i64 0, !12, i64 4, !6, i64 8}
!50 = !{!18, !12, i64 1004}
!51 = !{!18, !12, i64 1000}
!52 = !{!18, !12, i64 996}
!53 = !{!18, !12, i64 992}


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