; LLVM IR from flashlight/flashlight :: flashlight/fl/dataset (Utils)

; 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.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = 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.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<std::vector<fl::Tensor>, std::allocator<std::vector<fl::Tensor>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<fl::Tensor>, std::allocator<std::vector<fl::Tensor>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<fl::Tensor>, std::allocator<std::vector<fl::Tensor>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<fl::Tensor>, std::allocator<std::vector<fl::Tensor>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.15" = type { i8 }
%"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.29" }
%"struct.std::_Head_base.29" = 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 } }

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2fl18makeBatchFromRangeESt10shared_ptrIKNS_7DatasetEESt6vectorISt8functionIFNS_6TensorERKS4_IS6_SaIS6_EEEESaISC_EEll(ptr dead_on_unwind noalias writable sret(%"class.std::vector.13") align 8 %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.std::vector.23", align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector.13", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i1, align 1
  %19 = alloca %"class.std::allocator.15", align 1
  %20 = alloca i64, align 8
  %21 = alloca %"class.fl::Tensor", align 8
  %22 = alloca %"class.std::function", align 8
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i64 %3, ptr %9, align 8, !tbaa !9
  store i64 %4, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  call void @_ZNSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %23 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %23, ptr %12, align 8, !tbaa !9
  br label %24

24:                                               ; preds = %71, %5
  %25 = load i64, ptr %12, align 8, !tbaa !9
  %26 = load i64, ptr %10, align 8, !tbaa !9
  %27 = icmp slt i64 %25, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %76

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  %30 = call noundef ptr @_ZNKSt19__shared_ptr_accessIKN2fl7DatasetELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  %31 = load i64, ptr %12, align 8, !tbaa !9
  %32 = load ptr, ptr %30, align 8, !tbaa !11
  %33 = getelementptr inbounds ptr, ptr %32, i64 1
  %34 = load ptr, ptr %33, align 8
  invoke void %34(ptr dead_on_unwind writable sret(%"class.std::vector.13") align 8 %14, ptr noundef nonnull align 8 dereferenceable(8) %30, i64 noundef %31)
          to label %35 unwind label %42

35:                                               ; preds = %29
  %36 = call noundef i64 @_ZNKSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %37 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %38 = icmp ult i64 %36, %37
  br i1 %38, label %39, label %50

39:                                               ; preds = %35
  %40 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  invoke void @_ZNSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %40)
          to label %41 unwind label %46

41:                                               ; preds = %39
  br label %50

42:                                               ; preds = %29
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %15, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %16, align 4
  br label %75

46:                                               ; preds = %39
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %15, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %16, align 4
  br label %74

50:                                               ; preds = %41, %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %63, %50
  %52 = load i64, ptr %17, align 8, !tbaa !9
  %53 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %54 = icmp ult i64 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %70

56:                                               ; preds = %51
  %57 = load i64, ptr %17, align 8, !tbaa !9
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %57) #5
  %59 = load i64, ptr %17, align 8, !tbaa !9
  %60 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %59) #5
  %61 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 8 dereferenceable(16) %60)
          to label %62 unwind label %66

62:                                               ; preds = %56
  br label %63

63:                                               ; preds = %62
  %64 = load i64, ptr %17, align 8, !tbaa !9
  %65 = add nsw i64 %64, 1
  store i64 %65, ptr %17, align 8, !tbaa !9
  br label %51, !llvm.loop !13

66:                                               ; preds = %56
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %15, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %74

70:                                               ; preds = %55
  call void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  br label %71

71:                                               ; preds = %70
  %72 = load i64, ptr %12, align 8, !tbaa !9
  %73 = add nsw i64 %72, 1
  store i64 %73, ptr %12, align 8, !tbaa !9
  br label %24, !llvm.loop !15

74:                                               ; preds = %66, %46
  call void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  br label %75

75:                                               ; preds = %74, %42
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %126

76:                                               ; preds = %28
  store i1 false, ptr %18, align 1
  %77 = call noundef i64 @_ZNKSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  call void @_ZNSaIN2fl6TensorEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  invoke void @_ZNSt6vectorIN2fl6TensorESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %77, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %78 unwind label %84

78:                                               ; preds = %76
  call void @_ZNSt15__new_allocatorIN2fl6TensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %105, %78
  %80 = load i64, ptr %20, align 8, !tbaa !9
  %81 = call noundef i64 @_ZNKSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %82 = icmp ult i64 %80, %81
  br i1 %82, label %88, label %83

83:                                               ; preds = %79
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %122

84:                                               ; preds = %76
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %15, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %16, align 4
  call void @_ZNSt15__new_allocatorIN2fl6TensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  br label %126

88:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %89 = load i64, ptr %20, align 8, !tbaa !9
  %90 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %89) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  %91 = load i64, ptr %20, align 8, !tbaa !9
  %92 = call noundef i64 @_ZNKSt6vectorISt8functionIFN2fl6TensorERKS_IS2_SaIS2_EEEESaIS8_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %93 = icmp ult i64 %91, %92
  br i1 %93, label %94, label %98

94:                                               ; preds = %88
  %95 = load i64, ptr %20, align 8, !tbaa !9
  %96 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorISt8functionIFN2fl6TensorERKS_IS2_SaIS2_EEEESaIS8_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %95) #5
  invoke void @_ZNSt8functionIFN2fl6TensorERKSt6vectorIS1_SaIS1_EEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %96)
          to label %97 unwind label %108

97:                                               ; preds = %94
  br label %99

98:                                               ; preds = %88
  call void @_ZNSt8functionIFN2fl6TensorERKSt6vectorIS1_SaIS1_EEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr null) #5
  br label %99

99:                                               ; preds = %98, %97
  invoke void @_ZN2fl9makeBatchERKSt6vectorINS_6TensorESaIS1_EERKSt8functionIFS1_S5_EE(ptr dead_on_unwind writable sret(%"class.fl::Tensor") align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %90, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %100 unwind label %112

100:                                              ; preds = %99
  %101 = load i64, ptr %20, align 8, !tbaa !9
  %102 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %101) #5
  %103 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNR2fl6TensoraSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %102, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %104 unwind label %116

104:                                              ; preds = %100
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  br label %105

105:                                              ; preds = %104
  %106 = load i64, ptr %20, align 8, !tbaa !9
  %107 = add nsw i64 %106, 1
  store i64 %107, ptr %20, align 8, !tbaa !9
  br label %79, !llvm.loop !16

108:                                              ; preds = %94
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %15, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %16, align 4
  br label %121

112:                                              ; preds = %99
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %15, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %16, align 4
  br label %120

116:                                              ; preds = %100
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %15, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %16, align 4
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  br label %120

120:                                              ; preds = %116, %112
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  br label %121

121:                                              ; preds = %120, %108
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %126

122:                                              ; preds = %83
  store i1 true, ptr %18, align 1
  store i32 1, ptr %13, align 4
  %123 = load i1, ptr %18, align 1
  br i1 %123, label %125, label %124

124:                                              ; preds = %122
  call void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %125

125:                                              ; preds = %124, %122
  call void @_ZNSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  ret void

126:                                              ; preds = %121, %84, %75
  call void @_ZNSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  br label %127

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #1 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) #2 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt8functionIFN2fl6TensorERKSt6vectorIS1_SaIS1_EEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(32), ptr) unnamed_addr #2 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; 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.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = 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.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<std::vector<fl::Tensor>, std::allocator<std::vector<fl::Tensor>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<fl::Tensor>, std::allocator<std::vector<fl::Tensor>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<fl::Tensor>, std::allocator<std::vector<fl::Tensor>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<fl::Tensor>, std::allocator<std::vector<fl::Tensor>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.15" = type { i8 }
%"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.29" }
%"struct.std::_Head_base.29" = 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 } }

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2fl18makeBatchFromRangeESt10shared_ptrIKNS_7DatasetEESt6vectorISt8functionIFNS_6TensorERKS4_IS6_SaIS6_EEEESaISC_EEll(ptr dead_on_unwind noalias writable sret(%"class.std::vector.13") align 8 %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::vector.23", align 8
  %7 = alloca %"class.std::vector.13", align 8
  %8 = alloca %"class.std::allocator.15", align 1
  %9 = alloca %"class.fl::Tensor", align 8
  %10 = alloca %"class.std::function", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @_ZNSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %11 = icmp slt i64 %3, %4
  br i1 %11, label %.lr.ph34, label %._crit_edge35

._crit_edge35:                                    ; preds = %._crit_edge, %5
  %12 = call noundef i64 @_ZNKSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  call void @_ZNSaIN2fl6TensorEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  invoke void @_ZNSt6vectorIN2fl6TensorESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %41 unwind label %43

.lr.ph34:                                         ; preds = %5, %._crit_edge
  %.02432 = phi i64 [ %29, %._crit_edge ], [ %3, %5 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  %13 = call noundef ptr @_ZNKSt19__shared_ptr_accessIKN2fl7DatasetELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 8
  %16 = load ptr, ptr %15, align 8
  invoke void %16(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.13") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef %.02432)
          to label %17 unwind label %23

17:                                               ; preds = %.lr.ph34
  %18 = call noundef i64 @_ZNKSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %19 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %20 = icmp ult i64 %18, %19
  br i1 %20, label %21, label %27

21:                                               ; preds = %17
  %22 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  invoke void @_ZNSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %22)
          to label %27 unwind label %25

23:                                               ; preds = %.lr.ph34
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %40

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

27:                                               ; preds = %21, %17
  %28 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %.not = icmp eq i64 %28, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %33, %27
  call void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  %29 = add i64 %.02432, 1
  %exitcond.not = icmp eq i64 %29, %4
  br i1 %exitcond.not, label %._crit_edge35, label %.lr.ph34, !llvm.loop !8

.lr.ph:                                           ; preds = %27, %33
  %.01731 = phi i64 [ %34, %33 ], [ 0, %27 ]
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.01731) #5
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.01731) #5
  %32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %33 unwind label %37

