X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0facf52013684615c801816de974754778c9474a..d89ca681772fdaafdd69049d4d66676a4e98de38:/src/mc/api.hpp diff --git a/src/mc/api.hpp b/src/mc/api.hpp index 548bbe85a3..500967aa93 100644 --- a/src/mc/api.hpp +++ b/src/mc/api.hpp @@ -1,3 +1,8 @@ +/* Copyright (c) 2020-2022. The SimGrid Team. All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + #ifndef SIMGRID_MC_API_HPP #define SIMGRID_MC_API_HPP @@ -50,10 +55,11 @@ private: simgrid::kernel::activity::CommImpl* get_comm_or_nullptr(smx_simcall_t const r) const; bool request_depend_asymmetric(smx_simcall_t r1, smx_simcall_t r2) const; simgrid::mc::ActorInformation* actor_info_cast(smx_actor_t actor) const; + +public: std::string get_actor_string(smx_actor_t actor) const; std::string get_actor_dot_label(smx_actor_t actor) const; -public: // No copy: Api(Api const&) = delete; void operator=(Api const&) = delete; @@ -95,8 +101,6 @@ public: unsigned long mc_get_visited_states() const; unsigned long mc_get_executed_trans() const; void mc_check_deadlock() const; - bool mc_is_null() const; - Checker* mc_get_checker() const; void handle_simcall(Transition const& transition) const; void mc_wait_for_requests() const; XBT_ATTRIB_NORETURN void mc_exit(int status) const; @@ -107,13 +111,13 @@ public: std::list get_enabled_transitions(simgrid::mc::State* state) const; // SIMCALL APIs + bool requests_are_dependent(RemotePtr obs1, + RemotePtr obs2) const; std::string request_to_string(smx_simcall_t req, int value) const; std::string request_get_dot_output(smx_simcall_t req, int value) const; smx_actor_t simcall_get_issuer(s_smx_simcall const* req) const; - long simcall_get_actor_id(s_smx_simcall const* req) const; RemotePtr get_mbox_remote_addr(smx_simcall_t const req) const; RemotePtr get_comm_remote_addr(smx_simcall_t const req) const; - bool simcall_check_dependency(smx_simcall_t const req1, smx_simcall_t const req2) const; #if HAVE_SMPI int get_smpi_request_tag(smx_simcall_t const& simcall, simgrid::simix::Simcall type) const; @@ -129,7 +133,7 @@ public: // SESSION APIs void s_close() const; - void execute(Transition& transition, smx_simcall_t simcall) const; + RemotePtr execute(Transition& transition, smx_simcall_t simcall) const; // AUTOMATION APIs #if SIMGRID_HAVE_MC