; 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.fl::range" = type { i64, %"class.std::optional", i64 }
%"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.base", [7 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<long long>::_Storage", i8 }>
%"union.std::_Optional_payload_base<long long>::_Storage" = type { i64 }
%"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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = 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.fl::Shape" = type { %"class.std::vector.30" }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<fl::Index, std::allocator<fl::Index>>::_Vector_impl" }
%"struct.std::_Vector_base<fl::Index, std::allocator<fl::Index>>::_Vector_impl" = type { %"struct.std::_Vector_base<fl::Index, std::allocator<fl::Index>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fl::Index, std::allocator<fl::Index>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.fl::Index" = type { i32, [4 x i8], %"class.std::variant.40" }
%"class.std::variant.40" = type { %"struct.std::__detail::__variant::_Variant_base.base.57", [7 x i8] }
%"struct.std::__detail::__variant::_Variant_base.base.57" = type { %"struct.std::__detail::__variant::_Move_assign_base.base.56" }
%"struct.std::__detail::__variant::_Move_assign_base.base.56" = type { %"struct.std::__detail::__variant::_Copy_assign_base.base.55" }
%"struct.std::__detail::__variant::_Copy_assign_base.base.55" = type { %"struct.std::__detail::__variant::_Move_ctor_base.base.54" }
%"struct.std::__detail::__variant::_Move_ctor_base.base.54" = type { %"struct.std::__detail::__variant::_Copy_ctor_base.base.53" }
%"struct.std::__detail::__variant::_Copy_ctor_base.base.53" = type { %"struct.std::__detail::__variant::_Variant_storage.base.52" }
%"struct.std::__detail::__variant::_Variant_storage.base.52" = type <{ %"union.std::__detail::__variant::_Variadic_union.47", i8 }>
%"union.std::__detail::__variant::_Variadic_union.47" = type { %"union.std::__detail::__variant::_Variadic_union.48" }
%"union.std::__detail::__variant::_Variadic_union.48" = type { %"struct.std::__detail::__variant::_Uninitialized.49" }
%"struct.std::__detail::__variant::_Uninitialized.49" = type { %"class.fl::range" }
%"class.std::allocator.37" = type { i8 }

@_ZN2flL4spanE = external hidden global %"class.fl::range", align 8
@_ZTISt16invalid_argument = external constant ptr
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [42 x i8], align 1

; 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 ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2fl9makeBatchERKSt6vectorINS_6TensorESaIS1_EERKSt8functionIFS1_S5_EE(ptr dead_on_unwind noalias writable sret(%"class.fl::Tensor") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #4 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector.30", align 8
  %16 = alloca i64, align 8
  %17 = alloca i1, align 1
  %18 = alloca %"class.fl::Shape", align 8
  %19 = alloca %"class.std::vector.30", align 8
  %20 = alloca i64, align 8
  %21 = alloca %"class.std::vector.35", align 8
  %22 = alloca %"struct.fl::Index", align 8
  %23 = alloca %"class.std::allocator.37", align 1
  %24 = alloca %"struct.fl::Index", align 8
  %25 = alloca %"class.fl::Tensor", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call noundef zeroext i1 @_ZNKSt8functionIFN2fl6TensorERKSt6vectorIS1_SaIS1_EEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br i1 %27, label %28, label %31

28:                                               ; preds = %3
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNKSt8functionIFN2fl6TensorERKSt6vectorIS1_SaIS1_EEEEclES6_(ptr dead_on_unwind writable sret(%"class.fl::Tensor") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(24) %30)
  br label %194

31:                                               ; preds = %3
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call noundef zeroext i1 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  br i1 %33, label %34, label %35

34:                                               ; preds = %31
  call void @_ZN2fl6TensorC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br label %194

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef 0) #6
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK2fl6Tensor5shapeEv(ptr noundef nonnull align 8 dereferenceable(16) %37)
  store ptr %38, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %39, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = call ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = call ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  br label %46

46:                                               ; preds = %63, %35
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN2fl6TensorESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %47, label %49, label %48

48:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %65

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN2fl6TensorESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  store ptr %50, ptr %11, align 8, !tbaa !5
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK2fl6Tensor5shapeEv(ptr noundef nonnull align 8 dereferenceable(16) %51)
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = call noundef zeroext i1 @_ZNK2fl5ShapeneERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 8 dereferenceable(24) %53)
  br i1 %54, label %55, label %62

55:                                               ; preds = %49
  %56 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef @.str.5)
          to label %57 unwind label %58

