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

; 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.ImPlotDateTimeSpec = type <{ i32, i32, i8, i8, [2 x i8] }>
%struct.ImPlotTime = type <{ i64, i32, [4 x i8] }>
%struct.ImPlotAxis = type <{ i32, i32, i32, [4 x i8], %struct.ImPlotRange, i32, i32, %struct.ImPlotRange, ptr, %struct.ImPlotRange, %struct.ImPlotRange, %struct.ImPlotTicker, ptr, ptr, [16 x i8], ptr, ptr, ptr, i32, [4 x i8], %struct.ImPlotTime, %struct.ImPlotTime, ptr, ptr, ptr, float, float, double, double, double, float, float, %struct.ImRect, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, [4 x i8] }>
%struct.ImPlotRange = type { double, double }
%struct.ImPlotTicker = type <{ %struct.ImVector.38, %struct.ImGuiTextBuffer, %struct.ImVec2, %struct.ImVec2, i32, [4 x i8] }>
%struct.ImVector.38 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.24 }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImVec2 = type { float, float }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%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.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.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.ImPool.43 = type { %struct.ImVector.44, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.44 = type { i32, i32, ptr }
%struct.ImPlotPlot = type <{ i32, i32, i32, i32, i32, [4 x i8], [6 x %struct.ImPlotAxis], %struct.ImGuiTextBuffer, %struct.ImPlotItemGroup, i32, i32, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImVec2, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, [3 x i8] }>
%struct.ImPlotItemGroup = type <{ i32, [4 x i8], %struct.ImPlotLegend, %struct.ImPool.46, i32, [4 x i8] }>
%struct.ImPlotLegend = type <{ i32, i32, i32, i32, %struct.ImVector.10, %struct.ImGuiTextBuffer, %struct.ImRect, i8, i8, i8, [5 x i8] }>
%struct.ImPool.46 = type { %struct.ImVector.47, %struct.ImGuiStorage, i32, i32 }
%struct.ImVector.47 = type { i32, i32, ptr }

@GImPlot = external dso_local global ptr, align 8
@_ZN6ImPlotL21TimeFormatMouseCursorE = external hidden global [8 x %struct.ImPlotDateTimeSpec], align 16

; 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 nounwind uwtable
declare dso_local noundef double @_ZNK11ImPlotRange4SizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6ImPlot14FormatDateTimeERK10ImPlotTimePci18ImPlotDateTimeSpec(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef, i32 noundef, i64, i32) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot12Locator_TimeER12ImPlotTickerRK11ImPlotRangefbPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(16), float noundef, i1 noundef zeroext, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6ImPlot15GetUnitForRangeEd(double noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZN10ImPlotTime10FromDoubleEd(double noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot14LabelAxisValueERK10ImPlotAxisdPcib(ptr noundef nonnull align 8 dereferenceable(372) %0, double noundef %1, ptr noundef %2, i32 noundef %3, i1 noundef zeroext %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.ImPlotTime, align 8
  %14 = alloca { i64, i32 }, align 8
  %15 = alloca %struct.ImPlotDateTimeSpec, align 4
  %16 = alloca { i64, i32 }, align 8
  %17 = alloca { i64, i32 }, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !11
  %18 = zext i1 %4 to i8
  store i8 %18, ptr %10, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %19 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  store ptr %19, ptr %11, align 8, !tbaa !5
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ImPlotAxis, ptr %20, i32 0, i32 15
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = icmp eq ptr %22, @_ZN6ImPlot12Locator_TimeER12ImPlotTickerRK11ImPlotRangefbPFidPciPvES6_
  br i1 %23, label %24, label %68

24:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ImPlotAxis, ptr %25, i32 0, i32 43
  %27 = load i8, ptr %26, align 1, !tbaa !27, !range !28, !noundef !29
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %42

29:                                               ; preds = %24
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ImPlotAxis, ptr %30, i32 0, i32 4
  %32 = call noundef double @_ZNK11ImPlotRange4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %31)
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ImPlotContext, ptr %33, i32 0, i32 2
  %35 = load ptr, ptr %34, align 8, !tbaa !30
  %36 = getelementptr inbounds %struct.ImPlotPlot, ptr %35, i32 0, i32 13
  %37 = call noundef float @_ZNK6ImRect9GetHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %36)
  %38 = fdiv float %37, 1.000000e+02
  %39 = fpext float %38 to double
  %40 = fdiv double %32, %39
  %41 = call noundef i32 @_ZN6ImPlot15GetUnitForRangeEd(double noundef %40)
  br label %55

42:                                               ; preds = %24
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ImPlotAxis, ptr %43, i32 0, i32 4
  %45 = call noundef double @_ZNK11ImPlotRange4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %44)
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ImPlotContext, ptr %46, i32 0, i32 2
  %48 = load ptr, ptr %47, align 8, !tbaa !30
  %49 = getelementptr inbounds %struct.ImPlotPlot, ptr %48, i32 0, i32 13
  %50 = call noundef float @_ZNK6ImRect8GetWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %49)
  %51 = fdiv float %50, 1.000000e+02
  %52 = fpext float %51 to double
  %53 = fdiv double %45, %52
  %54 = call noundef i32 @_ZN6ImPlot15GetUnitForRangeEd(double noundef %53)
  br label %55

