diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a0f911..9d9d73d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,5 +22,24 @@ corrosion_import_crate(MANIFEST_PATH Cargo.toml) # C++ projects add_subdirectory(lib-rt) +if (APPLE) + # LIBRARY_PATHとINCLUDE_PATHが認識されないので、手動で追加する + + # lib-rtで必要 + link_directories( + /usr/local/opt/protobuf/lib + ) + # $(brew --prefix (protobuf,abseil))/libのほうが良い + target_include_directories(wanco_rt PRIVATE + /usr/local/opt/protobuf/include + # https://github.com/protocolbuffers/protobuf/issues/16755 + /usr/local/opt/abseil/include + ) + # wancoビルド時にccに-lzstdが渡されるが、not foundと言われるので、ライブラリパスを追加する + corrosion_add_target_local_rustflags(wanco + "-Clink-args=-L/usr/local/opt/zstd/lib -lzstd" + ) +endif() + install(TARGETS wanco_rt DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) install(FILES ${CMAKE_BINARY_DIR}/libwanco_wasi.a DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) diff --git a/docs/macos.md b/docs/macos.md new file mode 100644 index 0000000..ae92f9f --- /dev/null +++ b/docs/macos.md @@ -0,0 +1,5 @@ +brew install llvm@17 cmake protobuf zstd +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh + +protobuのコードを再生成する必要があるかも + diff --git a/lib-rt/protobuf/chkpt.pb.cc b/lib-rt/protobuf/chkpt.pb.cc index 13ce189..9d81d18 100644 --- a/lib-rt/protobuf/chkpt.pb.cc +++ b/lib-rt/protobuf/chkpt.pb.cc @@ -1,208 +1,248 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: protobuf/chkpt.proto +// Protobuf C++ Version: 5.28.2 #include "protobuf/chkpt.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/wire_format_lite.h" +#include "google/protobuf/descriptor.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/reflection_ops.h" +#include "google/protobuf/wire_format.h" // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_protobuf_2fchkpt_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Frame_protobuf_2fchkpt_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_protobuf_2fchkpt_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Value_protobuf_2fchkpt_2eproto; -namespace chkpt { -class TypeDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Type_default_instance_; -class ValueDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - ::PROTOBUF_NAMESPACE_ID::int32 i32_; - ::PROTOBUF_NAMESPACE_ID::int64 i64_; - float f32_; - double f64_; -} _Value_default_instance_; -class FrameDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Frame_default_instance_; -class CheckpointDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Checkpoint_default_instance_; -} // namespace chkpt -static void InitDefaultsscc_info_Checkpoint_protobuf_2fchkpt_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::chkpt::_Checkpoint_default_instance_; - new (ptr) ::chkpt::Checkpoint(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::chkpt::Checkpoint::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Checkpoint_protobuf_2fchkpt_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_Checkpoint_protobuf_2fchkpt_2eproto}, { - &scc_info_Frame_protobuf_2fchkpt_2eproto.base, - &scc_info_Value_protobuf_2fchkpt_2eproto.base,}}; - -static void InitDefaultsscc_info_Frame_protobuf_2fchkpt_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::chkpt::_Frame_default_instance_; - new (ptr) ::chkpt::Frame(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::chkpt::Frame::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Frame_protobuf_2fchkpt_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Frame_protobuf_2fchkpt_2eproto}, { - &scc_info_Value_protobuf_2fchkpt_2eproto.base,}}; - -static void InitDefaultsscc_info_Type_protobuf_2fchkpt_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::chkpt::_Type_default_instance_; - new (ptr) ::chkpt::Type(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::chkpt::Type::InitAsDefaultInstance(); -} -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Type_protobuf_2fchkpt_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Type_protobuf_2fchkpt_2eproto}, {}}; +// Must be included last. +#include "google/protobuf/port_def.inc" +PROTOBUF_PRAGMA_INIT_SEG +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; +namespace chkpt { -static void InitDefaultsscc_info_Value_protobuf_2fchkpt_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +inline constexpr Value::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : type_{static_cast< ::chkpt::Type_Enum >(0)}, + test_oneof_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR Value::Value(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ValueDefaultTypeInternal() {} + union { + Value _instance; + }; +}; - { - void* ptr = &::chkpt::_Value_default_instance_; - new (ptr) ::chkpt::Value(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::chkpt::Value::InitAsDefaultInstance(); -} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_; + template +PROTOBUF_CONSTEXPR Type::Type(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { +} +#endif // PROTOBUF_CUSTOM_VTABLE +struct TypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR TypeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~TypeDefaultTypeInternal() {} + union { + Type _instance; + }; +}; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Value_protobuf_2fchkpt_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Value_protobuf_2fchkpt_2eproto}, {}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_protobuf_2fchkpt_2eproto[4]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_protobuf_2fchkpt_2eproto[1]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_protobuf_2fchkpt_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_protobuf_2fchkpt_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::chkpt::Type, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::chkpt::Value, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::chkpt::Value, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::chkpt::Value, type_), - offsetof(::chkpt::ValueDefaultTypeInternal, i32_), - offsetof(::chkpt::ValueDefaultTypeInternal, i64_), - offsetof(::chkpt::ValueDefaultTypeInternal, f32_), - offsetof(::chkpt::ValueDefaultTypeInternal, f64_), - PROTOBUF_FIELD_OFFSET(::chkpt::Value, test_oneof_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::chkpt::Frame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::chkpt::Frame, fn_idx_), - PROTOBUF_FIELD_OFFSET(::chkpt::Frame, pc_), - PROTOBUF_FIELD_OFFSET(::chkpt::Frame, locals_), - PROTOBUF_FIELD_OFFSET(::chkpt::Frame, stack_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::chkpt::Checkpoint, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::chkpt::Checkpoint, frames_), - PROTOBUF_FIELD_OFFSET(::chkpt::Checkpoint, globals_), - PROTOBUF_FIELD_OFFSET(::chkpt::Checkpoint, table_), - PROTOBUF_FIELD_OFFSET(::chkpt::Checkpoint, memory_size_), - PROTOBUF_FIELD_OFFSET(::chkpt::Checkpoint, memory_lz4_), +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TypeDefaultTypeInternal _Type_default_instance_; + +inline constexpr Frame::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : locals_{}, + stack_{}, + fn_idx_{0}, + pc_{0}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR Frame::Frame(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct FrameDefaultTypeInternal { + PROTOBUF_CONSTEXPR FrameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~FrameDefaultTypeInternal() {} + union { + Frame _instance; + }; }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::chkpt::Type)}, - { 5, -1, sizeof(::chkpt::Value)}, - { 16, -1, sizeof(::chkpt::Frame)}, - { 25, -1, sizeof(::chkpt::Checkpoint)}, + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FrameDefaultTypeInternal _Frame_default_instance_; + +inline constexpr Checkpoint::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : frames_{}, + globals_{}, + table_{}, + _table_cached_byte_size_{0}, + memory_lz4_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + memory_size_{0}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR Checkpoint::Checkpoint(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct CheckpointDefaultTypeInternal { + PROTOBUF_CONSTEXPR CheckpointDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CheckpointDefaultTypeInternal() {} + union { + Checkpoint _instance; + }; }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::chkpt::_Type_default_instance_), - reinterpret_cast(&::chkpt::_Value_default_instance_), - reinterpret_cast(&::chkpt::_Frame_default_instance_), - reinterpret_cast(&::chkpt::_Checkpoint_default_instance_), +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckpointDefaultTypeInternal _Checkpoint_default_instance_; +} // namespace chkpt +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_protobuf_2fchkpt_2eproto[1]; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_protobuf_2fchkpt_2eproto = nullptr; +const ::uint32_t + TableStruct_protobuf_2fchkpt_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::chkpt::Type, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::chkpt::Value, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::chkpt::Value, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::chkpt::Value, _impl_.type_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::chkpt::Value, _impl_.test_oneof_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::chkpt::Frame, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::chkpt::Frame, _impl_.fn_idx_), + PROTOBUF_FIELD_OFFSET(::chkpt::Frame, _impl_.pc_), + PROTOBUF_FIELD_OFFSET(::chkpt::Frame, _impl_.locals_), + PROTOBUF_FIELD_OFFSET(::chkpt::Frame, _impl_.stack_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::chkpt::Checkpoint, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::chkpt::Checkpoint, _impl_.frames_), + PROTOBUF_FIELD_OFFSET(::chkpt::Checkpoint, _impl_.globals_), + PROTOBUF_FIELD_OFFSET(::chkpt::Checkpoint, _impl_.table_), + PROTOBUF_FIELD_OFFSET(::chkpt::Checkpoint, _impl_.memory_size_), + PROTOBUF_FIELD_OFFSET(::chkpt::Checkpoint, _impl_.memory_lz4_), }; -const char descriptor_table_protodef_protobuf_2fchkpt_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\024protobuf/chkpt.proto\022\005chkpt\"C\n\004Type\";\n" - "\004Enum\022\017\n\013UNSPECIFIED\020\000\022\007\n\003I32\020\001\022\007\n\003I64\020\002" - "\022\007\n\003F32\020\003\022\007\n\003F64\020\004\"q\n\005Value\022\036\n\004type\030\001 \001(" - "\0162\020.chkpt.Type.Enum\022\r\n\003i32\030\002 \001(\005H\000\022\r\n\003i6" - "4\030\003 \001(\003H\000\022\r\n\003f32\030\004 \001(\002H\000\022\r\n\003f64\030\005 \001(\001H\000B" - "\014\n\ntest_oneof\"^\n\005Frame\022\016\n\006fn_idx\030\001 \001(\005\022\n" - "\n\002pc\030\002 \001(\005\022\034\n\006locals\030\003 \003(\0132\014.chkpt.Value" - "\022\033\n\005stack\030\004 \003(\0132\014.chkpt.Value\"\201\001\n\nCheckp" - "oint\022\034\n\006frames\030\001 \003(\0132\014.chkpt.Frame\022\035\n\007gl" - "obals\030\002 \003(\0132\014.chkpt.Value\022\r\n\005table\030\003 \003(\005" - "\022\023\n\013memory_size\030\004 \001(\005\022\022\n\nmemory_lz4\030\005 \001(" - "\014B\003\370\001\001b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_protobuf_2fchkpt_2eproto_deps[1] = { +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, -1, -1, sizeof(::chkpt::Type)}, + {8, -1, -1, sizeof(::chkpt::Value)}, + {22, -1, -1, sizeof(::chkpt::Frame)}, + {34, -1, -1, sizeof(::chkpt::Checkpoint)}, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_protobuf_2fchkpt_2eproto_sccs[4] = { - &scc_info_Checkpoint_protobuf_2fchkpt_2eproto.base, - &scc_info_Frame_protobuf_2fchkpt_2eproto.base, - &scc_info_Type_protobuf_2fchkpt_2eproto.base, - &scc_info_Value_protobuf_2fchkpt_2eproto.base, +static const ::_pb::Message* const file_default_instances[] = { + &::chkpt::_Type_default_instance_._instance, + &::chkpt::_Value_default_instance_._instance, + &::chkpt::_Frame_default_instance_._instance, + &::chkpt::_Checkpoint_default_instance_._instance, }; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_protobuf_2fchkpt_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protobuf_2fchkpt_2eproto = { - false, false, descriptor_table_protodef_protobuf_2fchkpt_2eproto, "protobuf/chkpt.proto", 454, - &descriptor_table_protobuf_2fchkpt_2eproto_once, descriptor_table_protobuf_2fchkpt_2eproto_sccs, descriptor_table_protobuf_2fchkpt_2eproto_deps, 4, 0, - schemas, file_default_instances, TableStruct_protobuf_2fchkpt_2eproto::offsets, - file_level_metadata_protobuf_2fchkpt_2eproto, 4, file_level_enum_descriptors_protobuf_2fchkpt_2eproto, file_level_service_descriptors_protobuf_2fchkpt_2eproto, +const char descriptor_table_protodef_protobuf_2fchkpt_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\024protobuf/chkpt.proto\022\005chkpt\"C\n\004Type\";\n" + "\004Enum\022\017\n\013UNSPECIFIED\020\000\022\007\n\003I32\020\001\022\007\n\003I64\020\002" + "\022\007\n\003F32\020\003\022\007\n\003F64\020\004\"q\n\005Value\022\036\n\004type\030\001 \001(" + "\0162\020.chkpt.Type.Enum\022\r\n\003i32\030\002 \001(\005H\000\022\r\n\003i6" + "4\030\003 \001(\003H\000\022\r\n\003f32\030\004 \001(\002H\000\022\r\n\003f64\030\005 \001(\001H\000B" + "\014\n\ntest_oneof\"^\n\005Frame\022\016\n\006fn_idx\030\001 \001(\005\022\n" + "\n\002pc\030\002 \001(\005\022\034\n\006locals\030\003 \003(\0132\014.chkpt.Value" + "\022\033\n\005stack\030\004 \003(\0132\014.chkpt.Value\"\201\001\n\nCheckp" + "oint\022\034\n\006frames\030\001 \003(\0132\014.chkpt.Frame\022\035\n\007gl" + "obals\030\002 \003(\0132\014.chkpt.Value\022\r\n\005table\030\003 \003(\005" + "\022\023\n\013memory_size\030\004 \001(\005\022\022\n\nmemory_lz4\030\005 \001(" + "\014B\003\370\001\001b\006proto3" +}; +static ::absl::once_flag descriptor_table_protobuf_2fchkpt_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_protobuf_2fchkpt_2eproto = { + false, + false, + 454, + descriptor_table_protodef_protobuf_2fchkpt_2eproto, + "protobuf/chkpt.proto", + &descriptor_table_protobuf_2fchkpt_2eproto_once, + nullptr, + 0, + 4, + schemas, + file_default_instances, + TableStruct_protobuf_2fchkpt_2eproto::offsets, + file_level_enum_descriptors_protobuf_2fchkpt_2eproto, + file_level_service_descriptors_protobuf_2fchkpt_2eproto, }; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_protobuf_2fchkpt_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_protobuf_2fchkpt_2eproto)), true); namespace chkpt { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Type_Enum_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protobuf_2fchkpt_2eproto); +const ::google::protobuf::EnumDescriptor* Type_Enum_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_protobuf_2fchkpt_2eproto); return file_level_enum_descriptors_protobuf_2fchkpt_2eproto[0]; } +PROTOBUF_CONSTINIT const uint32_t Type_Enum_internal_data_[] = { + 327680u, 0u, }; bool Type_Enum_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } + return 0 <= value && value <= 4; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) constexpr Type_Enum Type::UNSPECIFIED; constexpr Type_Enum Type::I32; constexpr Type_Enum Type::I64; @@ -211,255 +251,189 @@ constexpr Type_Enum Type::F64; constexpr Type_Enum Type::Enum_MIN; constexpr Type_Enum Type::Enum_MAX; constexpr int Type::Enum_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== -void Type::InitAsDefaultInstance() { -} class Type::_Internal { public: }; -Type::Type(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +Type::Type(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:chkpt.Type) } -Type::Type(const Type& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:chkpt.Type) -} - -void Type::SharedCtor() { -} - -Type::~Type() { - // @@protoc_insertion_point(destructor:chkpt.Type) - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void Type::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); -} - -void Type::ArenaDtor(void* object) { - Type* _this = reinterpret_cast< Type* >(object); +Type::Type( + ::google::protobuf::Arena* arena, + const Type& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Type* const _this = this; (void)_this; -} -void Type::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Type::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Type& Type::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Type_protobuf_2fchkpt_2eproto.base); - return *internal_default_instance(); -} - - -void Type::Clear() { -// @@protoc_insertion_point(message_clear_start:chkpt.Type) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Type::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Type::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:chkpt.Type) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:chkpt.Type) - return target; + // @@protoc_insertion_point(copy_constructor:chkpt.Type) } -size_t Type::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:chkpt.Type) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::MessageLite::ClassDataFull + Type::_class_data_ = { + ::google::protobuf::internal::ZeroFieldsBase::ClassData{ + &_Type_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Type::MergeImpl, +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::google::protobuf::internal::ZeroFieldsBase::GetDeleteImpl(), + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &Type::ByteSizeLong, + &Type::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Type, _impl_._cached_size_), + false, + }, + &Type::kDescriptorMethods, + &descriptor_table_protobuf_2fchkpt_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::MessageLite::ClassData* Type::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> Type::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::chkpt::Type>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, + // no field_entries, or aux_entries + {{ + }}, +}; -void Type::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:chkpt.Type) - GOOGLE_DCHECK_NE(&from, this); - const Type* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:chkpt.Type) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:chkpt.Type) - MergeFrom(*source); - } -} -void Type::MergeFrom(const Type& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:chkpt.Type) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; -} -void Type::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:chkpt.Type) - if (&from == this) return; - Clear(); - MergeFrom(from); -} -void Type::CopyFrom(const Type& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:chkpt.Type) - if (&from == this) return; - Clear(); - MergeFrom(from); -} -bool Type::IsInitialized() const { - return true; -} -void Type::InternalSwap(Type* other) { - using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); -} -::PROTOBUF_NAMESPACE_ID::Metadata Type::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata Type::GetMetadata() const { + return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } - - // =================================================================== -void Value::InitAsDefaultInstance() { - ::chkpt::_Value_default_instance_.i32_ = 0; - ::chkpt::_Value_default_instance_.i64_ = PROTOBUF_LONGLONG(0); - ::chkpt::_Value_default_instance_.f32_ = 0; - ::chkpt::_Value_default_instance_.f64_ = 0; -} class Value::_Internal { public: + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::chkpt::Value, _impl_._oneof_case_); }; -Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +Value::Value(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:chkpt.Value) } -Value::Value(const Value& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - type_ = from.type_; - clear_has_test_oneof(); - switch (from.test_oneof_case()) { - case kI32: { - _internal_set_i32(from._internal_i32()); - break; - } - case kI64: { - _internal_set_i64(from._internal_i64()); - break; - } - case kF32: { - _internal_set_f32(from._internal_f32()); - break; - } - case kF64: { - _internal_set_f64(from._internal_f64()); - break; - } - case TEST_ONEOF_NOT_SET: { +inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::chkpt::Value& from_msg) + : test_oneof_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +Value::Value( + ::google::protobuf::Arena* arena, + const Value& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Value* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.type_ = from._impl_.type_; + switch (test_oneof_case()) { + case TEST_ONEOF_NOT_SET: break; - } + case kI32: + _impl_.test_oneof_.i32_ = from._impl_.test_oneof_.i32_; + break; + case kI64: + _impl_.test_oneof_.i64_ = from._impl_.test_oneof_.i64_; + break; + case kF32: + _impl_.test_oneof_.f32_ = from._impl_.test_oneof_.f32_; + break; + case kF64: + _impl_.test_oneof_.f64_ = from._impl_.test_oneof_.f64_; + break; } + // @@protoc_insertion_point(copy_constructor:chkpt.Value) } +inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : test_oneof_{}, + _cached_size_{0}, + _oneof_case_{} {} -void Value::SharedCtor() { - type_ = 0; - clear_has_test_oneof(); +inline void Value::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.type_ = {}; } - Value::~Value() { // @@protoc_insertion_point(destructor:chkpt.Value) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - -void Value::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void Value::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); if (has_test_oneof()) { clear_test_oneof(); } + _impl_.~Impl_(); } -void Value::ArenaDtor(void* object) { - Value* _this = reinterpret_cast< Value* >(object); - (void)_this; -} -void Value::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Value::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Value& Value::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Value_protobuf_2fchkpt_2eproto.base); - return *internal_default_instance(); -} - - void Value::clear_test_oneof() { // @@protoc_insertion_point(one_of_clear_start:chkpt.Value) + ::google::protobuf::internal::TSanWrite(&_impl_); switch (test_oneof_case()) { case kI32: { // No need to clear @@ -481,237 +455,250 @@ void Value::clear_test_oneof() { break; } } - _oneof_case_[0] = TEST_ONEOF_NOT_SET; + _impl_._oneof_case_[0] = TEST_ONEOF_NOT_SET; +} + + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::MessageLite::ClassDataFull + Value::_class_data_ = { + ::google::protobuf::Message::ClassData{ + &_Value_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Value::MergeImpl, +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), + ::google::protobuf::Message::GetClearImpl(), &Value::ByteSizeLong, + &Value::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Value, _impl_._cached_size_), + false, + }, + &Value::kDescriptorMethods, + &descriptor_table_protobuf_2fchkpt_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::MessageLite::ClassData* Value::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 5, 0, 0, 2> Value::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 5, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967264, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::chkpt::Value>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .chkpt.Type.Enum type = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Value, _impl_.type_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(Value, _impl_.type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .chkpt.Type.Enum type = 1; + {PROTOBUF_FIELD_OFFSET(Value, _impl_.type_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // int32 i32 = 2; + {PROTOBUF_FIELD_OFFSET(Value, _impl_.test_oneof_.i32_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kInt32)}, + // int64 i64 = 3; + {PROTOBUF_FIELD_OFFSET(Value, _impl_.test_oneof_.i64_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kInt64)}, + // float f32 = 4; + {PROTOBUF_FIELD_OFFSET(Value, _impl_.test_oneof_.f32_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kFloat)}, + // double f64 = 5; + {PROTOBUF_FIELD_OFFSET(Value, _impl_.test_oneof_.f64_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kDouble)}, + }}, + // no aux_entries + {{ + }}, +}; - -void Value::Clear() { +PROTOBUF_NOINLINE void Value::Clear() { // @@protoc_insertion_point(message_clear_start:chkpt.Value) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - type_ = 0; + _impl_.type_ = 0; clear_test_oneof(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Value::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .chkpt.Type.Enum type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::chkpt::Type_Enum>(val)); - } else goto handle_unusual; - continue; - // int32 i32 = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - _internal_set_i32(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 i64 = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - _internal_set_i64(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // float f32 = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) { - _internal_set_f32(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(float); - } else goto handle_unusual; - continue; - // double f64 = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 41)) { - _internal_set_f64(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(double); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* Value::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const Value& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* Value::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const Value& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:chkpt.Value) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // .chkpt.Type.Enum type = 1; + if (this_._internal_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); + } + + switch (this_.test_oneof_case()) { + case kI32: { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<2>( + stream, this_._internal_i32(), target); + break; + } + case kI64: { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64ToArrayWithField<3>( + stream, this_._internal_i64(), target); + break; + } + case kF32: { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_f32(), target); + break; + } + case kF64: { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray( + 5, this_._internal_f64(), target); + break; + } + default: + break; + } + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:chkpt.Value) + return target; } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Value::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:chkpt.Value) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .chkpt.Type.Enum type = 1; - if (this->type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); - } - - // int32 i32 = 2; - if (_internal_has_i32()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_i32(), target); - } - - // int64 i64 = 3; - if (_internal_has_i64()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_i64(), target); - } - - // float f32 = 4; - if (_internal_has_f32()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_f32(), target); - } - // double f64 = 5; - if (_internal_has_f64()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(5, this->_internal_f64(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:chkpt.Value) - return target; -} - -size_t Value::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:chkpt.Value) - size_t total_size = 0; +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t Value::ByteSizeLong(const MessageLite& base) { + const Value& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t Value::ByteSizeLong() const { + const Value& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:chkpt.Value) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // .chkpt.Type.Enum type = 1; + if (this_._internal_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } + } + switch (this_.test_oneof_case()) { + // int32 i32 = 2; + case kI32: { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_i32()); + break; + } + // int64 i64 = 3; + case kI64: { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_i64()); + break; + } + // float f32 = 4; + case kF32: { + total_size += 5; + break; + } + // double f64 = 5; + case kF64: { + total_size += 9; + break; + } + case TEST_ONEOF_NOT_SET: { + break; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused +void Value::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:chkpt.Value) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - // .chkpt.Type.Enum type = 1; - if (this->type() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + if (from._internal_type() != 0) { + _this->_impl_.type_ = from._impl_.type_; } - - switch (test_oneof_case()) { - // int32 i32 = 2; - case kI32: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_i32()); - break; - } - // int64 i64 = 3; - case kI64: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_i64()); - break; - } - // float f32 = 4; - case kF32: { - total_size += 1 + 4; - break; - } - // double f64 = 5; - case kF64: { - total_size += 1 + 8; - break; - } - case TEST_ONEOF_NOT_SET: { - break; + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_test_oneof(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Value::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:chkpt.Value) - GOOGLE_DCHECK_NE(&from, this); - const Value* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:chkpt.Value) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:chkpt.Value) - MergeFrom(*source); - } -} - -void Value::MergeFrom(const Value& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:chkpt.Value) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.type() != 0) { - _internal_set_type(from._internal_type()); - } - switch (from.test_oneof_case()) { - case kI32: { - _internal_set_i32(from._internal_i32()); - break; - } - case kI64: { - _internal_set_i64(from._internal_i64()); - break; - } - case kF32: { - _internal_set_f32(from._internal_f32()); - break; - } - case kF64: { - _internal_set_f64(from._internal_f64()); - break; - } - case TEST_ONEOF_NOT_SET: { - break; + switch (oneof_from_case) { + case kI32: { + _this->_impl_.test_oneof_.i32_ = from._impl_.test_oneof_.i32_; + break; + } + case kI64: { + _this->_impl_.test_oneof_.i64_ = from._impl_.test_oneof_.i64_; + break; + } + case kF32: { + _this->_impl_.test_oneof_.f32_ = from._impl_.test_oneof_.f32_; + break; + } + case kF64: { + _this->_impl_.test_oneof_.f64_ = from._impl_.test_oneof_.f64_; + break; + } + case TEST_ONEOF_NOT_SET: + break; } } -} - -void Value::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:chkpt.Value) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Value::CopyFrom(const Value& from) { @@ -721,288 +708,311 @@ void Value::CopyFrom(const Value& from) { MergeFrom(from); } -bool Value::IsInitialized() const { - return true; -} -void Value::InternalSwap(Value* other) { +void Value::InternalSwap(Value* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(type_, other->type_); - swap(test_oneof_, other->test_oneof_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.type_, other->_impl_.type_); + swap(_impl_.test_oneof_, other->_impl_.test_oneof_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -::PROTOBUF_NAMESPACE_ID::Metadata Value::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata Value::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - - // =================================================================== -void Frame::InitAsDefaultInstance() { -} class Frame::_Internal { public: }; -Frame::Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - locals_(arena), - stack_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +Frame::Frame(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:chkpt.Frame) } -Frame::Frame(const Frame& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - locals_(from.locals_), - stack_(from.stack_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&fn_idx_, &from.fn_idx_, - static_cast(reinterpret_cast(&pc_) - - reinterpret_cast(&fn_idx_)) + sizeof(pc_)); +inline PROTOBUF_NDEBUG_INLINE Frame::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::chkpt::Frame& from_msg) + : locals_{visibility, arena, from.locals_}, + stack_{visibility, arena, from.stack_}, + _cached_size_{0} {} + +Frame::Frame( + ::google::protobuf::Arena* arena, + const Frame& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Frame* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, fn_idx_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, fn_idx_), + offsetof(Impl_, pc_) - + offsetof(Impl_, fn_idx_) + + sizeof(Impl_::pc_)); + // @@protoc_insertion_point(copy_constructor:chkpt.Frame) } - -void Frame::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Frame_protobuf_2fchkpt_2eproto.base); - ::memset(&fn_idx_, 0, static_cast( - reinterpret_cast(&pc_) - - reinterpret_cast(&fn_idx_)) + sizeof(pc_)); +inline PROTOBUF_NDEBUG_INLINE Frame::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : locals_{visibility, arena}, + stack_{visibility, arena}, + _cached_size_{0} {} + +inline void Frame::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, fn_idx_), + 0, + offsetof(Impl_, pc_) - + offsetof(Impl_, fn_idx_) + + sizeof(Impl_::pc_)); } - Frame::~Frame() { // @@protoc_insertion_point(destructor:chkpt.Frame) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void Frame::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); } - -void Frame::ArenaDtor(void* object) { - Frame* _this = reinterpret_cast< Frame* >(object); - (void)_this; -} -void Frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void Frame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Frame& Frame::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Frame_protobuf_2fchkpt_2eproto.base); - return *internal_default_instance(); +inline void Frame::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::MessageLite::ClassDataFull + Frame::_class_data_ = { + ::google::protobuf::Message::ClassData{ + &_Frame_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Frame::MergeImpl, +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), + ::google::protobuf::Message::GetClearImpl(), &Frame::ByteSizeLong, + &Frame::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Frame, _impl_._cached_size_), + false, + }, + &Frame::kDescriptorMethods, + &descriptor_table_protobuf_2fchkpt_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::MessageLite::ClassData* Frame::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 2, 0, 2> Frame::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::chkpt::Frame>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .chkpt.Value stack = 4; + {::_pbi::TcParser::FastMtR1, + {34, 63, 1, PROTOBUF_FIELD_OFFSET(Frame, _impl_.stack_)}}, + // int32 fn_idx = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Frame, _impl_.fn_idx_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(Frame, _impl_.fn_idx_)}}, + // int32 pc = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Frame, _impl_.pc_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(Frame, _impl_.pc_)}}, + // repeated .chkpt.Value locals = 3; + {::_pbi::TcParser::FastMtR1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(Frame, _impl_.locals_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int32 fn_idx = 1; + {PROTOBUF_FIELD_OFFSET(Frame, _impl_.fn_idx_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // int32 pc = 2; + {PROTOBUF_FIELD_OFFSET(Frame, _impl_.pc_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // repeated .chkpt.Value locals = 3; + {PROTOBUF_FIELD_OFFSET(Frame, _impl_.locals_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .chkpt.Value stack = 4; + {PROTOBUF_FIELD_OFFSET(Frame, _impl_.stack_), 0, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::chkpt::Value>()}, + {::_pbi::TcParser::GetTable<::chkpt::Value>()}, + }}, {{ + }}, +}; - -void Frame::Clear() { +PROTOBUF_NOINLINE void Frame::Clear() { // @@protoc_insertion_point(message_clear_start:chkpt.Frame) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - locals_.Clear(); - stack_.Clear(); - ::memset(&fn_idx_, 0, static_cast( - reinterpret_cast(&pc_) - - reinterpret_cast(&fn_idx_)) + sizeof(pc_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // int32 fn_idx = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - fn_idx_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int32 pc = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - pc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .chkpt.Value locals = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_locals(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else goto handle_unusual; - continue; - // repeated .chkpt.Value stack = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_stack(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + _impl_.locals_.Clear(); + _impl_.stack_.Clear(); + ::memset(&_impl_.fn_idx_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.pc_) - + reinterpret_cast(&_impl_.fn_idx_)) + sizeof(_impl_.pc_)); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* Frame::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const Frame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* Frame::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const Frame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:chkpt.Frame) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // int32 fn_idx = 1; + if (this_._internal_fn_idx() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<1>( + stream, this_._internal_fn_idx(), target); + } + + // int32 pc = 2; + if (this_._internal_pc() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<2>( + stream, this_._internal_pc(), target); + } + + // repeated .chkpt.Value locals = 3; + for (unsigned i = 0, n = static_cast( + this_._internal_locals_size()); + i < n; i++) { + const auto& repfield = this_._internal_locals().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); + } + + // repeated .chkpt.Value stack = 4; + for (unsigned i = 0, n = static_cast( + this_._internal_stack_size()); + i < n; i++) { + const auto& repfield = this_._internal_stack().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:chkpt.Frame) + return target; } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Frame::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:chkpt.Frame) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 fn_idx = 1; - if (this->fn_idx() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_fn_idx(), target); - } - - // int32 pc = 2; - if (this->pc() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_pc(), target); - } - - // repeated .chkpt.Value locals = 3; - for (unsigned int i = 0, - n = static_cast(this->_internal_locals_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, this->_internal_locals(i), target, stream); - } - - // repeated .chkpt.Value stack = 4; - for (unsigned int i = 0, - n = static_cast(this->_internal_stack_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, this->_internal_stack(i), target, stream); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:chkpt.Frame) - return target; -} - -size_t Frame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:chkpt.Frame) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .chkpt.Value locals = 3; - total_size += 1UL * this->_internal_locals_size(); - for (const auto& msg : this->locals_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .chkpt.Value stack = 4; - total_size += 1UL * this->_internal_stack_size(); - for (const auto& msg : this->stack_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // int32 fn_idx = 1; - if (this->fn_idx() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_fn_idx()); - } - - // int32 pc = 2; - if (this->pc() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_pc()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Frame::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:chkpt.Frame) - GOOGLE_DCHECK_NE(&from, this); - const Frame* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:chkpt.Frame) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:chkpt.Frame) - MergeFrom(*source); - } -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t Frame::ByteSizeLong(const MessageLite& base) { + const Frame& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t Frame::ByteSizeLong() const { + const Frame& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:chkpt.Frame) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .chkpt.Value locals = 3; + { + total_size += 1UL * this_._internal_locals_size(); + for (const auto& msg : this_._internal_locals()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated .chkpt.Value stack = 4; + { + total_size += 1UL * this_._internal_stack_size(); + for (const auto& msg : this_._internal_stack()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + { + // int32 fn_idx = 1; + if (this_._internal_fn_idx() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_fn_idx()); + } + // int32 pc = 2; + if (this_._internal_pc() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_pc()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } -void Frame::MergeFrom(const Frame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:chkpt.Frame) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void Frame::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:chkpt.Frame) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - locals_.MergeFrom(from.locals_); - stack_.MergeFrom(from.stack_); - if (from.fn_idx() != 0) { - _internal_set_fn_idx(from._internal_fn_idx()); + _this->_internal_mutable_locals()->MergeFrom( + from._internal_locals()); + _this->_internal_mutable_stack()->MergeFrom( + from._internal_stack()); + if (from._internal_fn_idx() != 0) { + _this->_impl_.fn_idx_ = from._impl_.fn_idx_; } - if (from.pc() != 0) { - _internal_set_pc(from._internal_pc()); + if (from._internal_pc() != 0) { + _this->_impl_.pc_ = from._impl_.pc_; } -} - -void Frame::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:chkpt.Frame) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Frame::CopyFrom(const Frame& from) { @@ -1012,334 +1022,344 @@ void Frame::CopyFrom(const Frame& from) { MergeFrom(from); } -bool Frame::IsInitialized() const { - return true; -} -void Frame::InternalSwap(Frame* other) { +void Frame::InternalSwap(Frame* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - locals_.InternalSwap(&other->locals_); - stack_.InternalSwap(&other->stack_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Frame, pc_) - + sizeof(Frame::pc_) - - PROTOBUF_FIELD_OFFSET(Frame, fn_idx_)>( - reinterpret_cast(&fn_idx_), - reinterpret_cast(&other->fn_idx_)); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.locals_.InternalSwap(&other->_impl_.locals_); + _impl_.stack_.InternalSwap(&other->_impl_.stack_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(Frame, _impl_.pc_) + + sizeof(Frame::_impl_.pc_) + - PROTOBUF_FIELD_OFFSET(Frame, _impl_.fn_idx_)>( + reinterpret_cast(&_impl_.fn_idx_), + reinterpret_cast(&other->_impl_.fn_idx_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Frame::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata Frame::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - - // =================================================================== -void Checkpoint::InitAsDefaultInstance() { -} class Checkpoint::_Internal { public: }; -Checkpoint::Checkpoint(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - frames_(arena), - globals_(arena), - table_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +Checkpoint::Checkpoint(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:chkpt.Checkpoint) } -Checkpoint::Checkpoint(const Checkpoint& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - frames_(from.frames_), - globals_(from.globals_), - table_(from.table_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - memory_lz4_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_memory_lz4().empty()) { - memory_lz4_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_memory_lz4(), - GetArena()); - } - memory_size_ = from.memory_size_; +inline PROTOBUF_NDEBUG_INLINE Checkpoint::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::chkpt::Checkpoint& from_msg) + : frames_{visibility, arena, from.frames_}, + globals_{visibility, arena, from.globals_}, + table_{visibility, arena, from.table_}, + _table_cached_byte_size_{0}, + memory_lz4_(arena, from.memory_lz4_), + _cached_size_{0} {} + +Checkpoint::Checkpoint( + ::google::protobuf::Arena* arena, + const Checkpoint& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Checkpoint* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.memory_size_ = from._impl_.memory_size_; + // @@protoc_insertion_point(copy_constructor:chkpt.Checkpoint) } +inline PROTOBUF_NDEBUG_INLINE Checkpoint::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : frames_{visibility, arena}, + globals_{visibility, arena}, + table_{visibility, arena}, + _table_cached_byte_size_{0}, + memory_lz4_(arena), + _cached_size_{0} {} -void Checkpoint::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Checkpoint_protobuf_2fchkpt_2eproto.base); - memory_lz4_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - memory_size_ = 0; +inline void Checkpoint::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.memory_size_ = {}; } - Checkpoint::~Checkpoint() { // @@protoc_insertion_point(destructor:chkpt.Checkpoint) + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -void Checkpoint::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - memory_lz4_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void Checkpoint::ArenaDtor(void* object) { - Checkpoint* _this = reinterpret_cast< Checkpoint* >(object); - (void)_this; -} -void Checkpoint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } -void Checkpoint::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Checkpoint& Checkpoint::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Checkpoint_protobuf_2fchkpt_2eproto.base); - return *internal_default_instance(); +inline void Checkpoint::SharedDtor() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.memory_lz4_.Destroy(); + _impl_.~Impl_(); +} + +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::MessageLite::ClassDataFull + Checkpoint::_class_data_ = { + ::google::protobuf::Message::ClassData{ + &_Checkpoint_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Checkpoint::MergeImpl, +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::google::protobuf::Message::GetDeleteImpl(), + ::google::protobuf::Message::GetNewImpl(), + ::google::protobuf::Message::GetClearImpl(), &Checkpoint::ByteSizeLong, + &Checkpoint::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Checkpoint, _impl_._cached_size_), + false, + }, + &Checkpoint::kDescriptorMethods, + &descriptor_table_protobuf_2fchkpt_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::MessageLite::ClassData* Checkpoint::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 2, 0, 2> Checkpoint::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 5, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967264, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::chkpt::Checkpoint>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // repeated .chkpt.Frame frames = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Checkpoint, _impl_.frames_)}}, + // repeated .chkpt.Value globals = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 1, PROTOBUF_FIELD_OFFSET(Checkpoint, _impl_.globals_)}}, + // repeated int32 table = 3; + {::_pbi::TcParser::FastV32P1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(Checkpoint, _impl_.table_)}}, + // int32 memory_size = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Checkpoint, _impl_.memory_size_), 63>(), + {32, 63, 0, PROTOBUF_FIELD_OFFSET(Checkpoint, _impl_.memory_size_)}}, + // bytes memory_lz4 = 5; + {::_pbi::TcParser::FastBS1, + {42, 63, 0, PROTOBUF_FIELD_OFFSET(Checkpoint, _impl_.memory_lz4_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .chkpt.Frame frames = 1; + {PROTOBUF_FIELD_OFFSET(Checkpoint, _impl_.frames_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .chkpt.Value globals = 2; + {PROTOBUF_FIELD_OFFSET(Checkpoint, _impl_.globals_), 0, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated int32 table = 3; + {PROTOBUF_FIELD_OFFSET(Checkpoint, _impl_.table_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + // int32 memory_size = 4; + {PROTOBUF_FIELD_OFFSET(Checkpoint, _impl_.memory_size_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // bytes memory_lz4 = 5; + {PROTOBUF_FIELD_OFFSET(Checkpoint, _impl_.memory_lz4_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + }}, {{ + {::_pbi::TcParser::GetTable<::chkpt::Frame>()}, + {::_pbi::TcParser::GetTable<::chkpt::Value>()}, + }}, {{ + }}, +}; - -void Checkpoint::Clear() { +PROTOBUF_NOINLINE void Checkpoint::Clear() { // @@protoc_insertion_point(message_clear_start:chkpt.Checkpoint) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - frames_.Clear(); - globals_.Clear(); - table_.Clear(); - memory_lz4_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - memory_size_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Checkpoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .chkpt.Frame frames = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_frames(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; - // repeated .chkpt.Value globals = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_globals(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else goto handle_unusual; - continue; - // repeated int32 table = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_table(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) { - _internal_add_table(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int32 memory_size = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - memory_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes memory_lz4 = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - auto str = _internal_mutable_memory_lz4(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + _impl_.frames_.Clear(); + _impl_.globals_.Clear(); + _impl_.table_.Clear(); + _impl_.memory_lz4_.ClearToEmpty(); + _impl_.memory_size_ = 0; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* Checkpoint::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const Checkpoint& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* Checkpoint::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const Checkpoint& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:chkpt.Checkpoint) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated .chkpt.Frame frames = 1; + for (unsigned i = 0, n = static_cast( + this_._internal_frames_size()); + i < n; i++) { + const auto& repfield = this_._internal_frames().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); + } + + // repeated .chkpt.Value globals = 2; + for (unsigned i = 0, n = static_cast( + this_._internal_globals_size()); + i < n; i++) { + const auto& repfield = this_._internal_globals().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + + // repeated int32 table = 3; + { + int byte_size = this_._impl_._table_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 3, this_._internal_table(), byte_size, target); + } + } + + // int32 memory_size = 4; + if (this_._internal_memory_size() != 0) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<4>( + stream, this_._internal_memory_size(), target); + } + + // bytes memory_lz4 = 5; + if (!this_._internal_memory_lz4().empty()) { + const std::string& _s = this_._internal_memory_lz4(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:chkpt.Checkpoint) + return target; } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} - -::PROTOBUF_NAMESPACE_ID::uint8* Checkpoint::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:chkpt.Checkpoint) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .chkpt.Frame frames = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_frames_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_frames(i), target, stream); - } - - // repeated .chkpt.Value globals = 2; - for (unsigned int i = 0, - n = static_cast(this->_internal_globals_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_globals(i), target, stream); - } - - // repeated int32 table = 3; - { - int byte_size = _table_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 3, _internal_table(), byte_size, target); - } - } - - // int32 memory_size = 4; - if (this->memory_size() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_memory_size(), target); - } - // bytes memory_lz4 = 5; - if (this->memory_lz4().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 5, this->_internal_memory_lz4(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:chkpt.Checkpoint) - return target; -} - -size_t Checkpoint::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:chkpt.Checkpoint) - size_t total_size = 0; - - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .chkpt.Frame frames = 1; - total_size += 1UL * this->_internal_frames_size(); - for (const auto& msg : this->frames_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .chkpt.Value globals = 2; - total_size += 1UL * this->_internal_globals_size(); - for (const auto& msg : this->globals_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated int32 table = 3; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->table_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _table_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // bytes memory_lz4 = 5; - if (this->memory_lz4().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_memory_lz4()); - } - - // int32 memory_size = 4; - if (this->memory_size() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_memory_size()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Checkpoint::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:chkpt.Checkpoint) - GOOGLE_DCHECK_NE(&from, this); - const Checkpoint* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:chkpt.Checkpoint) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:chkpt.Checkpoint) - MergeFrom(*source); - } -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t Checkpoint::ByteSizeLong(const MessageLite& base) { + const Checkpoint& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t Checkpoint::ByteSizeLong() const { + const Checkpoint& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:chkpt.Checkpoint) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .chkpt.Frame frames = 1; + { + total_size += 1UL * this_._internal_frames_size(); + for (const auto& msg : this_._internal_frames()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated .chkpt.Value globals = 2; + { + total_size += 1UL * this_._internal_globals_size(); + for (const auto& msg : this_._internal_globals()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated int32 table = 3; + { + std::size_t data_size = ::_pbi::WireFormatLite::Int32Size( + this_._internal_table()) + ; + this_._impl_._table_cached_byte_size_.Set( + ::_pbi::ToCachedSize(data_size)); + std::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast(data_size)) + ; + total_size += tag_size + data_size; + } + } + { + // bytes memory_lz4 = 5; + if (!this_._internal_memory_lz4().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_memory_lz4()); + } + // int32 memory_size = 4; + if (this_._internal_memory_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_memory_size()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } -void Checkpoint::MergeFrom(const Checkpoint& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:chkpt.Checkpoint) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void Checkpoint::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:chkpt.Checkpoint) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - frames_.MergeFrom(from.frames_); - globals_.MergeFrom(from.globals_); - table_.MergeFrom(from.table_); - if (from.memory_lz4().size() > 0) { - _internal_set_memory_lz4(from._internal_memory_lz4()); + _this->_internal_mutable_frames()->MergeFrom( + from._internal_frames()); + _this->_internal_mutable_globals()->MergeFrom( + from._internal_globals()); + _this->_internal_mutable_table()->MergeFrom(from._internal_table()); + if (!from._internal_memory_lz4().empty()) { + _this->_internal_set_memory_lz4(from._internal_memory_lz4()); } - if (from.memory_size() != 0) { - _internal_set_memory_size(from._internal_memory_size()); + if (from._internal_memory_size() != 0) { + _this->_impl_.memory_size_ = from._impl_.memory_size_; } -} - -void Checkpoint::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:chkpt.Checkpoint) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Checkpoint::CopyFrom(const Checkpoint& from) { @@ -1349,41 +1369,31 @@ void Checkpoint::CopyFrom(const Checkpoint& from) { MergeFrom(from); } -bool Checkpoint::IsInitialized() const { - return true; -} -void Checkpoint::InternalSwap(Checkpoint* other) { +void Checkpoint::InternalSwap(Checkpoint* PROTOBUF_RESTRICT other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - frames_.InternalSwap(&other->frames_); - globals_.InternalSwap(&other->globals_); - table_.InternalSwap(&other->table_); - memory_lz4_.Swap(&other->memory_lz4_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(memory_size_, other->memory_size_); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.frames_.InternalSwap(&other->_impl_.frames_); + _impl_.globals_.InternalSwap(&other->_impl_.globals_); + _impl_.table_.InternalSwap(&other->_impl_.table_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.memory_lz4_, &other->_impl_.memory_lz4_, arena); + swap(_impl_.memory_size_, other->_impl_.memory_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata Checkpoint::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata Checkpoint::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - - // @@protoc_insertion_point(namespace_scope) } // namespace chkpt -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::chkpt::Type* Arena::CreateMaybeMessage< ::chkpt::Type >(Arena* arena) { - return Arena::CreateMessageInternal< ::chkpt::Type >(arena); -} -template<> PROTOBUF_NOINLINE ::chkpt::Value* Arena::CreateMaybeMessage< ::chkpt::Value >(Arena* arena) { - return Arena::CreateMessageInternal< ::chkpt::Value >(arena); -} -template<> PROTOBUF_NOINLINE ::chkpt::Frame* Arena::CreateMaybeMessage< ::chkpt::Frame >(Arena* arena) { - return Arena::CreateMessageInternal< ::chkpt::Frame >(arena); -} -template<> PROTOBUF_NOINLINE ::chkpt::Checkpoint* Arena::CreateMaybeMessage< ::chkpt::Checkpoint >(Arena* arena) { - return Arena::CreateMessageInternal< ::chkpt::Checkpoint >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_protobuf_2fchkpt_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/lib-rt/protobuf/chkpt.pb.h b/lib-rt/protobuf/chkpt.pb.h index b2cd86b..4035e08 100644 --- a/lib-rt/protobuf/chkpt.pb.h +++ b/lib-rt/protobuf/chkpt.pb.h @@ -1,308 +1,169 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: protobuf/chkpt.proto +// Protobuf C++ Version: 5.28.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_protobuf_2fchkpt_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_protobuf_2fchkpt_2eproto +#ifndef GOOGLE_PROTOBUF_INCLUDED_protobuf_2fchkpt_2eproto_2epb_2eh +#define GOOGLE_PROTOBUF_INCLUDED_protobuf_2fchkpt_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3012000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3012004 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5028002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_bases.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_reflection.h" +#include "google/protobuf/unknown_field_set.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_protobuf_2fchkpt_2eproto -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct TableStruct_protobuf_2fchkpt_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; + static const ::uint32_t offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protobuf_2fchkpt_2eproto; +extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_protobuf_2fchkpt_2eproto; namespace chkpt { class Checkpoint; -class CheckpointDefaultTypeInternal; +struct CheckpointDefaultTypeInternal; extern CheckpointDefaultTypeInternal _Checkpoint_default_instance_; class Frame; -class FrameDefaultTypeInternal; +struct FrameDefaultTypeInternal; extern FrameDefaultTypeInternal _Frame_default_instance_; class Type; -class TypeDefaultTypeInternal; +struct TypeDefaultTypeInternal; extern TypeDefaultTypeInternal _Type_default_instance_; class Value; -class ValueDefaultTypeInternal; +struct ValueDefaultTypeInternal; extern ValueDefaultTypeInternal _Value_default_instance_; } // namespace chkpt -PROTOBUF_NAMESPACE_OPEN -template<> ::chkpt::Checkpoint* Arena::CreateMaybeMessage<::chkpt::Checkpoint>(Arena*); -template<> ::chkpt::Frame* Arena::CreateMaybeMessage<::chkpt::Frame>(Arena*); -template<> ::chkpt::Type* Arena::CreateMaybeMessage<::chkpt::Type>(Arena*); -template<> ::chkpt::Value* Arena::CreateMaybeMessage<::chkpt::Value>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace chkpt { +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google +namespace chkpt { enum Type_Enum : int { Type_Enum_UNSPECIFIED = 0, Type_Enum_I32 = 1, Type_Enum_I64 = 2, Type_Enum_F32 = 3, Type_Enum_F64 = 4, - Type_Enum_Type_Enum_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - Type_Enum_Type_Enum_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() + Type_Enum_Type_Enum_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + Type_Enum_Type_Enum_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + bool Type_Enum_IsValid(int value); -constexpr Type_Enum Type_Enum_Enum_MIN = Type_Enum_UNSPECIFIED; -constexpr Type_Enum Type_Enum_Enum_MAX = Type_Enum_F64; -constexpr int Type_Enum_Enum_ARRAYSIZE = Type_Enum_Enum_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Type_Enum_descriptor(); -template -inline const std::string& Type_Enum_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Enum_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - Type_Enum_descriptor(), enum_t_value); -} -inline bool Type_Enum_Parse( - const std::string& name, Type_Enum* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - Type_Enum_descriptor(), name, value); +extern const uint32_t Type_Enum_internal_data_[]; +constexpr Type_Enum Type_Enum_Enum_MIN = static_cast(0); +constexpr Type_Enum Type_Enum_Enum_MAX = static_cast(4); +constexpr int Type_Enum_Enum_ARRAYSIZE = 4 + 1; +const ::google::protobuf::EnumDescriptor* +Type_Enum_descriptor(); +template +const std::string& Type_Enum_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Enum_Name()."); + return Type_Enum_Name(static_cast(value)); +} +template <> +inline const std::string& Type_Enum_Name(Type_Enum value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool Type_Enum_Parse(absl::string_view name, Type_Enum* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Type_Enum_descriptor(), name, value); } -// =================================================================== - -class Type PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:chkpt.Type) */ { - public: - inline Type() : Type(nullptr) {}; - virtual ~Type(); - - Type(const Type& from); - Type(Type&& from) noexcept - : Type() { - *this = ::std::move(from); - } - - inline Type& operator=(const Type& from) { - CopyFrom(from); - return *this; - } - inline Type& operator=(Type&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } - static const Type& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Type* internal_default_instance() { - return reinterpret_cast( - &_Type_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Type& a, Type& b) { - a.Swap(&b); - } - inline void Swap(Type* other) { - if (other == this) return; - if (GetArena() == other->GetArena()) { - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Type* other) { - if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline Type* New() const final { - return CreateMaybeMessage(nullptr); - } - - Type* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void CopyFrom(const Type& from); - void MergeFrom(const Type& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Type* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "chkpt.Type"; - } - protected: - explicit Type(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protobuf_2fchkpt_2eproto); - return ::descriptor_table_protobuf_2fchkpt_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - typedef Type_Enum Enum; - static constexpr Enum UNSPECIFIED = - Type_Enum_UNSPECIFIED; - static constexpr Enum I32 = - Type_Enum_I32; - static constexpr Enum I64 = - Type_Enum_I64; - static constexpr Enum F32 = - Type_Enum_F32; - static constexpr Enum F64 = - Type_Enum_F64; - static inline bool Enum_IsValid(int value) { - return Type_Enum_IsValid(value); - } - static constexpr Enum Enum_MIN = - Type_Enum_Enum_MIN; - static constexpr Enum Enum_MAX = - Type_Enum_Enum_MAX; - static constexpr int Enum_ARRAYSIZE = - Type_Enum_Enum_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Enum_descriptor() { - return Type_Enum_descriptor(); - } - template - static inline const std::string& Enum_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Enum_Name."); - return Type_Enum_Name(enum_t_value); - } - static inline bool Enum_Parse(const std::string& name, - Enum* value) { - return Type_Enum_Parse(name, value); - } - // accessors ------------------------------------------------------- +// =================================================================== - // @@protoc_insertion_point(class_scope:chkpt.Type) - private: - class _Internal; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_protobuf_2fchkpt_2eproto; -}; // ------------------------------------------------------------------- -class Value PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:chkpt.Value) */ { +class Value final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:chkpt.Value) */ { public: - inline Value() : Value(nullptr) {}; - virtual ~Value(); - - Value(const Value& from); - Value(Value&& from) noexcept - : Value() { - *this = ::std::move(from); - } - + inline Value() : Value(nullptr) {} + ~Value() PROTOBUF_FINAL; + template + explicit PROTOBUF_CONSTEXPR Value( + ::google::protobuf::internal::ConstantInitialized); + + inline Value(const Value& from) : Value(nullptr, from) {} + inline Value(Value&& from) noexcept + : Value(nullptr, std::move(from)) {} inline Value& operator=(const Value& from) { CopyFrom(from); return *this; } inline Value& operator=(Value&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Value& default_instance() { + return *internal_default_instance(); } - static const Value& default_instance(); - enum TestOneofCase { kI32 = 2, kI64 = 3, @@ -310,83 +171,95 @@ class Value PROTOBUF_FINAL : kF64 = 5, TEST_ONEOF_NOT_SET = 0, }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Value* internal_default_instance() { return reinterpret_cast( - &_Value_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Value& a, Value& b) { - a.Swap(&b); + &_Value_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(Value& a, Value& b) { a.Swap(&b); } inline void Swap(Value* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Value* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Value* New() const final { - return CreateMaybeMessage(nullptr); - } - - Value* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + Value* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { + return ::google::protobuf::Message::DefaultConstruct(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Value& from); - void MergeFrom(const Value& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Value& from) { Value::MergeImpl(*this, from); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Value* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "chkpt.Value"; + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; } - protected: - explicit Value(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protobuf_2fchkpt_2eproto); - return ::descriptor_table_protobuf_2fchkpt_2eproto.file_level_metadata[kIndexInFileMessages]; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(Value* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "chkpt.Value"; } + + protected: + explicit Value(::google::protobuf::Arena* arena); + Value(::google::protobuf::Arena* arena, const Value& from); + Value(::google::protobuf::Arena* arena, Value&& from) noexcept + : Value(arena) { + *this = ::std::move(from); } + const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; + static const ::google::protobuf::Message::ClassDataFull _class_data_; - public: - + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kTypeFieldNumber = 1, kI32FieldNumber = 2, @@ -395,62 +268,59 @@ class Value PROTOBUF_FINAL : kF64FieldNumber = 5, }; // .chkpt.Type.Enum type = 1; - void clear_type(); + void clear_type() ; ::chkpt::Type_Enum type() const; void set_type(::chkpt::Type_Enum value); + private: ::chkpt::Type_Enum _internal_type() const; void _internal_set_type(::chkpt::Type_Enum value); - public: - // int32 i32 = 2; - private: - bool _internal_has_i32() const; - public: - void clear_i32(); - ::PROTOBUF_NAMESPACE_ID::int32 i32() const; - void set_i32(::PROTOBUF_NAMESPACE_ID::int32 value); - private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_i32() const; - void _internal_set_i32(::PROTOBUF_NAMESPACE_ID::int32 value); public: + // int32 i32 = 2; + bool has_i32() const; + void clear_i32() ; + ::int32_t i32() const; + void set_i32(::int32_t value); - // int64 i64 = 3; - private: - bool _internal_has_i64() const; - public: - void clear_i64(); - ::PROTOBUF_NAMESPACE_ID::int64 i64() const; - void set_i64(::PROTOBUF_NAMESPACE_ID::int64 value); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_i64() const; - void _internal_set_i64(::PROTOBUF_NAMESPACE_ID::int64 value); + ::int32_t _internal_i32() const; + void _internal_set_i32(::int32_t value); + public: + // int64 i64 = 3; + bool has_i64() const; + void clear_i64() ; + ::int64_t i64() const; + void set_i64(::int64_t value); - // float f32 = 4; private: - bool _internal_has_f32() const; + ::int64_t _internal_i64() const; + void _internal_set_i64(::int64_t value); + public: - void clear_f32(); + // float f32 = 4; + bool has_f32() const; + void clear_f32() ; float f32() const; void set_f32(float value); + private: float _internal_f32() const; void _internal_set_f32(float value); - public: - // double f64 = 5; - private: - bool _internal_has_f64() const; public: - void clear_f64(); + // double f64 = 5; + bool has_f64() const; + void clear_f64() ; double f64() const; void set_f64(double value); + private: double _internal_f64() const; void _internal_set_f64(double value); - public: + public: void clear_test_oneof(); TestOneofCase test_oneof_case() const; // @@protoc_insertion_point(class_scope:chkpt.Value) @@ -460,140 +330,354 @@ class Value PROTOBUF_FINAL : void set_has_i64(); void set_has_f32(); void set_has_f64(); - inline bool has_test_oneof() const; inline void clear_has_test_oneof(); - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - int type_; - union TestOneofUnion { - TestOneofUnion() {} - ::PROTOBUF_NAMESPACE_ID::int32 i32_; - ::PROTOBUF_NAMESPACE_ID::int64 i64_; - float f32_; - double f64_; - } test_oneof_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 5, 0, + 0, 2> + _table_; + + static constexpr const void* _raw_default_instance_ = + &_Value_default_instance_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const Value& from_msg); + int type_; + union TestOneofUnion { + constexpr TestOneofUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::int32_t i32_; + ::int64_t i64_; + float f32_; + double f64_; + } test_oneof_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_protobuf_2fchkpt_2eproto; }; // ------------------------------------------------------------------- -class Frame PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:chkpt.Frame) */ { +class Type final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:chkpt.Type) */ { public: - inline Frame() : Frame(nullptr) {}; - virtual ~Frame(); + inline Type() : Type(nullptr) {} + template + explicit PROTOBUF_CONSTEXPR Type( + ::google::protobuf::internal::ConstantInitialized); + + inline Type(const Type& from) : Type(nullptr, from) {} + inline Type(Type&& from) noexcept + : Type(nullptr, std::move(from)) {} + inline Type& operator=(const Type& from) { + CopyFrom(from); + return *this; + } + inline Type& operator=(Type&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } - Frame(const Frame& from); - Frame(Frame&& from) noexcept - : Frame() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Type& default_instance() { + return *internal_default_instance(); + } + static inline const Type* internal_default_instance() { + return reinterpret_cast( + &_Type_default_instance_); + } + static constexpr int kIndexInFileMessages = 0; + friend void swap(Type& a, Type& b) { a.Swap(&b); } + inline void Swap(Type* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Type* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Type* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); + } + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const Type& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const Type& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } + + public: + bool IsInitialized() const { + return true; + } + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "chkpt.Type"; } + + protected: + explicit Type(::google::protobuf::Arena* arena); + Type(::google::protobuf::Arena* arena, const Type& from); + Type(::google::protobuf::Arena* arena, Type&& from) noexcept + : Type(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ZeroFieldsBase::ClassData* GetClassData() const PROTOBUF_FINAL; + static const ::google::protobuf::internal::ZeroFieldsBase::ClassDataFull _class_data_; + + public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + using Enum = Type_Enum; + static constexpr Enum UNSPECIFIED = Type_Enum_UNSPECIFIED; + static constexpr Enum I32 = Type_Enum_I32; + static constexpr Enum I64 = Type_Enum_I64; + static constexpr Enum F32 = Type_Enum_F32; + static constexpr Enum F64 = Type_Enum_F64; + static inline bool Enum_IsValid(int value) { + return Type_Enum_IsValid(value); + } + static constexpr Enum Enum_MIN = Type_Enum_Enum_MIN; + static constexpr Enum Enum_MAX = Type_Enum_Enum_MAX; + static constexpr int Enum_ARRAYSIZE = Type_Enum_Enum_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Enum_descriptor() { + return Type_Enum_descriptor(); + } + template + static inline const std::string& Enum_Name(T value) { + return Type_Enum_Name(value); + } + static inline bool Enum_Parse(absl::string_view name, Enum* value) { + return Type_Enum_Parse(name, value); + } + + // accessors ------------------------------------------------------- + // @@protoc_insertion_point(class_scope:chkpt.Type) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 0, 0, + 0, 2> + _table_; + + static constexpr const void* _raw_default_instance_ = + &_Type_default_instance_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const Type& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; + friend struct ::TableStruct_protobuf_2fchkpt_2eproto; +}; +// ------------------------------------------------------------------- +class Frame final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:chkpt.Frame) */ { + public: + inline Frame() : Frame(nullptr) {} + ~Frame() PROTOBUF_FINAL; + template + explicit PROTOBUF_CONSTEXPR Frame( + ::google::protobuf::internal::ConstantInitialized); + + inline Frame(const Frame& from) : Frame(nullptr, from) {} + inline Frame(Frame&& from) noexcept + : Frame(nullptr, std::move(from)) {} inline Frame& operator=(const Frame& from) { CopyFrom(from); return *this; } inline Frame& operator=(Frame&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Frame& default_instance() { + return *internal_default_instance(); } - static const Frame& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Frame* internal_default_instance() { return reinterpret_cast( - &_Frame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(Frame& a, Frame& b) { - a.Swap(&b); + &_Frame_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(Frame& a, Frame& b) { a.Swap(&b); } inline void Swap(Frame* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Frame* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Frame* New() const final { - return CreateMaybeMessage(nullptr); - } - - Frame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + Frame* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { + return ::google::protobuf::Message::DefaultConstruct(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Frame& from); - void MergeFrom(const Frame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Frame& from) { Frame::MergeImpl(*this, from); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Frame* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "chkpt.Frame"; + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; } - protected: - explicit Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protobuf_2fchkpt_2eproto); - return ::descriptor_table_protobuf_2fchkpt_2eproto.file_level_metadata[kIndexInFileMessages]; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(Frame* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "chkpt.Frame"; } + + protected: + explicit Frame(::google::protobuf::Arena* arena); + Frame(::google::protobuf::Arena* arena, const Frame& from); + Frame(::google::protobuf::Arena* arena, Frame&& from) noexcept + : Frame(arena) { + *this = ::std::move(from); } + const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; + static const ::google::protobuf::Message::ClassDataFull _class_data_; - public: - + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kLocalsFieldNumber = 3, kStackFieldNumber = 4, @@ -604,184 +688,234 @@ class Frame PROTOBUF_FINAL : int locals_size() const; private: int _internal_locals_size() const; + public: - void clear_locals(); + void clear_locals() ; ::chkpt::Value* mutable_locals(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value >* - mutable_locals(); + ::google::protobuf::RepeatedPtrField<::chkpt::Value>* mutable_locals(); + private: - const ::chkpt::Value& _internal_locals(int index) const; - ::chkpt::Value* _internal_add_locals(); + const ::google::protobuf::RepeatedPtrField<::chkpt::Value>& _internal_locals() const; + ::google::protobuf::RepeatedPtrField<::chkpt::Value>* _internal_mutable_locals(); public: const ::chkpt::Value& locals(int index) const; ::chkpt::Value* add_locals(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value >& - locals() const; - + const ::google::protobuf::RepeatedPtrField<::chkpt::Value>& locals() const; // repeated .chkpt.Value stack = 4; int stack_size() const; private: int _internal_stack_size() const; + public: - void clear_stack(); + void clear_stack() ; ::chkpt::Value* mutable_stack(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value >* - mutable_stack(); + ::google::protobuf::RepeatedPtrField<::chkpt::Value>* mutable_stack(); + private: - const ::chkpt::Value& _internal_stack(int index) const; - ::chkpt::Value* _internal_add_stack(); + const ::google::protobuf::RepeatedPtrField<::chkpt::Value>& _internal_stack() const; + ::google::protobuf::RepeatedPtrField<::chkpt::Value>* _internal_mutable_stack(); public: const ::chkpt::Value& stack(int index) const; ::chkpt::Value* add_stack(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value >& - stack() const; - + const ::google::protobuf::RepeatedPtrField<::chkpt::Value>& stack() const; // int32 fn_idx = 1; - void clear_fn_idx(); - ::PROTOBUF_NAMESPACE_ID::int32 fn_idx() const; - void set_fn_idx(::PROTOBUF_NAMESPACE_ID::int32 value); + void clear_fn_idx() ; + ::int32_t fn_idx() const; + void set_fn_idx(::int32_t value); + private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_fn_idx() const; - void _internal_set_fn_idx(::PROTOBUF_NAMESPACE_ID::int32 value); - public: + ::int32_t _internal_fn_idx() const; + void _internal_set_fn_idx(::int32_t value); + public: // int32 pc = 2; - void clear_pc(); - ::PROTOBUF_NAMESPACE_ID::int32 pc() const; - void set_pc(::PROTOBUF_NAMESPACE_ID::int32 value); + void clear_pc() ; + ::int32_t pc() const; + void set_pc(::int32_t value); + private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_pc() const; - void _internal_set_pc(::PROTOBUF_NAMESPACE_ID::int32 value); - public: + ::int32_t _internal_pc() const; + void _internal_set_pc(::int32_t value); + public: // @@protoc_insertion_point(class_scope:chkpt.Frame) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value > locals_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value > stack_; - ::PROTOBUF_NAMESPACE_ID::int32 fn_idx_; - ::PROTOBUF_NAMESPACE_ID::int32 pc_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 4, 2, + 0, 2> + _table_; + + static constexpr const void* _raw_default_instance_ = + &_Frame_default_instance_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const Frame& from_msg); + ::google::protobuf::RepeatedPtrField< ::chkpt::Value > locals_; + ::google::protobuf::RepeatedPtrField< ::chkpt::Value > stack_; + ::int32_t fn_idx_; + ::int32_t pc_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_protobuf_2fchkpt_2eproto; }; // ------------------------------------------------------------------- -class Checkpoint PROTOBUF_FINAL : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:chkpt.Checkpoint) */ { +class Checkpoint final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:chkpt.Checkpoint) */ { public: - inline Checkpoint() : Checkpoint(nullptr) {}; - virtual ~Checkpoint(); - - Checkpoint(const Checkpoint& from); - Checkpoint(Checkpoint&& from) noexcept - : Checkpoint() { - *this = ::std::move(from); - } - + inline Checkpoint() : Checkpoint(nullptr) {} + ~Checkpoint() PROTOBUF_FINAL; + template + explicit PROTOBUF_CONSTEXPR Checkpoint( + ::google::protobuf::internal::ConstantInitialized); + + inline Checkpoint(const Checkpoint& from) : Checkpoint(nullptr, from) {} + inline Checkpoint(Checkpoint&& from) noexcept + : Checkpoint(nullptr, std::move(from)) {} inline Checkpoint& operator=(const Checkpoint& from) { CopyFrom(from); return *this; } inline Checkpoint& operator=(Checkpoint&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Checkpoint& default_instance() { + return *internal_default_instance(); } - static const Checkpoint& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Checkpoint* internal_default_instance() { return reinterpret_cast( - &_Checkpoint_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(Checkpoint& a, Checkpoint& b) { - a.Swap(&b); + &_Checkpoint_default_instance_); } + static constexpr int kIndexInFileMessages = 3; + friend void swap(Checkpoint& a, Checkpoint& b) { a.Swap(&b); } inline void Swap(Checkpoint* other) { if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Checkpoint* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Checkpoint* New() const final { - return CreateMaybeMessage(nullptr); + Checkpoint* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL { + return ::google::protobuf::Message::DefaultConstruct(arena); } - - Checkpoint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Checkpoint& from); - void MergeFrom(const Checkpoint& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Checkpoint& from) { Checkpoint::MergeImpl(*this, from); } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Checkpoint* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "chkpt.Checkpoint"; + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; } - protected: - explicit Checkpoint(::PROTOBUF_NAMESPACE_ID::Arena* arena); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protobuf_2fchkpt_2eproto); - return ::descriptor_table_protobuf_2fchkpt_2eproto.file_level_metadata[kIndexInFileMessages]; + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(Checkpoint* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "chkpt.Checkpoint"; } + + protected: + explicit Checkpoint(::google::protobuf::Arena* arena); + Checkpoint(::google::protobuf::Arena* arena, const Checkpoint& from); + Checkpoint(::google::protobuf::Arena* arena, Checkpoint&& from) noexcept + : Checkpoint(arena) { + *this = ::std::move(from); } + const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL; + static const ::google::protobuf::Message::ClassDataFull _class_data_; - public: - + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kFramesFieldNumber = 1, kGlobalsFieldNumber = 2, @@ -793,119 +927,133 @@ class Checkpoint PROTOBUF_FINAL : int frames_size() const; private: int _internal_frames_size() const; + public: - void clear_frames(); + void clear_frames() ; ::chkpt::Frame* mutable_frames(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Frame >* - mutable_frames(); + ::google::protobuf::RepeatedPtrField<::chkpt::Frame>* mutable_frames(); + private: - const ::chkpt::Frame& _internal_frames(int index) const; - ::chkpt::Frame* _internal_add_frames(); + const ::google::protobuf::RepeatedPtrField<::chkpt::Frame>& _internal_frames() const; + ::google::protobuf::RepeatedPtrField<::chkpt::Frame>* _internal_mutable_frames(); public: const ::chkpt::Frame& frames(int index) const; ::chkpt::Frame* add_frames(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Frame >& - frames() const; - + const ::google::protobuf::RepeatedPtrField<::chkpt::Frame>& frames() const; // repeated .chkpt.Value globals = 2; int globals_size() const; private: int _internal_globals_size() const; + public: - void clear_globals(); + void clear_globals() ; ::chkpt::Value* mutable_globals(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value >* - mutable_globals(); + ::google::protobuf::RepeatedPtrField<::chkpt::Value>* mutable_globals(); + private: - const ::chkpt::Value& _internal_globals(int index) const; - ::chkpt::Value* _internal_add_globals(); + const ::google::protobuf::RepeatedPtrField<::chkpt::Value>& _internal_globals() const; + ::google::protobuf::RepeatedPtrField<::chkpt::Value>* _internal_mutable_globals(); public: const ::chkpt::Value& globals(int index) const; ::chkpt::Value* add_globals(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value >& - globals() const; - + const ::google::protobuf::RepeatedPtrField<::chkpt::Value>& globals() const; // repeated int32 table = 3; int table_size() const; private: int _internal_table_size() const; + public: - void clear_table(); + void clear_table() ; + ::int32_t table(int index) const; + void set_table(int index, ::int32_t value); + void add_table(::int32_t value); + const ::google::protobuf::RepeatedField<::int32_t>& table() const; + ::google::protobuf::RepeatedField<::int32_t>* mutable_table(); + private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_table(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& - _internal_table() const; - void _internal_add_table(::PROTOBUF_NAMESPACE_ID::int32 value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* - _internal_mutable_table(); - public: - ::PROTOBUF_NAMESPACE_ID::int32 table(int index) const; - void set_table(int index, ::PROTOBUF_NAMESPACE_ID::int32 value); - void add_table(::PROTOBUF_NAMESPACE_ID::int32 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& - table() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* - mutable_table(); + const ::google::protobuf::RepeatedField<::int32_t>& _internal_table() const; + ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_table(); + public: // bytes memory_lz4 = 5; - void clear_memory_lz4(); + void clear_memory_lz4() ; const std::string& memory_lz4() const; - void set_memory_lz4(const std::string& value); - void set_memory_lz4(std::string&& value); - void set_memory_lz4(const char* value); - void set_memory_lz4(const void* value, size_t size); + template + void set_memory_lz4(Arg_&& arg, Args_... args); std::string* mutable_memory_lz4(); - std::string* release_memory_lz4(); - void set_allocated_memory_lz4(std::string* memory_lz4); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_memory_lz4(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_memory_lz4( - std::string* memory_lz4); + PROTOBUF_NODISCARD std::string* release_memory_lz4(); + void set_allocated_memory_lz4(std::string* value); + private: const std::string& _internal_memory_lz4() const; - void _internal_set_memory_lz4(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_memory_lz4( + const std::string& value); std::string* _internal_mutable_memory_lz4(); - public: + public: // int32 memory_size = 4; - void clear_memory_size(); - ::PROTOBUF_NAMESPACE_ID::int32 memory_size() const; - void set_memory_size(::PROTOBUF_NAMESPACE_ID::int32 value); + void clear_memory_size() ; + ::int32_t memory_size() const; + void set_memory_size(::int32_t value); + private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_memory_size() const; - void _internal_set_memory_size(::PROTOBUF_NAMESPACE_ID::int32 value); - public: + ::int32_t _internal_memory_size() const; + void _internal_set_memory_size(::int32_t value); + public: // @@protoc_insertion_point(class_scope:chkpt.Checkpoint) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Frame > frames_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value > globals_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > table_; - mutable std::atomic _table_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr memory_lz4_; - ::PROTOBUF_NAMESPACE_ID::int32 memory_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 5, 2, + 0, 2> + _table_; + + static constexpr const void* _raw_default_instance_ = + &_Checkpoint_default_instance_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const Checkpoint& from_msg); + ::google::protobuf::RepeatedPtrField< ::chkpt::Frame > frames_; + ::google::protobuf::RepeatedPtrField< ::chkpt::Value > globals_; + ::google::protobuf::RepeatedField<::int32_t> table_; + mutable ::google::protobuf::internal::CachedSize _table_cached_byte_size_; + ::google::protobuf::internal::ArenaStringPtr memory_lz4_; + ::int32_t memory_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_protobuf_2fchkpt_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // Type // ------------------------------------------------------------------- @@ -914,172 +1062,166 @@ class Checkpoint PROTOBUF_FINAL : // .chkpt.Type.Enum type = 1; inline void Value::clear_type() { - type_ = 0; -} -inline ::chkpt::Type_Enum Value::_internal_type() const { - return static_cast< ::chkpt::Type_Enum >(type_); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = 0; } inline ::chkpt::Type_Enum Value::type() const { // @@protoc_insertion_point(field_get:chkpt.Value.type) return _internal_type(); } -inline void Value::_internal_set_type(::chkpt::Type_Enum value) { - - type_ = value; -} inline void Value::set_type(::chkpt::Type_Enum value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:chkpt.Value.type) } +inline ::chkpt::Type_Enum Value::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::chkpt::Type_Enum>(_impl_.type_); +} +inline void Value::_internal_set_type(::chkpt::Type_Enum value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = value; +} // int32 i32 = 2; -inline bool Value::_internal_has_i32() const { +inline bool Value::has_i32() const { return test_oneof_case() == kI32; } inline void Value::set_has_i32() { - _oneof_case_[0] = kI32; + _impl_._oneof_case_[0] = kI32; } inline void Value::clear_i32() { - if (_internal_has_i32()) { - test_oneof_.i32_ = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (test_oneof_case() == kI32) { + _impl_.test_oneof_.i32_ = 0; clear_has_test_oneof(); } } -inline ::PROTOBUF_NAMESPACE_ID::int32 Value::_internal_i32() const { - if (_internal_has_i32()) { - return test_oneof_.i32_; - } - return 0; +inline ::int32_t Value::i32() const { + // @@protoc_insertion_point(field_get:chkpt.Value.i32) + return _internal_i32(); } -inline void Value::_internal_set_i32(::PROTOBUF_NAMESPACE_ID::int32 value) { - if (!_internal_has_i32()) { +inline void Value::set_i32(::int32_t value) { + if (test_oneof_case() != kI32) { clear_test_oneof(); set_has_i32(); } - test_oneof_.i32_ = value; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Value::i32() const { - // @@protoc_insertion_point(field_get:chkpt.Value.i32) - return _internal_i32(); -} -inline void Value::set_i32(::PROTOBUF_NAMESPACE_ID::int32 value) { - _internal_set_i32(value); + _impl_.test_oneof_.i32_ = value; // @@protoc_insertion_point(field_set:chkpt.Value.i32) } +inline ::int32_t Value::_internal_i32() const { + if (test_oneof_case() == kI32) { + return _impl_.test_oneof_.i32_; + } + return 0; +} // int64 i64 = 3; -inline bool Value::_internal_has_i64() const { +inline bool Value::has_i64() const { return test_oneof_case() == kI64; } inline void Value::set_has_i64() { - _oneof_case_[0] = kI64; + _impl_._oneof_case_[0] = kI64; } inline void Value::clear_i64() { - if (_internal_has_i64()) { - test_oneof_.i64_ = PROTOBUF_LONGLONG(0); + ::google::protobuf::internal::TSanWrite(&_impl_); + if (test_oneof_case() == kI64) { + _impl_.test_oneof_.i64_ = ::int64_t{0}; clear_has_test_oneof(); } } -inline ::PROTOBUF_NAMESPACE_ID::int64 Value::_internal_i64() const { - if (_internal_has_i64()) { - return test_oneof_.i64_; - } - return PROTOBUF_LONGLONG(0); +inline ::int64_t Value::i64() const { + // @@protoc_insertion_point(field_get:chkpt.Value.i64) + return _internal_i64(); } -inline void Value::_internal_set_i64(::PROTOBUF_NAMESPACE_ID::int64 value) { - if (!_internal_has_i64()) { +inline void Value::set_i64(::int64_t value) { + if (test_oneof_case() != kI64) { clear_test_oneof(); set_has_i64(); } - test_oneof_.i64_ = value; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Value::i64() const { - // @@protoc_insertion_point(field_get:chkpt.Value.i64) - return _internal_i64(); -} -inline void Value::set_i64(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_i64(value); + _impl_.test_oneof_.i64_ = value; // @@protoc_insertion_point(field_set:chkpt.Value.i64) } +inline ::int64_t Value::_internal_i64() const { + if (test_oneof_case() == kI64) { + return _impl_.test_oneof_.i64_; + } + return ::int64_t{0}; +} // float f32 = 4; -inline bool Value::_internal_has_f32() const { +inline bool Value::has_f32() const { return test_oneof_case() == kF32; } inline void Value::set_has_f32() { - _oneof_case_[0] = kF32; + _impl_._oneof_case_[0] = kF32; } inline void Value::clear_f32() { - if (_internal_has_f32()) { - test_oneof_.f32_ = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (test_oneof_case() == kF32) { + _impl_.test_oneof_.f32_ = 0; clear_has_test_oneof(); } } -inline float Value::_internal_f32() const { - if (_internal_has_f32()) { - return test_oneof_.f32_; - } - return 0; -} -inline void Value::_internal_set_f32(float value) { - if (!_internal_has_f32()) { - clear_test_oneof(); - set_has_f32(); - } - test_oneof_.f32_ = value; -} inline float Value::f32() const { // @@protoc_insertion_point(field_get:chkpt.Value.f32) return _internal_f32(); } inline void Value::set_f32(float value) { - _internal_set_f32(value); + if (test_oneof_case() != kF32) { + clear_test_oneof(); + set_has_f32(); + } + _impl_.test_oneof_.f32_ = value; // @@protoc_insertion_point(field_set:chkpt.Value.f32) } +inline float Value::_internal_f32() const { + if (test_oneof_case() == kF32) { + return _impl_.test_oneof_.f32_; + } + return 0; +} // double f64 = 5; -inline bool Value::_internal_has_f64() const { +inline bool Value::has_f64() const { return test_oneof_case() == kF64; } inline void Value::set_has_f64() { - _oneof_case_[0] = kF64; + _impl_._oneof_case_[0] = kF64; } inline void Value::clear_f64() { - if (_internal_has_f64()) { - test_oneof_.f64_ = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + if (test_oneof_case() == kF64) { + _impl_.test_oneof_.f64_ = 0; clear_has_test_oneof(); } } -inline double Value::_internal_f64() const { - if (_internal_has_f64()) { - return test_oneof_.f64_; - } - return 0; -} -inline void Value::_internal_set_f64(double value) { - if (!_internal_has_f64()) { - clear_test_oneof(); - set_has_f64(); - } - test_oneof_.f64_ = value; -} inline double Value::f64() const { // @@protoc_insertion_point(field_get:chkpt.Value.f64) return _internal_f64(); } inline void Value::set_f64(double value) { - _internal_set_f64(value); + if (test_oneof_case() != kF64) { + clear_test_oneof(); + set_has_f64(); + } + _impl_.test_oneof_.f64_ = value; // @@protoc_insertion_point(field_set:chkpt.Value.f64) } +inline double Value::_internal_f64() const { + if (test_oneof_case() == kF64) { + return _impl_.test_oneof_.f64_; + } + return 0; +} inline bool Value::has_test_oneof() const { return test_oneof_case() != TEST_ONEOF_NOT_SET; } inline void Value::clear_has_test_oneof() { - _oneof_case_[0] = TEST_ONEOF_NOT_SET; + _impl_._oneof_case_[0] = TEST_ONEOF_NOT_SET; } inline Value::TestOneofCase Value::test_oneof_case() const { - return Value::TestOneofCase(_oneof_case_[0]); + return Value::TestOneofCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -1087,120 +1229,144 @@ inline Value::TestOneofCase Value::test_oneof_case() const { // int32 fn_idx = 1; inline void Frame::clear_fn_idx() { - fn_idx_ = 0; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Frame::_internal_fn_idx() const { - return fn_idx_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.fn_idx_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::int32 Frame::fn_idx() const { +inline ::int32_t Frame::fn_idx() const { // @@protoc_insertion_point(field_get:chkpt.Frame.fn_idx) return _internal_fn_idx(); } -inline void Frame::_internal_set_fn_idx(::PROTOBUF_NAMESPACE_ID::int32 value) { - - fn_idx_ = value; -} -inline void Frame::set_fn_idx(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void Frame::set_fn_idx(::int32_t value) { _internal_set_fn_idx(value); // @@protoc_insertion_point(field_set:chkpt.Frame.fn_idx) } +inline ::int32_t Frame::_internal_fn_idx() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.fn_idx_; +} +inline void Frame::_internal_set_fn_idx(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.fn_idx_ = value; +} // int32 pc = 2; inline void Frame::clear_pc() { - pc_ = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pc_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::int32 Frame::_internal_pc() const { - return pc_; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Frame::pc() const { +inline ::int32_t Frame::pc() const { // @@protoc_insertion_point(field_get:chkpt.Frame.pc) return _internal_pc(); } -inline void Frame::_internal_set_pc(::PROTOBUF_NAMESPACE_ID::int32 value) { - - pc_ = value; -} -inline void Frame::set_pc(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void Frame::set_pc(::int32_t value) { _internal_set_pc(value); // @@protoc_insertion_point(field_set:chkpt.Frame.pc) } +inline ::int32_t Frame::_internal_pc() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.pc_; +} +inline void Frame::_internal_set_pc(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pc_ = value; +} // repeated .chkpt.Value locals = 3; inline int Frame::_internal_locals_size() const { - return locals_.size(); + return _internal_locals().size(); } inline int Frame::locals_size() const { return _internal_locals_size(); } inline void Frame::clear_locals() { - locals_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.locals_.Clear(); } -inline ::chkpt::Value* Frame::mutable_locals(int index) { +inline ::chkpt::Value* Frame::mutable_locals(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:chkpt.Frame.locals) - return locals_.Mutable(index); + return _internal_mutable_locals()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value >* -Frame::mutable_locals() { +inline ::google::protobuf::RepeatedPtrField<::chkpt::Value>* Frame::mutable_locals() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:chkpt.Frame.locals) - return &locals_; -} -inline const ::chkpt::Value& Frame::_internal_locals(int index) const { - return locals_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_locals(); } -inline const ::chkpt::Value& Frame::locals(int index) const { +inline const ::chkpt::Value& Frame::locals(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:chkpt.Frame.locals) - return _internal_locals(index); + return _internal_locals().Get(index); } -inline ::chkpt::Value* Frame::_internal_add_locals() { - return locals_.Add(); -} -inline ::chkpt::Value* Frame::add_locals() { +inline ::chkpt::Value* Frame::add_locals() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::chkpt::Value* _add = _internal_mutable_locals()->Add(); // @@protoc_insertion_point(field_add:chkpt.Frame.locals) - return _internal_add_locals(); + return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value >& -Frame::locals() const { +inline const ::google::protobuf::RepeatedPtrField<::chkpt::Value>& Frame::locals() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:chkpt.Frame.locals) - return locals_; + return _internal_locals(); +} +inline const ::google::protobuf::RepeatedPtrField<::chkpt::Value>& +Frame::_internal_locals() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.locals_; +} +inline ::google::protobuf::RepeatedPtrField<::chkpt::Value>* +Frame::_internal_mutable_locals() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.locals_; } // repeated .chkpt.Value stack = 4; inline int Frame::_internal_stack_size() const { - return stack_.size(); + return _internal_stack().size(); } inline int Frame::stack_size() const { return _internal_stack_size(); } inline void Frame::clear_stack() { - stack_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.stack_.Clear(); } -inline ::chkpt::Value* Frame::mutable_stack(int index) { +inline ::chkpt::Value* Frame::mutable_stack(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:chkpt.Frame.stack) - return stack_.Mutable(index); + return _internal_mutable_stack()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value >* -Frame::mutable_stack() { +inline ::google::protobuf::RepeatedPtrField<::chkpt::Value>* Frame::mutable_stack() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:chkpt.Frame.stack) - return &stack_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_stack(); } -inline const ::chkpt::Value& Frame::_internal_stack(int index) const { - return stack_.Get(index); -} -inline const ::chkpt::Value& Frame::stack(int index) const { +inline const ::chkpt::Value& Frame::stack(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:chkpt.Frame.stack) - return _internal_stack(index); -} -inline ::chkpt::Value* Frame::_internal_add_stack() { - return stack_.Add(); + return _internal_stack().Get(index); } -inline ::chkpt::Value* Frame::add_stack() { +inline ::chkpt::Value* Frame::add_stack() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::chkpt::Value* _add = _internal_mutable_stack()->Add(); // @@protoc_insertion_point(field_add:chkpt.Frame.stack) - return _internal_add_stack(); + return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value >& -Frame::stack() const { +inline const ::google::protobuf::RepeatedPtrField<::chkpt::Value>& Frame::stack() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:chkpt.Frame.stack) - return stack_; + return _internal_stack(); +} +inline const ::google::protobuf::RepeatedPtrField<::chkpt::Value>& +Frame::_internal_stack() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.stack_; +} +inline ::google::protobuf::RepeatedPtrField<::chkpt::Value>* +Frame::_internal_mutable_stack() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.stack_; } // ------------------------------------------------------------------- @@ -1209,255 +1375,242 @@ Frame::stack() const { // repeated .chkpt.Frame frames = 1; inline int Checkpoint::_internal_frames_size() const { - return frames_.size(); + return _internal_frames().size(); } inline int Checkpoint::frames_size() const { return _internal_frames_size(); } inline void Checkpoint::clear_frames() { - frames_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.frames_.Clear(); } -inline ::chkpt::Frame* Checkpoint::mutable_frames(int index) { +inline ::chkpt::Frame* Checkpoint::mutable_frames(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:chkpt.Checkpoint.frames) - return frames_.Mutable(index); + return _internal_mutable_frames()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Frame >* -Checkpoint::mutable_frames() { +inline ::google::protobuf::RepeatedPtrField<::chkpt::Frame>* Checkpoint::mutable_frames() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:chkpt.Checkpoint.frames) - return &frames_; -} -inline const ::chkpt::Frame& Checkpoint::_internal_frames(int index) const { - return frames_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_frames(); } -inline const ::chkpt::Frame& Checkpoint::frames(int index) const { +inline const ::chkpt::Frame& Checkpoint::frames(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:chkpt.Checkpoint.frames) - return _internal_frames(index); -} -inline ::chkpt::Frame* Checkpoint::_internal_add_frames() { - return frames_.Add(); + return _internal_frames().Get(index); } -inline ::chkpt::Frame* Checkpoint::add_frames() { +inline ::chkpt::Frame* Checkpoint::add_frames() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::chkpt::Frame* _add = _internal_mutable_frames()->Add(); // @@protoc_insertion_point(field_add:chkpt.Checkpoint.frames) - return _internal_add_frames(); + return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Frame >& -Checkpoint::frames() const { +inline const ::google::protobuf::RepeatedPtrField<::chkpt::Frame>& Checkpoint::frames() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:chkpt.Checkpoint.frames) - return frames_; + return _internal_frames(); +} +inline const ::google::protobuf::RepeatedPtrField<::chkpt::Frame>& +Checkpoint::_internal_frames() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.frames_; +} +inline ::google::protobuf::RepeatedPtrField<::chkpt::Frame>* +Checkpoint::_internal_mutable_frames() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.frames_; } // repeated .chkpt.Value globals = 2; inline int Checkpoint::_internal_globals_size() const { - return globals_.size(); + return _internal_globals().size(); } inline int Checkpoint::globals_size() const { return _internal_globals_size(); } inline void Checkpoint::clear_globals() { - globals_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.globals_.Clear(); } -inline ::chkpt::Value* Checkpoint::mutable_globals(int index) { +inline ::chkpt::Value* Checkpoint::mutable_globals(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:chkpt.Checkpoint.globals) - return globals_.Mutable(index); + return _internal_mutable_globals()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value >* -Checkpoint::mutable_globals() { +inline ::google::protobuf::RepeatedPtrField<::chkpt::Value>* Checkpoint::mutable_globals() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:chkpt.Checkpoint.globals) - return &globals_; -} -inline const ::chkpt::Value& Checkpoint::_internal_globals(int index) const { - return globals_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_globals(); } -inline const ::chkpt::Value& Checkpoint::globals(int index) const { +inline const ::chkpt::Value& Checkpoint::globals(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:chkpt.Checkpoint.globals) - return _internal_globals(index); + return _internal_globals().Get(index); } -inline ::chkpt::Value* Checkpoint::_internal_add_globals() { - return globals_.Add(); -} -inline ::chkpt::Value* Checkpoint::add_globals() { +inline ::chkpt::Value* Checkpoint::add_globals() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::chkpt::Value* _add = _internal_mutable_globals()->Add(); // @@protoc_insertion_point(field_add:chkpt.Checkpoint.globals) - return _internal_add_globals(); + return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::chkpt::Value >& -Checkpoint::globals() const { +inline const ::google::protobuf::RepeatedPtrField<::chkpt::Value>& Checkpoint::globals() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:chkpt.Checkpoint.globals) - return globals_; + return _internal_globals(); +} +inline const ::google::protobuf::RepeatedPtrField<::chkpt::Value>& +Checkpoint::_internal_globals() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.globals_; +} +inline ::google::protobuf::RepeatedPtrField<::chkpt::Value>* +Checkpoint::_internal_mutable_globals() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.globals_; } // repeated int32 table = 3; inline int Checkpoint::_internal_table_size() const { - return table_.size(); + return _internal_table().size(); } inline int Checkpoint::table_size() const { return _internal_table_size(); } inline void Checkpoint::clear_table() { - table_.Clear(); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.table_.Clear(); } -inline ::PROTOBUF_NAMESPACE_ID::int32 Checkpoint::_internal_table(int index) const { - return table_.Get(index); -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Checkpoint::table(int index) const { +inline ::int32_t Checkpoint::table(int index) const { // @@protoc_insertion_point(field_get:chkpt.Checkpoint.table) - return _internal_table(index); + return _internal_table().Get(index); } -inline void Checkpoint::set_table(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) { - table_.Set(index, value); +inline void Checkpoint::set_table(int index, ::int32_t value) { + _internal_mutable_table()->Set(index, value); // @@protoc_insertion_point(field_set:chkpt.Checkpoint.table) } -inline void Checkpoint::_internal_add_table(::PROTOBUF_NAMESPACE_ID::int32 value) { - table_.Add(value); -} -inline void Checkpoint::add_table(::PROTOBUF_NAMESPACE_ID::int32 value) { - _internal_add_table(value); +inline void Checkpoint::add_table(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_table()->Add(value); // @@protoc_insertion_point(field_add:chkpt.Checkpoint.table) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& -Checkpoint::_internal_table() const { - return table_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& -Checkpoint::table() const { +inline const ::google::protobuf::RepeatedField<::int32_t>& Checkpoint::table() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:chkpt.Checkpoint.table) return _internal_table(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* -Checkpoint::_internal_mutable_table() { - return &table_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* -Checkpoint::mutable_table() { +inline ::google::protobuf::RepeatedField<::int32_t>* Checkpoint::mutable_table() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:chkpt.Checkpoint.table) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_table(); } +inline const ::google::protobuf::RepeatedField<::int32_t>& +Checkpoint::_internal_table() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.table_; +} +inline ::google::protobuf::RepeatedField<::int32_t>* Checkpoint::_internal_mutable_table() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.table_; +} // int32 memory_size = 4; inline void Checkpoint::clear_memory_size() { - memory_size_ = 0; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 Checkpoint::_internal_memory_size() const { - return memory_size_; + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.memory_size_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::int32 Checkpoint::memory_size() const { +inline ::int32_t Checkpoint::memory_size() const { // @@protoc_insertion_point(field_get:chkpt.Checkpoint.memory_size) return _internal_memory_size(); } -inline void Checkpoint::_internal_set_memory_size(::PROTOBUF_NAMESPACE_ID::int32 value) { - - memory_size_ = value; -} -inline void Checkpoint::set_memory_size(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void Checkpoint::set_memory_size(::int32_t value) { _internal_set_memory_size(value); // @@protoc_insertion_point(field_set:chkpt.Checkpoint.memory_size) } +inline ::int32_t Checkpoint::_internal_memory_size() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.memory_size_; +} +inline void Checkpoint::_internal_set_memory_size(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.memory_size_ = value; +} // bytes memory_lz4 = 5; inline void Checkpoint::clear_memory_lz4() { - memory_lz4_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.memory_lz4_.ClearToEmpty(); } -inline const std::string& Checkpoint::memory_lz4() const { +inline const std::string& Checkpoint::memory_lz4() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:chkpt.Checkpoint.memory_lz4) return _internal_memory_lz4(); } -inline void Checkpoint::set_memory_lz4(const std::string& value) { - _internal_set_memory_lz4(value); +template +inline PROTOBUF_ALWAYS_INLINE void Checkpoint::set_memory_lz4(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.memory_lz4_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:chkpt.Checkpoint.memory_lz4) } -inline std::string* Checkpoint::mutable_memory_lz4() { +inline std::string* Checkpoint::mutable_memory_lz4() ABSL_ATTRIBUTE_LIFETIME_BOUND { + std::string* _s = _internal_mutable_memory_lz4(); // @@protoc_insertion_point(field_mutable:chkpt.Checkpoint.memory_lz4) - return _internal_mutable_memory_lz4(); + return _s; } inline const std::string& Checkpoint::_internal_memory_lz4() const { - return memory_lz4_.Get(); + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.memory_lz4_.Get(); } inline void Checkpoint::_internal_set_memory_lz4(const std::string& value) { - - memory_lz4_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); -} -inline void Checkpoint::set_memory_lz4(std::string&& value) { - - memory_lz4_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:chkpt.Checkpoint.memory_lz4) -} -inline void Checkpoint::set_memory_lz4(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - memory_lz4_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); - // @@protoc_insertion_point(field_set_char:chkpt.Checkpoint.memory_lz4) -} -inline void Checkpoint::set_memory_lz4(const void* value, - size_t size) { - - memory_lz4_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:chkpt.Checkpoint.memory_lz4) + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.memory_lz4_.Set(value, GetArena()); } inline std::string* Checkpoint::_internal_mutable_memory_lz4() { - - return memory_lz4_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.memory_lz4_.Mutable( GetArena()); } inline std::string* Checkpoint::release_memory_lz4() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:chkpt.Checkpoint.memory_lz4) - return memory_lz4_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); -} -inline void Checkpoint::set_allocated_memory_lz4(std::string* memory_lz4) { - if (memory_lz4 != nullptr) { - - } else { - - } - memory_lz4_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), memory_lz4, - GetArena()); + return _impl_.memory_lz4_.Release(); +} +inline void Checkpoint::set_allocated_memory_lz4(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.memory_lz4_.SetAllocated(value, GetArena()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.memory_lz4_.IsDefault()) { + _impl_.memory_lz4_.Set("", GetArena()); + } + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:chkpt.Checkpoint.memory_lz4) } -inline std::string* Checkpoint::unsafe_arena_release_memory_lz4() { - // @@protoc_insertion_point(field_unsafe_arena_release:chkpt.Checkpoint.memory_lz4) - GOOGLE_DCHECK(GetArena() != nullptr); - - return memory_lz4_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArena()); -} -inline void Checkpoint::unsafe_arena_set_allocated_memory_lz4( - std::string* memory_lz4) { - GOOGLE_DCHECK(GetArena() != nullptr); - if (memory_lz4 != nullptr) { - - } else { - - } - memory_lz4_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - memory_lz4, GetArena()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:chkpt.Checkpoint.memory_lz4) -} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace chkpt -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::chkpt::Type_Enum> : ::std::true_type {}; +namespace google { +namespace protobuf { + +template <> +struct is_proto_enum<::chkpt::Type_Enum> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::chkpt::Type_Enum>() { +inline const EnumDescriptor* GetEnumDescriptor<::chkpt::Type_Enum>() { return ::chkpt::Type_Enum_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protobuf_2fchkpt_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // GOOGLE_PROTOBUF_INCLUDED_protobuf_2fchkpt_2eproto_2epb_2eh diff --git a/lib-rt/wanco.h b/lib-rt/wanco.h index 133720e..91ca9fb 100644 --- a/lib-rt/wanco.h +++ b/lib-rt/wanco.h @@ -13,6 +13,24 @@ namespace wanco { constexpr bool USE_PROTOBUF = true; constexpr bool DEBUG = true; + +#ifndef __linux__ +#define MREMAP_MAYMOVE -1 +#endif + +// mremap is only available on Linux +inline void *wanco_mremap(void* old_address, size_t old_size, + size_t new_size, int flags) { + +#ifdef __linux__ + return mremap(old_address, old_size, new_size, flags); +#else + // TODO: implement mremap for other platforms + std::cout << "mremap is not available on this platform" << std::endl; + return NULL; +#endif + } + } // namespace wanco class Debug { diff --git a/lib-rt/wrt.cc b/lib-rt/wrt.cc index 119b11e..c4c95a5 100644 --- a/lib-rt/wrt.cc +++ b/lib-rt/wrt.cc @@ -8,7 +8,7 @@ #include #include #include -#include +//#include #include // global instancce of execution environment @@ -122,7 +122,7 @@ int32_t extend_memory(ExecEnv *exec_env, int32_t inc_pages) { << inc_pages << std::endl; exit(1); } - int8_t *res = (int8_t *)mremap(exec_env->memory_base, old_size * PAGE_SIZE, + int8_t *res = (int8_t *)wanco_mremap(exec_env->memory_base, old_size * PAGE_SIZE, new_size * PAGE_SIZE, MREMAP_MAYMOVE); if (res == NULL) { Fatal() << "Failed to grow memory (" << inc_pages << ")" << std::endl;