57:                                               ; preds = %55
  call void @__cxa_throw(ptr %56, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #7
  unreachable

58:                                               ; preds = %55
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %12, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %13, align 4
  call void @__cxa_free_exception(ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %193

62:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %63

63:                                               ; preds = %62
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN2fl6TensorESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %46

65:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef 0) #6
  %68 = call noundef i64 @_ZNK2fl6Tensor8elementsEv(ptr noundef nonnull align 8 dereferenceable(16) %67)
  %69 = icmp ugt i64 %68, 1
  br i1 %69, label %70, label %73

70:                                               ; preds = %65
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = call noundef i32 @_ZNK2fl5Shape4ndimEv(ptr noundef nonnull align 8 dereferenceable(24) %71)
  br label %74

73:                                               ; preds = %65
  br label %74

74:                                               ; preds = %73, %70
  %75 = phi i32 [ %72, %70 ], [ 0, %73 ]
  store i32 %75, ptr %14, align 4, !tbaa !9
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = icmp sge i32 %76, 4
  br i1 %77, label %78, label %85

78:                                               ; preds = %74
  %79 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %79, ptr noundef @.str.6)
          to label %80 unwind label %81

80:                                               ; preds = %78
  call void @__cxa_throw(ptr %79, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #7
  unreachable

81:                                               ; preds = %78
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %12, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %13, align 4
  call void @__cxa_free_exception(ptr %79) #6
  br label %192

85:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK2fl5Shape3getEv(ptr noundef nonnull align 8 dereferenceable(24) %86)
  call void @_ZNSt6vectorIxSaIxEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %87)
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %92 = icmp ugt i64 %90, %91
  br i1 %92, label %93, label %99

93:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 1, ptr %16, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %94 unwind label %95

94:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %99

95:                                               ; preds = %93
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %12, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %191

99:                                               ; preds = %94, %85
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %100) #6
  %102 = load i32, ptr %14, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %103) #6
  store i64 %101, ptr %104, align 8, !tbaa !11
  store i1 false, ptr %17, align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %105 unwind label %118

105:                                              ; preds = %99
  invoke void @_ZN2fl5ShapeC1ESt6vectorIxSaIxEE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef %19)
          to label %106 unwind label %122

106:                                              ; preds = %105
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef 0) #6
  %109 = invoke noundef i32 @_ZNK2fl6Tensor4typeEv(ptr noundef nonnull align 8 dereferenceable(16) %108)
          to label %110 unwind label %126

110:                                              ; preds = %106
  invoke void @_ZN2fl6TensorC1ERKNS_5ShapeENS_5dtypeE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef %109)
          to label %111 unwind label %126

111:                                              ; preds = %110
  call void @_ZN2fl5ShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store i64 0, ptr %20, align 8, !tbaa !13
  br label %112

112:                                              ; preds = %151, %111
  %113 = load i64, ptr %20, align 8, !tbaa !13
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %114) #6
  %116 = icmp ult i64 %113, %115
  br i1 %116, label %132, label %117

117:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %187

118:                                              ; preds = %99
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %12, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %13, align 4
  br label %131

122:                                              ; preds = %105
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %12, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %13, align 4
  br label %130

126:                                              ; preds = %110, %106
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %12, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %13, align 4
  call void @_ZN2fl5ShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br label %130

130:                                              ; preds = %126, %122
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br label %131

131:                                              ; preds = %130, %118
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  br label %191

132:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %133 = invoke noundef i32 @_ZNK2fl6Tensor4ndimEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %134 unwind label %154

134:                                              ; preds = %132
  %135 = sext i32 %133 to i64
  call void @llvm.lifetime.start.p0(i64 48, ptr %22) #6
  invoke void @_ZN2fl5IndexC1ERKNS_5rangeE(ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef nonnull align 8 dereferenceable(32) @_ZN2flL4spanE)
          to label %136 unwind label %158

136:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  call void @_ZNSaIN2fl5IndexEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  invoke void @_ZNSt6vectorIN2fl5IndexESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %135, ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %137 unwind label %162

