+++ /dev/null
-/* Copyright (c) 2008-2015. The SimGrid Team.
- * All rights reserved. */
-
-/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
-#include "src/mc/AddressSpace.hpp"
-
-namespace simgrid {
-namespace mc {
-
-AddressSpace::~AddressSpace()
-{
-}
-
-}
-}
Process* process_;
public:
AddressSpace(Process* process) : process_(process) {}
- virtual ~AddressSpace();
+ virtual ~AddressSpace() = default;
/** The process of this addres space
*
std::vector<std::size_t> pagenos_;
public:
- ChunkedData() {}
+ ChunkedData() = default;
void clear()
{
for (std::size_t pageno : pagenos_)
namespace simgrid {
namespace mc {
-ObjectInformation::ObjectInformation() {}
-
/* For an executable object, addresses are virtual address
* (there is no offset) i.e.
* \f$\text{virtual address} = \{dwarf address}\f$;
}
}
-}
\ No newline at end of file
+}
*/
class ObjectInformation {
public:
- ObjectInformation();
+ ObjectInformation() = default;
// Not copyable:
ObjectInformation(ObjectInformation const&) = delete;
static constexpr flags_type INHERITANCE_FLAG = 1;
static constexpr flags_type VIRTUAL_POINTER_FLAG = 2;
- Member() {}
+ Member() = default;
/** Whether this member represent some inherited part of the object */
flags_type flags = 0;
/** A type in the model-checked program */
class Type {
public:
- Type() {}
+ Type() = default;
/** The DWARF TAG of the type (e.g. DW_TAG_array_type) */
int type = 0;
/** A variable (global or local) in the model-checked program */
class Variable {
public:
- Variable() {}
+ Variable() = default;
std::uint32_t id = 0;
bool global = false;
std::string name;
stack_.push_back(std::move(initial_state));
}
-SafetyChecker::~SafetyChecker()
-{
-}
-
Checker* createSafetyChecker(Session& session)
{
return new SafetyChecker(session);
simgrid::mc::ReductionMode reductionMode_ = simgrid::mc::ReductionMode::unset;
public:
SafetyChecker(Session& session);
- ~SafetyChecker();
+ ~SafetyChecker() = default;
void run() override;
RecordTrace getRecordTrace() override;
std::vector<std::string> getTextualTrace() override;
}
-Snapshot::~Snapshot()
-{
-
-}
-
const void* Snapshot::read_bytes(void* buffer, std::size_t size,
RemotePtr<void> address, int process_index,
ReadOptions options) const
class XBT_PRIVATE Snapshot final : public AddressSpace {
public:
Snapshot(Process* process, int num_state);
- ~Snapshot();
+ ~Snapshot() = default;
const void* read_bytes(void* buffer, std::size_t size,
RemotePtr<void> address, int process_index = ProcessIndexAny,
ReadOptions options = ReadOptions::none()) const override;
{
xbt_assert(region);
- std::uintptr_t offset =
- (std::uintptr_t) addr - (std::uintptr_t) region->start().address();
+ std::uintptr_t offset = (std::uintptr_t)addr - (std::uintptr_t)region->start().address();
- xbt_assert(region->contain(simgrid::mc::remote(addr)),
- "Trying to read out of the region boundary.");
+ xbt_assert(region->contain(simgrid::mc::remote(addr)), "Trying to read out of the region boundary.");
switch (region->storage_type()) {
case simgrid::mc::StorageType::NoData: