X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/32dda1d6e208496b7ce85e5f5b677fb295e82277..21446da234b79358c6f7ed918e582e7e5a36d8b3:/src/mc/Client.hpp diff --git a/src/mc/Client.hpp b/src/mc/Client.hpp index 8ed4907dfe..36a6578c83 100644 --- a/src/mc/Client.hpp +++ b/src/mc/Client.hpp @@ -7,18 +7,25 @@ #ifndef SIMGRID_MC_CLIENT_H #define SIMGRID_MC_CLIENT_H -#include +#include "src/internal_config.h" +#include #include #include +#include + #include "src/mc/mc_protocol.h" #include "src/mc/Channel.hpp" namespace simgrid { namespace mc { +/** Model-checked-side of the communication protocol + * + * Send messages to the model-checker and handles message from it. + */ class XBT_PUBLIC() Client { private: bool active_ = false; @@ -31,6 +38,14 @@ public: Channel const& getChannel() const { return channel_; } Channel& getChannel() { return channel_; } void mainLoop(void); + void reportAssertionFailure(const char* description = nullptr); + void ignoreMemory(void* addr, std::size_t size); + void ignoreHeap(void* addr, std::size_t size); + void unignoreHeap(void* addr, std::size_t size); + void declareSymbol(const char *name, int* value); +#if HAVE_UCONTEXT_H + void declareStack(void *stack, size_t size, smx_process_t process, ucontext_t* context); +#endif // Singleton :/ // TODO, remove the singleton antipattern.