; LLVM IR from flashlight/flashlight :: flashlight/fl/dataset/TensorDataset.ll (ZNK2fl13TensorDataset3getEl)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::allocator" = type { i8 }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = 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.11" }
%"class.std::variant.11" = type { %"struct.std::__detail::__variant::_Variant_base.base.28", [7 x i8] }
%"struct.std::__detail::__variant::_Variant_base.base.28" = type { %"struct.std::__detail::__variant::_Move_assign_base.base.27" }
%"struct.std::__detail::__variant::_Move_assign_base.base.27" = type { %"struct.std::__detail::__variant::_Copy_assign_base.base.26" }
%"struct.std::__detail::__variant::_Copy_assign_base.base.26" = type { %"struct.std::__detail::__variant::_Move_ctor_base.base.25" }
%"struct.std::__detail::__variant::_Move_ctor_base.base.25" = type { %"struct.std::__detail::__variant::_Copy_ctor_base.base.24" }
%"struct.std::__detail::__variant::_Copy_ctor_base.base.24" = type { %"struct.std::__detail::__variant::_Variant_storage.base.23" }
%"struct.std::__detail::__variant::_Variant_storage.base.23" = type <{ %"union.std::__detail::__variant::_Variadic_union.18", i8 }>
%"union.std::__detail::__variant::_Variadic_union.18" = type { %"union.std::__detail::__variant::_Variadic_union.19" }
%"union.std::__detail::__variant::_Variadic_union.19" = type { %"struct.std::__detail::__variant::_Uninitialized.20" }
%"struct.std::__detail::__variant::_Uninitialized.20" = type { %"class.fl::range" }
%"class.std::allocator.8" = 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.5" }
%"struct.std::_Head_base.5" = type { ptr }
%"class.fl::TensorDataset" = type { %"class.fl::Dataset", %"class.std::vector", i64 }
%"class.fl::Dataset" = type { ptr }

@_ZN2flL4spanE = external hidden global %"class.fl::range", align 8

; 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(...)

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

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

; 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 uwtable
define dso_local void @_ZNK2fl13TensorDataset3getEl(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i1, align 1
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.std::vector.6", align 8
  %14 = alloca %"struct.fl::Index", align 8
  %15 = alloca %"class.std::allocator.8", align 1
  %16 = alloca i32, align 4
  %17 = alloca %"struct.fl::Index", align 8
  %18 = alloca %"class.fl::Tensor", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %19 = load ptr, ptr %5, align 8
  %20 = load i64, ptr %6, align 8, !tbaa !9
  call void @_ZNK2fl7Dataset16checkIndexBoundsEl(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef %20)
  store i1 false, ptr %7, align 1
  %21 = getelementptr inbounds %"class.fl::TensorDataset", ptr %19, i32 0, i32 1
  %22 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @_ZNSaIN2fl6TensorEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt6vectorIN2fl6TensorESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %22, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %23 unwind label %30

23:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorIN2fl6TensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %24

24:                                               ; preds = %105, %23
  %25 = load i64, ptr %11, align 8, !tbaa !9
  %26 = getelementptr inbounds %"class.fl::TensorDataset", ptr %19, i32 0, i32 1
  %27 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  %28 = icmp ult i64 %25, %27
  br i1 %28, label %34, label %29

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

30:                                               ; preds = %3
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %9, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIN2fl6TensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  br label %114

34:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %35 = getelementptr inbounds %"class.fl::TensorDataset", ptr %19, i32 0, i32 1
  %36 = load i64, ptr %11, align 8, !tbaa !9
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %36) #6
  store ptr %37, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = invoke noundef i32 @_ZNK2fl6Tensor4ndimEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %40 unwind label %69

40:                                               ; preds = %34
  %41 = sext i32 %39 to i64
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #6
  invoke void @_ZN2fl5IndexC1ERKNS_5rangeE(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(32) @_ZN2flL4spanE)
          to label %42 unwind label %73

42:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @_ZNSaIN2fl5IndexEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt6vectorIN2fl5IndexESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %41, ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %43 unwind label %77

43:                                               ; preds = %42
  call void @_ZNSt15__new_allocatorIN2fl5IndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = invoke noundef i32 @_ZNK2fl6Tensor4ndimEv(ptr noundef nonnull align 8 dereferenceable(16) %44)
          to label %46 unwind label %82

46:                                               ; preds = %43
  %47 = sub nsw i32 %45, 1
  store i32 %47, ptr %16, align 4, !tbaa !11
  %48 = load i64, ptr %6, align 8, !tbaa !9
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = load i32, ptr %16, align 4, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = invoke noundef i64 @_ZNK2fl6Tensor3dimEm(ptr noundef nonnull align 8 dereferenceable(16) %49, i64 noundef %51)
          to label %53 unwind label %82

