Skip to content

Commit

Permalink
Add regression test for #723.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Huffman committed May 15, 2020
1 parent df4af1a commit 700b318
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/issues/issue723.cry
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
f : {n} (fin n) => [n] -> [n]
f x = g x
where
m1 = zero # x

g : {k} (fin k) => [k] -> [k]
g m0 = m0 ^ m1
1 change: 1 addition & 0 deletions tests/issues/issue723.icry
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:l issue723.cry
20 changes: 20 additions & 0 deletions tests/issues/issue723.icry.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Loading module Cryptol
Loading module Cryptol
Loading module Main
[warning] at issue723.cry:4:10--4:18:
Defaulting type argument 'front' of '(#)' to 0

[error] at issue723.cry:7:5--7:19:
Failed to validate user-specified signature.
in the definition of 'Main::g', at issue723.cry:7:5--7:6,
we need to show that
for any type k
assuming
• fin k
the following constraints hold:
• k >= n`908
arising from
matching types
at issue723.cry:7:17--7:19
where
n`908 is signature variable 'n' at issue723.cry:1:6--1:7

0 comments on commit 700b318

Please sign in to comment.