source: CIVL/examples/experimental/contract.cvl@ e0fc189

1.23 2.0 main test-branch
Last change on this file since e0fc189 was 8fa5a7b, checked in by Tim Zirkel <zirkeltk@…>, 13 years ago

moved untested/unused examples to experimental folder

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

  • Property mode set to 100644
File size: 202 bytes
RevLine 
[f28d814]1#include<civlc.h>
[59b5362]2
3double f(double x)
[f28d814]4 $requires x > 0;
5 $ensures $true;
[59b5362]6 ;
7
8double g(double x)
[f28d814]9 $requires x > 0;
10 $ensures $result >= 0;
[59b5362]11{
12 return g(x)*g(x);
13}
14
15double main() {
16 return g(2);
17}
Note: See TracBrowser for help on using the repository browser.