; LLVM IR from PRBonn/depth_clustering :: src/projections (projection_params)

; 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"

%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator.10" }
%"class.depth_clustering::Radians" = type <{ float, i8, [3 x i8] }>

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN16depth_clustering16ProjectionParams11FindClosestERKSt6vectorINS_7RadiansESaIS2_EERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(5) %1) #2 align 2 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %11 = alloca %"class.std::reverse_iterator", align 8
  %12 = alloca %"class.std::reverse_iterator", align 8
  %13 = alloca %"class.std::reverse_iterator", align 8
  %14 = alloca %"class.std::reverse_iterator", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.depth_clustering::Radians", align 4
  %17 = alloca %"class.depth_clustering::Radians", align 4
  %18 = alloca %"class.depth_clustering::Radians", align 4
  %19 = alloca %"class.depth_clustering::Radians", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 0, ptr %6, align 8, !tbaa !9
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  %24 = call noundef zeroext i1 @_ZNK16depth_clustering7RadiansltERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %21, ptr noundef nonnull align 4 dereferenceable(5) %23)
  br i1 %24, label %25, label %43

25:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  %28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %8, i32 0, i32 0
  store ptr %27, ptr %28, align 8
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = call ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  %31 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %9, i32 0, i32 0
  store ptr %30, ptr %31, align 8
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %8, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8
  %35 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %9, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8
  %37 = call ptr @_ZSt11upper_boundIN9__gnu_cxx17__normal_iteratorIPKN16depth_clustering7RadiansESt6vectorIS3_SaIS3_EEEES3_ET_SA_SA_RKT0_(ptr %34, ptr %36, ptr noundef nonnull align 4 dereferenceable(5) %32)
  %38 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %7, i32 0, i32 0
  store ptr %37, ptr %38, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = call ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #5
  %41 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %10, i32 0, i32 0
  store ptr %40, ptr %41, align 8
  %42 = call noundef i64 @_ZN9__gnu_cxxmiIPKN16depth_clustering7RadiansESt6vectorIS2_SaIS2_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  store i64 %42, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %49

43:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4rendEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %44) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %45) #5
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4rendEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %46) #5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZSt11upper_boundISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKN16depth_clustering7RadiansESt6vectorIS4_SaIS4_EEEEES4_ET_SC_SC_RKT0_(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %12, ptr noundef %13, ptr noundef %14, ptr noundef nonnull align 4 dereferenceable(5) %47)
  %48 = call noundef i64 @_ZStmiIN9__gnu_cxx17__normal_iteratorIPKN16depth_clustering7RadiansESt6vectorIS3_SaIS3_EEEES9_EDTmicldtfp0_4baseEcldtfp_4baseEERKSt16reverse_iteratorIT_ERKSB_IT0_E(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  store i64 %48, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %49

49:                                               ; preds = %43, %25
  %50 = load i64, ptr %6, align 8, !tbaa !9
  %51 = icmp eq i64 %50, 0
  br i1 %51, label %52, label %54

52:                                               ; preds = %49
  %53 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %53, ptr %3, align 8
  store i32 1, ptr %15, align 4
  br label %88

54:                                               ; preds = %49
  %55 = load i64, ptr %6, align 8, !tbaa !9
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = call noundef i64 @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #5
  %58 = icmp eq i64 %55, %57
  br i1 %58, label %59, label %62

59:                                               ; preds = %54
  %60 = load i64, ptr %6, align 8, !tbaa !9
  %61 = sub i64 %60, 1
  store i64 %61, ptr %3, align 8
  store i32 1, ptr %15, align 4
  br label %88

62:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = load i64, ptr %6, align 8, !tbaa !9
  %65 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %64) #5
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = call i64 @_ZNK16depth_clustering7RadiansmiERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %65, ptr noundef nonnull align 4 dereferenceable(5) %66)
  %68 = trunc i64 %67 to i40
  store i40 %68, ptr %17, align 4
  %69 = call i64 @_ZN16depth_clustering7Radians3AbsERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %17)
  %70 = trunc i64 %69 to i40
  store i40 %70, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = load i64, ptr %6, align 8, !tbaa !9
  %74 = sub i64 %73, 1
  %75 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %74) #5
  %76 = call i64 @_ZNK16depth_clustering7RadiansmiERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %71, ptr noundef nonnull align 4 dereferenceable(5) %75)
  %77 = trunc i64 %76 to i40
  store i40 %77, ptr %19, align 4
  %78 = call i64 @_ZN16depth_clustering7Radians3AbsERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %19)
  %79 = trunc i64 %78 to i40
  store i40 %79, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %80 = call noundef zeroext i1 @_ZNK16depth_clustering7RadiansltERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %16, ptr noundef nonnull align 4 dereferenceable(5) %18)
  br i1 %80, label %81, label %83

