1 /* Copyright (c) 2015-2023. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #include <simgrid/modelchecker.h>
13 int main(int argc, char **argv) {
20 MPI_Init(&argc, &argv);
22 MPI_Comm_size(MPI_COMM_WORLD, &size); /* Get nr of tasks */
23 MPI_Comm_rank(MPI_COMM_WORLD, &rank); /* Get id of this process */
25 MC_ignore(&status.count, sizeof status.count);
29 MPI_Recv(&recv_x, 1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status);
30 MPI_Recv(&recv_y, 1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status);
36 MPI_Send(&x, 1, MPI_INT, 0, 42, MPI_COMM_WORLD);
38 MPI_Send(&y, 1, MPI_INT, 0, 42, MPI_COMM_WORLD);