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

; 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.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.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.ImPlotTime = type <{ i64, i32, [4 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 }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }

@GImPlot = external dso_local global ptr, align 8
@.str.78 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [159 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [77 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot14SetupAxisTicksEiPKdiPKPKcb = external hidden unnamed_addr constant [84 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [3 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: mustprogress uwtable
declare dso_local void @_ZN6ImPlot14AddTicksCustomEPKdPKPKciR12ImPlotTickerPFidPciPvES9_(ptr noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(52), ptr noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot14SetupAxisTicksEiPKdiPKPKcb(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i1 noundef zeroext %4) #1 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store i32 %0, ptr %6, align 4, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !9
  %14 = zext i1 %4 to i8
  store i8 %14, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %15 = load ptr, ptr @GImPlot, align 8, !tbaa !9
  store ptr %15, ptr %11, align 8, !tbaa !9
  %16 = load ptr, ptr %11, align 8, !tbaa !9
  %17 = getelementptr inbounds %struct.ImPlotContext, ptr %16, i32 0, i32 2
  %18 = load ptr, ptr %17, align 8, !tbaa !13
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %28

20:                                               ; preds = %5
  %21 = load ptr, ptr %11, align 8, !tbaa !9
  %22 = getelementptr inbounds %struct.ImPlotContext, ptr %21, i32 0, i32 2
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %24 = getelementptr inbounds %struct.ImPlotPlot, ptr %23, i32 0, i32 20
  %25 = load i8, ptr %24, align 2, !tbaa !46, !range !53, !noundef !54
  %26 = trunc i8 %25 to i1
  br i1 %26, label %28, label %27

27:                                               ; preds = %20
  br label %28

28:                                               ; preds = %27, %20, %5
  %29 = phi i1 [ false, %20 ], [ false, %5 ], [ true, %27 ]
  br i1 %29, label %30, label %31

30:                                               ; preds = %28
  br label %33

31:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.130, ptr noundef @.str.78, i32 noundef 2176, ptr noundef @__PRETTY_FUNCTION__._ZN6ImPlot14SetupAxisTicksEiPKdiPKPKcb) #5
  unreachable

32:                                               ; No predecessors!
  br label %33

33:                                               ; preds = %32, %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %34 = load ptr, ptr %11, align 8, !tbaa !9
  %35 = getelementptr inbounds %struct.ImPlotContext, ptr %34, i32 0, i32 2
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  store ptr %36, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %37 = load ptr, ptr %12, align 8, !tbaa !9
  %38 = getelementptr inbounds %struct.ImPlotPlot, ptr %37, i32 0, i32 6
  %39 = load i32, ptr %6, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [6 x %struct.ImPlotAxis], ptr %38, i64 0, i64 %40
  store ptr %41, ptr %13, align 8, !tbaa !9
  %42 = load ptr, ptr %13, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.ImPlotAxis, ptr %42, i32 0, i32 42
  %44 = load i8, ptr %43, align 4, !tbaa !55, !range !53, !noundef !54
  %45 = trunc i8 %44 to i1
  br i1 %45, label %46, label %47

46:                                               ; preds = %33
  br label %47

47:                                               ; preds = %46, %33
  %48 = phi i1 [ false, %33 ], [ true, %46 ]
  br i1 %48, label %49, label %50

49:                                               ; preds = %47
  br label %52

50:                                               ; preds = %47
  call void @__assert_fail(ptr noundef @.str.132, ptr noundef @.str.78, i32 noundef 2179, ptr noundef @__PRETTY_FUNCTION__._ZN6ImPlot14SetupAxisTicksEiPKdiPKPKcb) #5
  unreachable

51:                                               ; No predecessors!
  br label %52

52:                                               ; preds = %51, %49
  %53 = load i8, ptr %10, align 1, !tbaa !11, !range !53, !noundef !54
  %54 = trunc i8 %53 to i1
  %55 = load ptr, ptr %13, align 8, !tbaa !9
  %56 = getelementptr inbounds %struct.ImPlotAxis, ptr %55, i32 0, i32 47
  %57 = zext i1 %54 to i8
  store i8 %57, ptr %56, align 1, !tbaa !60
  %58 = load ptr, ptr %7, align 8, !tbaa !9
  %59 = load ptr, ptr %9, align 8, !tbaa !9
  %60 = load i32, ptr %8, align 4, !tbaa !5
  %61 = load ptr, ptr %13, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.ImPlotAxis, ptr %61, i32 0, i32 11
  %63 = load ptr, ptr %13, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.ImPlotAxis, ptr %63, i32 0, i32 12
  %65 = load ptr, ptr %64, align 8, !tbaa !61
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %71

67:                                               ; preds = %52
  %68 = load ptr, ptr %13, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.ImPlotAxis, ptr %68, i32 0, i32 12
  %70 = load ptr, ptr %69, align 8, !tbaa !61
  br label %72

71:                                               ; preds = %52
  br label %72

72:                                               ; preds = %71, %67
  %73 = phi ptr [ %70, %67 ], [ @_ZN6ImPlotL17Formatter_DefaultEdPciPv, %71 ]
  %74 = load ptr, ptr %13, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.ImPlotAxis, ptr %74, i32 0, i32 12
  %76 = load ptr, ptr %75, align 8, !tbaa !61
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %87

78:                                               ; preds = %72
  %79 = load ptr, ptr %13, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.ImPlotAxis, ptr %79, i32 0, i32 13
  %81 = load ptr, ptr %80, align 8, !tbaa !62
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %87

83:                                               ; preds = %78
  %84 = load ptr, ptr %13, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.ImPlotAxis, ptr %84, i32 0, i32 13
  %86 = load ptr, ptr %85, align 8, !tbaa !62
  br label %99

87:                                               ; preds = %78, %72
  %88 = load ptr, ptr %13, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.ImPlotAxis, ptr %88, i32 0, i32 46
  %90 = load i8, ptr %89, align 8, !tbaa !63, !range !53, !noundef !54
  %91 = trunc i8 %90 to i1
  br i1 %91, label %92, label %96

92:                                               ; preds = %87
  %93 = load ptr, ptr %13, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct.ImPlotAxis, ptr %93, i32 0, i32 14
  %95 = getelementptr inbounds [16 x i8], ptr %94, i64 0, i64 0
  br label %97

96:                                               ; preds = %87
  br label %97

97:                                               ; preds = %96, %92
  %98 = phi ptr [ %95, %92 ], [ @.str.133, %96 ]
  br label %99

99:                                               ; preds = %97, %83
  %100 = phi ptr [ %86, %83 ], [ %98, %97 ]
  call void @_ZN6ImPlot14AddTicksCustomEPKdPKPKciR12ImPlotTickerPFidPciPvES9_(ptr noundef %58, ptr noundef %59, i32 noundef %60, ptr noundef nonnull align 8 dereferenceable(52) %62, ptr noundef %73, ptr noundef %100)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN6ImPlotL17Formatter_DefaultEdPciPv(double noundef, ptr noundef, i32 noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }
attributes #5 = { 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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 80}
!14 = !{!"_ZTS13ImPlotContext", !15, i64 0, !19, i64 40, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !21, i64 120, !27, i64 176, !29, i64 216, !12, i64 256, !31, i64 260, !32, i64 776, !33, i64 792, !34, i64 808, !36, i64 976, !38, i64 992, !40, i64 1048, !40, i64 1064, !36, i64 1080, !6, i64 1096, !6, i64 1100, !41, i64 1104, !42, i64 1336, !43, i64 1464, !12, i64 1512, !23, i64 1520, !10, i64 1536, !44, i64 1544, !10, i64 1584, !10, i64 1592}
!15 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !16, i64 0, !17, i64 16, !6, i64 32, !6, i64 36}
!16 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !6, i64 0, !6, i64 4, !10, i64 8}
!17 = !{!"_ZTS12ImGuiStorage", !18, i64 0}
!18 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !6, i64 0, !6, i64 4, !10, i64 8}
!19 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !20, i64 0, !17, i64 16, !6, i64 32, !6, i64 36}
!20 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !6, i64 0, !6, i64 4, !10, i64 8}
!21 = !{!"_ZTS12ImPlotTicker", !22, i64 0, !23, i64 16, !25, i64 32, !25, i64 40, !6, i64 48}
!22 = !{!"_ZTS8ImVectorI10ImPlotTickE", !6, i64 0, !6, i64 4, !10, i64 8}
!23 = !{!"_ZTS15ImGuiTextBuffer", !24, i64 0}
!24 = !{!"_ZTS8ImVectorIcE", !6, i64 0, !6, i64 4, !10, i64 8}
!25 = !{!"_ZTS6ImVec2", !26, i64 0, !26, i64 4}
!26 = !{!"float", !7, i64 0}
!27 = !{!"_ZTS26ImPlotAnnotationCollection", !28, i64 0, !23, i64 16, !6, i64 32}
!28 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !6, i64 0, !6, i64 4, !10, i64 8}
!29 = !{!"_ZTS19ImPlotTagCollection", !30, i64 0, !23, i64 16, !6, i64 32}
!30 = !{!"_ZTS8ImVectorI9ImPlotTagE", !6, i64 0, !6, i64 4, !10, i64 8}
!31 = !{!"_ZTS11ImPlotStyle", !26, i64 0, !6, i64 4, !26, i64 8, !26, i64 12, !26, i64 16, !26, i64 20, !26, i64 24, !26, i64 28, !26, i64 32, !26, i64 36, !26, i64 40, !25, i64 44, !25, i64 52, !25, i64 60, !25, i64 68, !25, i64 76, !25, i64 84, !25, i64 92, !25, i64 100, !25, i64 108, !25, i64 116, !25, i64 124, !25, i64 132, !25, i64 140, !25, i64 148, !25, i64 156, !25, i64 164, !7, i64 172, !6, i64 508, !12, i64 512, !12, i64 513, !12, i64 514}
!32 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !6, i64 0, !6, i64 4, !10, i64 8}
!33 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !6, i64 0, !6, i64 4, !10, i64 8}
!34 = !{!"_ZTS18ImPlotColormapData", !35, i64 0, !36, i64 16, !36, i64 32, !35, i64 48, !36, i64 64, !36, i64 80, !23, i64 96, !36, i64 112, !37, i64 128, !17, i64 144, !6, i64 160}
!35 = !{!"_ZTS8ImVectorIjE", !6, i64 0, !6, i64 4, !10, i64 8}
!36 = !{!"_ZTS8ImVectorIiE", !6, i64 0, !6, i64 4, !10, i64 8}
!37 = !{!"_ZTS8ImVectorIbE", !6, i64 0, !6, i64 4, !10, i64 8}
!38 = !{!"_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, !39, i64 40, !10, i64 48}
!39 = !{!"long", !7, i64 0}
!40 = !{!"_ZTS8ImVectorIdE", !6, i64 0, !6, i64 4, !10, i64 8}
!41 = !{!"_ZTS18ImPlotNextPlotData", !7, i64 0, !7, i64 24, !7, i64 120, !7, i64 126, !7, i64 136, !7, i64 184}
!42 = !{!"_ZTS18ImPlotNextItemData", !7, i64 0, !26, i64 80, !6, i64 84, !26, i64 88, !26, i64 92, !26, i64 96, !26, i64 100, !26, i64 104, !26, i64 108, !26, i64 112, !12, i64 116, !12, i64 117, !12, i64 118, !12, i64 119, !12, i64 120, !12, i64 121, !6, i64 124}
!43 = !{!"_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, !26, i64 44}
!44 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !45, i64 0, !17, i64 16, !6, i64 32, !6, i64 36}
!45 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !6, i64 0, !6, i64 4, !10, i64 8}
!46 = !{!47, !12, i64 2526}
!47 = !{!"_ZTS10ImPlotPlot", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !7, i64 24, !23, i64 2280, !48, i64 2296, !6, i64 2424, !6, i64 2428, !50, i64 2432, !50, i64 2448, !50, i64 2464, !50, i64 2480, !50, i64 2496, !25, i64 2512, !6, i64 2520, !12, i64 2524, !12, i64 2525, !12, i64 2526, !12, i64 2527, !12, i64 2528, !12, i64 2529, !12, i64 2530, !12, i64 2531, !12, i64 2532}
!48 = !{!"_ZTS15ImPlotItemGroup", !6, i64 0, !49, i64 8, !51, i64 80, !6, i64 120}
!49 = !{!"_ZTS12ImPlotLegend", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !36, i64 16, !23, i64 32, !50, i64 48, !12, i64 64, !12, i64 65, !12, i64 66}
!50 = !{!"_ZTS6ImRect", !25, i64 0, !25, i64 8}
!51 = !{!"_ZTS6ImPoolI10ImPlotItemE", !52, i64 0, !17, i64 16, !6, i64 32, !6, i64 36}
!52 = !{!"_ZTS8ImVectorI10ImPlotItemE", !6, i64 0, !6, i64 4, !10, i64 8}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!56, !12, i64 364}
!56 = !{!"_ZTS10ImPlotAxis", !6, i64 0, !6, i64 4, !6, i64 8, !57, i64 16, !6, i64 32, !6, i64 36, !57, i64 40, !10, i64 56, !57, i64 64, !57, i64 80, !21, i64 96, !10, i64 152, !10, i64 160, !7, i64 168, !10, i64 184, !10, i64 192, !10, i64 200, !6, i64 208, !59, i64 216, !59, i64 232, !10, i64 248, !10, i64 256, !10, i64 264, !26, i64 272, !26, i64 276, !58, i64 280, !58, i64 288, !58, i64 296, !26, i64 304, !26, i64 308, !50, i64 312, !6, i64 328, !6, i64 332, !6, i64 336, !6, i64 340, !6, i64 344, !6, i64 348, !6, i64 352, !6, i64 356, !6, i64 360, !12, i64 364, !12, i64 365, !12, i64 366, !12, i64 367, !12, i64 368, !12, i64 369, !12, i64 370, !12, i64 371}
!57 = !{!"_ZTS11ImPlotRange", !58, i64 0, !58, i64 8}
!58 = !{!"double", !7, i64 0}
!59 = !{!"_ZTS10ImPlotTime", !39, i64 0, !6, i64 8}
!60 = !{!56, !12, i64 369}
!61 = !{!56, !10, i64 152}
!62 = !{!56, !10, i64 160}
!63 = !{!56, !12, i64 368}


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

