Aaron Tomb
c42a135fce
Update tests to account for Cryptol::Extras merge
2018-05-24 09:23:17 -07:00
Aaron Tomb
99f3fdbf37
Merge Cryptol/Extras.cry with Cryptol.cry
...
Closes #427 .
2018-05-23 15:55:05 -07:00
Brian Huffman
ddfe615a14
Document :exhaust command in the cryptol book. Fixes #466 .
2018-05-22 15:17:15 -07:00
Brian Huffman
3a4bc6a2af
Allow ":set <boolean-flag> = false" and ":set <boolean-flag> = true".
...
Previously we only allowed enable/disable, on/off, or yes/no.
2018-05-22 15:17:15 -07:00
Iavor Diatchki
9e3f7ec13f
Merge branch 'master' of github.com:GaloisInc/cryptol
2018-05-22 14:27:12 -07:00
Iavor Diatchki
a0c15874e2
Factor out panic
code into its own little package.
2018-05-22 14:27:03 -07:00
Brian Huffman
9fccc00867
Remove obsolete GF(2) polynomial primitives from reference interpreter.
2018-05-14 17:32:09 -07:00
Brian Huffman
26acdd0dad
Pass pretty printing options to printer for reference interpreter.
...
(The options are not actually used yet.)
2018-05-14 17:03:00 -07:00
Iavor Diatchki
52f335deaa
Asllow writing fancier kinds. This is in preparation for type primitives/abstract types.
2018-05-11 16:05:20 -07:00
Iavor Diatchki
e0cbfb1531
Fixup and clean-up checking of non-builting type applications.
...
Fixes #506
2018-05-11 10:38:00 -07:00
Iavor Diatchki
35ece3c3ed
Use a datatype instead of Bool, to be more explicit about what it means.
2018-05-11 10:37:18 -07:00
Iavor Diatchki
2e2ac8c09d
Just comments and layout
2018-05-11 10:07:12 -07:00
Iavor Diatchki
812ecec79c
Fail if a built-in type has been applied to some arguments.
...
Fixes #507
2018-05-11 10:05:39 -07:00
Brian Huffman
13363c4c9b
fastTypeOf doesn't perform any simplification when substituting types.
...
This makes it more useful for the saw-core translation, because we
can notice when type coercions need to be applied.
2018-05-10 15:23:53 -07:00
Iavor Diatchki
ec5e84dd37
Add a fin constraint on following matches in a comprehension.
...
Fixes #505 . It doesn't really make sense to have infinite things
following a finite thing in a comprehension, as there would be a whole
lot of unreachable elements. Since this is likely an error, we try
to catch it with the types.
2018-05-07 11:52:43 -07:00
Iavor Diatchki
59aa5f11d0
Fix typos
2018-05-07 11:50:51 -07:00
Aaron Tomb
984012a1a4
Don't freeze base version in cabal freeze files
2018-05-04 10:40:31 -07:00
Aaron Tomb
ca982f9f56
Update sbv versions in cabal freeze files
2018-05-04 10:10:26 -07:00
Brian Huffman
62dfa1d58f
Use sbv version 7.7. Fixes #486 .
...
Also add regression test for #486 .
2018-04-30 09:54:26 -07:00
Brian Huffman
42e89b11ae
Make :check work for tests involving type Integer.
2018-04-20 16:00:32 -07:00
Brian Huffman
e8a941ecbd
Add prelude docstrings for 'head' and 'last'.
2018-04-18 17:01:24 -07:00
Brian Huffman
3be72ae2cb
Replace indexing primitives (!!) and (@@) with cryptol implementations.
2018-04-18 16:50:39 -07:00
Aaron Tomb
126c384ff6
Avoid most recent version of base-compat
...
The latest version causes build failures. Ultimately, we should be able
to fix the code to work with newer base-compat versions on various GHC
verions, but this gets builds to work for now.
2018-04-18 10:07:08 -07:00
Brian Huffman
2cdf9bd159
Replace primitives pmult, pmod, pdiv with cryptol implementations.
2018-04-15 06:56:20 -07:00
Diatchki
fb98ed89d9
Merge branch 'master' of github.com:GaloisInc/cryptol
2018-04-03 10:42:57 -07:00
Diatchki
a444f2bd31
Script to run tests easily.
...
This is convenient for when
using cabal new-build.
2018-04-03 10:41:08 -07:00
Diatchki
10b7f891e2
Ignore environment cabal thing
2018-04-03 09:56:48 -07:00
Diatchki
fcf5230bbd
Fix build
...
Make it work with GHC 8.2
2018-04-03 09:55:31 -07:00
Aaron Tomb
c2ee6833f4
Make sure tests run with _both_ GHC 8.4 and 8.2
2018-04-03 09:47:18 -07:00
Aaron Tomb
d67f6de189
Update CI configuration for GHC 8.4.1
2018-04-02 16:31:08 -07:00
Aaron Tomb
b5d55d7a06
Add freeze file for GHC 8.4
2018-04-02 16:28:44 -07:00
Aaron Tomb
f35c5549d5
Remove more unused packages from freeze files
2018-04-02 16:28:28 -07:00
Aaron Tomb
02e9ea5ea5
Fix test output due to re-sorting environment
2018-04-02 15:35:10 -07:00
Aaron Tomb
0bbb7fa6ec
Fix tests with GHC 8.4.1
2018-04-02 15:35:03 -07:00
Aaron Tomb
b8669377c4
Remove unused packages from cabal configs
2018-04-02 15:29:15 -07:00
Iavor Diatchki
849cee862b
Fix up binding of it
to values.
2018-04-02 09:49:17 -07:00
Iavor Diatchki
47ed3b57ad
Make :check and :exhaust bind the counter example in it
...
Fixes #449
2018-03-30 17:10:38 -07:00
Iavor Diatchki
bfb3290e9b
Improve display ordering on names and group constraint synonyms separately.
...
See #503
2018-03-30 15:28:22 -07:00
Aaron Tomb
9d344bb452
Fix build with GHC 8.4.1
2018-03-23 15:08:09 -07:00
Brian Huffman
6fdc1ff326
Write about type constraint synonyms in Programming Cryptol.
...
Fixes #452 .
2018-03-22 16:06:55 -07:00
Brian Huffman
43bee098ea
Regenerate Semantics.pdf.
2018-03-22 13:42:03 -07:00
Brian Huffman
fccf55f30f
Remove obsolete cvs-era $Header$ keywords.
2018-03-22 13:33:12 -07:00
Brian Huffman
c1949586c2
Thunk elements of EList expressions of type Bit during evaluation.
...
Fixes #488 .
2018-03-21 17:55:11 -07:00
Brian Huffman
d84d697aae
Fix compiler warnings and remove dead code.
2018-03-21 11:21:48 -07:00
Brian Huffman
2e4fa35209
Remove unused package dependencies.
2018-03-21 11:15:46 -07:00
Aaron Tomb
a8b58a09d6
Bump pinned SBV version to 7.6
2018-03-21 10:20:41 -07:00
Aaron Tomb
6a0d7ca9df
Remove cryptol-test-runner from frozen packages
2018-03-21 10:13:52 -07:00
Brian Huffman
83442f5049
Implement signed shift (>>$) and less-than (<$) in reference interpreter.
...
Fixes #469 .
2018-03-21 09:58:48 -07:00
Brian Huffman
5cd9141fe7
Add functions head
and last
to Cryptol prelude. Fixes #465 .
...
Also fix regression test output.
2018-03-16 15:10:36 -07:00
Aaron Tomb
7f27ed592d
Remove unnecessary dependency on old-time
2018-03-12 12:53:27 -07:00