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

; 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.ImPlotPoint = type { double, double }
%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.176 = external hidden unnamed_addr constant [102 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot12PixelsToPlotEffii = external hidden unnamed_addr constant [63 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [95 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: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK10ImPlotAxis12PixelsToPlotEf(ptr noundef nonnull align 8 dereferenceable(372), float noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN6ImPlotL9SetupLockEv() #2

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

19:                                               ; preds = %4
  br label %20

20:                                               ; preds = %19, %4
  %21 = phi i1 [ false, %4 ], [ true, %19 ]
  br i1 %21, label %22, label %23

22:                                               ; preds = %20
  br label %25

23:                                               ; preds = %20
  call void @__assert_fail(ptr noundef @.str.176, ptr noundef @.str.78, i32 noundef 3595, ptr noundef @__PRETTY_FUNCTION__._ZN6ImPlot12PixelsToPlotEffii) #6
  unreachable

24:                                               ; No predecessors!
  br label %25

25:                                               ; preds = %24, %22
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = icmp eq i32 %26, -1
  br i1 %27, label %34, label %28

28:                                               ; preds = %25
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = icmp sge i32 %29, 0
  br i1 %30, label %31, label %35

31:                                               ; preds = %28
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = icmp slt i32 %32, 3
  br i1 %33, label %34, label %35

34:                                               ; preds = %31, %25
  br label %35

35:                                               ; preds = %34, %31, %28
  %36 = phi i1 [ false, %31 ], [ false, %28 ], [ true, %34 ]
  br i1 %36, label %37, label %38

37:                                               ; preds = %35
  br label %40

38:                                               ; preds = %35
  call void @__assert_fail(ptr noundef @.str.177, ptr noundef @.str.78, i32 noundef 3596, ptr noundef @__PRETTY_FUNCTION__._ZN6ImPlot12PixelsToPlotEffii) #6
  unreachable

39:                                               ; No predecessors!
  br label %40

40:                                               ; preds = %39, %37
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = icmp eq i32 %41, -1
  br i1 %42, label %49, label %43

43:                                               ; preds = %40
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = icmp sge i32 %44, 3
  br i1 %45, label %46, label %50

46:                                               ; preds = %43
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = icmp slt i32 %47, 6
  br i1 %48, label %49, label %50

49:                                               ; preds = %46, %40
  br label %50

50:                                               ; preds = %49, %46, %43
  %51 = phi i1 [ false, %46 ], [ false, %43 ], [ true, %49 ]
  br i1 %51, label %52, label %53

52:                                               ; preds = %50
  br label %55

53:                                               ; preds = %50
  call void @__assert_fail(ptr noundef @.str.178, ptr noundef @.str.78, i32 noundef 3597, ptr noundef @__PRETTY_FUNCTION__._ZN6ImPlot12PixelsToPlotEffii) #6
  unreachable

54:                                               ; No predecessors!
  br label %55

55:                                               ; preds = %54, %52
  call void @_ZN6ImPlotL9SetupLockEv()
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %56 = load ptr, ptr %10, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct.ImPlotContext, ptr %56, i32 0, i32 2
  %58 = load ptr, ptr %57, align 8, !tbaa !13
  store ptr %58, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %59 = load i32, ptr %8, align 4, !tbaa !9
  %60 = icmp eq i32 %59, -1
  br i1 %60, label %61, label %69

61:                                               ; preds = %55
  %62 = load ptr, ptr %11, align 8, !tbaa !11
  %63 = getelementptr inbounds %struct.ImPlotPlot, ptr %62, i32 0, i32 6
  %64 = load ptr, ptr %11, align 8, !tbaa !11
  %65 = getelementptr inbounds %struct.ImPlotPlot, ptr %64, i32 0, i32 9
  %66 = load i32, ptr %65, align 8, !tbaa !46
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [6 x %struct.ImPlotAxis], ptr %63, i64 0, i64 %67
  br label %75

69:                                               ; preds = %55
  %70 = load ptr, ptr %11, align 8, !tbaa !11
  %71 = getelementptr inbounds %struct.ImPlotPlot, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %8, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [6 x %struct.ImPlotAxis], ptr %71, i64 0, i64 %73
  br label %75

75:                                               ; preds = %69, %61
  %76 = phi ptr [ %68, %61 ], [ %74, %69 ]
  store ptr %76, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = icmp eq i32 %77, -1
  br i1 %78, label %79, label %87

79:                                               ; preds = %75
  %80 = load ptr, ptr %11, align 8, !tbaa !11
  %81 = getelementptr inbounds %struct.ImPlotPlot, ptr %80, i32 0, i32 6
  %82 = load ptr, ptr %11, align 8, !tbaa !11
  %83 = getelementptr inbounds %struct.ImPlotPlot, ptr %82, i32 0, i32 10
  %84 = load i32, ptr %83, align 4, !tbaa !53
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [6 x %struct.ImPlotAxis], ptr %81, i64 0, i64 %85
  br label %93

87:                                               ; preds = %75
  %88 = load ptr, ptr %11, align 8, !tbaa !11
  %89 = getelementptr inbounds %struct.ImPlotPlot, ptr %88, i32 0, i32 6
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [6 x %struct.ImPlotAxis], ptr %89, i64 0, i64 %91
  br label %93

93:                                               ; preds = %87, %79
  %94 = phi ptr [ %86, %79 ], [ %92, %87 ]
  store ptr %94, ptr %13, align 8, !tbaa !11
  %95 = load ptr, ptr %12, align 8, !tbaa !11
  %96 = load float, ptr %6, align 4, !tbaa !5
  %97 = call noundef double @_ZNK10ImPlotAxis12PixelsToPlotEf(ptr noundef nonnull align 8 dereferenceable(372) %95, float noundef %96)
  %98 = load ptr, ptr %13, align 8, !tbaa !11
  %99 = load float, ptr %7, align 4, !tbaa !5
  %100 = call noundef double @_ZNK10ImPlotAxis12PixelsToPlotEf(ptr noundef nonnull align 8 dereferenceable(372) %98, float noundef %99)
  call void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef %97, double noundef %100)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %101 = load { double, double }, ptr %5, align 8
  ret { double, double } %101
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #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 = { 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 = { 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" }
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 = !{!"float", !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, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 80}
!14 = !{!"_ZTS13ImPlotContext", !15, i64 0, !19, i64 40, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !21, i64 120, !26, i64 176, !28, i64 216, !30, 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, !10, i64 1096, !10, i64 1100, !41, i64 1104, !42, i64 1336, !43, i64 1464, !30, i64 1512, !23, i64 1520, !12, i64 1536, !44, i64 1544, !12, i64 1584, !12, i64 1592}
!15 = !{!"_ZTS6ImPoolI10ImPlotPlotE", !16, i64 0, !17, i64 16, !10, i64 32, !10, i64 36}
!16 = !{!"_ZTS8ImVectorI10ImPlotPlotE", !10, i64 0, !10, i64 4, !12, i64 8}
!17 = !{!"_ZTS12ImGuiStorage", !18, i64 0}
!18 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !10, i64 0, !10, i64 4, !12, i64 8}
!19 = !{!"_ZTS6ImPoolI13ImPlotSubplotE", !20, i64 0, !17, i64 16, !10, i64 32, !10, i64 36}
!20 = !{!"_ZTS8ImVectorI13ImPlotSubplotE", !10, i64 0, !10, i64 4, !12, i64 8}
!21 = !{!"_ZTS12ImPlotTicker", !22, i64 0, !23, i64 16, !25, i64 32, !25, i64 40, !10, i64 48}
!22 = !{!"_ZTS8ImVectorI10ImPlotTickE", !10, i64 0, !10, i64 4, !12, i64 8}
!23 = !{!"_ZTS15ImGuiTextBuffer", !24, i64 0}
!24 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !12, i64 8}
!25 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!26 = !{!"_ZTS26ImPlotAnnotationCollection", !27, i64 0, !23, i64 16, !10, i64 32}
!27 = !{!"_ZTS8ImVectorI16ImPlotAnnotationE", !10, i64 0, !10, i64 4, !12, i64 8}
!28 = !{!"_ZTS19ImPlotTagCollection", !29, i64 0, !23, i64 16, !10, i64 32}
!29 = !{!"_ZTS8ImVectorI9ImPlotTagE", !10, i64 0, !10, i64 4, !12, i64 8}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"_ZTS11ImPlotStyle", !6, i64 0, !10, 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, !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, !10, i64 508, !30, i64 512, !30, i64 513, !30, i64 514}
!32 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !10, i64 0, !10, i64 4, !12, i64 8}
!33 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !12, 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, !10, i64 160}
!35 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !12, i64 8}
!36 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !12, i64 8}
!37 = !{!"_ZTS8ImVectorIbE", !10, i64 0, !10, i64 4, !12, i64 8}
!38 = !{!"_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, !39, i64 40, !12, i64 48}
!39 = !{!"long", !7, i64 0}
!40 = !{!"_ZTS8ImVectorIdE", !10, i64 0, !10, i64 4, !12, 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, !6, i64 80, !10, i64 84, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !30, i64 116, !30, i64 117, !30, i64 118, !30, i64 119, !30, i64 120, !30, i64 121, !10, i64 124}
!43 = !{!"_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, !6, i64 44}
!44 = !{!"_ZTS6ImPoolI19ImPlotAlignmentDataE", !45, i64 0, !17, i64 16, !10, i64 32, !10, i64 36}
!45 = !{!"_ZTS8ImVectorI19ImPlotAlignmentDataE", !10, i64 0, !10, i64 4, !12, i64 8}
!46 = !{!47, !10, i64 2424}
!47 = !{!"_ZTS10ImPlotPlot", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24, !23, i64 2280, !48, i64 2296, !10, i64 2424, !10, i64 2428, !50, i64 2432, !50, i64 2448, !50, i64 2464, !50, i64 2480, !50, i64 2496, !25, i64 2512, !10, i64 2520, !30, i64 2524, !30, i64 2525, !30, i64 2526, !30, i64 2527, !30, i64 2528, !30, i64 2529, !30, i64 2530, !30, i64 2531, !30, i64 2532}
!48 = !{!"_ZTS15ImPlotItemGroup", !10, i64 0, !49, i64 8, !51, i64 80, !10, i64 120}
!49 = !{!"_ZTS12ImPlotLegend", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !36, i64 16, !23, i64 32, !50, i64 48, !30, i64 64, !30, i64 65, !30, i64 66}
!50 = !{!"_ZTS6ImRect", !25, i64 0, !25, i64 8}
!51 = !{!"_ZTS6ImPoolI10ImPlotItemE", !52, i64 0, !17, i64 16, !10, i64 32, !10, i64 36}
!52 = !{!"_ZTS8ImVectorI10ImPlotItemE", !10, i64 0, !10, i64 4, !12, i64 8}
!53 = !{!47, !10, i64 2428}


; 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.ImPlotPoint = type { double, double }
%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.176 = external hidden unnamed_addr constant [102 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImPlot12PixelsToPlotEffii = external hidden unnamed_addr constant [63 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [95 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: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK10ImPlotAxis12PixelsToPlotEf(ptr noundef nonnull align 8 dereferenceable(372), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN6ImPlotL9SetupLockEv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local { double, double } @_ZN6ImPlot12PixelsToPlotEffii(float noundef %0, float noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca %struct.ImPlotPoint, align 8
  %6 = load ptr, ptr @GImPlot, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 80
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %9, label %10

9:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.176, ptr noundef nonnull @.str.78, i32 noundef 3595, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImPlot12PixelsToPlotEffii) #4
  unreachable

10:                                               ; preds = %4
  %11 = icmp eq i32 %2, -1
  switch i32 %2, label %.critedge [
    i32 -1, label %12
    i32 2, label %12
    i32 1, label %12
    i32 0, label %12
  ]

12:                                               ; preds = %10, %10, %10, %10
  %13 = icmp eq i32 %3, -1
  switch i32 %3, label %.critedge5 [
    i32 -1, label %14
    i32 5, label %14
    i32 4, label %14
    i32 3, label %14
  ]

.critedge:                                        ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.177, ptr noundef nonnull @.str.78, i32 noundef 3596, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImPlot12PixelsToPlotEffii) #4
  unreachable

14:                                               ; preds = %12, %12, %12, %12
  tail call void @_ZN6ImPlotL9SetupLockEv()
  %15 = load ptr, ptr %7, align 8, !tbaa !9
  br i1 %11, label %16, label %20

.critedge5:                                       ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.178, ptr noundef nonnull @.str.78, i32 noundef 3597, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImPlot12PixelsToPlotEffii) #4
  unreachable

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %15, i64 2424
  %18 = load i32, ptr %17, align 8, !tbaa !44
  %19 = sext i32 %18 to i64
  br label %22

20:                                               ; preds = %14
  %21 = zext nneg i32 %2 to i64
  br label %22

22:                                               ; preds = %20, %16
  %.sink = phi i64 [ %21, %20 ], [ %19, %16 ]
  br i1 %13, label %23, label %27

23:                                               ; preds = %22
  %24 = getelementptr inbounds i8, ptr %15, i64 2428
  %25 = load i32, ptr %24, align 4, !tbaa !51
  %26 = sext i32 %25 to i64
  br label %29

27:                                               ; preds = %22
  %28 = zext nneg i32 %3 to i64
  br label %29

29:                                               ; preds = %27, %23
  %.sink30 = phi i64 [ %28, %27 ], [ %26, %23 ]
  %30 = getelementptr inbounds i8, ptr %15, i64 24
  %31 = getelementptr inbounds i8, ptr %15, i64 24
  %32 = getelementptr inbounds [6 x %struct.ImPlotAxis], ptr %31, i64 0, i64 %.sink
  %33 = getelementptr inbounds [6 x %struct.ImPlotAxis], ptr %30, i64 0, i64 %.sink30
  %34 = tail call noundef double @_ZNK10ImPlotAxis12PixelsToPlotEf(ptr noundef nonnull align 8 dereferenceable(372) %32, float noundef %0)
  %35 = tail call noundef double @_ZNK10ImPlotAxis12PixelsToPlotEf(ptr noundef nonnull align 8 dereferenceable(372) %33, float noundef %1)
  call void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef %34, double noundef %35)
  %.fca.0.load = load double, ptr %5, align 8
  %.fca.0.insert = insertvalue { double, double } poison, double %.fca.0.load, 0
  %.fca.1.gep = getelementptr inbounds i8, ptr %5, i64 8
  %.fca.1.load = load double, ptr %.fca.1.gep, align 8
  %.fca.1.insert = insertvalue { double, double } %.fca.0.insert, double %.fca.1.load, 1
  ret { double, double } %.fca.1.insert
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11ImPlotPointC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #3 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 = { 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 = { 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 = { 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, !13, i64 2424}
!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 = !{!45, !13, i64 2428}


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