@GImPlot = external dso_local local_unnamed_addr global ptr, align 8
@.str.78 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [159 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [77 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot14SetupAxisTicksEiPKdiPKPKcb = external hidden unnamed_addr constant [84 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot14AddTicksCustomEPKdPKPKciR12ImPlotTickerPFidPciPvES9_(ptr noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(52), ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot14SetupAxisTicksEiPKdiPKPKcb(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i1 noundef zeroext %4) local_unnamed_addr #0 {
  %6 = zext i1 %4 to i8
  %7 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 80
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %.critedge, label %10

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %9, i64 2526
  %12 = load i8, ptr %11, align 2, !tbaa !44, !range !51, !noundef !52
  %13 = trunc nuw i8 %12 to i1
  br i1 %13, label %.critedge, label %14

.critedge:                                        ; preds = %5, %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.130, ptr noundef nonnull @.str.78, i32 noundef 2176, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImPlot14SetupAxisTicksEiPKdiPKPKcb) #3
  unreachable

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %9, i64 24
  %16 = sext i32 %0 to i64
  %17 = getelementptr inbounds [6 x %struct.ImPlotAxis], ptr %15, i64 0, i64 %16
  %18 = getelementptr inbounds i8, ptr %17, i64 364
  %19 = load i8, ptr %18, align 4, !tbaa !53, !range !51, !noundef !52
  %20 = trunc nuw i8 %19 to i1
  br i1 %20, label %22, label %21

21:                                               ; preds = %14
  tail call void @__assert_fail(ptr noundef nonnull @.str.132, ptr noundef nonnull @.str.78, i32 noundef 2179, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImPlot14SetupAxisTicksEiPKdiPKPKcb) #3
  unreachable

22:                                               ; preds = %14
  %23 = getelementptr inbounds i8, ptr %17, i64 369
  store i8 %6, ptr %23, align 1, !tbaa !58
  %24 = getelementptr inbounds i8, ptr %17, i64 152
  %25 = load ptr, ptr %24, align 8, !tbaa !59
  %.not21 = icmp eq ptr %25, null
  br i1 %.not21, label %29, label %26

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %17, i64 160
  %28 = load ptr, ptr %27, align 8, !tbaa !60
  %.not23 = icmp eq ptr %28, null
  br i1 %.not23, label %29, label %35

29:                                               ; preds = %26, %22
  %30 = getelementptr inbounds i8, ptr %17, i64 368
  %31 = load i8, ptr %30, align 8, !tbaa !61, !range !51, !noundef !52
  %32 = trunc nuw i8 %31 to i1
  %33 = getelementptr inbounds i8, ptr %17, i64 168
  %34 = select i1 %32, ptr %33, ptr @.str.133
  br label %35

35:                                               ; preds = %26, %29
  %36 = phi ptr [ %34, %29 ], [ %28, %26 ]
  %spec.select = select i1 %.not21, ptr @_ZN6ImPlotL17Formatter_DefaultEdPciPv, ptr %25
  %37 = getelementptr inbounds i8, ptr %17, i64 96
  tail call void @_ZN6ImPlot14AddTicksCustomEPKdPKPKciR12ImPlotTickerPFidPciPvES9_(ptr noundef %1, ptr noundef %3, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(52) %37, ptr noundef nonnull %spec.select, ptr noundef %36)
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN6ImPlotL17Formatter_DefaultEdPciPv(double noundef, ptr noundef, i32 noundef, ptr noundef) #2

attributes #0 = { 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 #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 80}
!10 = !{!"_ZTS13ImPlotContext", !11, i64 0, !16, i64 40, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !18, i64 120, !24, i64 176, !26, i64 216, !28, i64 256, !29, i64 260, !30, i64 776, !31, i64 792, !32, i64 808, !34, i64 976, !36, i64 992, !38, i64 1048, !38, i64 1064, !34, i64 1080, !13, i64 1096, !13, i64 1100, !39, i64 1104, !40, i64 1336, !41, i64 1464, !28, i64 1512, !20, i64 1520, !6, i64 1536, !42, i64 1544, !6, i64 1584, !6, i64 1592}
!11 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !12, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!12 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !13, i64 0, !13, i64 4, !6, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS12ImGuiStorage", !15, i64 0}
!15 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!16 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !17, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!17 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !13, i64 0, !13, i64 4, !6, i64 8}
!18 = !{!"_ZTS12ImPlotTicker", !19, i64 0, !20, i64 16, !22, i64 32, !22, i64 40, !13, i64 48}
!19 = !{!"_ZTS8ImVectorI10ImPlotTickE", !13, i64 0, !13, i64 4, !6, i64 8}
!20 = !{!"_ZTS15ImGuiTextBuffer", !21, i64 0}
!21 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!22 = !{!"_ZTS6ImVec2", !23, i64 0, !23, i64 4}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTS26ImPlotAnnotationCollection", !25, i64 0, !20, i64 16, !13, i64 32}
!25 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !13, i64 0, !13, i64 4, !6, i64 8}
!26 = !{!"_ZTS19ImPlotTagCollection", !27, i64 0, !20, i64 16, !13, i64 32}
!27 = !{!"_ZTS8ImVectorI9ImPlotTagE", !13, i64 0, !13, i64 4, !6, i64 8}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTS11ImPlotStyle", !23, i64 0, !13, i64 4, !23, i64 8, !23, i64 12, !23, i64 16, !23, i64 20, !23, i64 24, !23, i64 28, !23, i64 32, !23, i64 36, !23, i64 40, !22, i64 44, !22, i64 52, !22, i64 60, !22, i64 68, !22, i64 76, !22, i64 84, !22, i64 92, !22, i64 100, !22, i64 108, !22, i64 116, !22, i64 124, !22, i64 132, !22, i64 140, !22, i64 148, !22, i64 156, !22, i64 164, !7, i64 172, !13, i64 508, !28, i64 512, !28, i64 513, !28, i64 514}
!30 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !13, i64 0, !13, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!32 = !{!"_ZTS18ImPlotColormapData", !33, i64 0, !34, i64 16, !34, i64 32, !33, i64 48, !34, i64 64, !34, i64 80, !20, i64 96, !34, i64 112, !35, i64 128, !14, i64 144, !13, i64 160}
!33 = !{!"_ZTS8ImVectorIjE", !13, i64 0, !13, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorIiE", !13, i64 0, !13, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorIbE", !13, i64 0, !13, i64 4, !6, i64 8}
!36 = !{!"_ZTS2tm", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !37, i64 40, !6, i64 48}
!37 = !{!"long", !7, i64 0}
!38 = !{!"_ZTS8ImVectorIdE", !13, i64 0, !13, i64 4, !6, i64 8}
!39 = !{!"_ZTS18ImPlotNextPlotData", !7, i64 0, !7, i64 24, !7, i64 120, !7, i64 126, !7, i64 136, !7, i64 184}
!40 = !{!"_ZTS18ImPlotNextItemData", !7, i64 0, !23, i64 80, !13, i64 84, !23, i64 88, !23, i64 92, !23, i64 96, !23, i64 100, !23, i64 104, !23, i64 108, !23, i64 112, !28, i64 116, !28, i64 117, !28, i64 118, !28, i64 119, !28, i64 120, !28, i64 121, !13, i64 124}
!41 = !{!"_ZTS14ImPlotInputMap", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !23, i64 44}
!42 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !43, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!43 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !13, i64 0, !13, i64 4, !6, i64 8}
!44 = !{!45, !28, i64 2526}
!45 = !{!"_ZTS10ImPlotPlot", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !7, i64 24, !20, i64 2280, !46, i64 2296, !13, i64 2424, !13, i64 2428, !48, i64 2432, !48, i64 2448, !48, i64 2464, !48, i64 2480, !48, i64 2496, !22, i64 2512, !13, i64 2520, !28, i64 2524, !28, i64 2525, !28, i64 2526, !28, i64 2527, !28, i64 2528, !28, i64 2529, !28, i64 2530, !28, i64 2531, !28, i64 2532}
!46 = !{!"_ZTS15ImPlotItemGroup", !13, i64 0, !47, i64 8, !49, i64 80, !13, i64 120}
!47 = !{!"_ZTS12ImPlotLegend", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !34, i64 16, !20, i64 32, !48, i64 48, !28, i64 64, !28, i64 65, !28, i64 66}
!48 = !{!"_ZTS6ImRect", !22, i64 0, !22, i64 8}
!49 = !{!"_ZTS6ImPoolI10ImPlotItemE", !50, i64 0, !14, i64 16, !13, i64 32, !13, i64 36}
!50 = !{!"_ZTS8ImVectorI10ImPlotItemE", !13, i64 0, !13, i64 4, !6, i64 8}
!51 = !{i8 0, i8 2}
!52 = !{}
!53 = !{!54, !28, i64 364}
!54 = !{!"_ZTS10ImPlotAxis", !13, i64 0, !13, i64 4, !13, i64 8, !55, i64 16, !13, i64 32, !13, i64 36, !55, i64 40, !6, i64 56, !55, i64 64, !55, i64 80, !18, i64 96, !6, i64 152, !6, i64 160, !7, i64 168, !6, i64 184, !6, i64 192, !6, i64 200, !13, i64 208, !57, i64 216, !57, i64 232, !6, i64 248, !6, i64 256, !6, i64 264, !23, i64 272, !23, i64 276, !56, i64 280, !56, i64 288, !56, i64 296, !23, i64 304, !23, i64 308, !48, i64 312, !13, i64 328, !13, i64 332, !13, i64 336, !13, i64 340, !13, i64 344, !13, i64 348, !13, i64 352, !13, i64 356, !13, i64 360, !28, i64 364, !28, i64 365, !28, i64 366, !28, i64 367, !28, i64 368, !28, i64 369, !28, i64 370, !28, i64 371}
!55 = !{!"_ZTS11ImPlotRange", !56, i64 0, !56, i64 8}
!56 = !{!"double", !7, i64 0}
!57 = !{!"_ZTS10ImPlotTime", !37, i64 0, !13, i64 8}
!58 = !{!54, !28, i64 369}
!59 = !{!54, !6, i64 152}
!60 = !{!54, !6, i64 160}
!61 = !{!54, !28, i64 368}


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