; 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.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { ptr }
%"class.depth_clustering::ProjectionParams" = type { %"class.depth_clustering::SpanParams", %"class.depth_clustering::SpanParams", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.5" }
%"class.depth_clustering::SpanParams" = type { %"class.depth_clustering::Radians", %"class.depth_clustering::Radians", %"class.depth_clustering::Radians", %"class.depth_clustering::Radians", i32 }
%"class.depth_clustering::Radians" = type <{ float, i8, [3 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<depth_clustering::Radians, std::allocator<depth_clustering::Radians>>::_Vector_impl" }
%"struct.std::_Vector_base<depth_clustering::Radians, std::allocator<depth_clustering::Radians>>::_Vector_impl" = type { %"struct.std::_Vector_base<depth_clustering::Radians, std::allocator<depth_clustering::Radians>>::_Vector_impl_data" }
%"struct.std::_Vector_base<depth_clustering::Radians, std::allocator<depth_clustering::Radians>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16depth_clustering16ProjectionParams7SetSpanERKNS_10SpanParamsERKNS1_9DirectionE(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16depth_clustering10SpanParamsC2ERKNS_7RadiansES3_i(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(5), ptr noundef nonnull align 4 dereferenceable(5), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16depth_clustering16ProjectionParams10FillCosSinEv(ptr noundef nonnull align 8 dereferenceable(216)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN16depth_clustering16ProjectionParams5validEv(ptr noundef nonnull align 8 dereferenceable(216)) #0 align 2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_Zli4_dege(x86_fp80 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16depth_clustering16ProjectionParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(216)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_Zli4_degy(i64 noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10unique_ptrIN16depth_clustering16ProjectionParamsESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8), ptr) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16depth_clustering9mem_utils11make_uniqueINS_16ProjectionParamsEJRS2_EEESt10unique_ptrIT_St14default_deleteIS5_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(216)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16depth_clustering16ProjectionParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(216)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16depth_clustering16ProjectionParams12HDL_64_EQUALEv(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8 %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.depth_clustering::ProjectionParams", align 8
  %4 = alloca %"class.depth_clustering::SpanParams", align 4
  %5 = alloca %"class.depth_clustering::Radians", align 4
  %6 = alloca %"class.depth_clustering::Radians", align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.depth_clustering::Radians", align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.depth_clustering::SpanParams", align 4
  %12 = alloca %"class.depth_clustering::Radians", align 4
  %13 = alloca %"class.depth_clustering::Radians", align 4
  %14 = alloca %"class.depth_clustering::Radians", align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 216, ptr %3) #4
  call void @_ZN16depth_clustering16ProjectionParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(216) %3)
  call void @llvm.lifetime.start.p0(i64 36, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %17 = invoke i64 @_Zli4_degy(i64 noundef 180)
          to label %18 unwind label %45

18:                                               ; preds = %1
  %19 = trunc i64 %17 to i40
  store i40 %19, ptr %6, align 4
  %20 = invoke i64 @_ZN16depth_clustering7RadiansngEv(ptr noundef nonnull align 4 dereferenceable(5) %6)
          to label %21 unwind label %45

21:                                               ; preds = %18
  %22 = trunc i64 %20 to i40
  store i40 %22, ptr %5, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %23 = invoke i64 @_Zli4_degy(i64 noundef 180)
          to label %24 unwind label %49

24:                                               ; preds = %21
  %25 = trunc i64 %23 to i40
  store i40 %25, ptr %9, align 4
  invoke void @_ZN16depth_clustering10SpanParamsC2ERKNS_7RadiansES3_i(ptr noundef nonnull align 4 dereferenceable(36) %4, ptr noundef nonnull align 4 dereferenceable(5) %5, ptr noundef nonnull align 4 dereferenceable(5) %9, i32 noundef 870)
          to label %26 unwind label %49

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  invoke void @_ZN16depth_clustering16ProjectionParams7SetSpanERKNS_10SpanParamsERKNS1_9DirectionE(ptr noundef nonnull align 8 dereferenceable(216) %3, ptr noundef nonnull align 4 dereferenceable(36) %4, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %27 unwind label %53

27:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 36, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %28 = invoke i64 @_Zli4_dege(x86_fp80 noundef 0xK40008000000000000000)
          to label %29 unwind label %59

29:                                               ; preds = %27
  %30 = trunc i64 %28 to i40
  store i40 %30, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %31 = invoke i64 @_Zli4_dege(x86_fp80 noundef 0xK4003C000000000000000)
          to label %32 unwind label %63

32:                                               ; preds = %29
  %33 = trunc i64 %31 to i40
  store i40 %33, ptr %14, align 4
  %34 = invoke i64 @_ZN16depth_clustering7RadiansngEv(ptr noundef nonnull align 4 dereferenceable(5) %14)
          to label %35 unwind label %63

35:                                               ; preds = %32
  %36 = trunc i64 %34 to i40
  store i40 %36, ptr %13, align 4
  invoke void @_ZN16depth_clustering10SpanParamsC2ERKNS_7RadiansES3_i(ptr noundef nonnull align 4 dereferenceable(36) %11, ptr noundef nonnull align 4 dereferenceable(5) %12, ptr noundef nonnull align 4 dereferenceable(5) %13, i32 noundef 64)
          to label %37 unwind label %63

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 1, ptr %15, align 4, !tbaa !5
  invoke void @_ZN16depth_clustering16ProjectionParams7SetSpanERKNS_10SpanParamsERKNS1_9DirectionE(ptr noundef nonnull align 8 dereferenceable(216) %3, ptr noundef nonnull align 4 dereferenceable(36) %11, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %38 unwind label %67

38:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  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 36, ptr %11) #4
  invoke void @_ZN16depth_clustering16ProjectionParams10FillCosSinEv(ptr noundef nonnull align 8 dereferenceable(216) %3)
          to label %39 unwind label %73

39:                                               ; preds = %38
  %40 = invoke noundef zeroext i1 @_ZN16depth_clustering16ProjectionParams5validEv(ptr noundef nonnull align 8 dereferenceable(216) %3)
          to label %41 unwind label %73

41:                                               ; preds = %39
  br i1 %40, label %77, label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr @stderr, align 8, !tbaa !9
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.4) #4
  call void @_ZNSt10unique_ptrIN16depth_clustering16ProjectionParamsESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #4
  store i32 1, ptr %16, align 4
  br label %79

45:                                               ; preds = %18, %1
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %7, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %8, align 4
  br label %58

49:                                               ; preds = %24, %21
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %7, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %8, align 4
  br label %57

53:                                               ; preds = %26
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %7, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %57

57:                                               ; preds = %53, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %58

58:                                               ; preds = %57, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %4) #4
  br label %80

59:                                               ; preds = %27
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %7, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %8, align 4
  br label %72

63:                                               ; preds = %35, %32, %29
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %7, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %8, align 4
  br label %71

67:                                               ; preds = %37
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %7, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %71

71:                                               ; preds = %67, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %72

72:                                               ; preds = %71, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %11) #4
  br label %80

