A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mc] Fix ReadOptions
[simgrid.git]
/
src
/
mc
/
Variable.hpp
diff --git
a/src/mc/Variable.hpp
b/src/mc/Variable.hpp
index
ec1e071
..
5ca55ab
100644
(file)
--- a/
src/mc/Variable.hpp
+++ b/
src/mc/Variable.hpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2007-201
4
. The SimGrid Team.
+/* Copyright (c) 2007-201
5
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-9,12
+9,15
@@
#include <string>
#include <string>
-#include "mc_forward.h"
-#include "mc_location.h"
+#include <xbt/base.h>
+
+#include "src/mc/mc_forward.h"
+#include "src/mc/LocationList.hpp"
namespace simgrid {
namespace mc {
namespace simgrid {
namespace mc {
+/** A variable (global or local) in the model-checked program */
class Variable {
public:
Variable();
class Variable {
public:
Variable();
@@
-26,13
+29,25
@@
public:
simgrid::mc::Type* type;
// Use either of:
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;
};
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;
+}
+
}
}
}
}