source: CIVL/examples/backend/quantified.cvl@ c1381dd

1.23 2.0 main test-branch
Last change on this file since c1381dd was fc77f0c, checked in by Manchun Zheng <zmanchun@…>, 10 years ago

added test for translating quantified expressions.

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

  • Property mode set to 100644
File size: 253 bytes
Line 
1#include <stdio.h>
2#include <civlc.cvh>
3
4$input int n;
5$assume (n>=0);
6$input int a[n];
7$input int b[n];
8
9void main(){
10 $assert(
11 ($forall {int i | i > 0 && i < n} a[i])
12 && ($forall {int i | i >= 1 && i <= 5} b[i])
13 );
14}
15
16
Note: See TracBrowser for help on using the repository browser.