source: CIVL/README@ c6faecb

1.23 2.0 main test-branch
Last change on this file since c6faecb was 5c5e0bc, checked in by Ziqing Luo <ziqing@…>, 9 years ago

commit for release, improved source printing

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

  • Property mode set to 100644
File size: 10.7 KB
Line 
1 CIVL: The Concurrency Intermediate Verification Language
2 v1.11
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, Pthread, CUDA, and Chapel. CIVL-C also
14 provides 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
26Active Developers:
27Matthew B. Dwyer
28Mitchell Gerrard
29Si Li
30Ziqing Luo
31Stephen F. Siegel
32Wenhao Wu
33Yihao Yan
34Manchun Zheng
35
36Inactive Developers:
37John Edenhofner
38Andre Marianiello
39Michael Rogers
40Timothy K. Zirkel
41
42------------------------------- License -------------------------------
43
44CIVL is open source software distributed under the GNU
45General Public License. However, the libraries used by CIVL
46(and incorporated into the complete distribution) use various
47licenses. See directory licenses for the license of each component.
48
49
50-------------------------- Updates from v1.10 -------------------------
51- Fixed a bug in model building when there are conditional expressions appear in for loop incrementer.
52- Improving the print of source file informations for error reporting.
53- Disable IntOperationTransformer by default
54- Solved the performance issue related to deadlock freedom property invisibility in CUDA examples
55
56------------------------- Binary Installation -------------------------
57
58For most users, this will be the easiest way to install and
59use CIVL. Developers should instead follow the instructions for
60"Source Installation" below.
61
621. Install at least one of the theorem provers below.
63The more provers you install, the more precise CIVL analysis will
64be. Note that CIVL only requires the binary executable
65version of each prover; you can ignore the libraries, various
66API bindings, etc. You just need to ensure that
67each binary executable is in your PATH when you run
68"civl config". The currently supported provers are:
69
70 - CVC3, http://www.cs.nyu.edu/acsys/cvc3/download.html
71 download the latest, optimized build with static library
72 and executable for your OS. Place the executable file
73 "cvc3" in your PATH. You can discard everything else.
74 Alternatively, on some linux systems, CVC3 can be installed
75 using the package manager via "sudo apt-get install cvc3".
76 This will place cvc3 in /usr/bin.
77
78 - CVC4, http://cvc4.cs.nyu.edu/downloads/
79
80 - Z3, http://z3.codeplex.com/SourceControl/latest
81
822. Install a Java 8 SDK if you have not already. Go to
83
84 http://www.oracle.com/technetwork/java/javase/downloads/
85
86for the latest from Oracle. On linux, you can instead use
87the package manager:
88
89 sudo apt-get install openjdk-8-jdk
90
913. Download the CIVL distribution from http://vsl.cis.udel.edu/civl.
92
934. Unzip and untar the CIVL distribution file if this
94does not happen automatically. This should result in a
95folder named CIVL-TAG, where TAG is some version ID string.
96This folder contains the following:
97
98 - README : this file
99 - bin : containing one executable sh script called "civl"
100 - lib : containing civl-TAG.jar
101 - doc : containing the manual and the tutorial of CIVL
102 - emacs : CIVL-C emacs mode and its installation instructions
103 - licenses : licenses for CIVL and included libraries
104 - examples : some example CIVL programs
105
1065. You can move the CIVL folder wherever you want.
107The JAR file in the lib directory is all you need to run CIVL.
108You may also move this jar file wherever you want. You
109run CIVL by typing a command that begins
110"java -jar /path/to/civl-TAG.jar ...". For convenience
111you may instead use the shell script "civl" in bin,
112which allows you to replace "java -jar /path/to/civl-TAG.jar"
113with just "civl" on the command line. Simply edit the civl script
114to reflect the path to civl-TAG.jar and place the script
115somewhere in your PATH. Alternatively, you can just define
116an alias in your .profile, .bash_profile, or equivalent, such as
117
118alias civl='java -jar /path/to/civl-TAG.jar'
119
120In the following, we will assume that you have defined
121a command "civl" in one these ways.
122
1236. Type "civl config". This should report that it found
124the theorem provers you installed (and are in your PATH).
125It should create a file called ".sarl" in your home directory
126which you can also edit by hand.
127
128
129------------------------- Source Installation -------------------------
130
131We recommend using the Eclipse IDE for Java/EE developers.
132
1330. Install theorem provers following the directions above.
134Install Eclipse IDE for Java/EE developers if you have not already
135done so.
136
1371. Install an SVN plugin in Eclipse (such as Subversive) if you have
138 not already.
139
1402. Install prerequisite projects ABC, SARL and GMC.
141 Make sure that the three projects are put in the workspace
142 directory where CIVL will be created. Specifically:
143
144 a. Install the symbolic algebra and reasoning library SARL.
145 In Eclipse, select New Project...from SVN, use the archive
146 svn://vsl.cis.udel.edu/sarl. After entering that, open it
147 up and select the "trunk". After checking out trunk, name
148 the project "SARL". Then follow the instructions in the INSTALL
149 file for Eclipse installation. Build the sarl.jar from within
150 Eclipse by right-clicking (or ctrl-clicking) on the build.xml
151 file and selecting Run As->Ant Build.
152
153 b. Install the C front-end ABC. In Eclipse,
154 select New Project...from SVN, use the archive
155 svn://vsl.cis.udel.edu/abc. After entering that, open it
156 up and select the "trunk". After checking out trunk, name
157 the project "ABC". Then follow the instructions in the INSTALL
158 file for Eclipse installation. Build the abc.jar from within
159 Eclipse by right-clicking (or ctrl-clicking on OS X) on the
160 build.xml file and selecting Run As->Ant Build.
161
162 c. Install the generic model checking utilities package GMC.
163 In Eclipse, select New Project...from SVN, use the archive
164 svn://vsl.cis.udel.edu/gmc. After entering that, open it
165 up and select the "trunk". After checking out trunk, name
166 the project "GMC". Build the gmc.jar from within Eclipse
167 by right-clicking (or ctrl-clicking) on the build.xml file and
168 selecting Run As->Ant Build.
169
1703. From within Eclipse, select New Project...from SVN. The archive is
171 svn://vsl.cis.udel.edu/civl. After entering that, open it up and
172 select the "trunk". (It is simplest to just check out the trunk for
173 the Eclipse project.)
174
1754. Check out the trunk, and create the project using the New Java
176 Project Wizard as usual, naming it "CIVL". The .project, .classpath,
177 and other Eclipse meta-data are already in the SVN archive,
178 saving you a bunch of work.
179
1805. If you already have the VSL dependencies library, you may
181 skip this step. Otherwise, download the tgz archive of VSL
182 dependencies from http://vsl.cis.udel.edu/lib/tools/vsl_depend
183 Unzip the .tgz file and you will have the folder vsl.
184 Move vsl to /opt.
185 Note: you probably will need to use sudo for this.
186 Also, if you don't already have a directory called /opt,
187 you will have to create it with "mkdir /opt". Also, if you
188 don't want to use /opt for some reason, you can use any
189 directory you want; just modify the instructions below
190 accordingly.
191
192 Suppose that you put the .tgz file (or .tar file if your browser
193 unzipped it automatically to a .tar file) in the directory DOWNLOAD.
194 You can use the following commands:
195
196 $ cd DOWNLOAD
197 $ tar xzf YourTgzOrTarFile vsl
198 $ sudo mv vsl /opt
199
200 (Leave out the "x" in the tar command if the file was already
201 unzipped.) Now you can type "ls /opt/vsl", and the output
202 should be
203
204 README.txt lib licenses src
205
2066. If default_build.properties matches the configuration of your system,
207 then you can skip this step. Otherwise, you may need to create a file
208 build.properties in the directory containing build.xml.
209 Copy and paste the content from any file under properties, edit each
210 entry with the path configured in your system. The newly created file
211 build.properties will automatically be used by ant to to build the
212 .jar file.
213
2147. Navigate to Preferences -> Java -> Build Path -> ClassPath
215 Variables, and then select New to create a classpath variable VSL,
216 and specify its value to be /opt/vsl.
217
2188. Do a clean build. Everything should compile. Generate the civl.jar
219 by right-clicking (or ctrl-click on OS X) the build.xml file and
220 Run As->Ant Build.
221
2229. Somewhere on your system, create a plain text file containing
223 exactly the following two lines:
224
225#!/bin/sh
226java -jar /Path/To/Your/workspace/CIVL/civl.jar $@
227
228 where "/Path/To/Your/workspace" is replaced with the path
229 to your Eclipse workspace directory. Name this file "civl",
230 put it in your PATH, and make it executable (chmod ugo+x civl).
231 Alternatively, you can define an alias in your .profile,
232 .bash_profile, .bashrc, or equivalent:
233
234alias civl='java -jar /Path/To/Your/workspace/CIVL/civl.jar'
235
23610. From a terminal window, execute "civl config". This should
237 find the theorem provers in your PATH and create a file
238 .sarl in your home directory.
239
24011. In Eclipse, navigate to "Run->Run Configurations... Create a new
241 JUnit configuration."
242 Name it "CIVL Regression Tests". Select "Run all tests in the
243 selected project..." and navigate to the folder "test/regress"
244 in the CIVL project. The Test runner should be JUnit 4. Under the
245 Arguments tab, type "-ea" (without the quotes) in the VM arguments
246 area (to enable assertion checking).
247
24812. An example of how to set up a single test from within Eclipse:
249 create a new Run Configuration via the Run->Run
250 Configurations... menu. Create a new "Java Application"
251 configuration. Call it "CIVL barrier2". The Project is CIVL. The
252 main class is edu.udel.cis.vsl.civl.CIVL. Under the Arguments tab,
253 set the Program arguments to
254
255 verify examples/concurrency/barrier2.cvl
256
257 Modify the VM arguments as in the step above. You should now be
258 able to run the test by clicking "Run".
259
260
261
Note: See TracBrowser for help on using the repository browser.