source: CIVL/README@ da342d8

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

updated README

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

  • Property mode set to 100644
File size: 8.9 KB
Line 
1 CIVL: The Concurrency Intermediate Verification Language
2 v 0.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, 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
28Stephen F. Siegel
29Timothy K. Zirkel
30Manchun Zheng
31Ziqing Luo
32
33------------------------------- License -------------------------------
34
35CIVL is open source software distributed under the GNU
36General Public License. However, the libraries used by CIVL
37(and incorporated into the complete distribution) use various
38licenses. See directory licenses for the license of each component.
39
40-------------------------- Updates from v 0.10 -------------------------
411. Fix several bugs: a bug in side effect remover for malloc calls;
42 a bug in implicit conversion when assigning an integer variable with a
43 real value; issue with NULL pointer in bundle_pack(); etc.
442. New system functions for barrier: $gbarrier_create($scope, int),
45 $barrier_create($scope, $gbarrier, int), $barrier_call($barrier), etc.
46 See Section 7.3.3 of CIVL manual and examples/languageFeatures/civlBarrier.cvl
47 for more details.
483. New printing of dynamic scope, processes and pointers. See Section 14.2 of
49 CIVL manual for more details.
50
51------------------------- Binary Installation -------------------------
52
53For most users, this will be the easiest way to install and use CIVL.
54
551. Install a Java 7 SDK if you have not already. Go to
56http://www.oracle.com/technetwork/java/javase/downloads/ for the
57latest from Oracle. On linux, you can optionally sudo apt-get install
58openjdk-7-jdk.
59
602. If you already have the VSL dependencies library, you may
61skip this step. Otherwise, download the archive of VSL
62dependencies from http://vsl.cis.udel.edu/tools/vsl_depend,
63choosing the version for your OS type (32-bit linux,
6464-bit linux, or 64-bit OS X). Unzip and untar the
65downloaded .tgz file and you will have a folder named "vsl".
66If you do not already have a directory /opt, create one with
67"mkdir /opt". Move vsl into /opt. Use sudo as needed.
68
693. Download the CIVL distribution from http://vsl.cis.udel.edu/civl.
70
714. Unzip and untar the downloaded file if this does not happen
72automatically. This should result in a folder named
73CIVL-TAG, where TAG is some version id string. This folder
74contains the following:
75
76 - README : this file
77 - bin : containing one executable sh script called "civl"
78 - lib : containing civl-TAG.jar
79 - doc : containing the manual and the tutorial of CIVL
80 - emacs : CIVL-C emacs mode and its installation guideline
81 - licenses : licenses for CIVL and included libraries
82 - examples : some example CIVL programs
83
845. Move CIVL-TAG into /opt.
85
866. Put the civl script in your path however you like to put things
87in your path. Either move it to a directory in your path,
88or create a symlink to it, or edit your .profile or equivalent
89to put it in your path.
90
91------------------------- Source Installation -------------------------
92
93We recommend using the Eclipse IDE for Java/EE developers.
94
951. Install an SVN plugin in Eclipse (such as Subversive) if you have
96 not already.
97
982. Install prerequisite projects ABC, SARL and GMC.
99 Make sure that the three projects are put in the workspace
100 directory where CIVL will be put.
101
102 a. Install the C front-end ABC. In Eclipse,
103 select New Project...from SVN, use the archive
104 svn://vsl.cis.udel.edu/abc. After entering that, open it
105 up and select the "trunk". After checking out trunk, name
106 the project "ABC". Then follow the instructions in the INSTALL
107 file for Eclipse installation. Build the abc.jar from within
108 Eclipse by right-clicking (or ctrl-clicking on OS X) on the
109 build.xml file and selecting Run As->Ant Build.
110
111 b. Install the symbolic algebra and reasoning library SARL.
112 In Eclipse, select New Project...from SVN, use the archive
113 svn://vsl.cis.udel.edu/sarl. After entering that, open it
114 up and select the "trunk". After checking out trunk, name
115 the project "SARL". Then follow the instructions in the INSTALL
116 file for Eclipse installation. Build the sarl.jar from within
117 Eclipse by right-clicking (or ctrl-clicking) on the build.xml
118 file and selecting Run As->Ant Build.
119
120 c. Install the generic model checking utilities package GMC.
121 In Eclipse, select New Project...from SVN, use the archive
122 svn://vsl.cis.udel.edu/gmc. After entering that, open it
123 up and select the "trunk". After checking out trunk, name
124 the project "GMC". Build the gmc.jar from within Eclipse
125 by right-clicking (or ctrl-clicking) on the build.xml file and
126 selecting Run As->Ant Build.
127
1283. From within Eclipse, select New Project...from SVN. The archive is
129 svn://vsl.cis.udel.edu/civl. After entering that, open it up and
130 select the "trunk". (It is simplest to just check out the trunk for
131 the Eclipse project.)
132
1334. Check out the trunk, and create the project using the New Java
134 Project Wizard as usual, naming it "CIVL". The .project, .classpath,
135 and other Eclipse meta-data are already in the SVN archive, saving you
136 a bunch of work.
137
1385. If you already have the VSL dependencies library, you may
139 skip this step. Download the tgz archive of VSL dependencies from
140 http://vsl.cis.udel.edu/tools/vsl_depend, choosing the right .tgz
141 according to your platform:
142
143 vsl_linux32-1.0.tgz - 32-bit linux
144 vsl_linux64-1.0.tgz - 64-bit linux
145 vsl_osx64-1.0.tgz - 64-bit osx
146
147 Unzip the .tgz file and you will have the folder vsl.
148 Move vsl to /opt (you might need to use sudo for this.
149 Also, if you don't already have a directory called /opt,
150 you will have to create it with mkdir /opt).
151
152 Suppose that you put the .tgz file (or .tar file if your browser
153 unzipped it automatically to a .tar file) in the directory $Download.
154 You can use the following commands:
155
156 $ cd $Download
157 $ tar xzf YourTgzOrTarFile vsl
158 $ sudo mv vsl /opt
159
160 Now you can type "ls /opt/vsl", and the output should be
161
162 README.txt lib licenses src
163
1646. If default_build.properties matches the configuration of your system,
165 then you can skip this step. Otherwise, you may need to create a file
166 build.properties in the directory where build.xml is in.
167 Copy and paste the content from any file under properties, edit each
168 entry with the path configured in your system. The newly created file
169 build.properties will automatically be used by ant to to build the .jar file.
170
1717. Navigate to Preferences -> Java -> Build Path -> ClassPath
172 Variables, and then select New to create a classpath variable VSL,
173 and specify its value to be /opt/vsl. Navigate to Preferences -> Run/Debug
174 -> String Substitution -> New, and then define an entry vsl_lib and
175 set its value to be /opt/vsl/lib.
176
1778. Do a clean build. Everything should compile. Generate the civl.jar
178 by right-clicking (or ctrl-click on OS X) the build.xml file and
179 Run As->Ant Build.
180
1819. Go to Run->Run Configurations... Create a new JUnit configuration.
182 Name it CIVL Tests. Select "Run all tests in the selected project..."
183 and navigate to the folder "test" in the CIVL project.
184 The Test runner should be JUnit 4. Under the Arguments tab, type
185 "-ea" (without the quotes) in the VM arguments area (to enable assertion
186 checking). Under the Environment tab, create an entry
187 DYLD_LIBRARY_PATH (OS X) or LD_LIBRARY_PATH (linux),
188 specify its value by clicking Variables and choose vsl_lib from the list,
189 or you may type ${vsl_lib} in the value entry.
190
19110. An example of how to set up a single test from within Eclipse:
192 create a new Run Configuration via the Run->Run
193 Configurations... menu. Create a new "Java Application"
194 configuration. Call it "CIVL barrier2". The Project is CIVL. The
195 main class is edu.udel.cis.vsl.civl.CIVL. Under the Arguments tab,
196 set the Program arguments to "examples/barrier2.cvl" (without the
197 quotes). Modify the VM arguments and the Environment as in the step
198 above. You should now be able to run the test by clicking "Run".
Note: See TracBrowser for help on using the repository browser.