X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fc5db5a9e1306f8490d61b293781b817587a96ec..e6ca184e99d50d0ee8fe405a83ee5277e2ecfce6:/src/mc/Variable.hpp diff --git a/src/mc/Variable.hpp b/src/mc/Variable.hpp index 9296f21e3f..7e04621a49 100644 --- a/src/mc/Variable.hpp +++ b/src/mc/Variable.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2014. The SimGrid Team. +/* Copyright (c) 2007-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -7,44 +7,32 @@ #ifndef SIMGRID_MC_VARIABLE_HPP #define SIMGRID_MC_VARIABLE_HPP +#include + #include -#include "mc_forward.h" -#include "mc_location.h" +#include "src/mc/mc_forward.h" +#include "src/mc/LocationList.hpp" namespace simgrid { 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::mc::LocationList location_list; - void* address; - - size_t start_scope; - simgrid::mc::ObjectInformation* object_info; + simgrid::dwarf::LocationList location_list; + void* address = nullptr; + std::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; -} - } }