33:                                               ; preds = %.lr.ph
  %34 = add nuw nsw i64 %.01731, 1
  %35 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %36 = icmp ult i64 %34, %35
  br i1 %36, label %.lr.ph, label %._crit_edge, !llvm.loop !10

37:                                               ; preds = %.lr.ph
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %39

39:                                               ; preds = %37, %25
  %.pn27 = phi { ptr, i32 } [ %38, %37 ], [ %26, %25 ]
  call void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %40

40:                                               ; preds = %39, %23
  %.pn27.pn = phi { ptr, i32 } [ %.pn27, %39 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %67

41:                                               ; preds = %._crit_edge35
  call void @_ZNSt15__new_allocatorIN2fl6TensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  %42 = call noundef i64 @_ZNKSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %.not40 = icmp eq i64 %42, 0
  br i1 %.not40, label %._crit_edge39, label %.lr.ph38

43:                                               ; preds = %._crit_edge35
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN2fl6TensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  br label %67

.lr.ph38:                                         ; preds = %41, %55
  %.036 = phi i64 [ %56, %55 ], [ 0, %41 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  %45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.036) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  %46 = call noundef i64 @_ZNKSt6vectorISt8functionIFN2fl6TensorERKS_IS2_SaIS2_EEEESaIS8_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %47 = icmp ult i64 %.036, %46
  br i1 %47, label %48, label %50

48:                                               ; preds = %.lr.ph38
  %49 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorISt8functionIFN2fl6TensorERKS_IS2_SaIS2_EEEESaIS8_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.036) #5
  invoke void @_ZNSt8functionIFN2fl6TensorERKSt6vectorIS1_SaIS1_EEEEC2ERKS8_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %49)
          to label %51 unwind label %59

50:                                               ; preds = %.lr.ph38
  call void @_ZNSt8functionIFN2fl6TensorERKSt6vectorIS1_SaIS1_EEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr null) #5
  br label %51

51:                                               ; preds = %48, %50
  invoke void @_ZN2fl9makeBatchERKSt6vectorINS_6TensorESaIS1_EERKSt8functionIFS1_S5_EE(ptr dead_on_unwind nonnull writable sret(%"class.fl::Tensor") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %52 unwind label %61

52:                                               ; preds = %51
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.036) #5
  %54 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNR2fl6TensoraSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %55 unwind label %63

55:                                               ; preds = %52
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  %56 = add nuw nsw i64 %.036, 1
  %57 = call noundef i64 @_ZNKSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %58 = icmp ult i64 %56, %57
  br i1 %58, label %.lr.ph38, label %._crit_edge39, !llvm.loop !11

59:                                               ; preds = %48
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %66

61:                                               ; preds = %51
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %65

63:                                               ; preds = %52
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  br label %65

65:                                               ; preds = %63, %61
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br label %66

66:                                               ; preds = %65, %59
  %.pn.pn = phi { ptr, i32 } [ %.pn, %65 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %67

._crit_edge39:                                    ; preds = %55, %41
  call void @_ZNSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  ret void

67:                                               ; preds = %66, %43, %40
  %.pn27.pn.pn = phi { ptr, i32 } [ %.pn27.pn, %40 ], [ %.pn.pn, %66 ], [ %44, %43 ]
  call void @_ZNSt6vectorIS_IN2fl6TensorESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  resume { ptr, i32 } %.pn27.pn.pn
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 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 #2 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt8functionIFN2fl6TensorERKSt6vectorIS1_SaIS1_EEEEC2EDn(ptr noundef nonnull align 8 dereferenceable(32), ptr) unnamed_addr #2 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 nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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"}
!10 = distinct !{!10, !9}
!11 = distinct !{!11, !9}


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