; 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.ImPlotRange = type { double, double }

; 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 @_ZN6ImPlot15Locator_DefaultER12ImPlotTickerRK11ImPlotRangefbPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(16), float noundef, i1 noundef zeroext, ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZN12ImPlotTicker7AddTickEdbibPFidPciPvES1_(ptr noundef nonnull align 8 dereferenceable(52), double noundef, i1 noundef zeroext, i32 noundef, i1 noundef zeroext, ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ImPlot24CalcLogarithmicExponentsERK11ImPlotRangefbRiS3_S3_(ptr noundef nonnull align 8 dereferenceable(16), float noundef, i1 noundef zeroext, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImPlot19AddTicksLogarithmicERK11ImPlotRangeiiiR12ImPlotTickerPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(52), ptr noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6ImPlot15CalcSymLogPixelEdRK11ImPlotRangef(double noundef, ptr noundef nonnull align 8 dereferenceable(16), float noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot14Locator_SymLogER12ImPlotTickerRK11ImPlotRangefbPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(52) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, float noundef %2, i1 noundef zeroext %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.ImPlotRange, align 8
  %24 = alloca %struct.ImPlotRange, align 8
  %25 = alloca i32, align 4
  %26 = alloca %struct.ImPlotRange, align 8
  %27 = alloca %struct.ImPlotRange, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store float %2, ptr %9, align 4, !tbaa !9
  %28 = zext i1 %3 to i8
  store i8 %28, ptr %10, align 1, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ImPlotRange, ptr %29, i32 0, i32 0
  %31 = load double, ptr %30, align 8, !tbaa !13
  %32 = fcmp oge double %31, -1.000000e+00
  br i1 %32, label %33, label %46

33:                                               ; preds = %6
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ImPlotRange, ptr %34, i32 0, i32 1
  %36 = load double, ptr %35, align 8, !tbaa !16
  %37 = fcmp ole double %36, 1.000000e+00
  br i1 %37, label %38, label %46

38:                                               ; preds = %33
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = load float, ptr %9, align 4, !tbaa !9
  %42 = load i8, ptr %10, align 1, !tbaa !11, !range !17, !noundef !18
  %43 = trunc i8 %42 to i1
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN6ImPlot15Locator_DefaultER12ImPlotTickerRK11ImPlotRangefbPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(52) %39, ptr noundef nonnull align 8 dereferenceable(16) %40, float noundef %41, i1 noundef zeroext %43, ptr noundef %44, ptr noundef %45)
  br label %116

46:                                               ; preds = %33, %6
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ImPlotRange, ptr %47, i32 0, i32 0
  %49 = load double, ptr %48, align 8, !tbaa !13
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ImPlotRange, ptr %50, i32 0, i32 1
  %52 = load double, ptr %51, align 8, !tbaa !16
  %53 = fmul double %49, %52
  %54 = fcmp olt double %53, 0.000000e+00
  br i1 %54, label %55, label %107

55:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store float 0.000000e+00, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %56 = load float, ptr %9, align 4, !tbaa !9
  store float %56, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = load float, ptr %9, align 4, !tbaa !9
  %59 = call noundef float @_ZN6ImPlot15CalcSymLogPixelEdRK11ImPlotRangef(double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(16) %57, float noundef %58)
  store float %59, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = load float, ptr %9, align 4, !tbaa !9
  %62 = call noundef float @_ZN6ImPlot15CalcSymLogPixelEdRK11ImPlotRangef(double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(16) %60, float noundef %61)
  store float %62, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ImPlotRange, ptr %63, i32 0, i32 1
  %65 = load double, ptr %64, align 8, !tbaa !16
  call void @_ZN11ImPlotRangeC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef 1.000000e+00, double noundef %65)
  %66 = load float, ptr %14, align 4, !tbaa !9
  %67 = load float, ptr %15, align 4, !tbaa !9
  %68 = fsub float %66, %67
  %69 = call noundef float @_ZL5ImAbsf(float noundef %68)
  %70 = load i8, ptr %10, align 1, !tbaa !11, !range !17, !noundef !18
  %71 = trunc i8 %70 to i1
  %72 = call noundef zeroext i1 @_ZN6ImPlot24CalcLogarithmicExponentsERK11ImPlotRangefbRiS3_S3_(ptr noundef nonnull align 8 dereferenceable(16) %23, float noundef %69, i1 noundef zeroext %71, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ImPlotRange, ptr %73, i32 0, i32 0
  %75 = load double, ptr %74, align 8, !tbaa !13
  call void @_ZN11ImPlotRangeC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %24, double noundef %75, double noundef -1.000000e+00)
  %76 = load float, ptr %16, align 4, !tbaa !9
  %77 = fsub float %76, 0.000000e+00
  %78 = call noundef float @_ZL5ImAbsf(float noundef %77)
  %79 = load i8, ptr %10, align 1, !tbaa !11, !range !17, !noundef !18
  %80 = trunc i8 %79 to i1
  %81 = call noundef zeroext i1 @_ZN6ImPlot24CalcLogarithmicExponentsERK11ImPlotRangefbRiS3_S3_(ptr noundef nonnull align 8 dereferenceable(16) %24, float noundef %78, i1 noundef zeroext %80, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %82 = load i32, ptr %22, align 4, !tbaa !19
  %83 = load i32, ptr %19, align 4, !tbaa !19
  %84 = call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %82, i32 noundef %83)
  store i32 %84, ptr %25, align 4, !tbaa !19
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN12ImPlotTicker7AddTickEdbibPFidPciPvES1_(ptr noundef nonnull align 8 dereferenceable(52) %85, double noundef 0.000000e+00, i1 noundef zeroext true, i32 noundef 0, i1 noundef zeroext true, ptr noundef %86, ptr noundef %87)
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImPlotRange, ptr %89, i32 0, i32 1
  %91 = load double, ptr %90, align 8, !tbaa !16
  call void @_ZN11ImPlotRangeC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef 1.000000e+00, double noundef %91)
  %92 = load i32, ptr %17, align 4, !tbaa !19
  %93 = load i32, ptr %18, align 4, !tbaa !19
  %94 = load i32, ptr %25, align 4, !tbaa !19
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN6ImPlot19AddTicksLogarithmicERK11ImPlotRangeiiiR12ImPlotTickerPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(16) %26, i32 noundef %92, i32 noundef %93, i32 noundef %94, ptr noundef nonnull align 8 dereferenceable(52) %95, ptr noundef %96, ptr noundef %97)
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ImPlotRange, ptr %98, i32 0, i32 0
  %100 = load double, ptr %99, align 8, !tbaa !13
  call void @_ZN11ImPlotRangeC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %27, double noundef %100, double noundef -1.000000e+00)
  %101 = load i32, ptr %20, align 4, !tbaa !19
  %102 = load i32, ptr %21, align 4, !tbaa !19
  %103 = load i32, ptr %25, align 4, !tbaa !19
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN6ImPlot19AddTicksLogarithmicERK11ImPlotRangeiiiR12ImPlotTickerPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(16) %27, i32 noundef %101, i32 noundef %102, i32 noundef %103, ptr noundef nonnull align 8 dereferenceable(52) %104, ptr noundef %105, ptr noundef %106)
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %115

