X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bd38fea6c9ed9ac4d381cbbfee938776553147fd..0e68860d6a03db82a66a7653b304cf1714fc6bf8:/src/mc/Variable.hpp diff --git a/src/mc/Variable.hpp b/src/mc/Variable.hpp index 804a7a726a..5b82b6cebd 100644 --- a/src/mc/Variable.hpp +++ b/src/mc/Variable.hpp @@ -11,8 +11,8 @@ #include -#include "mc_forward.h" -#include "mc/LocationList.hpp" +#include "src/mc/mc_forward.h" +#include "src/mc/LocationList.hpp" namespace simgrid { namespace mc { @@ -20,34 +20,19 @@ namespace mc { /** A variable (global or local) in the model-checked program */ class Variable { public: - Variable(); - - unsigned dwarf_offset; /* Global offset of the field. */ - int global; + Variable() {} + unsigned dwarf_offset = 0; /* Global offset of the field. */ + int global = 0; std::string name; - unsigned type_id; - simgrid::mc::Type* type; - + unsigned type_id = 0; + simgrid::mc::Type* type = nullptr; // Use either of: simgrid::dwarf::LocationList location_list; - void* address; - - size_t start_scope; - simgrid::mc::ObjectInformation* object_info; + void* address = nullptr; + size_t start_scope = 0; + simgrid::mc::ObjectInformation* object_info = nullptr; }; -inline -Variable::Variable() -{ - this->dwarf_offset = 0; - this->global = 0; - this->type = nullptr; - this->type_id = 0; - this->address = nullptr; - this->start_scope = 0; - this->object_info = nullptr; -} - } }