; LLVM IR from flashlight/flashlight :: flashlight/fl/tensor/backend/jit/ir (BinaryNode)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.fl::BinaryNode::PrivateHelper" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<fl::Node>, std::allocator<std::shared_ptr<fl::Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<fl::Node>, std::allocator<std::shared_ptr<fl::Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<fl::Node>, std::allocator<std::shared_ptr<fl::Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<fl::Node>, std::allocator<std::shared_ptr<fl::Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"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::allocator" = type { i8 }
%"class.fl::BinaryNode" = type <{ %"class.fl::NodeTrait", i32, [4 x i8] }>
%"class.fl::NodeTrait" = type { %"class.fl::Node" }
%"class.fl::Node" = type { ptr, %"class.std::vector", %"class.std::vector.0", %"class.std::__cxx11::list", %"class.std::__cxx11::list.8", %"class.fl::Shape", %"class.std::optional" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::_List_iterator<std::unique_ptr<fl::Use>>, std::allocator<std::_List_iterator<std::unique_ptr<fl::Use>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::_List_iterator<std::unique_ptr<fl::Use>>, std::allocator<std::_List_iterator<std::unique_ptr<fl::Use>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::_List_iterator<std::unique_ptr<fl::Use>>, std::allocator<std::_List_iterator<std::unique_ptr<fl::Use>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::_List_iterator<std::unique_ptr<fl::Use>>, std::allocator<std::_List_iterator<std::unique_ptr<fl::Use>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<std::unique_ptr<fl::Use>, std::allocator<std::unique_ptr<fl::Use>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<std::unique_ptr<fl::Use>, std::allocator<std::unique_ptr<fl::Use>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::__cxx11::list.8" = type { %"class.std::__cxx11::_List_base.9" }
%"class.std::__cxx11::_List_base.9" = type { %"struct.std::__cxx11::_List_base<fl::ExternalUse *, std::allocator<fl::ExternalUse *>>::_List_impl" }
%"struct.std::__cxx11::_List_base<fl::ExternalUse *, std::allocator<fl::ExternalUse *>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"class.fl::Shape" = type { %"class.std::vector.13" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<fl::Tensor>::_Storage", i8 }>
%"union.std::_Optional_payload_base<fl::Tensor>::_Storage" = type { %"class.fl::Tensor" }
%"class.fl::Tensor" = type { ptr, %"class.std::unique_ptr" }
%"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.20" }
%"struct.std::_Head_base.20" = type { ptr }

@_ZTVN2fl10BinaryNodeE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2fl10BinaryNodeC2ESt10shared_ptrINS_4NodeEES3_NS_8BinaryOpERKNS_5ShapeENS0_13PrivateHelperE(ptr noundef nonnull align 8 dereferenceable(156) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"struct.fl::BinaryNode::PrivateHelper", align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %"class.std::initializer_list", align 8
  %14 = alloca [2 x %"class.std::shared_ptr"], align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  %18 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #3
  call void @_ZNSt10shared_ptrIN2fl4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %1) #3
  %19 = getelementptr inbounds %"class.std::shared_ptr", ptr %14, i64 1
  call void @_ZNSt10shared_ptrIN2fl4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %2) #3
  %20 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 0
  store ptr %14, ptr %20, align 8, !tbaa !11
  %21 = getelementptr inbounds %"class.std::initializer_list", ptr %13, i32 0, i32 1
  store i64 2, ptr %21, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #3
  call void @_ZNSaISt10shared_ptrIN2fl4NodeEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #3
  %22 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8
  %24 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %25 = load i64, ptr %24, align 8
  invoke void @_ZNSt6vectorISt10shared_ptrIN2fl4NodeEESaIS3_EEC2ESt16initializer_listIS3_ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr %23, i64 %25, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %26 unwind label %38

