3 #include <simgrid/modelchecker.h>
7 int main(int argc, char **argv) {
13 MPI_Init(&argc, &argv);
15 MPI_Comm_size(MPI_COMM_WORLD, &size); /* Get nr of tasks */
16 MPI_Comm_rank(MPI_COMM_WORLD, &rank); /* Get id of this process */
18 MC_ignore(&(status.count), sizeof(status.count));
22 MPI_Recv(&recv_x, 1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status);
26 if (MC_random(0,1) == 0) {
32 MPI_Send(&x, 1, MPI_INT, 0, 42, MPI_COMM_WORLD);