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

; 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 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<depth_clustering::SpanParams, std::allocator<depth_clustering::SpanParams>>::_Vector_impl" }
%"struct.std::_Vector_base<depth_clustering::SpanParams, std::allocator<depth_clustering::SpanParams>>::_Vector_impl" = type { %"struct.std::_Vector_base<depth_clustering::SpanParams, std::allocator<depth_clustering::SpanParams>>::_Vector_impl_data" }
%"struct.std::_Vector_base<depth_clustering::SpanParams, std::allocator<depth_clustering::SpanParams>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }

@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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN16depth_clustering10SpanParamsESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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_clustering16ProjectionParams7SetSpanERKSt6vectorINS_10SpanParamsESaIS2_EERKNS2_9DirectionE(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

; 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, ...) #4

; 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_clustering16ProjectionParams6HDL_64Ev(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 %"class.depth_clustering::SpanParams", 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
  %20 = alloca %"class.std::vector", align 8
  %21 = alloca %"class.std::initializer_list", align 8
  %22 = alloca [2 x %"class.depth_clustering::SpanParams"], align 4
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 216, ptr %3) #5
  call void @_ZN16depth_clustering16ProjectionParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(216) %3)
  call void @llvm.lifetime.start.p0(i64 36, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %26 = invoke i64 @_Zli4_degy(i64 noundef 180)
          to label %27 unwind label %75

27:                                               ; preds = %1
  %28 = trunc i64 %26 to i40
  store i40 %28, ptr %6, align 4
  %29 = invoke i64 @_ZN16depth_clustering7RadiansngEv(ptr noundef nonnull align 4 dereferenceable(5) %6)
          to label %30 unwind label %75

30:                                               ; preds = %27
  %31 = trunc i64 %29 to i40
  store i40 %31, ptr %5, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %32 = invoke i64 @_Zli4_degy(i64 noundef 180)
          to label %33 unwind label %79

33:                                               ; preds = %30
  %34 = trunc i64 %32 to i40
  store i40 %34, 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 %35 unwind label %79

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  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 %36 unwind label %83

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

38:                                               ; preds = %36
  %39 = trunc i64 %37 to i40
  store i40 %39, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %40 = invoke i64 @_Zli4_dege(x86_fp80 noundef 0xK40028800000000000000)
          to label %41 unwind label %93

41:                                               ; preds = %38
  %42 = trunc i64 %40 to i40
  store i40 %42, ptr %14, align 4
  %43 = invoke i64 @_ZN16depth_clustering7RadiansngEv(ptr noundef nonnull align 4 dereferenceable(5) %14)
          to label %44 unwind label %93

44:                                               ; preds = %41
  %45 = trunc i64 %43 to i40
  store i40 %45, 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 32)
          to label %46 unwind label %93

46:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  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.start.p0(i64 36, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %47 = invoke i64 @_Zli4_dege(x86_fp80 noundef 0xK40028DEB851EB851EB85)
          to label %48 unwind label %98

48:                                               ; preds = %46
  %49 = trunc i64 %47 to i40
  store i40 %49, ptr %17, align 4
  %50 = invoke i64 @_ZN16depth_clustering7RadiansngEv(ptr noundef nonnull align 4 dereferenceable(5) %17)
          to label %51 unwind label %98

51:                                               ; preds = %48
  %52 = trunc i64 %50 to i40
  store i40 %52, ptr %16, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %53 = invoke i64 @_Zli4_dege(x86_fp80 noundef 0xK4003C6F5C28F5C28F5C3)
          to label %54 unwind label %102

54:                                               ; preds = %51
  %55 = trunc i64 %53 to i40
  store i40 %55, ptr %19, align 4
  %56 = invoke i64 @_ZN16depth_clustering7RadiansngEv(ptr noundef nonnull align 4 dereferenceable(5) %19)
          to label %57 unwind label %102

57:                                               ; preds = %54
  %58 = trunc i64 %56 to i40
  store i40 %58, ptr %18, align 4
  invoke void @_ZN16depth_clustering10SpanParamsC2ERKNS_7RadiansES3_i(ptr noundef nonnull align 4 dereferenceable(36) %15, ptr noundef nonnull align 4 dereferenceable(5) %16, ptr noundef nonnull align 4 dereferenceable(5) %18, i32 noundef 32)
          to label %59 unwind label %102

59:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr %22) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %11, i64 36, i1 false), !tbaa.struct !9
  %60 = getelementptr inbounds %"class.depth_clustering::SpanParams", ptr %22, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 4 %15, i64 36, i1 false), !tbaa.struct !9
  %61 = getelementptr inbounds %"class.std::initializer_list", ptr %21, i32 0, i32 0
  store ptr %22, ptr %61, align 8, !tbaa !16
  %62 = getelementptr inbounds %"class.std::initializer_list", ptr %21, i32 0, i32 1
  store i64 2, ptr %62, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  call void @_ZNSaIN16depth_clustering10SpanParamsEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  %63 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8
  %65 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %66 = load i64, ptr %65, align 8
  invoke void @_ZNSt6vectorIN16depth_clustering10SpanParamsESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr %64, i64 %66, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %67 unwind label %107

