source: CIVL/examples/contract.cvl@ 73f1e27

1.23 2.0 main test-branch
Last change on this file since 73f1e27 was 59b5362, checked in by Stephen Siegel <siegel@…>, 13 years ago

Updated CIVL-C grammar to use all \ and contracts.

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

  • Property mode set to 100644
File size: 184 bytes
Line 
1
2double f(double x)
3 \requires x > 0;
4 \ensures \true;
5 ;
6
7double g(double x)
8 \requires x > 0;
9 \ensures \result >= 0;
10{
11 return g(x)*g(x);
12}
13
14double main() {
15 return g(2);
16}
Note: See TracBrowser for help on using the repository browser.