Skip to content

Commit 65e4512

Browse files
authored
Merge pull request #1109 from pq-code-package/cbmc_guide_fix
CBMC: Fix mistakes in proof guide
2 parents acf5045 + 21f5fac commit 65e4512

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

proofs/cbmc/proof_guide.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ void harness(void) {
429429
mlk_poly *a;
430430
uint8_t *r;
431431

432-
/* Contracts for this function are in poly.h */
432+
/* Contracts for this function are in compress.h */
433433
mlk_poly_tobytes(r, a);
434434
}
435435
```
@@ -510,7 +510,7 @@ and so on for the other two statements in the loop body.
510510
With those changes, CBMC completes the proof in about 10 seconds:
511511
512512
```
513-
cd proofs/cbmc/mlk_poly_tobytes
513+
cd proofs/cbmc/poly_tobytes
514514
make result
515515
cat logs/result.txt
516516
```
@@ -524,12 +524,12 @@ We can also use the higher-level Python script to prove just that one function:
524524
525525
```
526526
cd proofs/cbmc
527-
MLKEM_K=3 ./run-cbmc-proofs.py --summarize -j$(nproc) -p mlk_poly_tobytes
527+
MLKEM_K=3 ./run-cbmc-proofs.py --summarize -j$(nproc) -p poly_tobytes
528528
```
529529
yields
530530
```
531-
| Proof | Status |
532-
|--------------|---------|
531+
| Proof | Status |
532+
|------------------|---------|
533533
| mlk_poly_tobytes | Success |
534534

535535
```

0 commit comments

Comments
 (0)