; LLVM IR from thepowersgang/mrustc :: src/mir/mir_builder.ll (ZNK8VarState5cloneEv)

; 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.VarState = type { i32, [4 x i8], %"union.VarState::DataUnion" }
%"union.VarState::DataUnion" = type { i32, [28 x i8] }
%"struct.VarState::Data_Valid" = type { i8 }
%"struct.VarState::Data_MovedOut" = type <{ %"class.std::unique_ptr.31", i32, [4 x i8] }>
%"class.std::unique_ptr.31" = type { %"struct.std::__uniq_ptr_data.32" }
%"struct.std::__uniq_ptr_data.32" = type { %"class.std::__uniq_ptr_impl.33" }
%"class.std::__uniq_ptr_impl.33" = type { %"class.std::tuple.34" }
%"class.std::tuple.34" = type { %"struct.std::_Tuple_impl.35" }
%"struct.std::_Tuple_impl.35" = type { %"struct.std::_Head_base.38" }
%"struct.std::_Head_base.38" = type { ptr }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl" }
%"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl" = type { %"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.596" = type { ptr }
%"struct.VarState::Data_Partial" = type <{ %"class.std::vector.26", i32, [4 x i8] }>

@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr
@__PRETTY_FUNCTION__._ZNK8VarState5cloneEv = external hidden unnamed_addr constant [33 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_throw(ptr, ptr, ptr)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8VarState3tagEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8VarStateC2E11InvalidType(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK8VarState5cloneEv(ptr dead_on_unwind noalias writable sret(%class.VarState) align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.VarState::Data_Valid", align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.VarState::Data_MovedOut", align 8
  %11 = alloca %class.VarState, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::vector.26", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.596", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.596", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %class.VarState, align 8
  %21 = alloca %"struct.VarState::Data_Partial", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8
  %23 = call noundef i32 @_ZNK8VarState3tagEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  switch i32 %23, label %108 [
    i32 0, label %24
    i32 1, label %25
    i32 5, label %30
    i32 4, label %34
    i32 3, label %39
    i32 2, label %61
  ]

24:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef 2357, ptr noundef @__PRETTY_FUNCTION__._ZNK8VarState5cloneEv) #5
  unreachable

25:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState10as_InvalidEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  store ptr %26, ptr %5, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = load i32, ptr %28, align 4, !tbaa !9
  call void @_ZN8VarStateC2E11InvalidType(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %29)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %110

30:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %31 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK8VarState8as_ValidEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  store ptr %31, ptr %6, align 8, !tbaa !5
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN8VarStateC2ENS_10Data_ValidE(ptr noundef nonnull align 8 dereferenceable(40) %0)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %110

34:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState11as_OptionalEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  store ptr %35, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load i32, ptr %37, align 4, !tbaa !11
  call void @_ZN8VarStateC2Ej(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %38)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %110

39:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %40 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK8VarState11as_MovedOutEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  store ptr %40, ptr %9, align 8, !tbaa !5
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.VarState::Data_MovedOut", ptr %10, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #6
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.VarState::Data_MovedOut", ptr %43, i32 0, i32 0
  %45 = call noundef ptr @_ZNKSt10unique_ptrI8VarStateSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %44) #6
  call void @_ZNK8VarState5cloneEv(ptr dead_on_unwind writable sret(%class.VarState) align 8 %11, ptr noundef nonnull align 8 dereferenceable(40) %45)
  invoke void @_Z15make_unique_ptrI8VarStateESt10unique_ptrIT_St14default_deleteIS2_EEOS2_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.31") align 8 %42, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %46 unwind label %52

46:                                               ; preds = %39
  %47 = getelementptr inbounds %"struct.VarState::Data_MovedOut", ptr %10, i32 0, i32 1
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.VarState::Data_MovedOut", ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 8, !tbaa !13
  store i32 %50, ptr %47, align 8, !tbaa !13
  invoke void @_ZN8VarState13make_MovedOutENS_13Data_MovedOutE(ptr dead_on_unwind writable sret(%class.VarState) align 8 %0, ptr noundef %10)
          to label %51 unwind label %56

51:                                               ; preds = %46
  call void @_ZN8VarState13Data_MovedOutD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %10) #6
  call void @_ZN8VarStateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %110

52:                                               ; preds = %39
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %12, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %13, align 4
  br label %60

56:                                               ; preds = %46
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %12, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %13, align 4
  call void @_ZN8VarState13Data_MovedOutD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %10) #6
  br label %60

60:                                               ; preds = %56, %52
  call void @_ZN8VarStateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %111

61:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %62 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZNK8VarState10as_PartialEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  store ptr %62, ptr %14, align 8, !tbaa !5
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  call void @_ZNSt6vectorI8VarStateSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.VarState::Data_Partial", ptr %64, i32 0, i32 0
  %66 = call noundef i64 @_ZNKSt6vectorI8VarStateSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #6
  invoke void @_ZNSt6vectorI8VarStateSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %66)
          to label %67 unwind label %79

67:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.VarState::Data_Partial", ptr %68, i32 0, i32 0
  store ptr %69, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  %71 = call ptr @_ZNKSt6vectorI8VarStateSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #6
  %72 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.596", ptr %17, i32 0, i32 0
  store ptr %71, ptr %72, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = call ptr @_ZNKSt6vectorI8VarStateSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #6
  %75 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.596", ptr %18, i32 0, i32 0
  store ptr %74, ptr %75, align 8
  br label %76

76:                                               ; preds = %88, %67
  %77 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPK8VarStateSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %77, label %83, label %78

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

79:                                               ; preds = %61
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %12, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %13, align 4
  br label %107

83:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %84 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPK8VarStateSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  store ptr %84, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #6
  %85 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZNK8VarState5cloneEv(ptr dead_on_unwind writable sret(%class.VarState) align 8 %20, ptr noundef nonnull align 8 dereferenceable(40) %85)
          to label %86 unwind label %90

86:                                               ; preds = %83
  invoke void @_ZNSt6vectorI8VarStateSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %87 unwind label %94

87:                                               ; preds = %86
  call void @_ZN8VarStateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %88

88:                                               ; preds = %87
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPK8VarStateSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %76

90:                                               ; preds = %83
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %12, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %13, align 4
  br label %98

94:                                               ; preds = %86
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %12, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %13, align 4
  call void @_ZN8VarStateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  br label %98

98:                                               ; preds = %94, %90
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %107

99:                                               ; preds = %78
  %100 = getelementptr inbounds %"struct.VarState::Data_Partial", ptr %21, i32 0, i32 0
  call void @_ZNSt6vectorI8VarStateSaIS0_EEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(24) %100, ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %101 = getelementptr inbounds %"struct.VarState::Data_Partial", ptr %21, i32 0, i32 1
  store i32 0, ptr %101, align 8, !tbaa !21
  invoke void @_ZN8VarState12make_PartialENS_12Data_PartialE(ptr dead_on_unwind writable sret(%class.VarState) align 8 %0, ptr noundef %21)
          to label %102 unwind label %103

102:                                              ; preds = %99
  call void @_ZN8VarState12Data_PartialD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %21) #6
  call void @_ZNSt6vectorI8VarStateSaIS0_EED2Ev(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 8, ptr %14) #6
  br label %110

103:                                              ; preds = %99
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %12, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %13, align 4
  call void @_ZN8VarState12Data_PartialD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %21) #6
  br label %107

107:                                              ; preds = %103, %98, %79
  call void @_ZNSt6vectorI8VarStateSaIS0_EED2Ev(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 8, ptr %14) #6
  br label %111

108:                                              ; preds = %2
  %109 = call ptr @__cxa_allocate_exception(i64 8) #6
  store ptr @.str.76, ptr %109, align 16, !tbaa !5
  call void @__cxa_throw(ptr %109, ptr @_ZTIPKc, ptr null) #7
  unreachable

110:                                              ; preds = %102, %51, %34, %30, %25
  ret void

111:                                              ; preds = %107, %60
  %112 = load ptr, ptr %12, align 8
  %113 = load i32, ptr %13, align 4
  %114 = insertvalue { ptr, i32 } poison, ptr %112, 0
  %115 = insertvalue { ptr, i32 } %114, i32 %113, 1
  resume { ptr, i32 } %115
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8VarState12make_PartialENS_12Data_PartialE(ptr dead_on_unwind noalias writable sret(%class.VarState) align 8, ptr noundef) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8VarState12Data_PartialD2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8VarState13make_MovedOutENS_13Data_MovedOutE(ptr dead_on_unwind noalias writable sret(%class.VarState) align 8, ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15make_unique_ptrI8VarStateESt10unique_ptrIT_St14default_deleteIS2_EEOS2_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.31") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8VarState13Data_MovedOutD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState10as_InvalidEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNK8VarState11as_MovedOutEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(28) ptr @_ZNK8VarState10as_PartialEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState11as_OptionalEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8VarStateC2Ej(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) unnamed_addr #2 align 2

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

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn 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 #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 = { noreturn nounwind }
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 = !{!"_ZTS11InvalidType", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"_ZTSN8VarState13Data_MovedOutE", !15, i64 0, !12, i64 8}
!15 = !{!"_ZTSSt10unique_ptrI8VarStateSt14default_deleteIS0_EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_dataI8VarStateSt14default_deleteIS0_ELb1ELb1EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_implI8VarStateSt14default_deleteIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt5tupleIJP8VarStateSt14default_deleteIS0_EEE", !19, i64 0}
!19 = !{!"_ZTSSt11_Tuple_implILm0EJP8VarStateSt14default_deleteIS0_EEE", !20, i64 0}
!20 = !{!"_ZTSSt10_Head_baseILm0EP8VarStateLb0EE", !6, i64 0}
!21 = !{!22, !12, i64 24}
!22 = !{!"_ZTSN8VarState12Data_PartialE", !23, i64 0, !12, i64 24}
!23 = !{!"_ZTSSt6vectorI8VarStateSaIS0_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseI8VarStateSaIS0_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI8VarStateSaIS0_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseI8VarStateSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


; 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.VarState = type { i32, [4 x i8], %"union.VarState::DataUnion" }
%"union.VarState::DataUnion" = type { i32, [28 x i8] }
%"struct.VarState::Data_MovedOut" = type <{ %"class.std::unique_ptr.31", i32, [4 x i8] }>
%"class.std::unique_ptr.31" = type { %"struct.std::__uniq_ptr_data.32" }
%"struct.std::__uniq_ptr_data.32" = type { %"class.std::__uniq_ptr_impl.33" }
%"class.std::__uniq_ptr_impl.33" = type { %"class.std::tuple.34" }
%"class.std::tuple.34" = type { %"struct.std::_Tuple_impl.35" }
%"struct.std::_Tuple_impl.35" = type { %"struct.std::_Head_base.38" }
%"struct.std::_Head_base.38" = type { ptr }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl" }
%"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl" = type { %"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VarState, std::allocator<VarState>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.596" = type { ptr }
%"struct.VarState::Data_Partial" = type <{ %"class.std::vector.26", i32, [4 x i8] }>

@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [1 x i8], align 1
@_ZTIPKc = external constant ptr
@__PRETTY_FUNCTION__._ZNK8VarState5cloneEv = external hidden unnamed_addr constant [33 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8VarState3tagEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8VarStateC2E11InvalidType(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK8VarState5cloneEv(ptr dead_on_unwind noalias writable sret(%class.VarState) align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.VarState::Data_MovedOut", align 8
  %4 = alloca %class.VarState, align 8
  %5 = alloca %"class.std::vector.26", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.596", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.596", align 8
  %8 = alloca %class.VarState, align 8
  %9 = alloca %"struct.VarState::Data_Partial", align 8
  %10 = tail call noundef i32 @_ZNK8VarState3tagEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  switch i32 %10, label %57 [
    i32 0, label %11
    i32 1, label %12
    i32 5, label %15
    i32 4, label %17
    i32 3, label %20
    i32 2, label %33
  ]

11:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, i32 noundef 2357, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK8VarState5cloneEv) #5
  unreachable

12:                                               ; preds = %2
  %13 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState10as_InvalidEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %14 = load i32, ptr %13, align 4, !tbaa !5
  tail call void @_ZN8VarStateC2E11InvalidType(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %14)
  br label %59

15:                                               ; preds = %2
  %16 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK8VarState8as_ValidEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  tail call void @_ZN8VarStateC2ENS_10Data_ValidE(ptr noundef nonnull align 8 dereferenceable(40) %0)
  br label %59

17:                                               ; preds = %2
  %18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState11as_OptionalEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %19 = load i32, ptr %18, align 4, !tbaa !9
  tail call void @_ZN8VarStateC2Ej(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %19)
  br label %59

20:                                               ; preds = %2
  %21 = tail call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK8VarState11as_MovedOutEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #6
  %22 = tail call noundef ptr @_ZNKSt10unique_ptrI8VarStateSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @_ZNK8VarState5cloneEv(ptr dead_on_unwind nonnull writable sret(%class.VarState) align 8 %4, ptr noundef nonnull align 8 dereferenceable(40) %22)
  invoke void @_Z15make_unique_ptrI8VarStateESt10unique_ptrIT_St14default_deleteIS2_EEOS2_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.31") align 8 %3, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %23 unwind label %28

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %3, i64 8
  %25 = getelementptr inbounds i8, ptr %21, i64 8
  %26 = load i32, ptr %25, align 8, !tbaa !11
  store i32 %26, ptr %24, align 8, !tbaa !11
  invoke void @_ZN8VarState13make_MovedOutENS_13Data_MovedOutE(ptr dead_on_unwind writable sret(%class.VarState) align 8 %0, ptr noundef nonnull %3)
          to label %27 unwind label %30

27:                                               ; preds = %23
  call void @_ZN8VarState13Data_MovedOutD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %3) #6
  call void @_ZN8VarStateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #6
  br label %59

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

30:                                               ; preds = %23
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8VarState13Data_MovedOutD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %3) #6
  br label %32

32:                                               ; preds = %30, %28
  %.pn23 = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ]
  call void @_ZN8VarStateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #6
  br label %60

33:                                               ; preds = %2
  %34 = tail call noundef nonnull align 8 dereferenceable(28) ptr @_ZNK8VarState10as_PartialEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorI8VarStateSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %35 = call noundef i64 @_ZNKSt6vectorI8VarStateSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  invoke void @_ZNSt6vectorI8VarStateSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %35)
          to label %36 unwind label %41

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %37 = call ptr @_ZNKSt6vectorI8VarStateSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  store ptr %37, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %38 = call ptr @_ZNKSt6vectorI8VarStateSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  store ptr %38, ptr %7, align 8
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPK8VarStateSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %39, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %45, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt6vectorI8VarStateSaIS0_EEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %40 = getelementptr inbounds i8, ptr %9, i64 24
  store i32 0, ptr %40, align 8, !tbaa !20
  invoke void @_ZN8VarState12make_PartialENS_12Data_PartialE(ptr dead_on_unwind writable sret(%class.VarState) align 8 %0, ptr noundef nonnull %9)
          to label %53 unwind label %54

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

.lr.ph:                                           ; preds = %36, %45
  %43 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPK8VarStateSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #6
  invoke void @_ZNK8VarState5cloneEv(ptr dead_on_unwind nonnull writable sret(%class.VarState) align 8 %8, ptr noundef nonnull align 8 dereferenceable(40) %43)
          to label %44 unwind label %48

44:                                               ; preds = %.lr.ph
  invoke void @_ZNSt6vectorI8VarStateSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(40) %8)
          to label %45 unwind label %50

