; LLVM IR from flashlight/flashlight :: flashlight/fl/dataset/TransformDataset.ll (ZNK2fl16TransformDataset3getEl)

; 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::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<fl::Tensor, std::allocator<fl::Tensor>>::_Vector_impl" }
%"struct.std::_Vector_base<fl::Tensor, std::allocator<fl::Tensor>>::_Vector_impl" = type { %"struct.std::_Vector_base<fl::Tensor, std::allocator<fl::Tensor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fl::Tensor, std::allocator<fl::Tensor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.6" }
%"struct.std::_Head_base.6" = type { ptr }
%"class.fl::TransformDataset" = type { %"class.fl::Dataset", %"class.std::shared_ptr", %"class.std::vector" }
%"class.fl::Dataset" = type { 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::function<fl::Tensor (const fl::Tensor &)>, std::allocator<std::function<fl::Tensor (const fl::Tensor &)>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::function<fl::Tensor (const fl::Tensor &)>, std::allocator<std::function<fl::Tensor (const fl::Tensor &)>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::function<fl::Tensor (const fl::Tensor &)>, std::allocator<std::function<fl::Tensor (const fl::Tensor &)>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::function<fl::Tensor (const fl::Tensor &)>, std::allocator<std::function<fl::Tensor (const fl::Tensor &)>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2fl16TransformDataset3getEl(ptr dead_on_unwind noalias writable sret(%"class.std::vector.0") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1, i64 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i1, align 1
  %8 = alloca i64, align 8
  %9 = alloca %"class.fl::Tensor", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %12 = load ptr, ptr %5, align 8
  %13 = load i64, ptr %6, align 8, !tbaa !9
  call void @_ZNK2fl7Dataset16checkIndexBoundsEl(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef %13)
  store i1 false, ptr %7, align 1
  %14 = getelementptr inbounds %"class.fl::TransformDataset", ptr %12, i32 0, i32 1
  %15 = call noundef ptr @_ZNKSt19__shared_ptr_accessIKN2fl7DatasetELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  %16 = load i64, ptr %6, align 8, !tbaa !9
  %17 = load ptr, ptr %15, align 8, !tbaa !11
  %18 = getelementptr inbounds ptr, ptr %17, i64 1
  %19 = load ptr, ptr %18, align 8
  call void %19(ptr dead_on_unwind writable sret(%"class.std::vector.0") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %15, i64 noundef %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %20

20:                                               ; preds = %47, %3
  %21 = load i64, ptr %8, align 8, !tbaa !9
  %22 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %23 = icmp ult i64 %21, %22
  br i1 %23, label %25, label %24

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

25:                                               ; preds = %20
  %26 = load i64, ptr %8, align 8, !tbaa !9
  %27 = getelementptr inbounds %"class.fl::TransformDataset", ptr %12, i32 0, i32 2
  %28 = call noundef i64 @_ZNKSt6vectorISt8functionIFN2fl6TensorERKS2_EESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #5
  %29 = icmp uge i64 %26, %28
  br i1 %29, label %35, label %30

30:                                               ; preds = %25
  %31 = getelementptr inbounds %"class.fl::TransformDataset", ptr %12, i32 0, i32 2
  %32 = load i64, ptr %8, align 8, !tbaa !9
  %33 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorISt8functionIFN2fl6TensorERKS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %32) #5
  %34 = call noundef zeroext i1 @_ZNKSt8functionIFN2fl6TensorERKS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %33) #5
  br i1 %34, label %36, label %35

35:                                               ; preds = %30, %25
  br label %47

36:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %37 = getelementptr inbounds %"class.fl::TransformDataset", ptr %12, i32 0, i32 2
  %38 = load i64, ptr %8, align 8, !tbaa !9
  %39 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorISt8functionIFN2fl6TensorERKS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %38) #5
  %40 = load i64, ptr %8, align 8, !tbaa !9
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %40) #5
  invoke void @_ZNKSt8functionIFN2fl6TensorERKS1_EEclES3_(ptr dead_on_unwind writable sret(%"class.fl::Tensor") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(16) %41)
          to label %42 unwind label %50

42:                                               ; preds = %36
  %43 = load i64, ptr %8, align 8, !tbaa !9
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %43) #5
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNR2fl6TensoraSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %46 unwind label %54

