1 /* Copyright (c) 2007-2022. 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/inspect/LocationList.hpp"
15 #include "src/mc/mc_forward.hpp"
17 namespace simgrid::mc {
19 /** A variable (global or local) in the model-checked program */
27 simgrid::mc::Type* type = nullptr;
29 /** Address of the variable (if it is fixed) */
30 void* address = nullptr;
32 /** Description of the location of the variable (if it's not fixed) */
33 simgrid::dwarf::LocationList location_list;
35 /** Offset of validity of the variable (DW_AT_start_scope)
37 * This is an offset from the variable scope beginning. This variable
38 * is only valid starting from this offset.
40 std::size_t start_scope = 0;
42 simgrid::mc::ObjectInformation* object_info = nullptr;
45 } // namespace simgrid::mc