1 /* Copyright (c) 2007-2019. 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.hpp"
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 is an offset from the variable scope beginning. This variable
39 * is only valid starting from this offset.
41 std::size_t start_scope = 0;
43 simgrid::mc::ObjectInformation* object_info = nullptr;