source:
CIVL/mods/dev.civl.abc/examples/contract/mpiConstants.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 348 bytes | |
| Rev | Line | |
|---|---|---|
| [aad342c] | 1 | #include<mpi.h> |
| 2 | #pragma CIVL ACSL | |
| 3 | int shared; | |
| 4 | /*@ | |
| 5 | @ requires x == \mpi_comm_rank; | |
| 6 | @ ensures (\mpi_empty_in(0)) && (\mpi_empty_out(0)); | |
| 7 | @ \mpi_collective(MPI_COMM_WORLD, COL): | |
| 8 | @ ensures \mpi_comm_size == 9; | |
| 9 | @ behavior name: | |
| 10 | @ ensures \mpi_comm_size == 9; | |
| 11 | @*/ | |
| 12 | int foo(int x) { | |
| 13 | return x; | |
| 14 | } | |
| 15 | ||
| 16 | int main() { | |
| 17 | ||
| 18 | return 0; | |
| 19 | } |
Note:
See TracBrowser
for help on using the repository browser.
