Adam C. Foltzer
20965a0b0b
fully qualify cygpath to avoid weird hemlock error
2016-06-08 16:56:22 -07:00
Adam C. Foltzer
921b50a1a9
add GHC 8 stackage nightly
2016-06-07 14:29:20 -07:00
Adam C. Foltzer
76be770d83
clean up 7.8-isms
2016-06-07 13:40:15 -07:00
Adrian Herrera
bedeeb0883
Crytol spec for MISTY1 cipher (as described in RFC 2994)
2016-06-07 22:42:16 +10:00
Brian Huffman
1e3d1f642a
New evalType function works on either kind * or #
...
Cryptol.Eval.Type now provides three evaluation functions
for types:
evalType :: EvalEnv -> Type -> Either Nat' TValue
evalValType :: EvalEnv -> Type -> TValue
evalNumType :: EvalEnv -> Type -> Nat'
evalValType requires the type to have kind *.
evalNumType requires the type to have kind #.
evalType works on a Cryptol types of either kind.
2016-06-06 15:43:22 -07:00
Brian Huffman
9fb3d53d88
TValue represents only value types; Nat' is for size types
...
We now have separate evalType and evalNumType functions
for use with kind * and #, respectively.
2016-06-06 15:10:31 -07:00
Brian Huffman
38f143abcc
Pattern match on TValues instead of discriminator functions
2016-06-06 13:31:44 -07:00
Brian Huffman
4de0580d1c
Redefine type TValue as an inductive datatype.
...
This mostly takes care of issue #343 , but some problems
remain:
- There is no TValue representation for newtypes
- Many incomplete pattern warnings in Symbolic/Prims.hs
2016-06-06 11:36:14 -07:00
Robert Dockins
99526f5700
Merge branch 'master' of github.com:GaloisInc/cryptol into new-eval
2016-06-01 15:22:09 -07:00
Adam C. Foltzer
7c9d2a5158
tweak JSON deriving for cryptol-server
2016-05-31 16:11:50 -07:00
Adam C. Foltzer
875d78800f
add note about Z3 on 64-bit Linux
2016-05-31 15:47:50 -07:00
Trevor Elliott
e974a1159b
Correct the printing of names with the parsed AST
...
Fixes #340
2016-05-31 14:04:05 -07:00
Trevor Elliott
3d67018c70
Ignore the bytes output of issue220
2016-05-31 11:53:38 -07:00
Trevor Elliott
3c59bf3231
Update the test output for mono-bind test 4
...
The type variable name was the only change.
2016-05-31 11:51:01 -07:00
Trevor Elliott
e0d52087b5
Fix type renaming in patterns
...
Fixes #341
2016-05-31 10:59:26 -07:00
Thomas M. DuBuisson
d9ba571286
Merge branch 'master' of https://github.com/GaloisInc/cryptol
2016-05-31 10:39:11 -07:00
Thomas M. DuBuisson
363651c907
Fixes #320 Use -N1, not -N, as the default RTS option.
2016-05-31 10:38:13 -07:00
Brian Huffman
3b524e1ae5
Fix test output for issue093.
...
Since #171 was fixed in b77dd2a8
, the tests and proofs
are run in the order they appear in the source file.
2016-05-31 10:34:51 -07:00
Brian Huffman
0623fdcc63
Evaluate types of predicates before checking their validity
...
Fixes #339 .
2016-05-31 10:15:12 -07:00
Rob Dockins
db28a2f719
Fix a bug that somtimes mixed up the length with the element type of
...
a comprehension match statement.
2016-05-31 08:54:36 -07:00
Rob Dockins
bdcfdd39a1
Update benchmarks for new interpreters
2016-05-30 23:07:05 -07:00
Rob Dockins
e69f790661
Add a utility function for forcing internal thunks in interpreter values.
2016-05-30 22:06:11 -07:00
Rob Dockins
9075c98f36
Make the implementation of "random" in the symbolic simulator more lazy.
...
We only want to panic if the thunk is acutally forced.
2016-05-30 22:04:26 -07:00
Rob Dockins
2d19a3d39c
Fix a bug with the implementation of extractWord for symbolic values.
2016-05-30 22:02:29 -07:00
Rob Dockins
cd515efdb1
Test suite maintenance
2016-05-30 18:16:45 -07:00
Rob Dockins
33710b6d25
Update unit test golden outputs
2016-05-30 17:51:08 -07:00
Rob Dockins
a54c4b0952
Implement the 'trace' primitive in the symbolic simulator.
...
When executing symbolically, the trace primitive produces no
output, and merely forces its first two arguments.
2016-05-30 17:48:24 -07:00
Rob Dockins
b518336885
Merge branch 'master' of cryptol into new-eval
2016-05-30 17:25:10 -07:00
Rob Dockins
906f1fe325
Merge branch 'master' of github.com:GaloisInc/cryptol
2016-05-30 17:04:44 -07:00
Rob Dockins
d6c3121678
Complete the implementation of symbolic evaluator primitives.
...
This involves generalizing some of the concrete evaluator primitives
and reimplementing others in terms of SBV primitives.
2016-05-30 17:02:08 -07:00
Trevor Elliott
a139c4e1d1
Fixes #304
2016-05-27 22:00:43 -07:00
Trevor Elliott
7976026789
Update test output renamer errors
2016-05-27 18:50:27 -07:00
Trevor Elliott
a490600df5
Fix overlap errors in the renamer
...
* The MultipleSyms error should only show up when the import environment
contains duplicate symbols, and should be triggered lazily.
* Environments that have had errors reported should be rewritten to no longer
produce those errors during renameVar/renameType
Fixes #337
2016-05-27 18:37:57 -07:00
Trevor Elliott
2f21dd509a
Remove the generic-trie dependency
2016-05-27 17:05:16 -07:00
Brian Huffman
c6144bd332
Update output for tests 256 and 335
...
The :t command now parenthesizes the term when needed.
2016-05-27 16:25:14 -07:00
Brian Huffman
f6a2462306
:t prints un-renamed parsed AST. Fixes #336 .
2016-05-27 16:01:55 -07:00
Brian Huffman
d7b117a8ce
Use a type-appropriate function argument name
2016-05-27 16:00:59 -07:00
Brian Huffman
bfc8062c69
Avoid extra shadowing warnings when renaming comprehensions
...
Fixes #286 .
2016-05-27 15:39:41 -07:00
Aaron Tomb
3658c0962b
Fix build with GHC 7.8
...
Hide an extra symbol from MonadLib.
2016-05-25 13:44:51 -07:00
Trevor Elliott
0393c8c54d
Fixes #335
...
The local type bindings from type annotations in patterns were not being
processed correctly, and built-in type/type-functions were getting shadowed in
binders.
2016-05-24 11:58:55 -07:00
Brian Huffman
e0e382aa22
Fix typo in comment
2016-05-24 08:22:28 -07:00
Brian Huffman
df27f577a4
Fix typo in comment, whitespace
2016-05-24 08:21:55 -07:00
Ryan Scott
f1a45163a4
Put bench/data/*.cry in extra-source-files
2016-05-20 15:04:53 -04:00
Rob Dockins
bdc4bae638
Update (<<) and (>>) in the symbolic evaluator
2016-05-16 14:52:18 -07:00
Rob Dockins
7415e06c72
Back out changes that delayed applying substituions when composing.
...
Although this does reduce garbage produced when evaluating, it is a
major slowdown on some typechecking tasks (in particular, the typechecking
of large arrays of literals).
2016-05-16 14:00:08 -07:00
Rob Dockins
3209e59fc5
Back out changes that delayed applying substituions when composing.
...
Although this does reduce garbage produced when evaluating, it is a
major slowdown on some typechecking tasks (in particular, the typechecking
of large arrays of literals).
2016-05-16 13:58:06 -07:00
Rob Dockins
3f5877e9de
Start reimplementing the symbolic interpreter primitives based
...
on the generalized operations from the concrete simulator.
2016-05-15 22:40:01 -07:00
Rob Dockins
1b51f0edf4
generalize the 'zero' operation
2016-05-15 22:34:06 -07:00
Rob Dockins
da4a458aed
Generalize unary logic operations. Also fix a bug where
...
complement was not poperly truncating bitvector values.
2016-05-15 22:31:40 -07:00
Rob Dockins
0b2189a0cf
generalize logic binary operations
2016-05-15 22:24:07 -07:00