73:                                               ; preds = %77, %39, %38
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %7, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %8, align 4
  br label %80

77:                                               ; preds = %41
  invoke void @_ZN16depth_clustering9mem_utils11make_uniqueINS_16ProjectionParamsEJRS2_EEESt10unique_ptrIT_St14default_deleteIS5_EEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(216) %3)
          to label %78 unwind label %73

78:                                               ; preds = %77
  store i32 1, ptr %16, align 4
  br label %79

79:                                               ; preds = %78, %42
  call void @_ZN16depth_clustering16ProjectionParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(216) %3) #4
  call void @llvm.lifetime.end.p0(i64 216, ptr %3) #4
  ret void

80:                                               ; preds = %73, %72, %58
  call void @_ZN16depth_clustering16ProjectionParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(216) %3) #4
  call void @llvm.lifetime.end.p0(i64 216, ptr %3) #4
  br label %81

81:                                               ; preds = %80
  %82 = load ptr, ptr %7, align 8
  %83 = load i32, ptr %8, align 4
  %84 = insertvalue { ptr, i32 } poison, ptr %82, 0
  %85 = insertvalue { ptr, i32 } %84, i32 %83, 1
  resume { ptr, i32 } %85
}

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 = { 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 = !{!"_ZTSN16depth_clustering10SpanParams9DirectionE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !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.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { ptr }
%"class.depth_clustering::ProjectionParams" = type { %"class.depth_clustering::SpanParams", %"class.depth_clustering::SpanParams", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.5", %"class.std::vector.5" }
%"class.depth_clustering::SpanParams" = type { %"class.depth_clustering::Radians", %"class.depth_clustering::Radians", %"class.depth_clustering::Radians", %"class.depth_clustering::Radians", i32 }
%"class.depth_clustering::Radians" = type <{ float, i8, [3 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<depth_clustering::Radians, std::allocator<depth_clustering::Radians>>::_Vector_impl" }
%"struct.std::_Vector_base<depth_clustering::Radians, std::allocator<depth_clustering::Radians>>::_Vector_impl" = type { %"struct.std::_Vector_base<depth_clustering::Radians, std::allocator<depth_clustering::Radians>>::_Vector_impl_data" }
%"struct.std::_Vector_base<depth_clustering::Radians, std::allocator<depth_clustering::Radians>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16depth_clustering16ProjectionParams7SetSpanERKNS_10SpanParamsERKNS1_9DirectionE(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16depth_clustering10SpanParamsC2ERKNS_7RadiansES3_i(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(5), ptr noundef nonnull align 4 dereferenceable(5), i32 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16depth_clustering16ProjectionParams10FillCosSinEv(ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN16depth_clustering16ProjectionParams5validEv(ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #0 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_Zli4_dege(x86_fp80 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16depth_clustering16ProjectionParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(216)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_Zli4_degy(i64 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10unique_ptrIN16depth_clustering16ProjectionParamsESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8), ptr) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16depth_clustering9mem_utils11make_uniqueINS_16ProjectionParamsEJRS2_EEESt10unique_ptrIT_St14default_deleteIS5_EEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(216)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN16depth_clustering16ProjectionParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(216)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16depth_clustering16ProjectionParams12HDL_64_EQUALEv(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8 %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.depth_clustering::ProjectionParams", align 8
  %3 = alloca %"class.depth_clustering::SpanParams", align 4
  %4 = alloca %"class.depth_clustering::Radians", align 8
  %5 = alloca %"class.depth_clustering::Radians", align 8
  %6 = alloca %"class.depth_clustering::Radians", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.depth_clustering::SpanParams", align 4
  %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 i32, align 4
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %2) #4
  call void @_ZN16depth_clustering16ProjectionParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(216) %2)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %13 = invoke i64 @_Zli4_degy(i64 noundef 180)
          to label %14 unwind label %41

14:                                               ; preds = %1
  %15 = trunc i64 %13 to i40
  store i40 %15, ptr %5, align 8
  %16 = invoke i64 @_ZN16depth_clustering7RadiansngEv(ptr noundef nonnull align 4 dereferenceable(5) %5)
          to label %17 unwind label %41

17:                                               ; preds = %14
  %18 = trunc i64 %16 to i40
  store i40 %18, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %19 = invoke i64 @_Zli4_degy(i64 noundef 180)
          to label %20 unwind label %43

20:                                               ; preds = %17
  %21 = trunc i64 %19 to i40
  store i40 %21, ptr %6, align 8
  invoke void @_ZN16depth_clustering10SpanParamsC2ERKNS_7RadiansES3_i(ptr noundef nonnull align 4 dereferenceable(36) %3, ptr noundef nonnull align 4 dereferenceable(5) %4, ptr noundef nonnull align 4 dereferenceable(5) %6, i32 noundef 870)
          to label %22 unwind label %43

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  invoke void @_ZN16depth_clustering16ProjectionParams7SetSpanERKNS_10SpanParamsERKNS1_9DirectionE(ptr noundef nonnull align 8 dereferenceable(216) %2, ptr noundef nonnull align 4 dereferenceable(36) %3, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %23 unwind label %45

23:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %24 = invoke i64 @_Zli4_dege(x86_fp80 noundef 0xK40008000000000000000)
          to label %25 unwind label %49

25:                                               ; preds = %23
  %26 = trunc i64 %24 to i40
  store i40 %26, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %27 = invoke i64 @_Zli4_dege(x86_fp80 noundef 0xK4003C000000000000000)
          to label %28 unwind label %51

28:                                               ; preds = %25
  %29 = trunc i64 %27 to i40
  store i40 %29, ptr %11, align 8
  %30 = invoke i64 @_ZN16depth_clustering7RadiansngEv(ptr noundef nonnull align 4 dereferenceable(5) %11)
          to label %31 unwind label %51

31:                                               ; preds = %28
  %32 = trunc i64 %30 to i40
  store i40 %32, ptr %10, align 8
  invoke void @_ZN16depth_clustering10SpanParamsC2ERKNS_7RadiansES3_i(ptr noundef nonnull align 4 dereferenceable(36) %8, ptr noundef nonnull align 4 dereferenceable(5) %9, ptr noundef nonnull align 4 dereferenceable(5) %10, i32 noundef 64)
          to label %33 unwind label %51

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  store i32 1, ptr %12, align 4, !tbaa !5
  invoke void @_ZN16depth_clustering16ProjectionParams7SetSpanERKNS_10SpanParamsERKNS1_9DirectionE(ptr noundef nonnull align 8 dereferenceable(216) %2, ptr noundef nonnull align 4 dereferenceable(36) %8, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %34 unwind label %53

34:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %8) #4
  invoke void @_ZN16depth_clustering16ProjectionParams10FillCosSinEv(ptr noundef nonnull align 8 dereferenceable(216) %2)
          to label %35 unwind label %57

35:                                               ; preds = %34
  %36 = invoke noundef zeroext i1 @_ZN16depth_clustering16ProjectionParams5validEv(ptr noundef nonnull align 8 dereferenceable(216) %2)
          to label %37 unwind label %57

37:                                               ; preds = %35
  br i1 %36, label %59, label %38

38:                                               ; preds = %37
  %39 = load ptr, ptr @stderr, align 8, !tbaa !9
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.4) #5
  call void @_ZNSt10unique_ptrIN16depth_clustering16ProjectionParamsESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #4
  br label %60

41:                                               ; preds = %14, %1
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %48

43:                                               ; preds = %20, %17
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %47

45:                                               ; preds = %22
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  br label %47

47:                                               ; preds = %45, %43
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br label %48

48:                                               ; preds = %47, %41
  %.pn.pn = phi { ptr, i32 } [ %.pn, %47 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #4
  br label %61

49:                                               ; preds = %23
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %56

51:                                               ; preds = %31, %28, %25
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %55

53:                                               ; preds = %33
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  br label %55

55:                                               ; preds = %53, %51
  %.pn8 = phi { ptr, i32 } [ %54, %53 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br label %56

56:                                               ; preds = %55, %49
  %.pn8.pn = phi { ptr, i32 } [ %.pn8, %55 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %8) #4
  br label %61

57:                                               ; preds = %59, %35, %34
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %61

59:                                               ; preds = %37
  invoke void @_ZN16depth_clustering9mem_utils11make_uniqueINS_16ProjectionParamsEJRS2_EEESt10unique_ptrIT_St14default_deleteIS5_EEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(216) %2)
          to label %60 unwind label %57

60:                                               ; preds = %59, %38
  call void @_ZN16depth_clustering16ProjectionParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(216) %2) #4
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %2) #4
  ret void

61:                                               ; preds = %57, %56, %48
  %.pn11 = phi { ptr, i32 } [ %58, %57 ], [ %.pn8.pn, %56 ], [ %.pn.pn, %48 ]
  call void @_ZN16depth_clustering16ProjectionParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(216) %2) #4
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn11
}

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree 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 = { 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 = { nounwind }
attributes #5 = { cold 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 = !{!"_ZTSN16depth_clustering10SpanParams9DirectionE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}


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