; LLVM IR from yangfengzzz/Arche-webgpu :: vox.geometry/custom_scalar_field2.ll (ZNK3vox18CustomScalarField27Builder10makeSharedEv)

; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.0" = type { %"class.std::_Function_base", ptr }
%class.anon = type { i8 }
%class.anon.3 = type { i8 }
%"class.vox::CustomScalarField2::Builder" = type { double, %"class.std::function", %"class.std::function.0", %"class.std::function" }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3vox18CustomScalarField27Builder10makeSharedEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(104) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::function", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::function.0", align 8
  %9 = alloca %"class.std::function", align 8
  %10 = alloca i1, align 1
  %11 = alloca %class.anon, align 1
  %12 = alloca %"class.std::function", align 8
  %13 = alloca %"class.std::function.0", align 8
  %14 = alloca i1, align 1
  %15 = alloca %class.anon.3, align 1
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8
  %17 = getelementptr inbounds %"class.vox::CustomScalarField2::Builder", ptr %16, i32 0, i32 3
  %18 = call noundef zeroext i1 @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #4
  br i1 %18, label %19, label %51

19:                                               ; preds = %2
  %20 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 112) #5
  store i1 true, ptr %10, align 1
  %21 = getelementptr inbounds %"class.vox::CustomScalarField2::Builder", ptr %16, i32 0, i32 1
  invoke void @_ZNSt8functionIFdRKN3vox5PointIdLm2EEEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %22 unwind label %29

22:                                               ; preds = %19
  %23 = getelementptr inbounds %"class.vox::CustomScalarField2::Builder", ptr %16, i32 0, i32 2
  invoke void @_ZNSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %24 unwind label %33

24:                                               ; preds = %22
  %25 = getelementptr inbounds %"class.vox::CustomScalarField2::Builder", ptr %16, i32 0, i32 3
  invoke void @_ZNSt8functionIFdRKN3vox5PointIdLm2EEEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %26 unwind label %37

26:                                               ; preds = %24
  invoke void @_ZN3vox18CustomScalarField2C1ESt8functionIFdRKNS_5PointIdLm2EEEEES1_IFNS_6VectorIdLm2EEES5_EES7_(ptr noundef nonnull align 8 dereferenceable(112) %20, ptr noundef %5, ptr noundef %8, ptr noundef %9)
          to label %27 unwind label %41

27:                                               ; preds = %26
  store i1 false, ptr %10, align 1
  invoke void @"_ZNSt10shared_ptrIN3vox18CustomScalarField2EEC2IS1_ZNKS1_7Builder10makeSharedEvE3$_0vEEPT_T0_"(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %20)
          to label %28 unwind label %41

28:                                               ; preds = %27
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  br label %78

29:                                               ; preds = %19
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %6, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %7, align 4
  br label %47

33:                                               ; preds = %22
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %6, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %7, align 4
  br label %46

37:                                               ; preds = %24
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %6, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %7, align 4
  br label %45

41:                                               ; preds = %27, %26
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %6, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %7, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #4
  br label %45

45:                                               ; preds = %41, %37
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  br label %46

46:                                               ; preds = %45, %33
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  br label %47

47:                                               ; preds = %46, %29
  %48 = load i1, ptr %10, align 1
  br i1 %48, label %49, label %50

49:                                               ; preds = %47
  call void @_ZdlPvm(ptr noundef %20, i64 noundef 112) #6
  br label %50

50:                                               ; preds = %49, %47
  br label %79

51:                                               ; preds = %2
  %52 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 112) #5
  store i1 true, ptr %14, align 1
  %53 = getelementptr inbounds %"class.vox::CustomScalarField2::Builder", ptr %16, i32 0, i32 1
  invoke void @_ZNSt8functionIFdRKN3vox5PointIdLm2EEEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %53)
          to label %54 unwind label %61

54:                                               ; preds = %51
  %55 = getelementptr inbounds %"class.vox::CustomScalarField2::Builder", ptr %16, i32 0, i32 2
  invoke void @_ZNSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %55)
          to label %56 unwind label %65

56:                                               ; preds = %54
  %57 = getelementptr inbounds %"class.vox::CustomScalarField2::Builder", ptr %16, i32 0, i32 0
  %58 = load double, ptr %57, align 8, !tbaa !9
  invoke void @_ZN3vox18CustomScalarField2C1ESt8functionIFdRKNS_5PointIdLm2EEEEES1_IFNS_6VectorIdLm2EEES5_EEd(ptr noundef nonnull align 8 dereferenceable(112) %52, ptr noundef %12, ptr noundef %13, double noundef %58)
          to label %59 unwind label %69

