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

; 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.std::_List_iterator" = type { ptr }
%"struct.std::_List_const_iterator" = type { ptr }
%"struct.std::_List_iterator.34" = type { ptr }
%"struct.std::_List_const_iterator.35" = type { ptr }
%"class.fl::Node" = type { ptr, %"class.std::vector", %"class.std::vector.4", %"class.std::__cxx11::list", %"class.std::__cxx11::list.12", %"class.fl::Shape", %"class.std::optional" }
%"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::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = 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.12" = type { %"class.std::__cxx11::_List_base.13" }
%"class.std::__cxx11::_List_base.13" = 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.17" }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = 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.24" }
%"struct.std::_Head_base.24" = type { ptr }
%"class.fl::ExternalUse" = type { %"class.std::shared_ptr", %"struct.std::_List_iterator.34" }
%"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 }

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2fl4Node18replaceAllUsesWithESt10shared_ptrIS0_E(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.std::_List_iterator", align 8
  %7 = alloca %"struct.std::_List_iterator", align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.std::_List_const_iterator", align 8
  %11 = alloca %"struct.std::_List_iterator", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.std::_List_iterator.34", align 8
  %14 = alloca %"struct.std::_List_iterator.34", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"struct.std::_List_const_iterator.35", align 8
  %17 = alloca %"struct.std::_List_iterator.34", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %3, align 8
  %19 = call noundef ptr @_ZNKSt12__shared_ptrIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %20 = icmp ne ptr %19, %18
  br i1 %20, label %21, label %85

21:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %22 = getelementptr inbounds %"class.fl::Node", ptr %18, i32 0, i32 3
  store ptr %22, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call ptr @_ZNSt7__cxx114listISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #4
  %25 = getelementptr inbounds %"struct.std::_List_iterator", ptr %6, i32 0, i32 0
  store ptr %24, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call ptr @_ZNSt7__cxx114listISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
  %28 = getelementptr inbounds %"struct.std::_List_iterator", ptr %7, i32 0, i32 0
  store ptr %27, ptr %28, align 8
  br label %29

29:                                               ; preds = %45, %21
  %30 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS2_EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  br i1 %30, label %32, label %31

31:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %47

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  store ptr %33, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = call noundef ptr @_ZNKSt10unique_ptrIN2fl3UseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #4
  %36 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNK2fl3Use4userEv(ptr noundef nonnull align 8 dereferenceable(12) %35)
  store ptr %36, ptr %9, align 8, !tbaa !5
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.fl::Node", ptr %37, i32 0, i32 1
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = call noundef ptr @_ZNKSt10unique_ptrIN2fl3UseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #4
  %41 = call noundef i32 @_ZNK2fl3Use8inputIdxEv(ptr noundef nonnull align 8 dereferenceable(12) %40)
  %42 = zext i32 %41 to i64
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN2fl4NodeEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %42) #4
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN2fl4NodeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %45

45:                                               ; preds = %32
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  br label %29

47:                                               ; preds = %31
  %48 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %49 = getelementptr inbounds %"class.fl::Node", ptr %48, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %50 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %51 = getelementptr inbounds %"class.fl::Node", ptr %50, i32 0, i32 3
  %52 = call ptr @_ZNSt7__cxx114listISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #4
  %53 = getelementptr inbounds %"struct.std::_List_iterator", ptr %11, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  call void @_ZNSt20_List_const_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS2_EEEC2ERKSt14_List_iteratorIS5_E(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  %54 = getelementptr inbounds %"class.fl::Node", ptr %18, i32 0, i32 3
  %55 = getelementptr inbounds %"struct.std::_List_const_iterator", ptr %10, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8
  call void @_ZNSt7__cxx114listISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EE6spliceESt20_List_const_iteratorIS6_ERS8_(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr %56, ptr noundef nonnull align 8 dereferenceable(24) %54) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %57 = getelementptr inbounds %"class.fl::Node", ptr %18, i32 0, i32 4
  store ptr %57, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = call ptr @_ZNSt7__cxx114listIPN2fl11ExternalUseESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #4
  %60 = getelementptr inbounds %"struct.std::_List_iterator.34", ptr %13, i32 0, i32 0
  store ptr %59, ptr %60, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = call ptr @_ZNSt7__cxx114listIPN2fl11ExternalUseESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #4
  %63 = getelementptr inbounds %"struct.std::_List_iterator.34", ptr %14, i32 0, i32 0
  store ptr %62, ptr %63, align 8
  br label %64

64:                                               ; preds = %73, %47
  %65 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIPN2fl11ExternalUseEES5_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  br i1 %65, label %67, label %66

66:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %75

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN2fl11ExternalUseEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  store ptr %68, ptr %15, align 8, !tbaa !5
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.fl::ExternalUse", ptr %70, i32 0, i32 0
  %72 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN2fl4NodeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %71, ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %73

73:                                               ; preds = %67
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIPN2fl11ExternalUseEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  br label %64

75:                                               ; preds = %66
  %76 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %77 = getelementptr inbounds %"class.fl::Node", ptr %76, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %78 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %79 = getelementptr inbounds %"class.fl::Node", ptr %78, i32 0, i32 4
  %80 = call ptr @_ZNSt7__cxx114listIPN2fl11ExternalUseESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #4
  %81 = getelementptr inbounds %"struct.std::_List_iterator.34", ptr %17, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  call void @_ZNSt20_List_const_iteratorIPN2fl11ExternalUseEEC2ERKSt14_List_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #4
  %82 = getelementptr inbounds %"class.fl::Node", ptr %18, i32 0, i32 4
  %83 = getelementptr inbounds %"struct.std::_List_const_iterator.35", ptr %16, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8
  call void @_ZNSt7__cxx114listIPN2fl11ExternalUseESaIS3_EE6spliceESt20_List_const_iteratorIS3_ERS5_(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr %84, ptr noundef nonnull align 8 dereferenceable(24) %82) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %85

85:                                               ; preds = %75, %2
  ret void
}

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(152) ptr @_ZNK2fl3Use4userEv(ptr noundef nonnull align 8 dereferenceable(12)) #3

