class evaluation_error : std::runtime_error {
public:
- evaluation_error(const char* what) : std::runtime_error(what) {}
- ~evaluation_error();
+ evaluation_error(const char* what): std::runtime_error(what) {}
+ ~evaluation_error() noexcept(true);
};
struct ExpressionContext {
}
}
-#endif
\ No newline at end of file
+#endif
if (_sg_mc_comms_determinism)
XBT_INFO("Recv-deterministic : %s", !initial_global_state->recv_deterministic ? "No" : "Yes");
}
- if (getenv("SIMGRID_MC_SYSTEM_STATISTICS"))
- system("free");
+ if (getenv("SIMGRID_MC_SYSTEM_STATISTICS")){
+ int ret=system("free");
+ if(ret!=0)XBT_WARN("system call did not return 0, but %d",ret);
+ }
}
void MC_automaton_load(const char *file)
simgrid::dwarf::execute(ops, 3, state, stack);
}
catch(std::runtime_error& e) {
- assert(("Expression evaluation error", false));
+ fprintf(stderr,"Expression evaluation error");
}
assert(stack.size() == 1);
try {
ops[0].atom = DW_OP_drop;
simgrid::dwarf::execute(ops, 1, state, stack);
- assert(("Exception expected", false));
+ fprintf(stderr,"Exception expected");
}
catch(simgrid::dwarf::evaluation_error& e) {}
}
catch(std::runtime_error& e) {
- assert(("Expression evaluation error", false));
+ fprintf(stderr,"Expression evaluation error");
}
}
}
catch(std::runtime_error& e) {
- assert(("Expression evaluation error", false));
+ fprintf(stderr,"Expression evaluation error");
}
}