Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : store last visited states during exploration
[simgrid.git] / src / surf / surf_config.c
index cda623d..32b361a 100644 (file)
@@ -528,9 +528,16 @@ void surf_config_init(int *argc, char **argv)
     /* Set max depth exploration */
     default_value_int = 1000;
     xbt_cfg_register(&_surf_cfg_set, "model-check/max_depth",
-                     "Specify the max depth of exploration",
+                     "Specify the max depth of exploration (default : 1000)",
                      xbt_cfgelm_int, &default_value, 0, 1,
                      _mc_cfg_cb_max_depth, NULL);
+
+    /* Set number of visited state stored in stateful mode */
+    default_value_int = 10;
+    xbt_cfg_register(&_surf_cfg_set, "model-check/stateful",
+                     "Specify the number of visited state stored in stateful mode. The default value is 10 which means that we only keep in memory the last 10 visited states",
+                     xbt_cfgelm_int, &default_value, 0, 1,
+                     _mc_cfg_cb_stateful, NULL);
 #endif
 
     /* do verbose-exit */