source: CIVL/README@ be6d877

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since be6d877 was be6d877, checked in by Stephen Siegel <siegel@…>, 12 years ago

Got rid of .sarl_default since everyone should make their own. Updated README, changed two tests which said they should fail to say they should pass. They are quadratic tests and they work because Z3 gets them.

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

  • Property mode set to 100644
File size: 10.6 KB
Line 
1 CIVL: The Concurrency Intermediate Verification Language
2 v0.15
3
4------------------------------ Overview -------------------------------
5
6CIVL is a framework encompassing...
7
8 * a programming language, CIVL-C, which adds to C a number of
9 concurrency primitives, as well as the ability to define
10 functions in any scope. Together, these features make for
11 a very expressive concurrent language that can faithfully
12 represent programs using various APIs and parallel languages,
13 such as MPI, OpenMP, CUDA, and Chapel. CIVL-C also provides
14 a number of primitives supporting verification.
15 * a model checker which uses symbolic execution to verify a
16 number of safety properties of CIVL-C programs. The model
17 checker can also be used to verify that two CIVL-C programs
18 are functionally equivalent.
19 * a number of translators from various commonly-used languages
20 and APIs to CIVL-C. (This part is still a work in progress.)
21
22CIVL is developed by the Verified Software Laboratory at the
23University of Delaware Department of Computer Science.
24For more information, visit http://vsl.cis.udel.edu/civl
25
26Developers:
27
28Matthew B. Dwyer
29Ziqing Luo
30Michael Rogers
31Stephen F. Siegel
32Manchun Zheng
33Timothy K. Zirkel
34
35------------------------------- License -------------------------------
36
37CIVL is open source software distributed under the GNU
38General Public License. However, the libraries used by CIVL
39(and incorporated into the complete distribution) use various
40licenses. See directory licenses for the license of each component.
41
42-------------------------- Updates from v 0.14 -------------------------
43
441. Fixed the bug that erroneously checking mpi processes statuses inside communicators
45
462. Fixed the bug that invalid command line inputs crash CIVL.
47
483. Fixed the bug that CIVL mis-handling float-to-int conversion.
49
504. Fixed the bug that Translation will ignore unused variable erroneously.
51
525. Fixed the bug that CIVL implementation misses extents information for literal array assignments.
53
546. Fixed the bug that CIVL didn't report array out of bound error.
55
567. Fixed performance bug dealing with MPI/link.
57
588. Fixed the bug that POR didn't recognize input array.
59
609. Fixed the bug that ABC can't print $forall.
61
6210. Fixed the bug of linkage with bound variables.
63
6411. Improving CIVL by get rid of unnecessary statements enabled from a nondeterministic statement.
65
6612. Support compound literals for input variables.
67
6813. Improves the performance of SARL which also makes CIVL run faster.
69
7014. Makes sources of inserted texts by transformer more clear.
71
7215. Support time.h
73
7416. Implemented fflush()
75
7617. Extended ABC to handle Cuda-c extensions.
77
7818. Simplify array representation in SARL.
79
80
81
82------------------------- Binary Installation -------------------------
83
84For most users, this will be the easiest way to install and
85use CIVL. Developers should instead follow the instructions for
86"Source Installation" below.
87
881. Install at least one of the theorem provers below.
89The more you install, the more precise CIVL analysis will
90be. Note that CIVL only requires the binary executable
91version of each prover; you can ignore the libraries, various
92API bindings, etc. You just need to ensure that
93each binary executable is in your PATH when you run
94"civl config". The currently supported provers are:
95
96 - CVC3, http://www.cs.nyu.edu/acsys/cvc3/download.html
97 download the latest, optimized build with static library
98 and executable for your OS. Place the executable file
99 "cvc3" in your PATH. You can discard everything else.
100 Alternatively, on some linux systems, CVC3 can be installed
101 using the package manager via "sudo apt-get install cvc3".
102 This will place cvc3 in /usr/bin.
103
104 - CVC4, http://cvc4.cs.nyu.edu/downloads/
105
106 - Z3, http://z3.codeplex.com/SourceControl/latest
107
1082. Install a Java 7 SDK if you have not already. Go to
109
110 http://www.oracle.com/technetwork/java/javase/downloads/
111
112for the latest from Oracle. On linux, you can instead use
113the package manager:
114
115 sudo apt-get install openjdk-7-jdk
116
1173. Download the CIVL distribution from http://vsl.cis.udel.edu/civl.
118
1194. Unzip and untar the CIVL distribution file if this
120does not happen automatically. This should result in a
121folder named CIVL-TAG, where TAG is some version ID string.
122This folder contains the following:
123
124 - README : this file
125 - bin : containing one executable sh script called "civl"
126 - lib : containing civl-TAG.jar
127 - doc : containing the manual and the tutorial of CIVL
128 - emacs : CIVL-C emacs mode and its installation instructions
129 - licenses : licenses for CIVL and included libraries
130 - examples : some example CIVL programs
131
1325. Move CIVL-TAG into /opt. Alternatively, if you don't want to
133put it in /opt for some reason, put CIVL-TAG wherever you want
134and edit the script (bin/civl) to reflect the chosen path.
135
1366. Put the script bin/civl in your path however you like to
137put things in your path. Either move it to a directory
138in your path, or create a symlink to it, or edit your .profile
139or equivalent to put it in your path.
140
1417. Type "civl config". This should report that it found
142the theorem provers you installed (and are in your PATH).
143It should create a file called ".sarl" in your home directory
144which you can also edit by hand.
145
146
147------------------------- Source Installation -------------------------
148
149We recommend using the Eclipse IDE for Java/EE developers.
150
1510. Install theorem provers following the directions above.
152Install Eclipse IDE for Java/EE developers if you have not already
153done so.
154
1551. Install an SVN plugin in Eclipse (such as Subversive) if you have
156 not already.
157
1582. Install prerequisite projects ABC, SARL and GMC.
159 Make sure that the three projects are put in the workspace
160 directory where CIVL will be created.
161
162 a. Install the symbolic algebra and reasoning library SARL.
163 In Eclipse, select New Project...from SVN, use the archive
164 svn://vsl.cis.udel.edu/sarl. After entering that, open it
165 up and select the "trunk". After checking out trunk, name
166 the project "SARL". Then follow the instructions in the INSTALL
167 file for Eclipse installation. Build the sarl.jar from within
168 Eclipse by right-clicking (or ctrl-clicking) on the build.xml
169 file and selecting Run As->Ant Build.
170
171 b. Install the C front-end ABC. In Eclipse,
172 select New Project...from SVN, use the archive
173 svn://vsl.cis.udel.edu/abc. After entering that, open it
174 up and select the "trunk". After checking out trunk, name
175 the project "ABC". Then follow the instructions in the INSTALL
176 file for Eclipse installation. Build the abc.jar from within
177 Eclipse by right-clicking (or ctrl-clicking on OS X) on the
178 build.xml file and selecting Run As->Ant Build.
179
180 c. Install the generic model checking utilities package GMC.
181 In Eclipse, select New Project...from SVN, use the archive
182 svn://vsl.cis.udel.edu/gmc. After entering that, open it
183 up and select the "trunk". After checking out trunk, name
184 the project "GMC". Build the gmc.jar from within Eclipse
185 by right-clicking (or ctrl-clicking) on the build.xml file and
186 selecting Run As->Ant Build.
187
1883. From within Eclipse, select New Project...from SVN. The archive is
189 svn://vsl.cis.udel.edu/civl. After entering that, open it up and
190 select the "trunk". (It is simplest to just check out the trunk for
191 the Eclipse project.)
192
1934. Check out the trunk, and create the project using the New Java
194 Project Wizard as usual, naming it "CIVL". The .project, .classpath,
195 and other Eclipse meta-data are already in the SVN archive,
196 saving you a bunch of work.
197
1985. If you already have the VSL dependencies library, you may
199 skip this step. Otherwise, download the tgz archive of VSL
200 dependencies from http://vsl.cis.udel.edu/tools/vsl_depend
201 Unzip the .tgz file and you will have the folder vsl.
202 Move vsl to /opt (you might need to use sudo for this.
203 Also, if you don't already have a directory called /opt,
204 you will have to create it with mkdir /opt).
205
206 Suppose that you put the .tgz file (or .tar file if your browser
207 unzipped it automatically to a .tar file) in the directory DOWNLOAD.
208 You can use the following commands:
209
210 $ cd DOWNLOAD
211 $ tar xzf YourTgzOrTarFile vsl
212 $ sudo mv vsl /opt
213
214 (Leave out the "x" in the tar command if the file was already
215 unzipped.) Now you can type "ls /opt/vsl", and the output
216 should be
217
218 README.txt lib licenses src
219
2206. If default_build.properties matches the configuration of your system,
221 then you can skip this step. Otherwise, you may need to create a file
222 build.properties in the directory containing build.xml.
223 Copy and paste the content from any file under properties, edit each
224 entry with the path configured in your system. The newly created file
225 build.properties will automatically be used by ant to to build the .jar file.
226
2277. Navigate to Preferences -> Java -> Build Path -> ClassPath
228 Variables, and then select New to create a classpath variable VSL,
229 and specify its value to be /opt/vsl.
230
2318. Do a clean build. Everything should compile. Generate the civl.jar
232 by right-clicking (or ctrl-click on OS X) the build.xml file and
233 Run As->Ant Build.
234
2359. Somewhere on your system, create a plain text file containing
236 exactly the following two lines:
237
238#!/bin/sh
239java -jar /Path/To/Your/workspace/CIVL/civl.jar $@
240
241 where "/Path/To/Your/workspace" is replaced with the path
242 to your Eclipse workspace directory. Name this file "civl",
243 put it in your PATH, and make it executable (chmod ugo+x civl).
244
24510. From a terminal window, execute "civl config". This should
246 find the theorem provers in your PATH and create a file
247 .sarl in your home directory.
248
24911. In Eclipse, navigate to "Run->Run Configurations... Create a new
250 JUnit configuration."
251 Name it "CIVL Regression Tests". Select "Run all tests in the
252 selected project..." and navigate to the folder "test/regress"
253 in the CIVL project. The Test runner should be JUnit 4. Under the
254 Arguments tab, type "-ea" (without the quotes) in the VM arguments
255 area (to enable assertion checking).
256
25712. An example of how to set up a single test from within Eclipse:
258 create a new Run Configuration via the Run->Run
259 Configurations... menu. Create a new "Java Application"
260 configuration. Call it "CIVL barrier2". The Project is CIVL. The
261 main class is edu.udel.cis.vsl.civl.CIVL. Under the Arguments tab,
262 set the Program arguments to
263
264 verify examples/concurrency/barrier2.cvl
265
266 Modify the VM arguments as in the step above. You should now be
267 able to run the test by clicking "Run".
Note: See TracBrowser for help on using the repository browser.