46:                                               ; preds = %42
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  br label %47

47:                                               ; preds = %46, %35
  %48 = load i64, ptr %8, align 8, !tbaa !9
  %49 = add nsw i64 %48, 1
  store i64 %49, ptr %8, align 8, !tbaa !9
  br label %20, !llvm.loop !13

50:                                               ; preds = %36
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %10, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %11, align 4
  br label %58

54:                                               ; preds = %42
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %10, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %11, align 4
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  br label %58

58:                                               ; preds = %54, %50
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %63

59:                                               ; preds = %24
  store i1 true, ptr %7, align 1
  %60 = load i1, ptr %7, align 1
  br i1 %60, label %62, label %61

61:                                               ; preds = %59
  call void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %62

62:                                               ; preds = %61, %59
  ret void

63:                                               ; preds = %58
  %64 = load ptr, ptr %10, align 8
  %65 = load i32, ptr %11, align 4
  %66 = insertvalue { ptr, i32 } poison, ptr %64, 0
  %67 = insertvalue { ptr, i32 } %66, i32 %65, 1
  resume { ptr, i32 } %67
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN2fl6TensorERKS1_EEclES3_(ptr dead_on_unwind noalias writable sret(%"class.fl::Tensor") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNR2fl6TensoraSEOS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: nounwind
declare void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<fl::Tensor, std::allocator<fl::Tensor>>::_Vector_impl" }
%"struct.std::_Vector_base<fl::Tensor, std::allocator<fl::Tensor>>::_Vector_impl" = type { %"struct.std::_Vector_base<fl::Tensor, std::allocator<fl::Tensor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fl::Tensor, std::allocator<fl::Tensor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.6" }
%"struct.std::_Head_base.6" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK2fl16TransformDataset3getEl(ptr dead_on_unwind noalias writable sret(%"class.std::vector.0") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1, i64 noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.fl::Tensor", align 8
  tail call void @_ZNK2fl7Dataset16checkIndexBoundsEl(ptr noundef nonnull align 8 dereferenceable(8) %1, i64 noundef %2)
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  %6 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIKN2fl7DatasetELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 8
  %9 = load ptr, ptr %8, align 8
  tail call void %9(ptr dead_on_unwind writable sret(%"class.std::vector.0") align 8 %0, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %2)
  %10 = tail call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %.not16 = icmp eq i64 %10, 0
  br i1 %.not16, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %11 = getelementptr inbounds i8, ptr %1, i64 24
  br label %12

12:                                               ; preds = %.lr.ph, %24
  %.01315 = phi i64 [ 0, %.lr.ph ], [ %25, %24 ]
  %13 = call noundef i64 @_ZNKSt6vectorISt8functionIFN2fl6TensorERKS2_EESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %.not = icmp ult i64 %.01315, %13
  br i1 %.not, label %14, label %24

14:                                               ; preds = %12
  %15 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorISt8functionIFN2fl6TensorERKS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.01315) #5
  %16 = call noundef zeroext i1 @_ZNKSt8functionIFN2fl6TensorERKS1_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  br i1 %16, label %17, label %24

17:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  %18 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorISt8functionIFN2fl6TensorERKS2_EESaIS6_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.01315) #5
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.01315) #5
  invoke void @_ZNKSt8functionIFN2fl6TensorERKS1_EEclES3_(ptr dead_on_unwind nonnull writable sret(%"class.fl::Tensor") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %20 unwind label %28

20:                                               ; preds = %17
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.01315) #5
  %22 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNR2fl6TensoraSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %23 unwind label %30

23:                                               ; preds = %20
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %24

24:                                               ; preds = %12, %14, %23
  %25 = add nuw nsw i64 %.01315, 1
  %26 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %27 = icmp ult i64 %25, %26
  br i1 %27, label %12, label %._crit_edge, !llvm.loop !8

28:                                               ; preds = %17
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %32

30:                                               ; preds = %20
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  br label %32

32:                                               ; preds = %30, %28
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  resume { ptr, i32 } %.pn

._crit_edge:                                      ; preds = %24, %3
  ret void
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN2fl6TensorERKS1_EEclES3_(ptr dead_on_unwind noalias writable sret(%"class.fl::Tensor") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNR2fl6TensoraSEOS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 "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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


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