55:                                               ; preds = %42, %29
  %56 = phi i32 [ %41, %29 ], [ %54, %42 ]
  store i32 %56, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  %57 = load double, ptr %7, align 8, !tbaa !9
  %58 = call { i64, i32 } @_ZN10ImPlotTime10FromDoubleEd(double noundef %57)
  store { i64, i32 } %58, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %14, i64 12, i1 false)
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load i32, ptr %9, align 4, !tbaa !11
  %61 = load i32, ptr %12, align 4, !tbaa !11
  %62 = call { i64, i32 } @_ZN6ImPlot14GetDateTimeFmtEPK18ImPlotDateTimeSpeci(ptr noundef @_ZN6ImPlotL21TimeFormatMouseCursorE, i32 noundef %61)
  store { i64, i32 } %62, ptr %16, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 8 %16, i64 10, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %15, i64 12, i1 false)
  %63 = getelementptr inbounds { i64, i32 }, ptr %17, i32 0, i32 0
  %64 = load i64, ptr %63, align 4
  %65 = getelementptr inbounds { i64, i32 }, ptr %17, i32 0, i32 1
  %66 = load i32, ptr %65, align 4
  %67 = call noundef i32 @_ZN6ImPlot14FormatDateTimeERK10ImPlotTimePci18ImPlotDateTimeSpec(ptr noundef nonnull align 8 dereferenceable(12) %13, ptr noundef %59, i32 noundef %60, i64 %64, i32 %66)
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %86

68:                                               ; preds = %5
  %69 = load i8, ptr %10, align 1, !tbaa !13, !range !28, !noundef !29
  %70 = trunc i8 %69 to i1
  br i1 %70, label %71, label %75

71:                                               ; preds = %68
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load double, ptr %7, align 8, !tbaa !9
  %74 = call noundef double @_ZN6ImPlotL14RoundAxisValueERK10ImPlotAxisd(ptr noundef nonnull align 8 dereferenceable(372) %72, double noundef %73)
  store double %74, ptr %7, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %71, %68
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ImPlotAxis, ptr %76, i32 0, i32 12
  %78 = load ptr, ptr %77, align 8, !tbaa !56
  %79 = load double, ptr %7, align 8, !tbaa !9
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = load i32, ptr %9, align 4, !tbaa !11
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ImPlotAxis, ptr %82, i32 0, i32 13
  %84 = load ptr, ptr %83, align 8, !tbaa !57
  %85 = call noundef i32 %78(double noundef %79, ptr noundef %80, i32 noundef %81, ptr noundef %84)
  br label %86

86:                                               ; preds = %75, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6ImRect9GetHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6ImRect8GetWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef double @_ZN6ImPlotL14RoundAxisValueERK10ImPlotAxisd(ptr noundef nonnull align 8 dereferenceable(372), double noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 = { 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 #6 = { 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, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !6, i64 184}
!16 = !{!"_ZTS10ImPlotAxis", !12, i64 0, !12, i64 4, !12, i64 8, !17, i64 16, !12, i64 32, !12, i64 36, !17, i64 40, !6, i64 56, !17, i64 64, !17, i64 80, !18, i64 96, !6, i64 152, !6, i64 160, !7, i64 168, !6, i64 184, !6, i64 192, !6, i64 200, !12, i64 208, !24, i64 216, !24, i64 232, !6, i64 248, !6, i64 256, !6, i64 264, !23, i64 272, !23, i64 276, !10, i64 280, !10, i64 288, !10, i64 296, !23, i64 304, !23, i64 308, !26, i64 312, !12, i64 328, !12, i64 332, !12, i64 336, !12, i64 340, !12, i64 344, !12, i64 348, !12, i64 352, !12, i64 356, !12, i64 360, !14, i64 364, !14, i64 365, !14, i64 366, !14, i64 367, !14, i64 368, !14, i64 369, !14, i64 370, !14, i64 371}
!17 = !{!"_ZTS11ImPlotRange", !10, i64 0, !10, i64 8}
!18 = !{!"_ZTS12ImPlotTicker", !19, i64 0, !20, i64 16, !22, i64 32, !22, i64 40, !12, i64 48}
!19 = !{!"_ZTS8ImVectorI10ImPlotTickE", !12, i64 0, !12, i64 4, !6, i64 8}
!20 = !{!"_ZTS15ImGuiTextBuffer", !21, i64 0}
!21 = !{!"_ZTS8ImVectorIcE", !12, i64 0, !12, i64 4, !6, i64 8}
!22 = !{!"_ZTS6ImVec2", !23, i64 0, !23, i64 4}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTS10ImPlotTime", !25, i64 0, !12, i64 8}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTS6ImRect", !22, i64 0, !22, i64 8}
!27 = !{!16, !14, i64 365}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!31, !6, i64 80}
!31 = !{!"_ZTS13ImPlotContext", !32, i64 0, !36, i64 40, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !18, i64 120, !38, i64 176, !40, i64 216, !14, i64 256, !42, i64 260, !43, i64 776, !44, i64 792, !45, i64 808, !47, i64 976, !49, i64 992, !50, i64 1048, !50, i64 1064, !47, i64 1080, !12, i64 1096, !12, i64 1100, !51, i64 1104, !52, i64 1336, !53, i64 1464, !14, i64 1512, !20, i64 1520, !6, i64 1536, !54, i64 1544, !6, i64 1584, !6, i64 1592}
!32 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !33, i64 0, !34, i64 16, !12, i64 32, !12, i64 36}
!33 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !12, i64 0, !12, i64 4, !6, i64 8}
!34 = !{!"_ZTS12ImGuiStorage", !35, i64 0}
!35 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !12, i64 0, !12, i64 4, !6, i64 8}
!36 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !37, i64 0, !34, i64 16, !12, i64 32, !12, i64 36}
!37 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !12, i64 0, !12, i64 4, !6, i64 8}
!38 = !{!"_ZTS26ImPlotAnnotationCollection", !39, i64 0, !20, i64 16, !12, i64 32}
!39 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !12, i64 0, !12, i64 4, !6, i64 8}
!40 = !{!"_ZTS19ImPlotTagCollection", !41, i64 0, !20, i64 16, !12, i64 32}
!41 = !{!"_ZTS8ImVectorI9ImPlotTagE", !12, i64 0, !12, i64 4, !6, i64 8}
!42 = !{!"_ZTS11ImPlotStyle", !23, i64 0, !12, 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, !12, i64 508, !14, i64 512, !14, i64 513, !14, i64 514}
!43 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !12, i64 0, !12, i64 4, !6, i64 8}
!44 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !12, i64 0, !12, i64 4, !6, i64 8}
!45 = !{!"_ZTS18ImPlotColormapData", !46, i64 0, !47, i64 16, !47, i64 32, !46, i64 48, !47, i64 64, !47, i64 80, !20, i64 96, !47, i64 112, !48, i64 128, !34, i64 144, !12, i64 160}
!46 = !{!"_ZTS8ImVectorIjE", !12, i64 0, !12, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorIiE", !12, i64 0, !12, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorIbE", !12, i64 0, !12, i64 4, !6, i64 8}
!49 = !{!"_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, !25, i64 40, !6, i64 48}
!50 = !{!"_ZTS8ImVectorIdE", !12, i64 0, !12, i64 4, !6, i64 8}
!51 = !{!"_ZTS18ImPlotNextPlotData", !7, i64 0, !7, i64 24, !7, i64 120, !7, i64 126, !7, i64 136, !7, i64 184}
!52 = !{!"_ZTS18ImPlotNextItemData", !7, i64 0, !23, i64 80, !12, i64 84, !23, i64 88, !23, i64 92, !23, i64 96, !23, i64 100, !23, i64 104, !23, i64 108, !23, i64 112, !14, i64 116, !14, i64 117, !14, i64 118, !14, i64 119, !14, i64 120, !14, i64 121, !12, i64 124}
!53 = !{!"_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, !23, i64 44}
!54 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !55, i64 0, !34, i64 16, !12, i64 32, !12, i64 36}
!55 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !12, i64 0, !12, i64 4, !6, i64 8}
!56 = !{!16, !6, i64 152}
!57 = !{!16, !6, i64 160}


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

