mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-09-21 02:48:14 +03:00
1e1c14c28a
This ensures that the constraints and right-hand side expressions in each guard are well formed. This check suffices to catch the bug in https://github.com/GaloisInc/saw-script/issues/2043, which was fixed separately in a previous commit. I have also updated the `tests/constraint-guards/type-sig-constraint.icry` test to use `coreLint=on` rather than checking `debug` output, as the former is more resilient to internal changes in Cryptol's pretty-printer. Fixes #1647.
8 lines
367 B
Plaintext
8 lines
367 B
Plaintext
// This is a "regression test" for
|
|
// https://github.com/GaloisInc/saw-script/issues/2043 in the sense that it
|
|
// verifies each guard in the numeric constraint guard definition contains two
|
|
// proof applications, which is a smoke test for testing that the bug is fixed.
|
|
// Full validation of the fix requires SAW, however.
|
|
:set coreLint=on
|
|
:l type-sig-constraint.cry
|