67:                                               ; preds = %59
  call void @_ZNSt15__new_allocatorIN16depth_clustering10SpanParamsEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 1, ptr %24, align 4, !tbaa !5
  invoke void @_ZN16depth_clustering16ProjectionParams7SetSpanERKSt6vectorINS_10SpanParamsESaIS2_EERKNS2_9DirectionE(ptr noundef nonnull align 8 dereferenceable(216) %3, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %68 unwind label %111

68:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  invoke void @_ZN16depth_clustering16ProjectionParams10FillCosSinEv(ptr noundef nonnull align 8 dereferenceable(216) %3)
          to label %69 unwind label %115

69:                                               ; preds = %68
  %70 = invoke noundef zeroext i1 @_ZN16depth_clustering16ProjectionParams5validEv(ptr noundef nonnull align 8 dereferenceable(216) %3)
          to label %71 unwind label %115

71:                                               ; preds = %69
  br i1 %70, label %119, label %72

72:                                               ; preds = %71
  %73 = load ptr, ptr @stderr, align 8, !tbaa !21
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.4) #5
  call void @_ZNSt10unique_ptrIN16depth_clustering16ProjectionParamsESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #5
  store i32 1, ptr %25, align 4
  br label %121

75:                                               ; preds = %27, %1
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %7, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %8, align 4
  br label %88

79:                                               ; preds = %33, %30
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %7, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %8, align 4
  br label %87

83:                                               ; preds = %35
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %7, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %87

87:                                               ; preds = %83, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %88

88:                                               ; preds = %87, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr %4) #5
  br label %126

89:                                               ; preds = %36
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %7, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %8, align 4
  br label %97

93:                                               ; preds = %44, %41, %38
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %7, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %97

97:                                               ; preds = %93, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %125

98:                                               ; preds = %48, %46
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %7, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %8, align 4
  br label %106

102:                                              ; preds = %57, %54, %51
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %7, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %106

106:                                              ; preds = %102, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %124

107:                                              ; preds = %59
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %7, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIN16depth_clustering10SpanParamsEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %22) #5
  br label %123

111:                                              ; preds = %67
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %7, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %122

115:                                              ; preds = %119, %69, %68
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %7, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %8, align 4
  br label %122

119:                                              ; preds = %71
  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 %120 unwind label %115

120:                                              ; preds = %119
  store i32 1, ptr %25, align 4
  br label %121

121:                                              ; preds = %120, %72
  call void @_ZNSt6vectorIN16depth_clustering10SpanParamsESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr %11) #5
  call void @_ZN16depth_clustering16ProjectionParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(216) %3) #5
  call void @llvm.lifetime.end.p0(i64 216, ptr %3) #5
  ret void

122:                                              ; preds = %115, %111
  call void @_ZNSt6vectorIN16depth_clustering10SpanParamsESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  br label %123

123:                                              ; preds = %122, %107
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  br label %124

124:                                              ; preds = %123, %106
  call void @llvm.lifetime.end.p0(i64 36, ptr %15) #5
  br label %125

125:                                              ; preds = %124, %97
  call void @llvm.lifetime.end.p0(i64 36, ptr %11) #5
  br label %126

126:                                              ; preds = %125, %88
  call void @_ZN16depth_clustering16ProjectionParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(216) %3) #5
  call void @llvm.lifetime.end.p0(i64 216, ptr %3) #5
  br label %127

