Skip to content

Commit 5da9266

Browse files
authored
Merge pull request #690 from pq-code-package/cbmc_no_verbose
CBMC: Make `tests cbmc` more convenient to use
2 parents 34086b2 + 70c451c commit 5da9266

File tree

8 files changed

+159
-261
lines changed

8 files changed

+159
-261
lines changed

proofs/cbmc/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ MLKEM_K={2,3,4} run-cbmc-proofs.py --summarize
2525

2626
If `GITHUB_STEP_SUMMARY` is set, the proof summary will be appended to it.
2727

28-
# Covered functions
29-
30-
Each proved function has an eponymous sub-directory of its own. The shell command
28+
Alternatively, you can use the [tests](../../scripts/tests) script, see
3129

3230
```
33-
find . -name cbmc-proof.txt
31+
tests cbmc --help
3432
```
3533

36-
yields a list of the subdirectories, and thus function names, that have a proof.
34+
# Covered functions
35+
36+
Each proved function has an eponymous sub-directory of its own. Use [list_proofs.sh](list_proofs.sh) to see the list of functions covered.

proofs/cbmc/gen_matrix_entry/gen_matrix_entry_harness.c

Lines changed: 0 additions & 17 deletions
This file was deleted.

proofs/cbmc/gen_matrix_native/Makefile~

Lines changed: 0 additions & 54 deletions
This file was deleted.

proofs/cbmc/keccakf1600_extractbytes/Makefile

Lines changed: 0 additions & 56 deletions
This file was deleted.

proofs/cbmc/keccakf1600_permute/Makefile

Lines changed: 0 additions & 65 deletions
This file was deleted.

proofs/cbmc/keccakf1600_xorbytes/Makefile

Lines changed: 0 additions & 54 deletions
This file was deleted.

proofs/cbmc/list_proofs.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
# Copyright (c) 2024 The mlkem-native project authors
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# This tiny script just lists the proof directories in proof/cbmc,
6+
# which are those containing a *harness.c file.
7+
8+
ROOT=$(git rev-parse --show-toplevel)
9+
cd $ROOT
10+
ls -1 proofs/cbmc/**/*harness.c | cut -d '/' -f 3

0 commit comments

Comments
 (0)