137:                                              ; preds = %136
  call void @_ZNSt15__new_allocatorIN2fl5IndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %24) #6
  %138 = load i64, ptr %20, align 8, !tbaa !13
  invoke void @_ZN2fl5IndexC1Ex(ptr noundef nonnull align 8 dereferenceable(48) %24, i64 noundef %138)
          to label %139 unwind label %167

139:                                              ; preds = %137
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN2fl5IndexESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %141) #6
  %143 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN2fl5IndexaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %142, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %144 unwind label %171

144:                                              ; preds = %139
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #6
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = load i64, ptr %20, align 8, !tbaa !13
  %147 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %145, i64 noundef %146) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  invoke void @_ZNK2fl6TensorclERKSt6vectorINS_5IndexESaIS2_EE(ptr dead_on_unwind writable sret(%"class.fl::Tensor") align 8 %25, ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %148 unwind label %176

148:                                              ; preds = %144
  %149 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNO2fl6TensoraSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %147)
          to label %150 unwind label %180

150:                                              ; preds = %148
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  call void @_ZNSt6vectorIN2fl5IndexESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br label %151

151:                                              ; preds = %150
  %152 = load i64, ptr %20, align 8, !tbaa !13
  %153 = add i64 %152, 1
  store i64 %153, ptr %20, align 8, !tbaa !13
  br label %112, !llvm.loop !15

154:                                              ; preds = %132
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %12, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %13, align 4
  br label %186

158:                                              ; preds = %134
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %12, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %13, align 4
  br label %166

162:                                              ; preds = %136
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %12, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIN2fl5IndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #6
  br label %166

166:                                              ; preds = %162, %158
  call void @llvm.lifetime.end.p0(i64 48, ptr %22) #6
  br label %186

167:                                              ; preds = %137
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %12, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %13, align 4
  br label %175

171:                                              ; preds = %139
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %12, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %13, align 4
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #6
  br label %175

175:                                              ; preds = %171, %167
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #6
  br label %185

176:                                              ; preds = %144
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %12, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %13, align 4
  br label %184

180:                                              ; preds = %148
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %12, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %13, align 4
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #6
  br label %184

184:                                              ; preds = %180, %176
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  br label %185

185:                                              ; preds = %184, %175
  call void @_ZNSt6vectorIN2fl5IndexESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br label %186

186:                                              ; preds = %185, %166, %154
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #6
  br label %191

187:                                              ; preds = %117
  store i1 true, ptr %17, align 1
  %188 = load i1, ptr %17, align 1
  br i1 %188, label %190, label %189

189:                                              ; preds = %187
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #6
  br label %190

190:                                              ; preds = %189, %187
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %194

191:                                              ; preds = %186, %131, %95
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %192

192:                                              ; preds = %191, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %193

193:                                              ; preds = %192, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %195

194:                                              ; preds = %190, %34, %28
  ret void