53:                                               ; preds = %46
  %54 = icmp slt i64 %48, %52
  br i1 %54, label %55, label %104

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #6
  %56 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZN2fl5IndexC1Ex(ptr noundef nonnull align 8 dereferenceable(48) %17, i64 noundef %56)
          to label %57 unwind label %86

57:                                               ; preds = %55
  %58 = load i32, ptr %16, align 4, !tbaa !11
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN2fl5IndexESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %59) #6
  %61 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN2fl5IndexaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %60, ptr noundef nonnull align 8 dereferenceable(48) %17)
          to label %62 unwind label %90

62:                                               ; preds = %57
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZNK2fl6TensorclERKSt6vectorINS_5IndexESaIS2_EE(ptr dead_on_unwind writable sret(%"class.fl::Tensor") align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %63, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %64 unwind label %95

64:                                               ; preds = %62
  %65 = load i64, ptr %11, align 8, !tbaa !9
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %65) #6
  %67 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNR2fl6TensoraSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %68 unwind label %99

68:                                               ; preds = %64
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  br label %104

69:                                               ; preds = %34
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  br label %109

73:                                               ; preds = %40
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %9, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %10, align 4
  br label %81

77:                                               ; preds = %42
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %9, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIN2fl5IndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  br label %81

81:                                               ; preds = %77, %73
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #6
  br label %109

82:                                               ; preds = %46, %43
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %9, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %10, align 4
  br label %108

86:                                               ; preds = %55
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %9, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %10, align 4
  br label %94

90:                                               ; preds = %57
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %9, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %10, align 4
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  br label %94

94:                                               ; preds = %90, %86
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #6
  br label %108

95:                                               ; preds = %62
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %9, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %10, align 4
  br label %103

99:                                               ; preds = %64
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %9, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %10, align 4
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  br label %103

103:                                              ; preds = %99, %95
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  br label %108

104:                                              ; preds = %68, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @_ZNSt6vectorIN2fl5IndexESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %105

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

108:                                              ; preds = %103, %94, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @_ZNSt6vectorIN2fl5IndexESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %109

109:                                              ; preds = %108, %81, %69
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %114

110:                                              ; preds = %29
  store i1 true, ptr %7, align 1
  %111 = load i1, ptr %7, align 1
  br i1 %111, label %113, label %112

112:                                              ; preds = %110
  call void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %113

113:                                              ; preds = %112, %110
  ret void

114:                                              ; preds = %109, %30
  %115 = load ptr, ptr %9, align 8
  %116 = load i32, ptr %10, align 4
  %117 = insertvalue { ptr, i32 } poison, ptr %115, 0
  %118 = insertvalue { ptr, i32 } %117, i32 %116, 1
  resume { ptr, i32 } %118
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2fl7Dataset16checkIndexBoundsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 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 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 #3 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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 #2 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 #3 align 2

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