@GImPlot = external dso_local local_unnamed_addr global ptr, align 8
@_ZN6ImPlotL21TimeFormatMouseCursorE = external hidden global [8 x %struct.ImPlotDateTimeSpec], align 16

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK11ImPlotRange4SizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6ImPlot14FormatDateTimeERK10ImPlotTimePci18ImPlotDateTimeSpec(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef, i32 noundef, i64, i32) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot12Locator_TimeER12ImPlotTickerRK11ImPlotRangefbPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(16), float noundef, i1 noundef zeroext, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6ImPlot15GetUnitForRangeEd(double noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZN10ImPlotTime10FromDoubleEd(double noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot14LabelAxisValueERK10ImPlotAxisdPcib(ptr noundef nonnull align 8 dereferenceable(372) %0, double noundef %1, ptr noundef %2, i32 noundef %3, i1 noundef zeroext %4) local_unnamed_addr #2 {
  %6 = alloca %struct.ImPlotTime, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 184
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = icmp eq ptr %8, @_ZN6ImPlot12Locator_TimeER12ImPlotTickerRK11ImPlotRangefbPFidPciPvES6_
  br i1 %9, label %10, label %32

10:                                               ; preds = %5
  %11 = load ptr, ptr @GImPlot, align 8, !tbaa !23
  %12 = getelementptr inbounds i8, ptr %0, i64 365
  %13 = load i8, ptr %12, align 1, !tbaa !24, !range !25, !noundef !26
  %14 = trunc nuw i8 %13 to i1
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = tail call noundef double @_ZNK11ImPlotRange4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
  %17 = getelementptr inbounds i8, ptr %11, i64 80
  %18 = load ptr, ptr %17, align 8, !tbaa !27
  %19 = getelementptr inbounds i8, ptr %18, i64 2464
  br i1 %14, label %20, label %22

20:                                               ; preds = %10
  %21 = tail call noundef float @_ZNK6ImRect9GetHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %19)
  br label %24

22:                                               ; preds = %10
  %23 = tail call noundef float @_ZNK6ImRect8GetWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %19)
  br label %24

