Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
d2a7187d84b3e596ef0292fe0078ac1e4c6b1c92
[simgrid.git] / examples / cpp / synchro-mutex / s4u-mc-synchro-mutex-stateful.tesh
1 #!/usr/bin/env tesh
2
3 p This file tests the cfg=model-check/checkpoint option for DFS explorer
4
5 $ $VALGRIND_NO_TRACE_CHILDREN ${bindir:=.}/../../../bin/simgrid-mc --cfg=model-check/checkpoint:5 -- ${bindir:=.}/s4u-synchro-mutex --cfg=actors:2 --log=s4u_test.thres:critical
6 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'model-check/checkpoint' to '5'
7 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'actors' to '2'
8 > [0.000000] [mc_dfs/INFO] Start a DFS exploration. Reduction is: dpor.
9 > [0.000000] [mc_dfs/INFO] DFS exploration ended. 66 unique states visited; 11 backtracks (22 transition replays, 99 states visited overall)
10
11 p The stats without checkpoints is:               130 unique states visited; 27 backtracks (308 transition replays, 151 states visited overall)
12 p But it runs much faster (0.6 sec vs. 1.6 sec), damn slow checkpointing code.