Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DDVerify models and benchmarks #26

Draft
wants to merge 25 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
12b9cfc
Import ddverify-2009-03-09
sim642 Apr 11, 2022
e6712d6
Import ddverify-2010-04-30
sim642 Apr 11, 2022
efa91b3
Add ddverify/.gitignore
sim642 Apr 11, 2022
be27346
Port some ddverify seq1 model changes to con1
sim642 Apr 11, 2022
26e55a8
Add missing stubs to ddverify/bin/ddverify.h
sim642 Apr 11, 2022
1bd6fae
Generate main harnesses and Goblint confs for ddverify drivers
sim642 Apr 12, 2022
37bf6bc
Fix type cast in ddverify elevator stub
sim642 Apr 12, 2022
cd22bff
Copy ddverify con1 model to goblint model
sim642 Apr 12, 2022
ce93062
Replace ddverify pthread stubs with real pthread
sim642 Apr 12, 2022
ca9db85
Remove ddverify spinlock, semaphore, mutex stubs
sim642 Apr 12, 2022
d5f74f0
Define satabs functions in ddverify
sim642 Apr 12, 2022
079888e
Disable unknown function invalidation and spawning in ddverify
sim642 Apr 12, 2022
8885692
Fix switch_context race in ddverify model
sim642 Apr 12, 2022
67c037c
Fix ddverify cpqarray undeclared variable
sim642 Apr 12, 2022
c26e3e0
Fix duplicate module function in ddverify
sim642 Apr 12, 2022
6eee3fc
Add script for running ddverify benchmarks
sim642 Apr 12, 2022
690ec4c
Separate the DUET benchmark subset.
vesalvojdani Jun 17, 2022
5e159a0
Only save when incremental set.
vesalvojdani Jun 17, 2022
280f5dd
Add the traces rel here.
vesalvojdani Jun 17, 2022
35dfa7f
update reltraces.yaml
vesalvojdani Jun 17, 2022
a0eb042
Enable bounds checks.
vesalvojdani Jun 23, 2022
cd48f97
Disable all incremental flags when supposed to be off.
vesalvojdani Jun 23, 2022
9399e34
Merge branch 'master' into ddverify
vesalvojdani Jun 23, 2022
f16dec4
Crudely count warnings to see if this is worth doing.
vesalvojdani Jun 23, 2022
772ef83
Update this script as well (will have to revert).
vesalvojdani Jun 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 16 additions & 0 deletions ddverify/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ddverify binary
bin/ddverify

# ddverify outputs
__main.c
compile
ddv_satabs
ddv_cbmc
.ddv_output_*
.claim_out_*

# compilation outputs
*.o

# goblint confs
!goblint
5 changes: 5 additions & 0 deletions ddverify/awk/convert_satabs_output
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BEGIN {foundclaim = 0;}
/^Claim*/ {foundclaim = 1; claim = NR; n = length($2) - 1; str = substr($2, 1, n); print str}
(NR == claim + 1) && (foundclaim == 1) {print $2 "\n" $4}
(NR == claim + 2) && (foundclaim == 1) {print substr($0, 3)}
(NR == claim + 3) && (foundclaim == 1) {print substr($0, 3) "\n"}
3 changes: 3 additions & 0 deletions ddverify/awk/get_number_of_iteration
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BEGIN {}
/Iterations:/ {print $2}
(foundline == 1) && (NR == linenr + 1) {print $2}
3 changes: 3 additions & 0 deletions ddverify/awk/get_time_result
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BEGIN {foundline = 0; linenr = 0; ORS = "";}
/^VERIFICATION SUCCESSFUL*/ {foundline = 1; linenr = NR;}
(foundline == 1) && (NR == linenr + 1) {print $2}
6 changes: 6 additions & 0 deletions ddverify/awk/get_too_many_iterations_result
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
BEGIN {foundline = 0; linenr = 0; ORS = "";}
/^Too many iterations, giving up.*/ {foundline = 1; linenr = NR}
(foundline == 1) && (NR == linenr + 2) {print $2, $4, $6, $9, $11, " "}
(foundline == 1) && (NR == linenr + 3) {print $2, " "}
(foundline == 1) && (NR == linenr + 4) {print $2, "\n"}

6 changes: 6 additions & 0 deletions ddverify/awk/get_verification_result
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
BEGIN {foundline = 0; linenr = 0; ORS = "";}
/VERIFICATION/ {print $2, "\t"; foundline = 1; linenr = NR}
(foundline == 1) && (NR == linenr + 1) {print $2, $4, $6, $9, $11, " "}
(foundline == 1) && (NR == linenr + 2) {print $2, " "}
(foundline == 1) && (NR == linenr + 3) {print $2, "\n"}

3 changes: 3 additions & 0 deletions ddverify/awk/parse_dd_file
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/^[ ]*module_init\(*\)*/ {print "MODULE_INIT\n" $1}
/^[ ]*module_exit\(*\)*/ {print "MODULE_EXIT\n" $1}
/^[ ]*#include*/ {print "INCLUDE\n" $2}
40 changes: 40 additions & 0 deletions ddverify/bin/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
(C) 2001-2008, Daniel Kroening, ETH Zurich,
Edmund Clarke, Computer Science Department, Carnegie Mellon University

All rights reserved. Redistribution and use in source and binary forms, with
or without modification, are permitted provided that the following
conditions are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. All advertising materials mentioning features or use of this software
must display the following acknowledgement:

This product includes software developed by Daniel Kroening,
ETH Zurich and Edmund Clarke, Computer Science Department,
Carnegie Mellon University.

4. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

5. We must be notified by email at [email protected] after you install
the program for any purpose.


THIS SOFTWARE IS PROVIDED BY THE UNIVERSITIES AND CONTRIBUTORS `AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
Loading