195:                                              ; preds = %193
  %196 = load ptr, ptr %12, align 8
  %197 = load i32, ptr %13, align 4
  %198 = insertvalue { ptr, i32 } poison, ptr %196, 0
  %199 = insertvalue { ptr, i32 } %198, i32 %197, 1
  resume { ptr, i32 } %199
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN2fl6TensorERKSt6vectorIS1_SaIS1_EEEEclES6_(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(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

declare void @_ZN2fl6TensorC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK2fl6Tensor5shapeEv(ptr noundef nonnull align 8 dereferenceable(16)) #1

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

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

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

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

declare noundef zeroext i1 @_ZNK2fl5ShapeneERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

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

declare noundef i64 @_ZNK2fl6Tensor8elementsEv(ptr noundef nonnull align 8 dereferenceable(16)) #1

declare noundef i32 @_ZNK2fl5Shape4ndimEv(ptr noundef nonnull align 8 dereferenceable(24)) #1

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK2fl5Shape3getEv(ptr noundef nonnull align 8 dereferenceable(24)) #1

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

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

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

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

declare void @_ZN2fl5ShapeC1ESt6vectorIxSaIxEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #1

declare noundef i32 @_ZNK2fl6Tensor4typeEv(ptr noundef nonnull align 8 dereferenceable(16)) #1

declare void @_ZN2fl6TensorC1ERKNS_5ShapeENS_5dtypeE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) unnamed_addr #1

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

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

declare noundef i32 @_ZNK2fl6Tensor4ndimEv(ptr noundef nonnull align 8 dereferenceable(16)) #1

declare void @_ZN2fl5IndexC1ERKNS_5rangeE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5 align 2

declare void @_ZN2fl5IndexC1Ex(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN2fl5IndexaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

declare void @_ZNK2fl6TensorclERKSt6vectorINS_5IndexESaIS2_EE(ptr dead_on_unwind writable sret(%"class.fl::Tensor") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) #1

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNO2fl6TensoraSERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 #4 = { 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 #5 = { inlinehint 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 #6 = { nounwind }
attributes #7 = { noreturn }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"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.fl::range" = type { i64, %"class.std::optional", i64 }
%"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.base", [7 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<long long>::_Storage", i8 }>
%"union.std::_Optional_payload_base<long long>::_Storage" = type { i64 }
%"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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = 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.fl::Shape" = type { %"class.std::vector.30" }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<fl::Index, std::allocator<fl::Index>>::_Vector_impl" }
%"struct.std::_Vector_base<fl::Index, std::allocator<fl::Index>>::_Vector_impl" = type { %"struct.std::_Vector_base<fl::Index, std::allocator<fl::Index>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fl::Index, std::allocator<fl::Index>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.fl::Index" = type { i32, [4 x i8], %"class.std::variant.40" }
%"class.std::variant.40" = type { %"struct.std::__detail::__variant::_Variant_base.base.57", [7 x i8] }
%"struct.std::__detail::__variant::_Variant_base.base.57" = type { %"struct.std::__detail::__variant::_Move_assign_base.base.56" }
%"struct.std::__detail::__variant::_Move_assign_base.base.56" = type { %"struct.std::__detail::__variant::_Copy_assign_base.base.55" }
%"struct.std::__detail::__variant::_Copy_assign_base.base.55" = type { %"struct.std::__detail::__variant::_Move_ctor_base.base.54" }
%"struct.std::__detail::__variant::_Move_ctor_base.base.54" = type { %"struct.std::__detail::__variant::_Copy_ctor_base.base.53" }
%"struct.std::__detail::__variant::_Copy_ctor_base.base.53" = type { %"struct.std::__detail::__variant::_Variant_storage.base.52" }
%"struct.std::__detail::__variant::_Variant_storage.base.52" = type <{ %"union.std::__detail::__variant::_Variadic_union.47", i8 }>
%"union.std::__detail::__variant::_Variadic_union.47" = type { %"union.std::__detail::__variant::_Variadic_union.48" }
%"union.std::__detail::__variant::_Variadic_union.48" = type { %"struct.std::__detail::__variant::_Uninitialized.49" }
%"struct.std::__detail::__variant::_Uninitialized.49" = type { %"class.fl::range" }
%"class.std::allocator.37" = type { i8 }

@_ZN2flL4spanE = external hidden global %"class.fl::range", align 8
@_ZTISt16invalid_argument = external constant ptr
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [42 x i8], align 1

; 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 ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2fl9makeBatchERKSt6vectorINS_6TensorESaIS1_EERKSt8functionIFS1_S5_EE(ptr dead_on_unwind noalias writable sret(%"class.fl::Tensor") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.std::vector.30", align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.fl::Shape", align 8
  %9 = alloca %"class.std::vector.30", align 8
  %10 = alloca %"class.std::vector.35", align 8
  %11 = alloca %"struct.fl::Index", align 8
  %12 = alloca %"class.std::allocator.37", align 1
  %13 = alloca %"struct.fl::Index", align 8
  %14 = alloca %"class.fl::Tensor", align 8
  %15 = tail call noundef zeroext i1 @_ZNKSt8functionIFN2fl6TensorERKSt6vectorIS1_SaIS1_EEEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  br i1 %15, label %16, label %17

16:                                               ; preds = %3
  tail call void @_ZNKSt8functionIFN2fl6TensorERKSt6vectorIS1_SaIS1_EEEEclES6_(ptr dead_on_unwind writable sret(%"class.fl::Tensor") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(24) %1)
  br label %114

17:                                               ; preds = %3
  %18 = tail call noundef zeroext i1 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  br i1 %18, label %19, label %20

19:                                               ; preds = %17
  tail call void @_ZN2fl6TensorC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br label %114

20:                                               ; preds = %17
  %21 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %22 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK2fl6Tensor5shapeEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %23 = tail call ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  store ptr %23, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %24 = tail call ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  store ptr %24, ptr %5, align 8
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN2fl6TensorESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %25, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %37, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %27 = call noundef i64 @_ZNK2fl6Tensor8elementsEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
  %28 = icmp ugt i64 %27, 1
  br i1 %28, label %40, label %.thread

.lr.ph:                                           ; preds = %20, %37
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN2fl6TensorESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK2fl6Tensor5shapeEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
  %31 = call noundef zeroext i1 @_ZNK2fl5ShapeneERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %22)
  br i1 %31, label %32, label %37

32:                                               ; preds = %.lr.ph
  %33 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull @.str.5)
          to label %34 unwind label %35

34:                                               ; preds = %32
  call void @__cxa_throw(ptr nonnull %33, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #7
  unreachable

35:                                               ; preds = %32
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %113

37:                                               ; preds = %.lr.ph
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN2fl6TensorESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN2fl6TensorESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %39, label %.lr.ph, label %._crit_edge

40:                                               ; preds = %._crit_edge
  %41 = call noundef i32 @_ZNK2fl5Shape4ndimEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
  %42 = icmp sgt i32 %41, 3
  br i1 %42, label %43, label %.thread

43:                                               ; preds = %40
  %44 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull @.str.6)
          to label %45 unwind label %46

45:                                               ; preds = %43
  call void @__cxa_throw(ptr nonnull %44, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #7
  unreachable

46:                                               ; preds = %43
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %44) #6
  br label %113

.thread:                                          ; preds = %._crit_edge, %40
  %48 = phi i32 [ %41, %40 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  %49 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK2fl5Shape3getEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
  call void @_ZNSt6vectorIxSaIxEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %49)
  %50 = add nsw i32 %48, 1
  %51 = sext i32 %50 to i64
  %52 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %53 = icmp ult i64 %52, %51
  br i1 %53, label %54, label %58

54:                                               ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  store i64 1, ptr %7, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %55 unwind label %56

55:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %58

56:                                               ; preds = %54
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %112

58:                                               ; preds = %55, %.thread
  %59 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %60 = sext i32 %48 to i64
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %60) #6
  store i64 %59, ptr %61, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  invoke void @_ZNSt6vectorIxSaIxEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %62 unwind label %69

62:                                               ; preds = %58
  invoke void @_ZN2fl5ShapeC1ESt6vectorIxSaIxEE(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull %9)
          to label %63 unwind label %71

63:                                               ; preds = %62
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %65 = invoke noundef i32 @_ZNK2fl6Tensor4typeEv(ptr noundef nonnull align 8 dereferenceable(16) %64)
          to label %66 unwind label %73

66:                                               ; preds = %63
  invoke void @_ZN2fl6TensorC1ERKNS_5ShapeENS_5dtypeE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(24) %8, i32 noundef %65)
          to label %67 unwind label %73

67:                                               ; preds = %66
  call void @_ZN2fl5ShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  %68 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not = icmp eq i64 %68, 0
  br i1 %.not, label %._crit_edge57, label %.lr.ph56

69:                                               ; preds = %58
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %76

71:                                               ; preds = %62
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %66, %63
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2fl5ShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %75

75:                                               ; preds = %73, %71
  %.pn = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br label %76

76:                                               ; preds = %75, %69
  %.pn.pn = phi { ptr, i32 } [ %.pn, %75 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %112

.lr.ph56:                                         ; preds = %67, %89
  %.054 = phi i64 [ %90, %89 ], [ 0, %67 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  %77 = invoke noundef i32 @_ZNK2fl6Tensor4ndimEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %78 unwind label %93

78:                                               ; preds = %.lr.ph56
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #6
  invoke void @_ZN2fl5IndexC1ERKNS_5rangeE(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(32) @_ZN2flL4spanE)
          to label %79 unwind label %95

79:                                               ; preds = %78
  %80 = sext i32 %77 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIN2fl5IndexEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt6vectorIN2fl5IndexESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %80, ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %81 unwind label %97

81:                                               ; preds = %79
  call void @_ZNSt15__new_allocatorIN2fl5IndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %13) #6
  invoke void @_ZN2fl5IndexC1Ex(ptr noundef nonnull align 8 dereferenceable(48) %13, i64 noundef %.054)
          to label %82 unwind label %100

82:                                               ; preds = %81
  %83 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN2fl5IndexESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %60) #6
  %84 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN2fl5IndexaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %83, ptr noundef nonnull align 8 dereferenceable(48) %13)
          to label %85 unwind label %102

