Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / examples / smpi / mc / non_termination3.c
diff --git a/examples/smpi/mc/non_termination3.c b/examples/smpi/mc/non_termination3.c
deleted file mode 100644 (file)
index aecd34d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#include <stdio.h>
-#include <mpi.h>
-#include <simgrid/modelchecker.h>
-
-int x = 0;
-int y = 0;
-
-int main(int argc, char **argv) {
-
-  int recv_x, recv_y, size, rank;
-  MPI_Status status;
-  
-  MPI_Init(&argc, &argv);
-
-  MPI_Comm_size(MPI_COMM_WORLD, &size);   /* Get nr of tasks */
-  MPI_Comm_rank(MPI_COMM_WORLD, &rank);   /* Get id of this process */
-
-  MC_ignore(&(status.count), sizeof(status.count));
-
-  if (rank == 0) {
-    while (x<5) {
-      MPI_Recv(&recv_x, 1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status);
-      MPI_Recv(&recv_y, 1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status);
-    }
-  } else {
-    while (x<5) {
-      int old_x = x;
-      x = old_x - y;
-      MPI_Send(&x, 1, MPI_INT, 0, 42, MPI_COMM_WORLD);
-      y = old_x + y;
-      MPI_Send(&y, 1, MPI_INT, 0, 42, MPI_COMM_WORLD);
-    }
-  }
-
-  MPI_Finalize();
-
-  return 0;
-}