45:                                               ; preds = %44
  call void @_ZN8VarStateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPK8VarStateSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPK8VarStateSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %47, label %.lr.ph, label %._crit_edge

48:                                               ; preds = %.lr.ph
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %44
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8VarStateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  br label %52

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

53:                                               ; preds = %._crit_edge
  call void @_ZN8VarState12Data_PartialD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %9) #6
  call void @_ZNSt6vectorI8VarStateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %59

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

56:                                               ; preds = %54, %52, %41
  %.pn.pn = phi { ptr, i32 } [ %.pn, %52 ], [ %55, %54 ], [ %42, %41 ]
  call void @_ZNSt6vectorI8VarStateSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %60

57:                                               ; preds = %2
  %58 = tail call ptr @__cxa_allocate_exception(i64 8) #6
  store ptr @.str.76, ptr %58, align 16, !tbaa !26
  tail call void @__cxa_throw(ptr nonnull %58, ptr nonnull @_ZTIPKc, ptr null) #7
  unreachable

59:                                               ; preds = %53, %27, %17, %15, %12
  ret void

60:                                               ; preds = %56, %32
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %56 ], [ %.pn23, %32 ]
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8VarState12make_PartialENS_12Data_PartialE(ptr dead_on_unwind noalias writable sret(%class.VarState) align 8, ptr noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8VarState12Data_PartialD2Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8VarState13make_MovedOutENS_13Data_MovedOutE(ptr dead_on_unwind noalias writable sret(%class.VarState) align 8, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15make_unique_ptrI8VarStateESt10unique_ptrIT_St14default_deleteIS2_EEOS2_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.31") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8VarState13Data_MovedOutD2Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState10as_InvalidEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNK8VarState11as_MovedOutEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(28) ptr @_ZNK8VarState10as_PartialEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK8VarState11as_OptionalEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8VarStateC2Ej(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) unnamed_addr #2 align 2

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

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn 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 #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 = { noreturn nounwind }
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 = !{!"_ZTS11InvalidType", !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, !10, i64 8}
!12 = !{!"_ZTSN8VarState13Data_MovedOutE", !13, i64 0, !10, i64 8}
!13 = !{!"_ZTSSt10unique_ptrI8VarStateSt14default_deleteIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt15__uniq_ptr_dataI8VarStateSt14default_deleteIS0_ELb1ELb1EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_implI8VarStateSt14default_deleteIS0_EE", !16, i64 0}
!16 = !{!"_ZTSSt5tupleIJP8VarStateSt14default_deleteIS0_EEE", !17, i64 0}
!17 = !{!"_ZTSSt11_Tuple_implILm0EJP8VarStateSt14default_deleteIS0_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_Head_baseILm0EP8VarStateLb0EE", !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!21, !10, i64 24}
!21 = !{!"_ZTSN8VarState12Data_PartialE", !22, i64 0, !10, i64 24}
!22 = !{!"_ZTSSt6vectorI8VarStateSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseI8VarStateSaIS0_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI8VarStateSaIS0_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI8VarStateSaIS0_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!26 = !{!19, !19, i64 0}


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