mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-18 21:41:52 +03:00
284338c938
When `:set mono-binds=on`, any local definitions lacking type signatures will not be generalized (i.e., will be monomorphic). This reduces what is in most cases unnecessary polymorphism that can give rise to constraints that are difficult to solve. This also improves the performance of the Cryptol interpreter by lifting many polymorphic type applications out of the inner loops that are commonly defined as bindings in `where` clauses. The flag is on by default in the Cryptol REPL, and in most cases makes it possible to leave out more type signatures in `where` clauses than before. However, some programs really do rely on inferring polymorphic types for local variables; in this case adding an explicit polymorphic type signature to the local binding in question will make the program typecheck.
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
Loading module Cryptol
|
|
Loading module Cryptol
|
|
Loading module EnigmaBroke
|
|
Loading module Cryptol
|
|
Loading module EnigmaBroke
|
|
|
|
[error] at issue225.cry:12:1--12:11:
|
|
Failed to validate user-specified signature.
|
|
In the definition of 'EnigmaBroke::joinRotors', at issue225.cry:12:1--12:11:
|
|
for any type n
|
|
fin n
|
|
=>
|
|
fin (min n ?a8)
|
|
arising from
|
|
use of expression __p14
|
|
at issue225.cry:22:21--22:22
|
|
fin (min n ?u7)
|
|
arising from
|
|
use of expression __p14
|
|
at issue225.cry:22:9--22:19
|
|
fin (min n ?o7)
|
|
arising from
|
|
use of expression __p14
|
|
at issue225.cry:22:6--22:7
|
|
?a8 == 1 + min n ?a8
|
|
arising from
|
|
use of expression __p14
|
|
at issue225.cry:22:21--22:22
|
|
?u7 == 1 + min n ?u7
|
|
arising from
|
|
use of expression __p14
|
|
at issue225.cry:22:9--22:19
|
|
?o7 == 1 + min n ?o7
|
|
arising from
|
|
use of expression __p14
|
|
at issue225.cry:22:6--22:7
|
|
where
|
|
?o7 is 1st type parameter
|
|
of expression __p14
|
|
at issue225.cry:22:6--22:7
|
|
?u7 is 1st type parameter
|
|
of expression __p14
|
|
at issue225.cry:22:9--22:19
|
|
?a8 is 1st type parameter
|
|
of expression __p14
|
|
at issue225.cry:22:21--22:22
|