X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/31a461643fe82c00e0fe4efc8941eee20b0838ea..c1111cb247ab39f89dcae0d63a255c669b2ed48e:/src/mc/Variable.hpp diff --git a/src/mc/Variable.hpp b/src/mc/Variable.hpp index ec1e071764..5ca55ab08c 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 @@ -9,12 +9,15 @@ #include -#include "mc_forward.h" -#include "mc_location.h" +#include + +#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(); @@ -26,13 +29,25 @@ public: simgrid::mc::Type* type; // Use either of: - simgrid::mc::LocationList location_list; + simgrid::dwarf::LocationList location_list; void* address; size_t start_scope; simgrid::mc::ObjectInformation* object_info; }; +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; +} + } }