24:                                               ; preds = %22, %20
  %.sink26 = phi float [ %23, %22 ], [ %21, %20 ]
  %25 = fdiv float %.sink26, 1.000000e+02
  %26 = fpext float %25 to double
  %27 = fdiv double %16, %26
  %28 = tail call noundef i32 @_ZN6ImPlot15GetUnitForRangeEd(double noundef %27)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %29 = tail call { i64, i32 } @_ZN10ImPlotTime10FromDoubleEd(double noundef %1)
  %.fca.0.extract5 = extractvalue { i64, i32 } %29, 0
  %.fca.1.extract6 = extractvalue { i64, i32 } %29, 1
  store i64 %.fca.0.extract5, ptr %6, align 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  %30 = tail call { i64, i32 } @_ZN6ImPlot14GetDateTimeFmtEPK18ImPlotDateTimeSpeci(ptr noundef nonnull @_ZN6ImPlotL21TimeFormatMouseCursorE, i32 noundef %28)
  %.fca.0.extract = extractvalue { i64, i32 } %30, 0
  %.fca.1.extract = extractvalue { i64, i32 } %30, 1
  %.sroa.24.8.insert.ext = and i32 %.fca.1.extract, 65535
  %31 = call noundef i32 @_ZN6ImPlot14FormatDateTimeERK10ImPlotTimePci18ImPlotDateTimeSpec(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef %2, i32 noundef %3, i64 %.fca.0.extract, i32 %.sroa.24.8.insert.ext)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br label %41

32:                                               ; preds = %5
  br i1 %4, label %33, label %35

33:                                               ; preds = %32
  %34 = tail call noundef double @_ZN6ImPlotL14RoundAxisValueERK10ImPlotAxisd(ptr noundef nonnull align 8 dereferenceable(372) %0, double noundef %1)
  br label %35

35:                                               ; preds = %33, %32
  %.0 = phi double [ %34, %33 ], [ %1, %32 ]
  %36 = getelementptr inbounds i8, ptr %0, i64 152
  %37 = load ptr, ptr %36, align 8, !tbaa !53
  %38 = getelementptr inbounds i8, ptr %0, i64 160
  %39 = load ptr, ptr %38, align 8, !tbaa !54
  %40 = tail call noundef i32 %37(double noundef %.0, ptr noundef %2, i32 noundef %3, ptr noundef %39)
  br label %41

