source: CIVL/README.md@ 9d0c04c

1.23 2.0 main
Last change on this file since 9d0c04c was 9d0c04c, checked in by Youngjun Lee <youngjunlee7@…>, 3 weeks ago

Cosmetic changes

  • Property mode set to 100644
File size: 8.7 KB
RevLine 
[e27d083]1# CIVL: The Concurrency Intermediate Verification Language
2
3v1.22
4
5## Overview
6
7CIVL is a framework encompassing...
8
9* a programming language, CIVL-C, which adds to C a number of
10 concurrency primitives, as well as the ability to define
11 functions in any scope. Together, these features make for
12 a very expressive concurrent language that can faithfully
13 represent programs using various APIs and parallel languages,
14 such as MPI, OpenMP, Pthread, CUDA, and Chapel. CIVL-C also
15 provides a number of primitives supporting verification.
16* a model checker which uses symbolic execution to verify a
17 number of safety properties of CIVL-C programs. The model
18 checker can also be used to verify that two CIVL-C programs
19 are functionally equivalent.
20* a number of translators from various commonly-used languages
21 and APIs to CIVL-C. (This part is still a work in progress.)
[c7a0783]22
23CIVL is developed by the Verified Software Laboratory at the
24University of Delaware Department of Computer Science.
[e27d083]25For more information, visit <https://civl.dev>
26
27**Active Developers:**
28
29- Stephen F. Siegel
30- Alexander Wilton
31
32**Previous Developers:**
33
34- John Edenhofner
35- Andre Marianiello
36- Michael Rogers
37- Timothy K. Zirkel
38- Manchun Zheng
39- Yihao Yan
40- Matthew B. Dwyer
41- Mitchell Gerrard
42- Wenhao Wu
43- Ziqing Luo
44
45## License
[8d0a007]46
47CIVL is open source software distributed under the GNU
48General Public License. However, the libraries used by CIVL
49(and incorporated into the complete distribution) use various
50licenses. See directory licenses for the license of each component.
51
[e27d083]52## Updates from v1.21
53
541. Upgraded to Java 17
552. Overhauled repository structure by moving ABC, SARL, and GMC
56 repositories into this one.
573. Core language changes
[9d0c04c]58 1. Only the first statement in an `$atomic` block is allowed to block.
59 2. `$yield` can be used to release the lock of the atomic block
60 3. Removed `$atom`
[e27d083]614. Total overhaul to OpenMP transformations. Now includes a robust data
62 race detection feature as described in CAV 2023 paper 'Model Checking
63 Race-freedom When "Sequential Consistency for Data-race-free Programs"
64 is Guaranteed'
655. A large number of bug fixes and small improvements.
66
67## Updates from v1.20
68
691. refine the Fortran extension for paper submitted to TACAS 2022
[97642be]70 1. Complete Fortran Array Descriptor for tracking changes made on
71 index ranges by array section and reshape operations.
72 Any declared array type is transformed into a Fortran array
73 descriptor by Fortran to CIVL-C AST transformer.
74 2. Introduce four basic CIVL verification primitives Fortran bindings
75 1. Type qualifiers:
[9d0c04c]76 - `!$CVL $input`: indicates that all variables declared immediately
[e27d083]77 in the next line are symbolic and read-only.
[9d0c04c]78 - `!$CVL $output`: indicates that all variables declared immediately
[e27d083]79 in the next line are write-only and used for
80 verifying functional output equivalence.
81
[97642be]82 A type declaration statement is required to be used immediately
83 after any CIVL type qualifier and variables qualified shall follow
84 read/write constraints mentioned above.
85 CIVL assumption primitives can be used for limiting the value range
[9d0c04c]86 of variables qualified by `!$CVL $input`.
[97642be]87 e.g.,
88
89 ```fortran
90 !$CVL $input
91 integer :: n, a(n)
92 !! both 'n' and elements of 'a' are symbolic and read-only
93 !$CVL $output
94 integer :: sum
95 !! sum is write-only and can be used for comparing with another
96 !! program, which also has 'sum' with a same type and qualified
97 !! by '!$CVL $output'
98 ```
99
100 2. Verification
[9d0c04c]101 - `!$CVL $assume(logic_expr)`;
[e27d083]102 Make CIVL only explores paths, whose path conditions shall
[9d0c04c]103 make `logic_expr` to be true.
104 Set the value range for varialbes qualified by `!$CVL $input`
105 - `!$CVL $assert(logic_expr)`;
[e27d083]106 Checks predicates representing specific correctness properties
107 that users expect to verify.
108 If any CIVL assertion primitive is evaluated as false, then
109 CIVL shall report an assertion violation.
[97642be]110 3. Add supports for additional Fortran features include:
[9d0c04c]111 1. `inout` and `out` attributes declared by `intent` statement
[97642be]112 2. compound types with fields having scalar types.
113 3. pointer types to scalar types.
114 4. logic expression evaluation without short-circuits
115 5. line truncation for fixed and free forms
116 6. other features are shown here:
117 <https://vsl.cis.udel.edu/trac/civl/wiki/FortranTransformations>
118 4. Add test cases imported from SMACK verification suite
119 <https://github.com/soarlab/gandalv/>
[e27d083]1202. CUDA Support Improvement
[97642be]121 1. Fixed CUDA bug in which CUDA kernel declarations were not being
122 transformed properly
[9d0c04c]123 2. Fixed source info bug (`completeSources` wasn't being called
[97642be]124 everywhere that it should)
125 3. Fixed short circuit bug described in ticket #943
126 4. Added small optimization to short circuit transformer to allow
127 for finer granularity of its transformation
[e27d083]1283. Other Improvement and Fixed Bugs
[9d0c04c]129 1. `MPI_Comm` types can be compared by equality operator (`==`).
[97642be]130 2. Java-Doc improvements
[e27d083]131
132## Updates from v1.19
133
1341. added new language primitives:
[9d0c04c]135 1. `$local_start()` and `$local_end()`
[97642be]136 An execution of the statements in between of this pair, including this pair themselves,
137 is NOT ONLY uninterruptable BUT ALSO purely local to the view of the verifier.
[9d0c04c]138 2. `$read_set_push()` and `$read_set_pop()` (the correspondence for write set has already been supported)
[97642be]139 This pair of primitives can be used to turn on/off the capturing of read set during execution.
[e27d083]1402. added Fortran support for translating basic Fortran features into CIVL-AST
141 (see: <https://vsl.cis.udel.edu/trac/civl/wiki/FortranTransformations>)
1423. added simple Fortran verification examples (edited)
143
144## Binary Installation
[c7a0783]145
[be6d877]146For most users, this will be the easiest way to install and
147use CIVL. Developers should instead follow the instructions for
[bb733f2]148"Source Installation" below.
[583119f]149
[be6d877]1501. Install at least one of the theorem provers below.
[e27d083]151 The more provers you install, the more precise CIVL analysis will
152 be. Note that CIVL only requires the binary executable
153 version of each prover; you can ignore the libraries, various
154 API bindings, etc. You just need to ensure that
155 each binary executable is in your PATH when you run
[9d0c04c]156 `civl config`. The currently supported provers are:
[e27d083]157
158 - CVC4, <http://cvc4.cs.nyu.edu/downloads/>
159 - Z3, <http://z3.codeplex.com/SourceControl/latest>
[bb733f2]160
[42e12a0]1612. Install a Java 17 SDK if you have not already. Go to
[bb733f2]162
[e27d083]163 <http://www.oracle.com/technetwork/java/javase/downloads/>
[bb733f2]164
[e27d083]165 for the latest from Oracle. On linux, you can instead use
166 the package manager:
[bb733f2]167
[e27d083]168 ```sh
169 sudo apt install openjdk-17-jdk
170 ```
[bb733f2]171
[e27d083]1723. Download the CIVL distribution from <http://vsl.cis.udel.edu/civl>.
[bb733f2]173
[be6d877]1744. Unzip and untar the CIVL distribution file if this
[e27d083]175 does not happen automatically. This should result in a
176 folder named CIVL-TAG, where TAG is some version ID string.
177 This folder contains the following:
178
179 - README : this file
[9d0c04c]180 - bin : containing one executable sh script called `civl`
[e27d083]181 - lib : containing civl-TAG.jar
182 - doc : containing the manual and the tutorial of CIVL
183 - emacs : CIVL-C emacs mode and its installation instructions
184 - licenses : licenses for CIVL and included libraries
185 - examples : some example CIVL programs
186
1875. You can move the CIVL folder wherever you want.
188 The JAR file in the lib directory is all you need to run CIVL.
189 You may also move this jar file wherever you want. You
190 run CIVL by typing a command that begins
[9d0c04c]191 `java -jar /path/to/civl-TAG.jar ...`. For convenience
192 you may instead use the shell script `civl` in bin,
193 which allows you to replace `java -jar /path/to/civl-TAG.jar`
194 with just `civl` on the command line. Simply edit the `civl` script
195 to reflect the path to `civl-TAG.jar` and place the script
196 somewhere in your `PATH`. Alternatively, you can just define
197 an alias in your `.profile`, `.bash_profile`, or equivalent, such as
[e27d083]198
199 ```sh
200 alias civl='java -jar /path/to/civl-TAG.jar'
201 ```
202
203 In the following, we will assume that you have defined
[9d0c04c]204 a command `civl` in one these ways.
[536af01]205
[9d0c04c]2066. Type `civl config`. This should report that it found
207 the theorem provers you installed (and are in your `PATH`).
208 It should create a file called `.sarl` in your home directory
[e27d083]209 which you can also edit by hand.
[bb733f2]210
[e27d083]211## Source Installation
[8d0a007]212
[42e12a0]213Instructions found here:
[e27d083]214<https://vsl.cis.udel.edu/trac/civl/wiki/Be%20a%20CIVL%20developer>
Note: See TracBrowser for help on using the repository browser.