-/* 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
#include <string>
+#include <xbt/base.h>
+
#include "mc_forward.h"
-#include "mc_location.h"
+#include "src/mc/LocationList.hpp"
namespace simgrid {
namespace mc {
+/** A variable (global or local) in the model-checked program */
class Variable {
public:
Variable();
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;
+}
+
}
}