26:                                               ; preds = %5
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN2fl9NodeTraitINS_10BinaryNodeEEC2EOSt6vectorISt10shared_ptrINS_4NodeEESaIS6_EERKNS_5ShapeE(ptr noundef nonnull align 8 dereferenceable(152) %18, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %28 unwind label %42

28:                                               ; preds = %26
  call void @_ZNSt6vectorISt10shared_ptrIN2fl4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  call void @_ZNSt15__new_allocatorISt10shared_ptrIN2fl4NodeEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #3
  %29 = getelementptr inbounds [2 x %"class.std::shared_ptr"], ptr %14, i32 0, i32 0
  %30 = getelementptr inbounds %"class.std::shared_ptr", ptr %29, i64 2
  br label %31

31:                                               ; preds = %31, %28
  %32 = phi ptr [ %30, %28 ], [ %33, %31 ]
  %33 = getelementptr inbounds %"class.std::shared_ptr", ptr %32, i64 -1
  call void @_ZNSt12__shared_ptrIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #3
  %34 = icmp eq ptr %33, %29
  br i1 %34, label %35, label %31

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #3
  store ptr getelementptr inbounds inrange(-16, 24) ({ [5 x ptr] }, ptr @_ZTVN2fl10BinaryNodeE, i32 0, i32 0, i32 2), ptr %18, align 8, !tbaa !15
  %36 = getelementptr inbounds %"class.fl::BinaryNode", ptr %18, i32 0, i32 1
  %37 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %37, ptr %36, align 8, !tbaa !17
  ret void

38:                                               ; preds = %5
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %16, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %17, align 4
  br label %46

42:                                               ; preds = %26
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %16, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %17, align 4
  call void @_ZNSt6vectorISt10shared_ptrIN2fl4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  br label %46

46:                                               ; preds = %42, %38
  call void @_ZNSt15__new_allocatorISt10shared_ptrIN2fl4NodeEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #3
  %47 = getelementptr inbounds [2 x %"class.std::shared_ptr"], ptr %14, i32 0, i32 0
  %48 = getelementptr inbounds %"class.std::shared_ptr", ptr %47, i64 2
  br label %49

49:                                               ; preds = %49, %46
  %50 = phi ptr [ %48, %46 ], [ %51, %49 ]
  %51 = getelementptr inbounds %"class.std::shared_ptr", ptr %50, i64 -1
  call void @_ZNSt12__shared_ptrIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %51) #3
  %52 = icmp eq ptr %51, %47
  br i1 %52, label %53, label %49

53:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #3
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %16, align 8
  %56 = load i32, ptr %17, align 4
  %57 = insertvalue { ptr, i32 } poison, ptr %55, 0
  %58 = insertvalue { ptr, i32 } %57, i32 %56, 1
  resume { ptr, i32 } %58
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt10shared_ptrIN2fl4NodeEESaIS3_EEC2ESt16initializer_listIS3_ERKS4_(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 uwtable
declare dso_local void @_ZN2fl9NodeTraitINS_10BinaryNodeEEC2EOSt6vectorISt10shared_ptrINS_4NodeEESaIS6_EERKNS_5ShapeE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt10shared_ptrIN2fl4NodeEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN2fl8BinaryOpE", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt16initializer_listISt10shared_ptrIN2fl4NodeEEE", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !10, i64 152}
!18 = !{!"_ZTSN2fl10BinaryNodeE", !19, i64 0, !10, i64 152}
!19 = !{!"_ZTSN2fl9NodeTraitINS_10BinaryNodeEEE", !20, i64 0}
!20 = !{!"_ZTSN2fl4NodeE", !21, i64 8, !25, i64 32, !29, i64 56, !34, i64 80, !37, i64 104, !42, i64 128}
!21 = !{!"_ZTSSt6vectorISt10shared_ptrIN2fl4NodeEESaIS3_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN2fl4NodeEESaIS3_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN2fl4NodeEESaIS3_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN2fl4NodeEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt6vectorISt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EEESaIS7_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseISt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EEESaIS7_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EEESaIS7_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EEESaIS7_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSNSt7__cxx114listISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EEE", !30, i64 0}
!30 = !{!"_ZTSNSt7__cxx1110_List_baseISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EEE", !31, i64 0}
!31 = !{!"_ZTSNSt7__cxx1110_List_baseISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EE10_List_implE", !32, i64 0}
!32 = !{!"_ZTSNSt8__detail17_List_node_headerE", !33, i64 0, !13, i64 16}
!33 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!34 = !{!"_ZTSNSt7__cxx114listIPN2fl11ExternalUseESaIS3_EEE", !35, i64 0}
!35 = !{!"_ZTSNSt7__cxx1110_List_baseIPN2fl11ExternalUseESaIS3_EEE", !36, i64 0}
!36 = !{!"_ZTSNSt7__cxx1110_List_baseIPN2fl11ExternalUseESaIS3_EE10_List_implE", !32, i64 0}
!37 = !{!"_ZTSN2fl5ShapeE", !38, i64 0}
!38 = !{!"_ZTSSt6vectorIxSaIxEE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIxSaIxEE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!"_ZTSSt8optionalIN2fl6TensorEE", !43, i64 0}
!43 = !{!"_ZTSSt14_Optional_baseIN2fl6TensorELb0ELb0EE", !44, i64 0}
!44 = !{!"_ZTSSt17_Optional_payloadIN2fl6TensorELb0ELb0ELb0EE", !45, i64 0}
!45 = !{!"_ZTSSt17_Optional_payloadIN2fl6TensorELb1ELb0ELb0EE", !46, i64 0}
!46 = !{!"_ZTSSt22_Optional_payload_baseIN2fl6TensorEE", !7, i64 0, !47, i64 16}
!47 = !{!"bool", !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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::shared_ptr<fl::Node>, std::allocator<std::shared_ptr<fl::Node>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<fl::Node>, std::allocator<std::shared_ptr<fl::Node>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<fl::Node>, std::allocator<std::shared_ptr<fl::Node>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<fl::Node>, std::allocator<std::shared_ptr<fl::Node>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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::allocator" = type { i8 }

@_ZTVN2fl10BinaryNodeE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2fl10BinaryNodeC2ESt10shared_ptrINS_4NodeEES3_NS_8BinaryOpERKNS_5ShapeENS0_13PrivateHelperE(ptr noundef nonnull align 8 dereferenceable(156) %0, ptr noundef nonnull %1, ptr noundef %2, i32 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca [2 x %"class.std::shared_ptr"], align 8
  %8 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #3
  call void @_ZNSt10shared_ptrIN2fl4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %1) #3
  %9 = getelementptr inbounds i8, ptr %7, i64 16
  call void @_ZNSt10shared_ptrIN2fl4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %2) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #3
  call void @_ZNSaISt10shared_ptrIN2fl4NodeEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  invoke void @_ZNSt6vectorISt10shared_ptrIN2fl4NodeEESaIS3_EEC2ESt16initializer_listIS3_ERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr nonnull %7, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %10 unwind label %14

10:                                               ; preds = %5
  invoke void @_ZN2fl9NodeTraitINS_10BinaryNodeEEC2EOSt6vectorISt10shared_ptrINS_4NodeEESaIS6_EERKNS_5ShapeE(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %11 unwind label %16

11:                                               ; preds = %10
  call void @_ZNSt6vectorISt10shared_ptrIN2fl4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  call void @_ZNSt15__new_allocatorISt10shared_ptrIN2fl4NodeEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #3
  %12 = getelementptr inbounds i8, ptr %7, i64 16
  call void @_ZNSt12__shared_ptrIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #3
  call void @_ZNSt12__shared_ptrIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  store ptr getelementptr inbounds inrange(-16, 24) (i8, ptr @_ZTVN2fl10BinaryNodeE, i64 16), ptr %0, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 152
  store i32 %3, ptr %13, align 8, !tbaa !8
  ret void

14:                                               ; preds = %5
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %18

16:                                               ; preds = %10
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorISt10shared_ptrIN2fl4NodeEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #3
  br label %18

18:                                               ; preds = %16, %14
  %.pn = phi { ptr, i32 } [ %17, %16 ], [ %15, %14 ]
  call void @_ZNSt15__new_allocatorISt10shared_ptrIN2fl4NodeEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #3
  %19 = getelementptr inbounds i8, ptr %7, i64 16
  call void @_ZNSt12__shared_ptrIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #3
  call void @_ZNSt12__shared_ptrIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  resume { ptr, i32 } %.pn
}

; 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 nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN2fl4NodeEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt10shared_ptrIN2fl4NodeEESaIS3_EEC2ESt16initializer_listIS3_ERKS4_(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 uwtable
declare dso_local void @_ZN2fl9NodeTraitINS_10BinaryNodeEEC2EOSt6vectorISt10shared_ptrINS_4NodeEESaIS6_EERKNS_5ShapeE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

; 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 nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt10shared_ptrIN2fl4NodeEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !42, i64 152}
!9 = !{!"_ZTSN2fl10BinaryNodeE", !10, i64 0, !42, i64 152}
!10 = !{!"_ZTSN2fl9NodeTraitINS_10BinaryNodeEEE", !11, i64 0}
!11 = !{!"_ZTSN2fl4NodeE", !12, i64 8, !18, i64 32, !22, i64 56, !28, i64 80, !31, i64 104, !36, i64 128}
!12 = !{!"_ZTSSt6vectorISt10shared_ptrIN2fl4NodeEESaIS3_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN2fl4NodeEESaIS3_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN2fl4NodeEESaIS3_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN2fl4NodeEESaIS3_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !17, i64 0}
!17 = !{!"omnipotent char", !7, i64 0}
!18 = !{!"_ZTSSt6vectorISt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EEESaIS7_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseISt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EEESaIS7_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EEESaIS7_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EEESaIS7_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!22 = !{!"_ZTSNSt7__cxx114listISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EEE", !23, i64 0}
!23 = !{!"_ZTSNSt7__cxx1110_List_baseISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EEE", !24, i64 0}
!24 = !{!"_ZTSNSt7__cxx1110_List_baseISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EE10_List_implE", !25, i64 0}
!25 = !{!"_ZTSNSt8__detail17_List_node_headerE", !26, i64 0, !27, i64 16}
!26 = !{!"_ZTSNSt8__detail15_List_node_baseE", !16, i64 0, !16, i64 8}
!27 = !{!"long", !17, i64 0}
!28 = !{!"_ZTSNSt7__cxx114listIPN2fl11ExternalUseESaIS3_EEE", !29, i64 0}
!29 = !{!"_ZTSNSt7__cxx1110_List_baseIPN2fl11ExternalUseESaIS3_EEE", !30, i64 0}
!30 = !{!"_ZTSNSt7__cxx1110_List_baseIPN2fl11ExternalUseESaIS3_EE10_List_implE", !25, i64 0}
!31 = !{!"_ZTSN2fl5ShapeE", !32, i64 0}
!32 = !{!"_ZTSSt6vectorIxSaIxEE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIxSaIxEE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIxSaIxEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!36 = !{!"_ZTSSt8optionalIN2fl6TensorEE", !37, i64 0}
!37 = !{!"_ZTSSt14_Optional_baseIN2fl6TensorELb0ELb0EE", !38, i64 0}
!38 = !{!"_ZTSSt17_Optional_payloadIN2fl6TensorELb0ELb0ELb0EE", !39, i64 0}
!39 = !{!"_ZTSSt17_Optional_payloadIN2fl6TensorELb1ELb0ELb0EE", !40, i64 0}
!40 = !{!"_ZTSSt22_Optional_payload_baseIN2fl6TensorEE", !17, i64 0, !41, i64 16}
!41 = !{!"bool", !17, i64 0}
!42 = !{!"_ZTSN2fl8BinaryOpE", !17, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass