Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use true/false for boolean variable (Sonar).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 27 Oct 2022 11:40:12 +0000 (13:40 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 27 Oct 2022 12:23:41 +0000 (14:23 +0200)
src/mc/explo/simgrid_mc.cpp
src/mc/mc_config.cpp
src/mc/remote/AppSide.cpp

index b9e33e7..c1acbba 100644 (file)
@@ -21,7 +21,7 @@ int main(int argc, char** argv)
   xbt_assert(argc >= 2, "Missing arguments");
 
   // Currently, we need this before sg_config_init:
-  simgrid::mc::cfg_do_model_check = 1;
+  simgrid::mc::cfg_do_model_check = true;
 
   // The initialization function can touch argv.
   // We make a copy of argv before modifying it in order to pass the original value to the model-checked application:
index 63a083e..6f607d6 100644 (file)
@@ -14,7 +14,7 @@
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(xbt_cfg);
 
-bool simgrid::mc::cfg_do_model_check = 0;
+bool simgrid::mc::cfg_do_model_check = false;
 
 static void _mc_cfg_cb_check(const char* spec, bool more_check = true)
 {
index 36f2b8d..cbc819b 100644 (file)
@@ -44,7 +44,7 @@ AppSide* AppSide::initialize()
   if (instance_)
     return instance_.get();
 
-  simgrid::mc::cfg_do_model_check = 1;
+  simgrid::mc::cfg_do_model_check = true;
 
   setvbuf(stdout, nullptr, _IOLBF, 0);