source: CIVL/examples/nest.cvl@ 844ebd8

1.23 2.0 main test-branch
Last change on this file since 844ebd8 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: 174 bytes
Line 
1
2\input int n;
3\output double d=0;
4
5void main() {
6 for (int i=0; i<n; i++) {
7 double h();
8 double g(int j) {
9 return (double)(10*i+j);
10 }
11 d += g(i);
12 }
13}
Note: See TracBrowser for help on using the repository browser.