return (jdouble) MSG_get_clock();
}
-static void __JAVA_host_priv_free(void *host)
-{
-}
-
JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_init(JNIEnv * env, jclass cls, jobjectArray jargs)
{
int argc = 0;
MSG_init(&argc, argv);
- JAVA_HOST_LEVEL = simgrid::s4u::Host::extension_create(__JAVA_host_priv_free);
+ JAVA_HOST_LEVEL = simgrid::s4u::Host::extension_create(nullptr);
for (int index = 0; index < argc - 1; index++) {
env->SetObjectArrayElement(jargs, index, (jstring)env->NewStringUTF(argv[index + 1]));
/********************************* Memory *************************************/
XBT_PUBLIC(void) MC_memory_init(); /* Initialize the memory subsystem */
-XBT_PUBLIC(void) MC_memory_exit();
-XBT_PUBLIC(void) MC_memory_init_server();
SG_END_DECL()
namespace simgrid {
namespace dwarf {
-evaluation_error::~evaluation_error() noexcept(true) {}
-
void execute(
const Dwarf_Op* ops, std::size_t n,
const ExpressionContext& context, ExpressionStack& stack)
class evaluation_error : std::runtime_error {
public:
evaluation_error(const char* what): std::runtime_error(what) {}
- ~evaluation_error() noexcept(true);
};
/** A stack for evaluating a DWARF expression
-/* Copyright (c) 2016. The SimGrid Team.
+/* Copyright (c) 2016-2017. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
{
}
-// virtual
-RecordTrace Checker::getRecordTrace()
-{
- return {};
-}
-
-// virtual
-std::vector<std::string> Checker::getTextualTrace()
-{
- return {};
-}
-
-// virtual
-void Checker::logState()
-{
-}
-
}
}
/** Show the current trace/stack
*
* Could this be handled in the Session/ModelChecker instead? */
- virtual RecordTrace getRecordTrace();
+ virtual RecordTrace getRecordTrace() = 0;
/** Generate a textual execution trace of the simulated application */
- virtual std::vector<std::string> getTextualTrace();
+ virtual std::vector<std::string> getTextualTrace() = 0;
/** Log additional information about the state of the model-checker */
- virtual void logState();
+ virtual void logState() = 0;
protected:
Session& getSession() { return *session_; }
void CommunicationDeterminismChecker::logState() // override
{
- Checker::logState();
if (_sg_mc_comms_determinism && not this->recv_deterministic && this->send_deterministic) {
XBT_INFO("******************************************************");
XBT_INFO("**** Only-send-deterministic communication pattern ****");
void LivenessChecker::logState() // override
{
- Checker::logState();
XBT_INFO("Expanded pairs = %lu", expandedPairsCount_);
XBT_INFO("Visited pairs = %lu", visitedPairsCount_);
XBT_INFO("Executed transitions = %lu", mc_model_checker->executed_transitions);
void SafetyChecker::logState() // override
{
- Checker::logState();
XBT_INFO("Expanded states = %lu", expandedStatesCount_);
XBT_INFO("Visited states = %lu", mc_model_checker->visited_states);
XBT_INFO("Executed transitions = %lu", mc_model_checker->executed_transitions);
xbt_die("Model-checking support is not enabled: run with simgrid-mc.");
}
-/* Finalize the memory subsystem */
-void MC_memory_exit()
-{
-}
-
}
namespace simgrid {
namespace smpi {
-void sg_smpi_host_init();
-static void onHostDestruction(simgrid::s4u::Host& host);
-static void onCreation(simgrid::s4u::Host& host);
-
class SmpiHost {
private:
}
SmpiHost::~SmpiHost()=default;
-
-static void onCreation(simgrid::s4u::Host& host)
-{
-}
-
-static void onHostDestruction(simgrid::s4u::Host& host)
-{
- // Ignore virtual machines
- if (dynamic_cast<simgrid::s4u::VirtualMachine*>(&host))
- return;
-}
-
-void sg_smpi_host_init()
-{
- simgrid::s4u::Host::onCreation.connect(&onCreation);
- simgrid::s4u::Host::onDestruction.connect(&onHostDestruction);
-}
-
}
}
double latencyFactor(double size);
double bandwidthFactor(double size);
double bandwidthConstraint(double rate, double bound, double size);
- void communicateCallBack() {};
};
}
}