81:                                               ; preds = %62
  %82 = load i64, ptr %6, align 8, !tbaa !9
  br label %86

83:                                               ; preds = %62
  %84 = load i64, ptr %6, align 8, !tbaa !9
  %85 = sub i64 %84, 1
  br label %86

86:                                               ; preds = %83, %81
  %87 = phi i64 [ %82, %81 ], [ %85, %83 ]
  store i64 %87, ptr %3, align 8
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %88

88:                                               ; preds = %86, %59, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %89 = load i64, ptr %3, align 8
  ret i64 %89
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK16depth_clustering7RadiansltERKS0_(ptr noundef nonnull align 4 dereferenceable(5), ptr noundef nonnull align 4 dereferenceable(5)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPKN16depth_clustering7RadiansESt6vectorIS2_SaIS2_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11upper_boundIN9__gnu_cxx17__normal_iteratorIPKN16depth_clustering7RadiansESt6vectorIS3_SaIS3_EEEES3_ET_SA_SA_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(5)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZStmiIN9__gnu_cxx17__normal_iteratorIPKN16depth_clustering7RadiansESt6vectorIS3_SaIS3_EEEES9_EDTmicldtfp0_4baseEcldtfp_4baseEERKSt16reverse_iteratorIT_ERKSB_IT0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4rendEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11upper_boundISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKN16depth_clustering7RadiansESt6vectorIS4_SaIS4_EEEEES4_ET_SC_SC_RKT0_(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(5)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN16depth_clustering7Radians3AbsERKS0_(ptr noundef nonnull align 4 dereferenceable(5)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK16depth_clustering7RadiansmiERKS0_(ptr noundef nonnull align 4 dereferenceable(5), ptr noundef nonnull align 4 dereferenceable(5)) #2 align 2

attributes #0 = { 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, !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 = !{!"long", !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"

%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator.10" }
%"class.depth_clustering::Radians" = type <{ float, i8, [3 x i8] }>

; 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 i64 @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN16depth_clustering16ProjectionParams11FindClosestERKSt6vectorINS_7RadiansESaIS2_EERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(5) %1) local_unnamed_addr #2 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %5 = alloca %"class.std::reverse_iterator", align 8
  %6 = alloca %"class.std::reverse_iterator", align 8
  %7 = alloca %"class.std::reverse_iterator", align 8
  %8 = alloca %"class.std::reverse_iterator", align 8
  %9 = alloca %"class.depth_clustering::Radians", align 8
  %10 = alloca %"class.depth_clustering::Radians", align 8
  %11 = alloca %"class.depth_clustering::Radians", align 8
  %12 = alloca %"class.depth_clustering::Radians", align 8
  %13 = tail call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %14 = tail call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %15 = tail call noundef zeroext i1 @_ZNK16depth_clustering7RadiansltERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %13, ptr noundef nonnull align 4 dereferenceable(5) %14)
  br i1 %15, label %16, label %22

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %17 = tail call ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %18 = tail call ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %19 = tail call ptr @_ZSt11upper_boundIN9__gnu_cxx17__normal_iteratorIPKN16depth_clustering7RadiansESt6vectorIS3_SaIS3_EEEES3_ET_SA_SA_RKT0_(ptr %17, ptr %18, ptr noundef nonnull align 4 dereferenceable(5) %1)
  store ptr %19, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %20 = tail call ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %20, ptr %4, align 8
  %21 = call noundef i64 @_ZN9__gnu_cxxmiIPKN16depth_clustering7RadiansESt6vectorIS2_SaIS2_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %24

22:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4rendEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4rendEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @_ZSt11upper_boundISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKN16depth_clustering7RadiansESt6vectorIS4_SaIS4_EEEEES4_ET_SC_SC_RKT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull align 4 dereferenceable(5) %1)
  %23 = call noundef i64 @_ZStmiIN9__gnu_cxx17__normal_iteratorIPKN16depth_clustering7RadiansESt6vectorIS3_SaIS3_EEEES9_EDTmicldtfp0_4baseEcldtfp_4baseEERKSt16reverse_iteratorIT_ERKSB_IT0_E(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %24

24:                                               ; preds = %22, %16
  %.024 = phi i64 [ %21, %16 ], [ %23, %22 ]
  %25 = icmp eq i64 %.024, 0
  br i1 %25, label %45, label %26

26:                                               ; preds = %24
  %27 = call noundef i64 @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %28 = icmp eq i64 %.024, %27
  br i1 %28, label %29, label %31

29:                                               ; preds = %26
  %30 = add i64 %.024, -1
  br label %45

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %32 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.024) #5
  %33 = call i64 @_ZNK16depth_clustering7RadiansmiERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %32, ptr noundef nonnull align 4 dereferenceable(5) %1)
  %34 = trunc i64 %33 to i40
  store i40 %34, ptr %10, align 8
  %35 = call i64 @_ZN16depth_clustering7Radians3AbsERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %10)
  %36 = trunc i64 %35 to i40
  store i40 %36, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %37 = add i64 %.024, -1
  %38 = call noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %37) #5
  %39 = call i64 @_ZNK16depth_clustering7RadiansmiERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %1, ptr noundef nonnull align 4 dereferenceable(5) %38)
  %40 = trunc i64 %39 to i40
  store i40 %40, ptr %12, align 8
  %41 = call i64 @_ZN16depth_clustering7Radians3AbsERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %12)
  %42 = trunc i64 %41 to i40
  store i40 %42, ptr %11, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  %43 = call noundef zeroext i1 @_ZNK16depth_clustering7RadiansltERKS0_(ptr noundef nonnull align 4 dereferenceable(5) %9, ptr noundef nonnull align 4 dereferenceable(5) %11)
  %44 = select i1 %43, i64 %.024, i64 %37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %45

