Artifact for "Verifying the Option Type with Rely-Guarantee Reasoning"
<p>This repository contains the dataset and scripts to reproduce Table 1 and Table 2 in the paper "Verifying the Option Type with Rely-Guarantee Reasoning".</p> <h2>Requirements</h2> <p>Please see <code>REQUIREMENTS.md</code> for the same information, but listed separately from this README file.</p> <p>Our scripts are designed for a Unix environment (Linux, macOS, WSL, etc.). They will not work under a Windows command shell.</p> <p>Our scripts require the following tools:</p> <ul> <li> <p><a href="https://www.python.org/downloads/">Python 3</a>, version 3.9.6 or later.</p> </li> <li> <p>GNU <code>grep</code>. For macOS, install it as <code>ggrep</code> via the command <code>brew install grep</code>.</p> <ul> <li>If not already installed, <code>brew</code> can be installed via the instructions<a href="https://docs.brew.sh/Installation">here</a></li> </ul> </li> </ul> <h2>Subject programs</h2> <p>File <code>dataset.txt</code> lists the subject programs.</p> <p>The subject programs are stored under the following directories:</p> <ul> <li><code>optional-paper-base-repos</code>: all the subject programs with their build files modified to run the Optional Checker.</li> <li><code>optional-paper-annotated-repos</code>: all the subject programs, with<code>@SuppressWarnings</code> for each true positive and false positive issued by the Optional Checker (scripts count these). It also contains the Optional Checker type qualifiers that we wrote.</li> <li><code>optional-paper-intellij-repos</code>: all the subject programs with <code>@SuppressWarnings</code> for each IntelliJ warning (so they can be programmatically counted).</li> <li><code>optional-paper-errorprone-repos</code>: all the subject programs with <code>@SuppressWarnings</code> for each Error Prone warning.</li> <li><code>optional-paper-spotbugs-repos</code>: all the subject programs with <code>@SuppressWarnings</code> for each SpotBugs warning.</li> </ul> <h2>Scripts</h2> <p>Looking to reproduce <em>all</em> the data in our tables? See <a href="reproduce-data"><code>reproduce-data</code></a>.</p> <p>This repository contains the following scripts:</p> <ul> <li><a href="reproduce-data"><code>reproduce-data</code></a>: this script reproduces all the data for our tables.</li> <li><a href="compute-precision-recall-annotations"><code>compute-precision-recall-annotations</code></a>: this script generates Table 1: it computes the values for precision, recall, and the number of human-written, machine-checked annotations used by each tool.</li> <li><a href="count-style-violations"><code>count-style-violations</code></a>: this script generates Table 2: it reports the number of style violations detected by each tool.</li> <li><a href="mygrep.py"><code>mygrep.py</code></a>: this is a Python utility used by other scripts as a thin wrapper around <code>grep</code>. You need not use it directly.</li> </ul> <p>All these scripts may be executed from the root of this directory. For example, to generate Table 1:</p> <pre><code>% ./compute-precision-recall-annotations </code></pre> <h2>Resulting Data</h2> <p>Each script produces the <em>rows</em> of the dataset, excluding the column titles. Below is a brief description of each output <code>.tex</code> file:</p> <ul> <li><code>eval-statistics.tex</code>: generated by the <code>compute-precision-recall-annotations</code> script, maps to Table 1 in our paper. The columns of the data are, in order from left-to-right: <ul> <li>Tool name</li> <li>Number of true positives detected by the tool</li> <li>Number of false positives detected by the tool</li> <li>Precision</li> <li>Recall</li> <li>Total number of machine-verified annotations written as a specification across all subject programs.</li> </ul> </li> <li><code>style-violations.tex</code>: generated by the <code>count-style-violations</code>script, maps to Table 2 in our paper. The columns are the data are, in order from left-to-right: <ul> <li>Tool name</li> <li>Number of violations of style rule 1</li> <li>Number of violations of style rule 3</li> <li>Number of violations of style rule 4</li> <li>Number of violations of style rule 5</li> <li>Number of violations of style rule 6.a</li> <li>Number of violations of style rule 6.b</li> <li>Number of violations of style rule 6.c</li> <li>Number of violations of style rule 7</li> </ul> </li> </ul> <h2>Implementation</h2> <p>The implementation of the Optional Checker appears in the <code>implementation</code> directory. This folder contains the following subdirectories:</p> <ul> <li><code>optional</code>: the source code for the Optional Checker's verification logic for the Optional type system. <ul> <li><code>optional/qualifiers</code>: the definitions for each type qualifier from the Optional type system that may be used with the Optional Checker.</li> </ul> </li> <li><code>nonempty</code>: the source code for the Optional Checker's verification logic for the Non-Empty type system. <ul> <li><code>nonempty/qualifiers</code>: the definitions for each type qualifier from the Non-Empty type system that may be used with the Optional Checker.</li> </ul> </li> </ul>
ShareScore
36/100
Overall dataset sharing score
Score breakdown
These five areas show where the dataset supports — or may limit — practical reuse.
- Stewardship
- 4
- Harmonization
- 4
- Access
- 16
- Reuse readiness
- 8
- Engagement
- 4
Dataset details
- Repository
- zenodo
- Published
- September 12, 2024
- License
- cc-by-4.0
- DOI
- 10.5281/zenodo.11522277
Scored with release 0.9.0
ScienceDex for faculty
Your academic CV and NIH biosketch
Make your CV in your school's format and your NIH biosketch from it, then download both as Word files.