41:                                               ; preds = %35, %24
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6ImRect9GetHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6ImRect8GetWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef double @_ZN6ImPlotL14RoundAxisValueERK10ImPlotAxisd(ptr noundef nonnull align 8 dereferenceable(372), double noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #4 = { 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 #5 = { 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, !12, i64 184}
!6 = !{!"_ZTS10ImPlotAxis", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !7, i64 32, !7, i64 36, !10, i64 40, !12, i64 56, !10, i64 64, !10, i64 80, !13, i64 96, !12, i64 152, !12, i64 160, !8, i64 168, !12, i64 184, !12, i64 192, !12, i64 200, !7, i64 208, !19, i64 216, !19, i64 232, !12, i64 248, !12, i64 256, !12, i64 264, !18, i64 272, !18, i64 276, !11, i64 280, !11, i64 288, !11, i64 296, !18, i64 304, !18, i64 308, !21, i64 312, !7, i64 328, !7, i64 332, !7, i64 336, !7, i64 340, !7, i64 344, !7, i64 348, !7, i64 352, !7, i64 356, !7, i64 360, !22, i64 364, !22, i64 365, !22, i64 366, !22, i64 367, !22, i64 368, !22, i64 369, !22, i64 370, !22, i64 371}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS11ImPlotRange", !11, i64 0, !11, i64 8}
!11 = !{!"double", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"_ZTS12ImPlotTicker", !14, i64 0, !15, i64 16, !17, i64 32, !17, i64 40, !7, i64 48}
!14 = !{!"_ZTS8ImVectorI10ImPlotTickE", !7, i64 0, !7, i64 4, !12, i64 8}
!15 = !{!"_ZTS15ImGuiTextBuffer", !16, i64 0}
!16 = !{!"_ZTS8ImVectorIcE", !7, i64 0, !7, i64 4, !12, i64 8}
!17 = !{!"_ZTS6ImVec2", !18, i64 0, !18, i64 4}
!18 = !{!"float", !8, i64 0}
!19 = !{!"_ZTS10ImPlotTime", !20, i64 0, !7, i64 8}
!20 = !{!"long", !8, i64 0}
!21 = !{!"_ZTS6ImRect", !17, i64 0, !17, i64 8}
!22 = !{!"bool", !8, i64 0}
!23 = !{!12, !12, i64 0}
!24 = !{!6, !22, i64 365}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!28, !12, i64 80}
!28 = !{!"_ZTS13ImPlotContext", !29, i64 0, !33, i64 40, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !13, i64 120, !35, i64 176, !37, i64 216, !22, i64 256, !39, i64 260, !40, i64 776, !41, i64 792, !42, i64 808, !44, i64 976, !46, i64 992, !47, i64 1048, !47, i64 1064, !44, i64 1080, !7, i64 1096, !7, i64 1100, !48, i64 1104, !49, i64 1336, !50, i64 1464, !22, i64 1512, !15, i64 1520, !12, i64 1536, !51, i64 1544, !12, i64 1584, !12, i64 1592}
!29 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !30, i64 0, !31, i64 16, !7, i64 32, !7, i64 36}
!30 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !7, i64 0, !7, i64 4, !12, i64 8}
!31 = !{!"_ZTS12ImGuiStorage", !32, i64 0}
!32 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !7, i64 0, !7, i64 4, !12, i64 8}
!33 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !34, i64 0, !31, i64 16, !7, i64 32, !7, i64 36}
!34 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !7, i64 0, !7, i64 4, !12, i64 8}
!35 = !{!"_ZTS26ImPlotAnnotationCollection", !36, i64 0, !15, i64 16, !7, i64 32}
!36 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !7, i64 0, !7, i64 4, !12, i64 8}
!37 = !{!"_ZTS19ImPlotTagCollection", !38, i64 0, !15, i64 16, !7, i64 32}
!38 = !{!"_ZTS8ImVectorI9ImPlotTagE", !7, i64 0, !7, i64 4, !12, i64 8}
!39 = !{!"_ZTS11ImPlotStyle", !18, i64 0, !7, i64 4, !18, i64 8, !18, i64 12, !18, i64 16, !18, i64 20, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !18, i64 40, !17, i64 44, !17, i64 52, !17, i64 60, !17, i64 68, !17, i64 76, !17, i64 84, !17, i64 92, !17, i64 100, !17, i64 108, !17, i64 116, !17, i64 124, !17, i64 132, !17, i64 140, !17, i64 148, !17, i64 156, !17, i64 164, !8, i64 172, !7, i64 508, !22, i64 512, !22, i64 513, !22, i64 514}
!40 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !7, i64 0, !7, i64 4, !12, i64 8}
!41 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !7, i64 0, !7, i64 4, !12, i64 8}
!42 = !{!"_ZTS18ImPlotColormapData", !43, i64 0, !44, i64 16, !44, i64 32, !43, i64 48, !44, i64 64, !44, i64 80, !15, i64 96, !44, i64 112, !45, i64 128, !31, i64 144, !7, i64 160}
!43 = !{!"_ZTS8ImVectorIjE", !7, i64 0, !7, i64 4, !12, i64 8}
!44 = !{!"_ZTS8ImVectorIiE", !7, i64 0, !7, i64 4, !12, i64 8}
!45 = !{!"_ZTS8ImVectorIbE", !7, i64 0, !7, i64 4, !12, i64 8}
!46 = !{!"_ZTS2tm", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !20, i64 40, !12, i64 48}
!47 = !{!"_ZTS8ImVectorIdE", !7, i64 0, !7, i64 4, !12, i64 8}
!48 = !{!"_ZTS18ImPlotNextPlotData", !8, i64 0, !8, i64 24, !8, i64 120, !8, i64 126, !8, i64 136, !8, i64 184}
!49 = !{!"_ZTS18ImPlotNextItemData", !8, i64 0, !18, i64 80, !7, i64 84, !18, i64 88, !18, i64 92, !18, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !18, i64 112, !22, i64 116, !22, i64 117, !22, i64 118, !22, i64 119, !22, i64 120, !22, i64 121, !7, i64 124}
!50 = !{!"_ZTS14ImPlotInputMap", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !18, i64 44}
!51 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !52, i64 0, !31, i64 16, !7, i64 32, !7, i64 36}
!52 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !7, i64 0, !7, i64 4, !12, i64 8}
!53 = !{!6, !12, i64 152}
!54 = !{!6, !12, i64 160}


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