source: CIVL/examples/reasoning/bigExpr.cvl

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

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

  • Property mode set to 100644
File size: 721 bytes
Line 
1#include <stdio.h>
2
3$input int Y0, Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8, Y9, Y10;
4
5_Bool p = 0 == Y3 && ((0 == Y6 + 3) || (Y6 - 1 <= 0))
6 && ((0 == Y6 + 3) || (0 <= Y6)) && ((0 == Y6 + 3) || (0 != Y3 - 1*Y6))
7 && ((0 == Y7 + 3) || (Y7 - 1 <= 0)) && ((0 == Y7 + 3) || (0 <= Y7))
8 && ((0 == Y7 + 3) || (0 != Y3 - 1*Y7)) && ((0 == Y8 + 3) || (Y8 - 1 <= 0))
9 && ((0 == Y8 + 3) || (0 <= Y8)) && ((0 == Y8 + 3) || (0 != Y3 - 1*Y8))
10 && ((0 == Y8 + 3) || (0 != Y6 - 1*Y8)) && ((0 == Y8 + 3) || (0 != Y7 - 1*Y8))
11 && ((0 == Y8 + 3) || (0 != Y8 - 1*Y9)) && ((0 == Y9 + 3) || (Y9 - 1 <= 0))
12 && ((0 == Y9 + 3) || (0 <= Y9)) && ((0 == Y9 + 3) || (0 != Y3 - 1*Y9));
13
14int main() {
15 printf("p=%d\n", p);
16 $assert(p || !p);
17}
Note: See TracBrowser for help on using the repository browser.