Skip to content
This repository was archived by the owner on Oct 3, 2021. It is now read-only.

Commit e32d8d6

Browse files
authored
Merge pull request #1099 from sosy-lab/reuse
Initial preparation for making the repo REUSE-compliant
2 parents 464052b + 6a1ff80 commit e32d8d6

File tree

180 files changed

+1853
-306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+1853
-306
lines changed

.github/PULL_REQUEST_TEMPLATE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88

99
- [ ] programs added to new and [appropriately named](https://github.com/sosy-lab/sv-benchmarks/blob/master/CONTRIBUTING.md#directory-structure-and-names) directory
10-
- [ ] license present and [acceptable](https://github.com/sosy-lab/sv-benchmarks/blob/master/CONTRIBUTING.md#license) (either in separate file or as comment at beginning of program)
10+
- [ ] license present and [acceptable](https://github.com/sosy-lab/sv-benchmarks/blob/master/CONTRIBUTING.md#license) (in machine-readable comment at beginning of program as specified by the [REUSE project](https://reuse.software/))
1111
- [ ] [contributed-by](https://github.com/sosy-lab/sv-benchmarks/blob/master/CONTRIBUTING.md#origin-description-and-attribution) present (either in README file or as comment at beginning of program)
1212

1313
- [ ] programs added to a `.set` file of an existing category, or new sub-category established (if justified)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This file is part of the SV-Benchmarks collection of verification tasks:
2+
https://github.com/sosy-lab/sv-benchmarks
3+
4+
SPDX-FileCopyrightText: 2011-2020 The SV-Benchmarks Community
5+
6+
SPDX-License-Identifier: Apache-2.0

.github/workflows/reuse.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This file is part of the SV-Benchmarks collection of verification tasks:
2+
# https://github.com/sosy-lab/sv-benchmarks
3+
#
4+
# SPDX-FileCopyrightText: 2020 The SV-Benchmarks Community
5+
#
6+
# SPDX-License-Identifier: Apache-2.0
7+
8+
name: REUSE Compliance Check
9+
10+
on: [push, pull_request]
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: REUSE Compliance Check
18+
uses: fsfe/[email protected]

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# This file is part of the SV-Benchmarks collection of verification tasks:
2+
# https://github.com/sosy-lab/sv-benchmarks
3+
#
4+
# SPDX-FileCopyrightText: 2011-2020 The SV-Benchmarks Community
5+
#
6+
# SPDX-License-Identifier: Apache-2.0
7+
18
*.class
29
*.jar
310
*.zip

.gitlab-ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# This file is part of the SV-Benchmarks collection of verification tasks:
2+
# https://github.com/sosy-lab/sv-benchmarks
3+
#
4+
# SPDX-FileCopyrightText: 2011-2020 The SV-Benchmarks Community
5+
#
6+
# SPDX-License-Identifier: Apache-2.0
7+
18
stages:
29
- images
310
- checks
@@ -164,3 +171,12 @@ build-docker:java:latest:
164171
DOCKERFILE: java/.Dockerfile
165172
IMAGE: ci/java:latest
166173

174+
175+
# check license declarations etc.
176+
reuse:
177+
stage: checks
178+
image:
179+
name: fsfe/reuse:latest
180+
entrypoint: [""]
181+
script:
182+
- reuse lint

.reuse/dep5

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: SV-Benchmarks
3+
Source: https://github.com/sosy-lab/sv-benchmarks
4+
5+
Files:
6+
c/*.set
7+
c/*/*.yml
8+
java/*.set
9+
java/*/*.yml
10+
Copyright: 2011-2020 The SV-Benchmarks Community
11+
License: CC0-1.0
12+
13+
Files:
14+
clauses
15+
c/bitvector
16+
c/ddv-machzwd
17+
c/ldv-memsafety
18+
c/ldv-regression
19+
c/ldv-README.txt
20+
c/list-properties
21+
c/locks
22+
c/loops
23+
c/ntdrivers
24+
c/ntdrivers-simplified
25+
c/pthread
26+
c/pthread-ext
27+
c/seq-pthread
28+
c/systemc
29+
java/rtems-lock-model
30+
_
31+
Copyright: unknown
32+
License: LicenseRef-unknown
33+
34+
Files:
35+
c/Juliet_Test
36+
c/array-cav19
37+
c/array-crafted
38+
c/array-examples
39+
c/array-fpi
40+
c/array-industry-pattern
41+
c/array-lopstr16
42+
c/array-memsafety
43+
c/array-memsafety-realloc
44+
c/array-multidimensional
45+
c/array-patterns
46+
c/array-programs
47+
c/array-tiling
48+
c/aws-c-common
49+
c/bitvector-loops
50+
c/bitvector-regression
51+
c/busybox-1.22.0
52+
c/eca-programs
53+
c/eca-rers2012
54+
c/eca-rers2018
55+
c/float-benchs
56+
c/float-newlib
57+
c/floats-cbmc-regression
58+
c/floats-cdfpl
59+
c/floats-esbmc-regression
60+
c/forester-heap
61+
c/goblint-regression
62+
c/heap-data
63+
c/heap-manipulation
64+
c/ldv-challenges
65+
c/ldv-commit-tester
66+
c/ldv-consumption
67+
c/ldv-linux-3.0
68+
c/ldv-linux-3.12-rc1
69+
c/ldv-linux-3.14
70+
c/ldv-linux-3.14-races
71+
c/ldv-linux-3.16-rc1
72+
c/ldv-linux-3.4-simple
73+
c/ldv-linux-3.7.3
74+
c/ldv-linux-4.0-rc1-mav
75+
c/ldv-linux-4.2-rc1
76+
c/ldv-memsafety-bitfields
77+
c/ldv-multiproperty
78+
c/ldv-races
79+
c/ldv-sets
80+
c/ldv-validator-v0.6
81+
c/ldv-validator-v0.8
82+
c/list-ext-properties
83+
c/list-ext2-properties
84+
c/list-ext3-properties
85+
c/list-simple
86+
c/loop-acceleration
87+
c/loop-crafted
88+
c/loop-floats-scientific-comp
89+
c/loop-industry-pattern
90+
c/loop-invariants
91+
c/loop-invgen
92+
c/loop-lit
93+
c/loop-new
94+
c/loop-simple
95+
c/loops-crafted-1
96+
c/memory-alloca
97+
c/memsafety
98+
c/memsafety-bftpd
99+
c/memsafety-ext2
100+
c/memsafety-ext3
101+
c/nla-digbench
102+
c/nla-digbench-scaling
103+
c/openbsd-6.2
104+
c/openssl
105+
c/openssl
106+
c/openssl
107+
c/openssl
108+
c/openssl-simplified
109+
c/openssl-simplified
110+
c/openssl-simplified
111+
c/openssl-simplified
112+
c/product-lines
113+
c/psyco
114+
c/pthread-C-DAC
115+
c/pthread-atomic
116+
c/pthread-complex
117+
c/pthread-divine
118+
c/pthread-driver-races
119+
c/pthread-lit
120+
c/pthread-memsafety
121+
c/pthread-nondet
122+
c/pthread-wmm
123+
c/recursive
124+
c/recursive-simple
125+
c/recursive-with-pointer
126+
c/reducercommutativity
127+
c/regression
128+
c/seq-mthreaded
129+
c/seq-mthreaded-reduced
130+
c/signedintegeroverflow-regression
131+
c/sqlite
132+
c/termination-15
133+
c/termination-crafted
134+
c/termination-crafted-lit
135+
c/termination-dietlibc
136+
c/termination-memory-alloca
137+
c/termination-memory-alloca-todo
138+
c/termination-memory-linkedlists
139+
c/termination-numeric
140+
c/termination-recursive-malloc
141+
c/termination-restricted-15
142+
c/termination-restricted-15-todo
143+
c/verifythis
144+
c/xcsp
145+
java/MinePump
146+
java/algorithms
147+
java/java-ranger-regression
148+
java/java-ranger-regression
149+
java/jayhorn-recursive
150+
java/jbmc-regression
151+
java/jdart-regression
152+
java/jdart-regression
153+
java/jdart-regression
154+
java/jpf-regression
155+
java/juliet-java
156+
_
157+
Copyright: unknown
158+
License: LicenseRef-in-text-file

.reuse/templates/header.jinja2

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
This file is part of the SV-Benchmarks collection of verification tasks:
2+
https://github.com/sosy-lab/sv-benchmarks
3+
4+
{% for copyright_line in copyright_lines %}
5+
{{ copyright_line }}
6+
{% endfor %}
7+
8+
{% for expression in spdx_expressions %}
9+
SPDX-License-Identifier: {{ expression }}
10+
{% endfor %}

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# This file is part of the SV-Benchmarks collection of verification tasks:
2+
# https://github.com/sosy-lab/sv-benchmarks
3+
#
4+
# SPDX-FileCopyrightText: 2011-2020 The SV-Benchmarks Community
5+
#
6+
# SPDX-License-Identifier: Apache-2.0
7+
18
# trigger build for only pull requests.
29
if: type = pull_request
310

CONTRIBUTING.md

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
<!--
2+
This file is part of the SV-Benchmarks collection of verification tasks:
3+
https://github.com/sosy-lab/sv-benchmarks
4+
5+
SPDX-FileCopyrightText: 2011-2020 The SV-Benchmarks Community
6+
7+
SPDX-License-Identifier: Apache-2.0
8+
-->
9+
110
# Contribution Guidelines
211

312
If you have identified an issue with existing verification tasks,
@@ -39,11 +48,25 @@ Note that the file names of verification tasks need to be globally unique in the
3948

4049
### License
4150

42-
The verification tasks need to be accompanied by a license,
43-
either via a file `LICENSE.txt` or similar in the same directory,
44-
or via a comment in the program header.
45-
If a common license is used, please use a symlink to an existing license file
46-
instead of adding an additional copy.
51+
All files need to have a copyright statement and a license declaration
52+
in a machine-readable comment at the beginning.
53+
We follow the current version of the [REUSE Specification](https://reuse.software/spec/),
54+
for more information and tool support cf. the [tutorial](https://reuse.software/tutorial/)
55+
and [FAQ](https://reuse.software/faq/) of the REUSE project.
56+
57+
Example:
58+
```
59+
// This file is part of the SV-Benchmarks collection of verification tasks:
60+
// https://github.com/sosy-lab/sv-benchmarks
61+
//
62+
// SPDX-FileCopyrightText: 2020 ...
63+
//
64+
// SPDX-License-Identifier: Apache-2.0
65+
```
66+
Such a header can be easily created with the [reuse tool](https://github.com/fsfe/reuse-tool/):
67+
```
68+
reuse addheader --template header.jinja2 --copyright "..." --license Apache-2.0 yourfile.c
69+
```
4770

4871
The stated license must allow to:
4972
- view, understand, investigate, and reverse engineer the algorithm or system,
@@ -52,10 +75,18 @@ The stated license must allow to:
5275
- compile and execute the program (in particular, for the purpose of verifying that a specification violation exists), and
5376
- commercially take advantage of the program (in particular, to not exclude developers of commercial verifiers).
5477

55-
If possible, standard open-source licenses such as Apache 2.0 or GPL are preferred.
78+
If possible, standard open-source licenses such as Apache 2.0 or GPL are preferred,
79+
but custom licenses are possible
80+
(in the header, these need to be indicated as `LicenseRef-$NAME`
81+
and a file named `LicenseRef-$NAME.txt` with the license needs to be created
82+
in the `LICENSES` directory.
83+
5684
If you are submitting verification tasks that are based on third-party source code,
57-
make sure to follow the restrictions of the original license!
85+
**make sure to follow the restrictions of the original license**!
5886
For example, verification tasks based on GPL source code must be licensed under the GPL as well.
87+
Furthermore, the most common open-source licenses all require
88+
that any existing copyright notices are kept intact,
89+
do not delete them and make sure that any preprocessing also preserves them.
5990

6091

6192
### Origin, Description, and Attribution

0 commit comments

Comments
 (0)