1 /* Copyright (c) 2007-2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #ifndef SIMGRID_MC_VARIABLE_HPP
8 #define SIMGRID_MC_VARIABLE_HPP
14 #include "src/mc/mc_forward.h"
15 #include "src/mc/LocationList.hpp"
20 /** A variable (global or local) in the model-checked program */
28 simgrid::mc::Type* type = nullptr;
30 /** Address of the variable -if it is fixed) */
31 void* address = nullptr;
33 /** Description of the location of the variable if it's not fixed */
34 simgrid::dwarf::LocationList location_list;
36 /** Offset of validity of the variable (DW_AT_start_scope)
38 * This variable is not valid since the beginning of its scope.
40 std::size_t start_scope = 0;
42 simgrid::mc::ObjectInformation* object_info = nullptr;