59:                                               ; preds = %56
  store i1 false, ptr %14, align 1
  invoke void @"_ZNSt10shared_ptrIN3vox18CustomScalarField2EEC2IS1_ZNKS1_7Builder10makeSharedEvE3$_1vEEPT_T0_"(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %52)
          to label %60 unwind label %69

60:                                               ; preds = %59
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  br label %78

61:                                               ; preds = %51
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %6, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %7, align 4
  br label %74

65:                                               ; preds = %54
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %6, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %7, align 4
  br label %73

69:                                               ; preds = %59, %56
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %6, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %7, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #4
  br label %73

73:                                               ; preds = %69, %65
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  br label %74

74:                                               ; preds = %73, %61
  %75 = load i1, ptr %14, align 1
  br i1 %75, label %76, label %77

76:                                               ; preds = %74
  call void @_ZdlPvm(ptr noundef %52, i64 noundef 112) #6
  br label %77

77:                                               ; preds = %76, %74
  br label %79

78:                                               ; preds = %60, %28
  ret void

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt10shared_ptrIN3vox18CustomScalarField2EEC2IS1_ZNKS1_7Builder10makeSharedEvE3$_0vEEPT_T0_"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt10shared_ptrIN3vox18CustomScalarField2EEC2IS1_ZNKS1_7Builder10makeSharedEvE3$_1vEEPT_T0_"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0 align 2

declare void @_ZN3vox18CustomScalarField2C1ESt8functionIFdRKNS_5PointIdLm2EEEEES1_IFNS_6VectorIdLm2EEES5_EEd(ptr, ptr, ptr, double)