; 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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN2fl5IndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { 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 = { 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 #4 = { 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 #5 = { 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 #6 = { 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 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::allocator" = type { i8 }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = 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.11" }
%"class.std::variant.11" = type { %"struct.std::__detail::__variant::_Variant_base.base.28", [7 x i8] }
%"struct.std::__detail::__variant::_Variant_base.base.28" = type { %"struct.std::__detail::__variant::_Move_assign_base.base.27" }
%"struct.std::__detail::__variant::_Move_assign_base.base.27" = type { %"struct.std::__detail::__variant::_Copy_assign_base.base.26" }
%"struct.std::__detail::__variant::_Copy_assign_base.base.26" = type { %"struct.std::__detail::__variant::_Move_ctor_base.base.25" }
%"struct.std::__detail::__variant::_Move_ctor_base.base.25" = type { %"struct.std::__detail::__variant::_Copy_ctor_base.base.24" }
%"struct.std::__detail::__variant::_Copy_ctor_base.base.24" = type { %"struct.std::__detail::__variant::_Variant_storage.base.23" }
%"struct.std::__detail::__variant::_Variant_storage.base.23" = type <{ %"union.std::__detail::__variant::_Variadic_union.18", i8 }>
%"union.std::__detail::__variant::_Variadic_union.18" = type { %"union.std::__detail::__variant::_Variadic_union.19" }
%"union.std::__detail::__variant::_Variadic_union.19" = type { %"struct.std::__detail::__variant::_Uninitialized.20" }
%"struct.std::__detail::__variant::_Uninitialized.20" = type { %"class.fl::range" }
%"class.std::allocator.8" = 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.5" }
%"struct.std::_Head_base.5" = type { ptr }

@_ZN2flL4spanE = external hidden global %"class.fl::range", align 8

; 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(...)

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

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

; 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 uwtable
define dso_local void @_ZNK2fl13TensorDataset3getEl(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1, i64 noundef %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::vector.6", align 8
  %6 = alloca %"struct.fl::Index", align 8
  %7 = alloca %"class.std::allocator.8", align 1
  %8 = alloca %"struct.fl::Index", align 8
  %9 = alloca %"class.fl::Tensor", align 8
  tail call void @_ZNK2fl7Dataset16checkIndexBoundsEl(ptr noundef nonnull align 8 dereferenceable(8) %1, i64 noundef %2)
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = tail call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIN2fl6TensorEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorIN2fl6TensorESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %11, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %12 unwind label %14

12:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorIN2fl6TensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  %13 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %.not = icmp eq i64 %13, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

14:                                               ; preds = %3
  %15 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN2fl6TensorEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %63

.lr.ph:                                           ; preds = %12, %57
  %.01632 = phi i64 [ %58, %57 ], [ 0, %12 ]
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %.01632) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %17 = invoke noundef i32 @_ZNK2fl6Tensor4ndimEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %18 unwind label %38

18:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #6
  invoke void @_ZN2fl5IndexC1ERKNS_5rangeE(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(32) @_ZN2flL4spanE)
          to label %19 unwind label %40

19:                                               ; preds = %18
  %20 = sext i32 %17 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIN2fl5IndexEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorIN2fl5IndexESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %20, ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %21 unwind label %42

21:                                               ; preds = %19
  call void @_ZNSt15__new_allocatorIN2fl5IndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  %22 = invoke noundef i32 @_ZNK2fl6Tensor4ndimEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %23 unwind label %45

23:                                               ; preds = %21
  %24 = add nsw i32 %22, -1
  %25 = sext i32 %24 to i64
  %26 = invoke noundef i64 @_ZNK2fl6Tensor3dimEm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef %25)
          to label %27 unwind label %45

27:                                               ; preds = %23
  %28 = icmp sgt i64 %26, %2
  br i1 %28, label %29, label %57

29:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #6
  invoke void @_ZN2fl5IndexC1Ex(ptr noundef nonnull align 8 dereferenceable(48) %8, i64 noundef %2)
          to label %30 unwind label %47

30:                                               ; preds = %29
  %31 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN2fl5IndexESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %25) #6
  %32 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN2fl5IndexaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %31, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %33 unwind label %49

33:                                               ; preds = %30
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  invoke void @_ZNK2fl6TensorclERKSt6vectorINS_5IndexESaIS2_EE(ptr dead_on_unwind nonnull writable sret(%"class.fl::Tensor") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %34 unwind label %52

34:                                               ; preds = %33
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN2fl6TensorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.01632) #6
  %36 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNR2fl6TensoraSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %37 unwind label %54

37:                                               ; preds = %34
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %57

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

40:                                               ; preds = %18
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %44

42:                                               ; preds = %19
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN2fl5IndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  br label %44

44:                                               ; preds = %42, %40
  %.pn = phi { ptr, i32 } [ %43, %42 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  br label %62

45:                                               ; preds = %23, %21
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %61

47:                                               ; preds = %29
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %51

49:                                               ; preds = %30
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2fl5IndexD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #6
  br label %51

51:                                               ; preds = %49, %47
  %.pn25 = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #6
  br label %61

52:                                               ; preds = %33
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %56

54:                                               ; preds = %34
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN2fl6TensorD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  br label %56

56:                                               ; preds = %54, %52
  %.pn27 = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %61

57:                                               ; preds = %37, %27
  call void @_ZNSt6vectorIN2fl5IndexESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  %58 = add nuw nsw i64 %.01632, 1
  %59 = call noundef i64 @_ZNKSt6vectorIN2fl6TensorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %60 = icmp ult i64 %58, %59
  br i1 %60, label %.lr.ph, label %._crit_edge, !llvm.loop !5

61:                                               ; preds = %56, %51, %45
  %.pn27.pn = phi { ptr, i32 } [ %.pn27, %56 ], [ %.pn25, %51 ], [ %46, %45 ]
  call void @_ZNSt6vectorIN2fl5IndexESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %62

62:                                               ; preds = %61, %44, %38
  %.pn27.pn.pn = phi { ptr, i32 } [ %.pn27.pn, %61 ], [ %.pn, %44 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIN2fl6TensorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %63

._crit_edge:                                      ; preds = %57, %12
  ret void

63:                                               ; preds = %62, %14
  %.pn27.pn.pn.pn = phi { ptr, i32 } [ %.pn27.pn.pn, %62 ], [ %15, %14 ]
  resume { ptr, i32 } %.pn27.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2fl7Dataset16checkIndexBoundsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 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 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 #3 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 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 #2 align 2

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 #2 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 #3 align 2

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

; 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

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 #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIN2fl5IndexEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { 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 = { 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 #4 = { 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 #5 = { 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 #6 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


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