source:
CIVL/mods/dev.civl.com/examples/contracts/contractsMPI/quantifiedRemote.c@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 196 bytes | |
| Line | |
|---|---|
| 1 | #include <mpi.h> |
| 2 | /*@ |
| 3 | @ \mpi_collective(MPI_COMM_WORLD, P2P): |
| 4 | @ requires \forall int i; 0<=i && i<n |
| 5 | @ ==> x[i] == \on(0, x[i]); |
| 6 | @*/ |
| 7 | int foo(int x[], int n) { |
| 8 | return x[n-1]; |
| 9 | } |
Note:
See TracBrowser
for help on using the repository browser.
