Skip to content

Commit af8dc77

Browse files
author
Brett Boston
committed
Bump Cryptol submodule for constraint guard fix
Closes #1923 This change updates the cryptol submodule to pull in the fix for constraint guards with types dependent on module parameters. See GaloisInc/cryptol#1569 for the relevant cryptol issue and GaloisInc/cryptol#1570 for the fix.
1 parent aa550a8 commit af8dc77

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Instantiated = Parameterized where
2+
3+
type gamma = 3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module Parameterized where
2+
3+
parameter
4+
type gamma : #
5+
type constraint (fin gamma, gamma >= 2, 32 >= width gamma)
6+
7+
// Constraint guard with type dependent on module parameter value
8+
v : [gamma]
9+
v | () => 0

intTests/test_constraint_guards/test.saw

+4
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ fails (prove_print z3 {{ \(x : [64]) -> incomplete x }});
1616
prove_print z3 {{ dependent`{1} == [True] }};
1717
prove_print z3 {{ dependent`{3} == [False, False, False] }};
1818
prove_print z3 {{ dependent`{0} == [] }};
19+
20+
// Test constraint guards dependently typed on module parameters
21+
import "Instantiated.cry";
22+
prove_print z3 {{ v == 0 }};

0 commit comments

Comments
 (0)