85:                                               ; preds = %82
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #6
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.054) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  invoke void @_ZNK2fl6TensorclERKSt6vectorINS_5IndexESaIS2_EE(ptr dead_on_unwind nonnull writable sret(%"class.fl::Tensor") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %87 unwind label %105

87:                                               ; preds = %85
  %88 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNO2fl6TensoraSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %86)
          to label %89 unwind label %107

89:                                               ; preds = %87
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  call void @_ZNSt6vectorIN2fl5IndexESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  %90 = add nuw i64 %.054, 1
  %91 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %92 = icmp ult i64 %90, %91
  br i1 %92, label %.lr.ph56, label %._crit_edge57, !llvm.loop !9

93:                                               ; preds = %.lr.ph56
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %111

95:                                               ; preds = %78
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %99

97:                                               ; preds = %79
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN2fl5IndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #6
  br label %99

99:                                               ; preds = %97, %95
  %.pn41 = phi { ptr, i32 } [ %98, %97 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #6
  br label %111

100:                                              ; preds = %81
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %104

102:                                              ; preds = %82
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #6
  br label %104

104:                                              ; preds = %102, %100
  %.pn43 = phi { ptr, i32 } [ %103, %102 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #6
  br label %110

105:                                              ; preds = %85
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %109

107:                                              ; preds = %87
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  br label %109

109:                                              ; preds = %107, %105
  %.pn45 = phi { ptr, i32 } [ %108, %107 ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  br label %110

110:                                              ; preds = %109, %104
  %.pn45.pn = phi { ptr, i32 } [ %.pn45, %109 ], [ %.pn43, %104 ]
  call void @_ZNSt6vectorIN2fl5IndexESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %111

111:                                              ; preds = %110, %99, %93
  %.pn45.pn.pn = phi { ptr, i32 } [ %.pn45.pn, %110 ], [ %.pn41, %99 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #6
  br label %112

._crit_edge57:                                    ; preds = %89, %67
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %114

112:                                              ; preds = %111, %76, %56
  %.pn45.pn.pn.pn = phi { ptr, i32 } [ %.pn45.pn.pn, %111 ], [ %.pn.pn, %76 ], [ %57, %56 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %113

113:                                              ; preds = %46, %112, %35
  %.pn52 = phi { ptr, i32 } [ %36, %35 ], [ %47, %46 ], [ %.pn45.pn.pn.pn, %112 ]
  resume { ptr, i32 } %.pn52

114:                                              ; preds = %._crit_edge57, %19, %16
  ret void
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFN2fl6TensorERKSt6vectorIS1_SaIS1_EEEEclES6_(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(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

declare void @_ZN2fl6TensorC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK2fl6Tensor5shapeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

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

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

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

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

declare noundef zeroext i1 @_ZNK2fl5ShapeneERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

declare noundef i64 @_ZNK2fl6Tensor8elementsEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

declare noundef i32 @_ZNK2fl5Shape4ndimEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZNK2fl5Shape3getEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

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

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

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

declare void @_ZN2fl5ShapeC1ESt6vectorIxSaIxEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) unnamed_addr #1

declare noundef i32 @_ZNK2fl6Tensor4typeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

declare void @_ZN2fl6TensorC1ERKNS_5ShapeENS_5dtypeE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) unnamed_addr #1

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

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

declare noundef i32 @_ZNK2fl6Tensor4ndimEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

declare void @_ZN2fl5IndexC1ERKNS_5rangeE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5 align 2

declare void @_ZN2fl5IndexC1Ex(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN2fl5IndexaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 align 2

declare void @_ZNK2fl6TensorclERKSt6vectorINS_5IndexESaIS2_EE(ptr dead_on_unwind writable sret(%"class.fl::Tensor") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNO2fl6TensoraSERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 #4 = { 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 #5 = { inlinehint 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 #6 = { nounwind }
attributes #7 = { noreturn }

!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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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