cryptol/tests/constraint-guards/type-sig-constraint.icry
Ryan Scott 1e1c14c28a Implement coreLint for numeric constraint guards
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.
2024-03-25 13:13:00 -04:00

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