A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename guide as strategy and fix counter-example display with recipe
[simgrid.git]
/
examples
/
smpi
/
mc
/
non_termination2.c
diff --git
a/examples/smpi/mc/non_termination2.c
b/examples/smpi/mc/non_termination2.c
index a23435ecdba7b69795d38f9b80914e23cc1c368f..5ccafb693270613b477920bf31aae41d70e73c76 100644
(file)
--- a/
examples/smpi/mc/non_termination2.c
+++ b/
examples/smpi/mc/non_termination2.c
@@
-1,3
+1,8
@@
+/* Copyright (c) 2015-2023. The SimGrid Team. All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
#include <stdio.h>
#include <mpi.h>
#include <simgrid/modelchecker.h>
#include <stdio.h>
#include <mpi.h>
#include <simgrid/modelchecker.h>
@@
-5,16
+10,17
@@
int x;
int main(int argc, char **argv) {
int x;
int main(int argc, char **argv) {
-
- int recv_buff, size, rank;
+ int recv_buff;
+ int size;
+ int rank;
MPI_Status status;
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 */
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)
);
+ MC_ignore(&
status.count, sizeof status.count
);
if (rank == 0) {
while (1) {
if (rank == 0) {
while (1) {