declare void @_ZN3vox18CustomScalarField2C1ESt8functionIFdRKNS_5PointIdLm2EEEEES1_IFNS_6VectorIdLm2EEES5_EES7_(ptr, ptr, ptr, ptr)

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 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 = { nobuiltin allocsize(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 = { nobuiltin 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 #4 = { nounwind }
attributes #5 = { builtin allocsize(0) }
attributes #6 = { builtin 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, !11, i64 0}
!10 = !{!"_ZTSN3vox18CustomScalarField27BuilderE", !11, i64 0, !12, i64 8, !14, i64 40, !12, i64 72}
!11 = !{!"double", !7, i64 0}
!12 = !{!"_ZTSSt8functionIFdRKN3vox5PointIdLm2EEEEE", !13, i64 0, !6, i64 24}
!13 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!14 = !{!"_ZTSSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEE", !13, i64 0, !6, i64 24}


; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.0" = type { %"class.std::_Function_base", ptr }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3vox18CustomScalarField27Builder10makeSharedEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr") align 8 %0, ptr noundef nonnull align 8 dereferenceable(104) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::function", align 8
  %4 = alloca %"class.std::function.0", align 8
  %5 = alloca %"class.std::function", align 8
  %6 = alloca %"class.std::function", align 8
  %7 = alloca %"class.std::function.0", align 8
  %8 = getelementptr inbounds i8, ptr %1, i64 72
  %9 = tail call noundef zeroext i1 @_ZNKSt8functionIFdRKN3vox5PointIdLm2EEEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  %10 = tail call noalias noundef nonnull dereferenceable(112) ptr @_Znwm(i64 noundef 112) #5
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  br i1 %9, label %12, label %26

12:                                               ; preds = %2
  invoke void @_ZNSt8functionIFdRKN3vox5PointIdLm2EEEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %13 unwind label %.thread

13:                                               ; preds = %12
  %14 = getelementptr inbounds i8, ptr %1, i64 40
  invoke void @_ZNSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %15 unwind label %.thread27

15:                                               ; preds = %13
  invoke void @_ZNSt8functionIFdRKN3vox5PointIdLm2EEEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %16 unwind label %21

16:                                               ; preds = %15
  invoke void @_ZN3vox18CustomScalarField2C1ESt8functionIFdRKNS_5PointIdLm2EEEEES1_IFNS_6VectorIdLm2EEES5_EES7_(ptr noundef nonnull align 8 dereferenceable(112) %10, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
          to label %17 unwind label %23

17:                                               ; preds = %16
  invoke void @"_ZNSt10shared_ptrIN3vox18CustomScalarField2EEC2IS1_ZNKS1_7Builder10makeSharedEvE3$_0vEEPT_T0_"(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %10)
          to label %18 unwind label %23

18:                                               ; preds = %17
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  br label %36

.thread:                                          ; preds = %12
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %.sink.split

.thread27:                                        ; preds = %13
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  br label %.sink.split

21:                                               ; preds = %15
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %25

23:                                               ; preds = %17, %16
  %.04 = phi i1 [ false, %17 ], [ true, %16 ]
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #4
  br label %25

25:                                               ; preds = %21, %23
  %.pn19 = phi { ptr, i32 } [ %24, %23 ], [ %22, %21 ]
  %.15 = phi i1 [ %.04, %23 ], [ true, %21 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #4
  br i1 %.15, label %.sink.split, label %37

26:                                               ; preds = %2
  invoke void @_ZNSt8functionIFdRKN3vox5PointIdLm2EEEEEC2ERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %27 unwind label %.thread30

27:                                               ; preds = %26
  %28 = getelementptr inbounds i8, ptr %1, i64 40
  invoke void @_ZNSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %29 unwind label %.thread34

29:                                               ; preds = %27
  %30 = load double, ptr %1, align 8, !tbaa !5
  invoke void @_ZN3vox18CustomScalarField2C1ESt8functionIFdRKNS_5PointIdLm2EEEEES1_IFNS_6VectorIdLm2EEES5_EEd(ptr noundef nonnull align 8 dereferenceable(112) %10, ptr noundef nonnull %6, ptr noundef nonnull %7, double noundef %30)
          to label %31 unwind label %34

31:                                               ; preds = %29
  invoke void @"_ZNSt10shared_ptrIN3vox18CustomScalarField2EEC2IS1_ZNKS1_7Builder10makeSharedEvE3$_1vEEPT_T0_"(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %10)
          to label %36 unwind label %34

.thread30:                                        ; preds = %26
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %.sink.split

.thread34:                                        ; preds = %27
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  br label %.sink.split

34:                                               ; preds = %29, %31
  %.0 = phi i1 [ false, %31 ], [ true, %29 ]
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #4
  br i1 %.0, label %.sink.split, label %37

36:                                               ; preds = %31, %18
  %.sink37 = phi ptr [ %4, %18 ], [ %7, %31 ]
  %.sink = phi ptr [ %3, %18 ], [ %6, %31 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.sink37) #4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.sink) #4
  ret void

.sink.split:                                      ; preds = %34, %.thread30, %.thread34, %25, %.thread, %.thread27
  %.pn19.pn.pn.pn.ph = phi { ptr, i32 } [ %19, %.thread ], [ %.pn19, %25 ], [ %20, %.thread27 ], [ %32, %.thread30 ], [ %35, %34 ], [ %33, %.thread34 ]
  call void @_ZdlPvm(ptr noundef nonnull %10, i64 noundef 112) #6
  br label %37

37:                                               ; preds = %.sink.split, %34, %25
  %.pn19.pn.pn.pn = phi { ptr, i32 } [ %.pn19, %25 ], [ %35, %34 ], [ %.pn19.pn.pn.pn.ph, %.sink.split ]
  resume { ptr, i32 } %.pn19.pn.pn.pn
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt10shared_ptrIN3vox18CustomScalarField2EEC2IS1_ZNKS1_7Builder10makeSharedEvE3$_0vEEPT_T0_"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt10shared_ptrIN3vox18CustomScalarField2EEC2IS1_ZNKS1_7Builder10makeSharedEvE3$_1vEEPT_T0_"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0 align 2

declare void @_ZN3vox18CustomScalarField2C1ESt8functionIFdRKNS_5PointIdLm2EEEEES1_IFNS_6VectorIdLm2EEES5_EEd(ptr, ptr, ptr, double) local_unnamed_addr

declare void @_ZN3vox18CustomScalarField2C1ESt8functionIFdRKNS_5PointIdLm2EEEEES1_IFNS_6VectorIdLm2EEES5_EES7_(ptr, ptr, ptr, ptr) local_unnamed_addr

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 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 = { nobuiltin allocsize(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 = { nobuiltin 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 #4 = { nounwind }
attributes #5 = { builtin allocsize(0) }
attributes #6 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN3vox18CustomScalarField27BuilderE", !7, i64 0, !10, i64 8, !13, i64 40, !10, i64 72}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt8functionIFdRKN3vox5PointIdLm2EEEEE", !11, i64 0, !12, i64 24}
!11 = !{!"_ZTSSt14_Function_base", !8, i64 0, !12, i64 16}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"_ZTSSt8functionIFN3vox6VectorIdLm2EEERKNS0_5PointIdLm2EEEEE", !11, i64 0, !12, i64 24}


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