Skip to content

Commit c51bf18

Browse files
authored
Updates CBMC-proofs directory structure (#620)
1 parent 5cc2830 commit c51bf18

File tree

309 files changed

+10
-10
lines changed

Some content is hidden

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

309 files changed

+10
-10
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
path = aws-encryption-sdk-cpp/tests/test_vectors/aws-encryption-sdk-test-vectors
33
url = https://github.com/awslabs/aws-encryption-sdk-test-vectors.git
44
[submodule ".cbmc-batch/aws-c-common"]
5-
path = .cbmc-batch/aws-c-common
5+
path = verification/cbmc/aws-c-common
66
url = https://github.com/awslabs/aws-c-common.git
File renamed without changes.

.cbmc-batch/cbmc-batch.sh renamed to verification/cbmc/cbmc-batch.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ fi
2222
while getopts ":sec" opt; do
2323
case $opt in
2424
s ) # Start CBMC Batch Jobs
25-
for job in jobs/*/; do
25+
for job in proofs/*/; do
2626
job=${job%/} #remove trailing slash
2727
job=${job#*/} #job name
2828
echo "Starting job $job"
2929
cbmc-batch \
3030
--no-report \
3131
--no-coverage \
32-
--wsdir jobs/$job \
32+
--wsdir proofs/$job \
3333
--srcdir ../ \
3434
--jobprefix $job-local \
35-
--yaml jobs/$job/cbmc-batch.yaml
35+
--yaml proofs/$job/cbmc-batch.yaml
3636
done
3737
;;
3838
e ) # Check CBMC Batch Job Results
@@ -45,7 +45,7 @@ while getopts ":sec" opt; do
4545
make -f $Makefile copy
4646
dir=${Makefile#*-} # directory name from copy
4747
job=${dir%-local-*-*} # original job name
48-
check="$( ./check_result.py $dir jobs/$job/cbmc-batch.yaml )"
48+
check="$( ./check_result.py $dir proofs/$job/cbmc-batch.yaml )"
4949
echo "$job: $check" >> $result
5050
done
5151
;;
File renamed without changes.
File renamed without changes.
File renamed without changes.

.cbmc-batch/hdr_zeroize.c renamed to verification/cbmc/hdr_zeroize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
#include <stdlib.h>
17-
#include <../source/header.c>
17+
#include <../../source/header.c>
1818

1919
static inline void hdr_zeroize_verify(struct aws_cryptosdk_hdr *hdr) {
2020
// Assume hdr is allocated
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.cbmc-batch/jobs/Makefile.common renamed to verification/cbmc/proofs/Makefile.common

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ DEFINES += -DCBMC=1
8484
# Setup directory aliases
8585
BASEDIR ?= $(abspath ../../../..)
8686
SRCDIR ?= $(abspath ./link-farm)
87-
SDKDIR ?= $(abspath ../../..)
88-
HELPERDIR ?= $(SDKDIR)/.cbmc-batch
87+
SDKDIR ?= $(abspath ../../../..)
88+
HELPERDIR ?= $(SDKDIR)/verification/cbmc
8989
LINKFARM = $(abspath ./link-farm)
9090
COMMON_REPO_NAME ?= aws-c-common
9191
COMMONDIR ?= $(HELPERDIR)/$(COMMON_REPO_NAME)
@@ -170,7 +170,7 @@ harness-symlink: linkfarm-dir
170170

171171
helper-symlinks: linkfarm-dir
172172
$(call make_symlink, $(LINKFARM), $(HELPERDIR)/include, helper-inc)
173-
$(call make_symlink, $(LINKFARM), $(HELPERDIR)/source, helper-src)
173+
$(call make_symlink, $(LINKFARM), $(HELPERDIR)/sources, helper-src)
174174
$(call make_symlink, $(LINKFARM), $(HELPERDIR)/stubs, helper-stubs)
175175

176176

@@ -323,4 +323,4 @@ gitclean: veryclean
323323

324324
.PHONY: setup_dependencies cbmc property coverage report clean veryclean
325325

326-
include $(HELPERDIR)/jobs/Makefile.cbmc_batch
326+
include $(HELPERDIR)/proofs/Makefile.cbmc_batch

0 commit comments

Comments
 (0)