source: CIVL/mods/dev.civl.abc/examples/contract/mpiConstants.c

main
Last change on this file was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5664 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 348 bytes
Line 
1#include<mpi.h>
2#pragma CIVL ACSL
3int 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 @*/
12int foo(int x) {
13 return x;
14}
15
16int main() {
17
18 return 0;
19}
Note: See TracBrowser for help on using the repository browser.