127:                                              ; preds = %126
  %128 = load ptr, ptr %7, align 8
  %129 = load i32, ptr %8, align 4
  %130 = insertvalue { ptr, i32 } poison, ptr %128, 0
  %131 = insertvalue { ptr, i32 } %130, i32 %129, 1
  resume { ptr, i32 } %131
}

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 "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 = !{!"_ZTSN16depth_clustering10SpanParams9DirectionE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !10, i64 4, i64 1, !12, i64 8, i64 4, !10, i64 12, i64 1, !12, i64 16, i64 4, !10, i64 20, i64 1, !12, i64 24, i64 4, !10, i64 28, i64 1, !12, i64 32, i64 4, !14}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSSt16initializer_listIN16depth_clustering10SpanParamsEE", !18, i64 0, !19, i64 8}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!17, !19, i64 8}
!21 = !{!18, !18, 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 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<depth_clustering::SpanParams, std::allocator<depth_clustering::SpanParams>>::_Vector_impl" }
%"struct.std::_Vector_base<depth_clustering::SpanParams, std::allocator<depth_clustering::SpanParams>>::_Vector_impl" = type { %"struct.std::_Vector_base<depth_clustering::SpanParams, std::allocator<depth_clustering::SpanParams>>::_Vector_impl_data" }
%"struct.std::_Vector_base<depth_clustering::SpanParams, std::allocator<depth_clustering::SpanParams>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN16depth_clustering10SpanParamsESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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_clustering16ProjectionParams7SetSpanERKSt6vectorINS_10SpanParamsESaIS2_EERKNS2_9DirectionE(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

; 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 #4

; 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_clustering16ProjectionParams6HDL_64Ev(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 %"class.depth_clustering::SpanParams", align 4
  %13 = alloca %"class.depth_clustering::Radians", align 8
  %14 = alloca %"class.depth_clustering::Radians", align 8
  %15 = alloca %"class.depth_clustering::Radians", align 8
  %16 = alloca %"class.depth_clustering::Radians", align 8
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca [2 x %"class.depth_clustering::SpanParams"], align 4
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %2) #5
  call void @_ZN16depth_clustering16ProjectionParamsC2Ev(ptr noundef nonnull align 8 dereferenceable(216) %2)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %21 = invoke i64 @_Zli4_degy(i64 noundef 180)
          to label %22 unwind label %64

22:                                               ; preds = %1
  %23 = trunc i64 %21 to i40
  store i40 %23, ptr %5, align 8
  %24 = invoke i64 @_ZN16depth_clustering7RadiansngEv(ptr noundef nonnull align 4 dereferenceable(5) %5)
          to label %25 unwind label %64

25:                                               ; preds = %22
  %26 = trunc i64 %24 to i40
  store i40 %26, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %27 = invoke i64 @_Zli4_degy(i64 noundef 180)
          to label %28 unwind label %66

28:                                               ; preds = %25
  %29 = trunc i64 %27 to i40
  store i40 %29, 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 %30 unwind label %66

30:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  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 %31 unwind label %68

31:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %32 = invoke i64 @_Zli4_dege(x86_fp80 noundef 0xK40008000000000000000)
          to label %33 unwind label %72

33:                                               ; preds = %31
  %34 = trunc i64 %32 to i40
  store i40 %34, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %35 = invoke i64 @_Zli4_dege(x86_fp80 noundef 0xK40028800000000000000)
          to label %36 unwind label %74

36:                                               ; preds = %33
  %37 = trunc i64 %35 to i40
  store i40 %37, ptr %11, align 8
  %38 = invoke i64 @_ZN16depth_clustering7RadiansngEv(ptr noundef nonnull align 4 dereferenceable(5) %11)
          to label %39 unwind label %74

39:                                               ; preds = %36
  %40 = trunc i64 %38 to i40
  store i40 %40, 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 32)
          to label %41 unwind label %74

41:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %42 = invoke i64 @_Zli4_dege(x86_fp80 noundef 0xK40028DEB851EB851EB85)
          to label %43 unwind label %77

43:                                               ; preds = %41
  %44 = trunc i64 %42 to i40
  store i40 %44, ptr %14, align 8
  %45 = invoke i64 @_ZN16depth_clustering7RadiansngEv(ptr noundef nonnull align 4 dereferenceable(5) %14)
          to label %46 unwind label %77

46:                                               ; preds = %43
  %47 = trunc i64 %45 to i40
  store i40 %47, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %48 = invoke i64 @_Zli4_dege(x86_fp80 noundef 0xK4003C6F5C28F5C28F5C3)
          to label %49 unwind label %79

49:                                               ; preds = %46
  %50 = trunc i64 %48 to i40
  store i40 %50, ptr %16, align 8
  %51 = invoke i64 @_ZN16depth_clustering7RadiansngEv(ptr noundef nonnull align 4 dereferenceable(5) %16)
          to label %52 unwind label %79

52:                                               ; preds = %49
  %53 = trunc i64 %51 to i40
  store i40 %53, ptr %15, align 8
  invoke void @_ZN16depth_clustering10SpanParamsC2ERKNS_7RadiansES3_i(ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(5) %13, ptr noundef nonnull align 4 dereferenceable(5) %15, i32 noundef 32)
          to label %54 unwind label %79

54:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %18) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(36) %18, ptr noundef nonnull align 4 dereferenceable(36) %8, i64 36, i1 false), !tbaa.struct !9
  %55 = getelementptr inbounds i8, ptr %18, i64 36
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(36) %55, ptr noundef nonnull align 4 dereferenceable(36) %12, i64 36, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #5
  call void @_ZNSaIN16depth_clustering10SpanParamsEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  invoke void @_ZNSt6vectorIN16depth_clustering10SpanParamsESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr nonnull %18, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %56 unwind label %82

56:                                               ; preds = %54
  call void @_ZNSt15__new_allocatorIN16depth_clustering10SpanParamsEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #5
  store i32 1, ptr %20, align 4, !tbaa !5
  invoke void @_ZN16depth_clustering16ProjectionParams7SetSpanERKSt6vectorINS_10SpanParamsESaIS2_EERKNS2_9DirectionE(ptr noundef nonnull align 8 dereferenceable(216) %2, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %57 unwind label %84

57:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  invoke void @_ZN16depth_clustering16ProjectionParams10FillCosSinEv(ptr noundef nonnull align 8 dereferenceable(216) %2)
          to label %58 unwind label %86

58:                                               ; preds = %57
  %59 = invoke noundef zeroext i1 @_ZN16depth_clustering16ProjectionParams5validEv(ptr noundef nonnull align 8 dereferenceable(216) %2)
          to label %60 unwind label %86

60:                                               ; preds = %58
  br i1 %59, label %88, label %61

61:                                               ; preds = %60
  %62 = load ptr, ptr @stderr, align 8, !tbaa !16
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.4) #6
  call void @_ZNSt10unique_ptrIN16depth_clustering16ProjectionParamsESt14default_deleteIS1_EEC2IS3_vEEDn(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr null) #5
  br label %89

64:                                               ; preds = %22, %1
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %71

66:                                               ; preds = %28, %25
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %70

68:                                               ; preds = %30
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %70

70:                                               ; preds = %68, %66
  %.pn = phi { ptr, i32 } [ %69, %68 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %71

71:                                               ; preds = %70, %64
  %.pn.pn = phi { ptr, i32 } [ %.pn, %70 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %3) #5
  br label %94

72:                                               ; preds = %31
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %39, %36, %33
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %76

76:                                               ; preds = %74, %72
  %.pn12 = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %93

77:                                               ; preds = %43, %41
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %81

79:                                               ; preds = %52, %49, %46
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  br label %81

81:                                               ; preds = %79, %77
  %.pn14 = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  br label %92

82:                                               ; preds = %54
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN16depth_clustering10SpanParamsEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %18) #5
  br label %91

84:                                               ; preds = %56
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #5
  br label %90

86:                                               ; preds = %88, %58, %57
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %90

88:                                               ; preds = %60
  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 %89 unwind label %86

89:                                               ; preds = %88, %61
  call void @_ZNSt6vectorIN16depth_clustering10SpanParamsESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %8) #5
  call void @_ZN16depth_clustering16ProjectionParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(216) %2) #5
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %2) #5
  ret void

90:                                               ; preds = %86, %84
  %.pn16 = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @_ZNSt6vectorIN16depth_clustering10SpanParamsESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  br label %91

91:                                               ; preds = %90, %82
  %.pn16.pn = phi { ptr, i32 } [ %.pn16, %90 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #5
  br label %92

92:                                               ; preds = %91, %81
  %.pn16.pn.pn = phi { ptr, i32 } [ %.pn16.pn, %91 ], [ %.pn14, %81 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %12) #5
  br label %93

93:                                               ; preds = %92, %76
  %.pn16.pn.pn.pn = phi { ptr, i32 } [ %.pn16.pn.pn, %92 ], [ %.pn12, %76 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %8) #5
  br label %94

94:                                               ; preds = %93, %71
  %.pn16.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn16.pn.pn.pn, %93 ], [ %.pn.pn, %71 ]
  call void @_ZN16depth_clustering16ProjectionParamsD2Ev(ptr noundef nonnull align 8 dereferenceable(216) %2) #5
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn16.pn.pn.pn.pn
}

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{i64 0, i64 4, !10, i64 4, i64 1, !12, i64 8, i64 4, !10, i64 12, i64 1, !12, i64 16, i64 4, !10, i64 20, i64 1, !12, i64 24, i64 4, !10, i64 28, i64 1, !12, i64 32, i64 4, !14}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}


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