45:                                               ; preds = %24, %31, %29
  %.0 = phi i64 [ %30, %29 ], [ %44, %31 ], [ 0, %24 ]
  ret i64 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK16depth_clustering7RadiansltERKS0_(ptr noundef nonnull align 4 dereferenceable(5), ptr noundef nonnull align 4 dereferenceable(5)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(5) ptr @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPKN16depth_clustering7RadiansESt6vectorIS2_SaIS2_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt11upper_boundIN9__gnu_cxx17__normal_iteratorIPKN16depth_clustering7RadiansESt6vectorIS3_SaIS3_EEEES3_ET_SA_SA_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(5)) local_unnamed_addr #4

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZStmiIN9__gnu_cxx17__normal_iteratorIPKN16depth_clustering7RadiansESt6vectorIS3_SaIS3_EEEES9_EDTmicldtfp0_4baseEcldtfp_4baseEERKSt16reverse_iteratorIT_ERKSB_IT0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE4rendEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11upper_boundISt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKN16depth_clustering7RadiansESt6vectorIS4_SaIS4_EEEEES4_ET_SC_SC_RKT0_(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(5)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorIN16depth_clustering7RadiansESaIS1_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN16depth_clustering7Radians3AbsERKS0_(ptr noundef nonnull align 4 dereferenceable(5)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK16depth_clustering7RadiansmiERKS0_(ptr noundef nonnull align 4 dereferenceable(5), ptr noundef nonnull align 4 dereferenceable(5)) local_unnamed_addr #2 align 2

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)"}


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