declare noundef i32 @_ZNK2fl3Use8inputIdxEv(ptr noundef nonnull align 8 dereferenceable(12)) #3

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

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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

%"struct.std::_List_iterator" = type { ptr }
%"struct.std::_List_const_iterator" = type { ptr }
%"struct.std::_List_iterator.34" = type { ptr }
%"struct.std::_List_const_iterator.35" = type { ptr }

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2fl4Node18replaceAllUsesWithESt10shared_ptrIS0_E(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %1) local_unnamed_addr #2 align 2 {
  %3 = alloca %"struct.std::_List_iterator", align 8
  %4 = alloca %"struct.std::_List_iterator", align 8
  %5 = alloca %"struct.std::_List_const_iterator", align 8
  %6 = alloca %"struct.std::_List_iterator", align 8
  %7 = alloca %"struct.std::_List_iterator.34", align 8
  %8 = alloca %"struct.std::_List_iterator.34", align 8
  %9 = alloca %"struct.std::_List_const_iterator.35", align 8
  %10 = alloca %"struct.std::_List_iterator.34", align 8
  %11 = tail call noundef ptr @_ZNKSt12__shared_ptrIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2EE3getEv(ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %.not = icmp eq ptr %11, %0
  br i1 %.not, label %49, label %12

12:                                               ; preds = %2
  %13 = getelementptr inbounds i8, ptr %0, i64 56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %14 = tail call ptr @_ZNSt7__cxx114listISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  store ptr %14, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %15 = tail call ptr @_ZNSt7__cxx114listISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  store ptr %15, ptr %4, align 8
  %16 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS2_EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %16, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  %17 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %18 = getelementptr inbounds i8, ptr %17, i64 56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %19 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %20 = getelementptr inbounds i8, ptr %19, i64 56
  %21 = call ptr @_ZNSt7__cxx114listISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  store ptr %21, ptr %6, align 8
  call void @_ZNSt20_List_const_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS2_EEEC2ERKSt14_List_iteratorIS5_E(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %22 = load ptr, ptr %5, align 8
  call void @_ZNSt7__cxx114listISt10unique_ptrIN2fl3UseESt14default_deleteIS3_EESaIS6_EE6spliceESt20_List_const_iteratorIS6_ERS8_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr %22, ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  %23 = getelementptr inbounds i8, ptr %0, i64 80
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %24 = call ptr @_ZNSt7__cxx114listIPN2fl11ExternalUseESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #4
  store ptr %24, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %25 = call ptr @_ZNSt7__cxx114listIPN2fl11ExternalUseESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #4
  store ptr %25, ptr %8, align 8
  %26 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIPN2fl11ExternalUseEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %26, label %.lr.ph10, label %._crit_edge11

.lr.ph:                                           ; preds = %12, %.lr.ph
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %28 = call noundef ptr @_ZNKSt10unique_ptrIN2fl3UseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #4
  %29 = call noundef nonnull align 8 dereferenceable(152) ptr @_ZNK2fl3Use4userEv(ptr noundef nonnull align 8 dereferenceable(12) %28)
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = call noundef ptr @_ZNKSt10unique_ptrIN2fl3UseESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #4
  %32 = call noundef i32 @_ZNK2fl3Use8inputIdxEv(ptr noundef nonnull align 8 dereferenceable(12) %31)
  %33 = zext i32 %32 to i64
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt10shared_ptrIN2fl4NodeEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %33) #4
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN2fl4NodeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %37 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorISt10unique_ptrIN2fl3UseESt14default_deleteIS2_EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %37, label %.lr.ph, label %._crit_edge

._crit_edge11:                                    ; preds = %.lr.ph10, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %38 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %39 = getelementptr inbounds i8, ptr %38, i64 80
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %40 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN2fl4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %41 = getelementptr inbounds i8, ptr %40, i64 80
  %42 = call ptr @_ZNSt7__cxx114listIPN2fl11ExternalUseESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #4
  store ptr %42, ptr %10, align 8
  call void @_ZNSt20_List_const_iteratorIPN2fl11ExternalUseEEC2ERKSt14_List_iteratorIS2_E(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %43 = load ptr, ptr %9, align 8
  call void @_ZNSt7__cxx114listIPN2fl11ExternalUseESaIS3_EE6spliceESt20_List_const_iteratorIS3_ERS5_(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr %43, ptr noundef nonnull align 8 dereferenceable(24) %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br label %49

.lr.ph10:                                         ; preds = %._crit_edge, %.lr.ph10
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIPN2fl11ExternalUseEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN2fl4NodeEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIPN2fl11ExternalUseEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %48 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIPN2fl11ExternalUseEES5_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %48, label %.lr.ph10, label %._crit_edge11

49:                                               ; preds = %._crit_edge11, %2
  ret void
}

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(152) ptr @_ZNK2fl3Use4userEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3

declare noundef i32 @_ZNK2fl3Use8inputIdxEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass