source: CIVL/examples/arithmetic/sqrt.cvl@ 7c66e72

1.23 2.0 main test-branch
Last change on this file since 7c66e72 was 869af89, checked in by Ziqing Luo <ziqing@…>, 11 years ago

Complete math.cvl and add 5 new examples under examples/arithmetic/

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

  • Property mode set to 100644
File size: 147 bytes
Line 
1#include <math.h>
2#include <assert.h>
3
4$input double x;
5$assume x >= 0.0;
6
7int main() {
8 double y = sqrt(x) + 1;
9
10 assert(y >= 1);
11 return 0;
12}
Note: See TracBrowser for help on using the repository browser.