CIVL: The Concurrency Intermediate Verification Language v1.16 ------------------------------ Overview ------------------------------- CIVL is a framework encompassing... * a programming language, CIVL-C, which adds to C a number of concurrency primitives, as well as the ability to define functions in any scope. Together, these features make for a very expressive concurrent language that can faithfully represent programs using various APIs and parallel languages, such as MPI, OpenMP, Pthread, CUDA, and Chapel. CIVL-C also provides a number of primitives supporting verification. * a model checker which uses symbolic execution to verify a number of safety properties of CIVL-C programs. The model checker can also be used to verify that two CIVL-C programs are functionally equivalent. * a number of translators from various commonly-used languages and APIs to CIVL-C. (This part is still a work in progress.) CIVL is developed by the Verified Software Laboratory at the University of Delaware Department of Computer Science. For more information, visit http://vsl.cis.udel.edu/civl Active Developers: Matthew B. Dwyer Mitchell Gerrard Ziqing Luo Stephen F. Siegel Wenhao Wu Yihao Yan Inactive Developers: John Edenhofner Andre Marianiello Michael Rogers Timothy K. Zirkel Si Li Manchun Zheng ------------------------------- License ------------------------------- CIVL is open source software distributed under the GNU General Public License. However, the libraries used by CIVL (and incorporated into the complete distribution) use various licenses. See directory licenses for the license of each component. -------------------------- Updates from v1.15.1 ------------------------- -- CIVL functionalities - enable CIVL to parse ACSL expressions (“aAnt Build. b. Install the C front-end ABC. In Eclipse, select New Project...from SVN, use the archive svn://vsl.cis.udel.edu/abc. After entering that, open it up and select the "trunk". After checking out trunk, name the project "ABC". Then follow the instructions in the INSTALL file for Eclipse installation. Build the abc.jar from within Eclipse by right-clicking (or ctrl-clicking on OS X) on the build.xml file and selecting Run As->Ant Build. c. Install the generic model checking utilities package GMC. In Eclipse, select New Project...from SVN, use the archive svn://vsl.cis.udel.edu/gmc. After entering that, open it up and select the "trunk". After checking out trunk, name the project "GMC". Build the gmc.jar from within Eclipse by right-clicking (or ctrl-clicking) on the build.xml file and selecting Run As->Ant Build. 3. From within Eclipse, select New Project...from SVN. The archive is svn://vsl.cis.udel.edu/civl. After entering that, open it up and select the "trunk". (It is simplest to just check out the trunk for the Eclipse project.) 4. Check out the trunk, and create the project using the New Java Project Wizard as usual, naming it "CIVL". The .project, .classpath, and other Eclipse meta-data are already in the SVN archive, saving you a bunch of work. 5. If you already have the VSL dependencies library, you may skip this step. Otherwise, download the tgz archive of VSL dependencies from http://vsl.cis.udel.edu/lib/tools/vsl_depend Unzip the .tgz file and you will have the folder vsl. Move vsl to /opt. Note: you probably will need to use sudo for this. Also, if you don't already have a directory called /opt, you will have to create it with "mkdir /opt". Also, if you don't want to use /opt for some reason, you can use any directory you want; just modify the instructions below accordingly. Suppose that you put the .tgz file (or .tar file if your browser unzipped it automatically to a .tar file) in the directory DOWNLOAD. You can use the following commands: $ cd DOWNLOAD $ tar xzf YourTgzOrTarFile vsl $ sudo mv vsl /opt (Leave out the "x" in the tar command if the file was already unzipped.) Now you can type "ls /opt/vsl", and the output should be README.txt lib licenses src 6. If default_build.properties matches the configuration of your system, then you can skip this step. Otherwise, you may need to create a file build.properties in the directory containing build.xml. Copy and paste the content from any file under properties, edit each entry with the path configured in your system. The newly created file build.properties will automatically be used by ant to to build the .jar file. 7. Navigate to Preferences -> Java -> Build Path -> ClassPath Variables, and then select New to create a classpath variable VSL, and specify its value to be /opt/vsl. 8. Do a clean build. Everything should compile. Generate the civl.jar by right-clicking (or ctrl-click on OS X) the build.xml file and Run As->Ant Build. 9. Shortcuts for running CIVL Somewhere on your system, create a plain text file containing exactly the following two lines: #!/bin/sh java -jar /Path/To/Your/workspace/CIVL/civl.jar $@ where "/Path/To/Your/workspace" is replaced with the path to your Eclipse workspace directory. Name this file "civl", put it in your PATH, and make it executable (chmod ugo+x civl). 10. From a terminal window, execute "civl config". This should find the theorem provers in your PATH and create a file .sarl in your home directory. 11. In Eclipse, navigate to "Run->Run Configurations... Create a new JUnit configuration." Name it "CIVL Regression Tests". Select "Run all tests in the selected project..." and navigate to the folder "test/regress" in the CIVL project. The Test runner should be JUnit 4. Under the Arguments tab, type "-ea" (without the quotes) in the VM arguments area (to enable assertion checking). 12. An example of how to set up a single test from within Eclipse: create a new Run Configuration via the Run->Run Configurations... menu. Create a new "Java Application" configuration. Call it "CIVL barrier2". The Project is CIVL. The main class is edu.udel.cis.vsl.civl.CIVL. Under the Arguments tab, set the Program arguments to verify examples/concurrency/barrier2.cvl Modify the VM arguments as in the step above. You should now be able to run the test by clicking "Run".