107:                                              ; preds = %46
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = load float, ptr %9, align 4, !tbaa !9
  %111 = load i8, ptr %10, align 1, !tbaa !11, !range !17, !noundef !18
  %112 = trunc i8 %111 to i1
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN6ImPlot13Locator_Log10ER12ImPlotTickerRK11ImPlotRangefbPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(52) %108, ptr noundef nonnull align 8 dereferenceable(16) %109, float noundef %110, i1 noundef zeroext %112, ptr noundef %113, ptr noundef %114)
  br label %115

115:                                              ; preds = %107, %55
  br label %116

116:                                              ; preds = %115, %38
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11ImPlotRangeC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImAbsf(float noundef) #2

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

!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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS11ImPlotRange", !15, i64 0, !15, i64 8}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !7, i64 0}


; 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.ImPlotRange = type { double, double }

; 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 uwtable
declare dso_local void @_ZN6ImPlot15Locator_DefaultER12ImPlotTickerRK11ImPlotRangefbPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(52), ptr noundef nonnull align 8 dereferenceable(16), float noundef, i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZN12ImPlotTicker7AddTickEdbibPFidPciPvES1_(ptr noundef nonnull align 8 dereferenceable(52), double noundef, i1 noundef zeroext, i32 noundef, i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6ImPlot24CalcLogarithmicExponentsERK11ImPlotRangefbRiS3_S3_(ptr noundef nonnull align 8 dereferenceable(16), float noundef, i1 noundef zeroext, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6ImPlot15CalcSymLogPixelEdRK11ImPlotRangef(double noundef, ptr noundef nonnull align 8 dereferenceable(16), float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot14Locator_SymLogER12ImPlotTickerRK11ImPlotRangefbPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(52) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, float noundef %2, i1 noundef zeroext %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.ImPlotRange, align 8
  %14 = alloca %struct.ImPlotRange, align 8
  %15 = alloca %struct.ImPlotRange, align 8
  %16 = alloca %struct.ImPlotRange, align 8
  %17 = load double, ptr %1, align 8, !tbaa !5
  %18 = fcmp ult double %17, -1.000000e+00
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load double, ptr %19, align 8
  %21 = fcmp ugt double %20, 1.000000e+00
  %or.cond = select i1 %18, i1 true, i1 %21
  br i1 %or.cond, label %23, label %22

22:                                               ; preds = %6
  tail call void @_ZN6ImPlot15Locator_DefaultER12ImPlotTickerRK11ImPlotRangefbPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(52) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, float noundef %2, i1 noundef zeroext %3, ptr noundef %4, ptr noundef %5)
  br label %47

23:                                               ; preds = %6
  %24 = fmul double %17, %20
  %25 = fcmp olt double %24, 0.000000e+00
  br i1 %25, label %26, label %46

26:                                               ; preds = %23
  %27 = tail call noundef float @_ZN6ImPlot15CalcSymLogPixelEdRK11ImPlotRangef(double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(16) %1, float noundef %2)
  %28 = tail call noundef float @_ZN6ImPlot15CalcSymLogPixelEdRK11ImPlotRangef(double noundef -1.000000e+00, ptr noundef nonnull align 8 dereferenceable(16) %1, float noundef %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  %29 = load double, ptr %19, align 8, !tbaa !10
  call void @_ZN11ImPlotRangeC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef 1.000000e+00, double noundef %29)
  %30 = fsub float %2, %27
  %31 = call noundef float @_ZL5ImAbsf(float noundef %30)
  %32 = call noundef zeroext i1 @_ZN6ImPlot24CalcLogarithmicExponentsERK11ImPlotRangefbRiS3_S3_(ptr noundef nonnull align 8 dereferenceable(16) %13, float noundef %31, i1 noundef zeroext %3, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  %33 = load double, ptr %1, align 8, !tbaa !5
  call void @_ZN11ImPlotRangeC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %14, double noundef %33, double noundef -1.000000e+00)
  %34 = call noundef float @_ZL5ImAbsf(float noundef %28)
  %35 = call noundef zeroext i1 @_ZN6ImPlot24CalcLogarithmicExponentsERK11ImPlotRangefbRiS3_S3_(ptr noundef nonnull align 8 dereferenceable(16) %14, float noundef %34, i1 noundef zeroext %3, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  %36 = load i32, ptr %12, align 4, !tbaa !11
  %37 = load i32, ptr %9, align 4, !tbaa !11
  %38 = call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %36, i32 noundef %37)
  %39 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN12ImPlotTicker7AddTickEdbibPFidPciPvES1_(ptr noundef nonnull align 8 dereferenceable(52) %0, double noundef 0.000000e+00, i1 noundef zeroext true, i32 noundef 0, i1 noundef zeroext true, ptr noundef %4, ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  %40 = load double, ptr %19, align 8, !tbaa !10
  call void @_ZN11ImPlotRangeC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef 1.000000e+00, double noundef %40)
  %41 = load i32, ptr %7, align 4, !tbaa !11
  %42 = load i32, ptr %8, align 4, !tbaa !11
  call void @_ZN6ImPlot19AddTicksLogarithmicERK11ImPlotRangeiiiR12ImPlotTickerPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %41, i32 noundef %42, i32 noundef %38, ptr noundef nonnull align 8 dereferenceable(52) %0, ptr noundef %4, ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  %43 = load double, ptr %1, align 8, !tbaa !5
  call void @_ZN11ImPlotRangeC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef %43, double noundef -1.000000e+00)
  %44 = load i32, ptr %10, align 4, !tbaa !11
  %45 = load i32, ptr %11, align 4, !tbaa !11
  call void @_ZN6ImPlot19AddTicksLogarithmicERK11ImPlotRangeiiiR12ImPlotTickerPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(16) %16, i32 noundef %44, i32 noundef %45, i32 noundef %38, ptr noundef nonnull align 8 dereferenceable(52) %0, ptr noundef %4, ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %47

46:                                               ; preds = %23
  tail call void @_ZN6ImPlot13Locator_Log10ER12ImPlotTickerRK11ImPlotRangefbPFidPciPvES6_(ptr noundef nonnull align 8 dereferenceable(52) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, float noundef %2, i1 noundef zeroext %3, ptr noundef %4, ptr noundef %5)
  br label %47

47:                                               ; preds = %26, %46, %22
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11ImPlotRangeC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImAbsf(float noundef) local_unnamed_addr #2

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

!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, !7, i64 0}
!6 = !{!"_ZTS11ImPlotRange", !7, i64 0, !7, i64 8}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}


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