Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ignore empty replay path + hide a global (to avoid init fiasco)
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 1 Apr 2023 21:45:32 +0000 (23:45 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 1 Apr 2023 21:45:36 +0000 (23:45 +0200)
commitcfa35c4fa9a6bcfa6aa8f8cf21da6ab292ea21ad
tree7d7fa0d941d8b4be1a3ddeac2cb52a4f0000b618
parent0d9bf83b7a687d5f0a621985329d5cf40d0d36f8
Ignore empty replay path + hide a global (to avoid init fiasco)

I was observing that the model_checking_mode global did not had the
same value when compiling with or without optimizations.

Maybe I had a sort of race condition on model_checking_mode during
initialization, or maybe the config element of the replay path was
either called before or after the initialization of the library, thus
replacing the model_checking_mode to REPLAY even if it was supposed to
be APP_SIDE in my case.

It's fixed now, but I'm not completely sure of which of these change
was the right one (probably the replay path). Both seem legit, so commit both.
src/kernel/EngineImpl.cpp
src/mc/explo/simgrid_mc.cpp
src/mc/mc_base.cpp
src/mc/mc_client_api.cpp
src/mc/mc_config.cpp
src/mc/mc_config.hpp
src/mc/remote/AppSide.cpp
src/mc/remote/CheckerSide.cpp