Commit Graph

2109 Commits

Author SHA1 Message Date
Rob Dockins
0bee8c4167 Remove the BitsVal constructor for WordVal and instead exclusively
use the `LargeBitsVal` representation.  This simplifies a lot of code,
and is probably more efficent in the most cases anyway.
2020-03-06 13:40:49 -08:00
Rob Dockins
df4332ea48 Remove unnecessary NFData constraints/instances 2020-03-05 16:53:41 -08:00
Rob Dockins
ce06a16d13 Push BitWord operations into IO and fixup 2020-03-05 16:28:56 -08:00
Rob Dockins
cb82015cd5 Refactor the BitWord class to use associated types, and fixup use sites.
Uses of the `BitWord` operations now generally require an extra `sym`
argument that makes the types unambiguous, and this propigates through
quite a few functions.  This other `sym` argument will be necessary
when we make a `what4` backend, so it's a necessary refactor anyway.
2020-03-05 10:29:06 -08:00
Iavor Diatchki
3038eacf54 Add a test for record updating.
This completes the implementation of record updates.
Fixes #399
2020-01-21 11:35:19 -08:00
Iavor Diatchki
38471c0cbc Update utility script to use cabal exec 2020-01-21 10:56:09 -08:00
Iavor S. Diatchki
1e883e9f1d
Merge pull request #681 from GaloisInc/cabal-tweak
Add cabal bounds to the `haskeline` package.
2020-01-14 14:21:52 -08:00
Rob Dockins
918040f682 Add cabal bounds to the haskeline package. Apparently
version 0.8 contains some breaking changes.
2020-01-06 11:34:47 -08:00
Iavor S. Diatchki
be642ce32b
Merge pull request #678 from GaloisInc/ml_update
Update cryptol-test-runner maintainer and license
2019-12-24 09:50:22 -08:00
Kevin Quick
578d268b8e
Update cryptol-test-runner maintainer and license 2019-12-23 18:18:54 -08:00
brianhuffman
8132030263
Merge pull request #672 from GaloisInc/bh-fixity
Refactor Fixity-related code
2019-12-17 07:38:19 -08:00
Brian Huffman
330d4dd2d9 Refactor Fixity module so Cryptol.Utils.PP can import it.
Also make some other parts of the code less dependent on the
internal representation of the Fixity datatype.
2019-12-16 18:05:30 -08:00
Brian Huffman
aec6cb0a7e Add regression test for #670. 2019-12-16 18:02:56 -08:00
Brian Huffman
7211c9f251 Pretty-print infix type operators with unspecified fixity as infix.
Fixes #670.
2019-12-16 18:02:56 -08:00
brianhuffman
1ce2ef2c73
Merge pull request #675 from GaloisInc/remove-test444
Revert "Add regression test for #444."
2019-12-16 17:59:44 -08:00
Brian Huffman
3281e7c121 Revert "Add regression test for #444."
This reverts commit 85bff672ef.

The error message in the expected output file `issue444.icry.stdout`
contained a system-specific absolute file path.

Fixes #673.
2019-12-16 14:12:44 -08:00
brianhuffman
ce6f1edd24
Merge pull request #669 from GaloisInc/issue614
Do renaming on types the same way we do renaming on expressions.
2019-12-13 15:47:19 -08:00
Brian Huffman
4b29967315 Add regression test for issue #614. 2019-12-13 11:13:03 -08:00
Brian Huffman
ccd388da2a Do renaming on types the same way we do renaming on expressions.
Fixes #614.
2019-12-13 11:12:36 -08:00
Brian Huffman
4da0f19a21 Add regression test for #667. 2019-12-06 15:51:57 -08:00
Brian Huffman
c230e2395c Use Data.Map to normalize record field order in Value type.
Fixes #667.
2019-12-06 15:48:50 -08:00
Brian Huffman
67fc36764c Add regression test for #664. 2019-11-26 22:23:53 -08:00
Brian Huffman
56f263895a Fix bugs in the signed right shift operation.
Fixes #664.
2019-11-26 22:23:00 -08:00
Brian Huffman
c859570234 Edit dropPrefix function to never require trailing whitespace.
Fixes #663.
2019-11-21 06:45:41 -08:00
Brian Huffman
f99fe821da Replace ornate help separator with more understated line of hyphens.
Fixes #660.
2019-11-21 06:27:51 -08:00
Brian Huffman
85bff672ef Add regression test for #444. 2019-11-21 06:04:27 -08:00
Brian Huffman
5725d23e06 Add SBVException handler to prover calls. Fixes #444. 2019-11-21 06:00:33 -08:00
brianhuffman
a08a85af63
Merge pull request #657 from stock1218/master
Add help hint to Cryptol REPL
2019-11-15 08:36:32 -08:00
John Samuels
dd6d8d24c1 Add help hint to Cryptol REPL 2019-11-04 23:01:07 +00:00
Aaron Tomb
ddbd664326
Merge pull request #655 from GaloisInc/at-ghc-881
Fix build with GHC 8.8

Also updates CI to use GHC 8.4, 8.6, and 8.8 on both Travis and AppVeyor, and makes some small tweaks to make the tests pass in all six configurations.
2019-11-01 13:56:05 -07:00
Aaron Tomb
82d4a1b81a Fix test output for issues/allexamples 2019-11-01 12:28:13 -07:00
Aaron Tomb
b3902f8d5e Squash warning in examples/contrib/CAST5.cry 2019-11-01 12:27:10 -07:00
Brian Huffman
42ab1ea48c Reimplement readFileCmd using a less memory-hungry expression.
When converting a binary file to a Cryptol expression, we now use
`split <large-literal>` instead of a list of 8-bit numeric literals.

To convert from `ByteString` to `Integer`, we use a balanced binary
fold to reduce the amount of allocation (and runtime) from O(n^2) to
O(n log n).

Fixes #346.
2019-10-28 14:45:43 -07:00
Aaron Tomb
7db3ab66a6 Use v2-configure after v2-update on Travis 2019-10-28 14:30:29 -07:00
Aaron Tomb
84987bc79e Run v2-configure _after_ v2-update on AppVeyor 2019-10-28 14:07:32 -07:00
Aaron Tomb
47b2eccad7 Remove leading ./ from file names in test output 2019-10-28 13:57:37 -07:00
Aaron Tomb
21e49459df Move --allow-newer flag to CI scripts, not cry 2019-10-28 13:49:45 -07:00
Aaron Tomb
6c4101a0db Use normalise on file names when loading
This avoids unnecessary `./` at the beginnings of file names, which is
noisy and causes Windows tests to fail.
2019-10-28 13:48:07 -07:00
Aaron Tomb
3ea5e9e51c Make issue072 test more robust to solver versions 2019-10-25 11:39:31 -07:00
Aaron Tomb
ecc1420453 Fix benchmark build 2019-10-24 15:22:10 -07:00
Aaron Tomb
588e5bbe59 Be less verbose during cabal v2-configure 2019-10-24 14:37:37 -07:00
Aaron Tomb
b989e18c6a Put Z3 in the path for AppVeyor 2019-10-24 14:20:46 -07:00
Aaron Tomb
6fc05c9c80 Don't use freeze files on AppVeyor 2019-10-24 14:03:30 -07:00
Aaron Tomb
10f1dfdacf Move --allow-newer in cry script 2019-10-23 16:37:10 -07:00
Aaron Tomb
92efa36598 Update freeze files for all GHC versions 2019-10-23 13:20:59 -07:00
Aaron Tomb
20c58a0dd8 Rename Cabal freeze files 2019-10-23 13:05:35 -07:00
Aaron Tomb
7f79f9bd5c Use cry script on AppVeyor 2019-10-23 12:58:47 -07:00
Aaron Tomb
8012484fa6 Actually fix Travis freeze files? 2019-10-23 12:50:09 -07:00
Aaron Tomb
887d1bc65b Attempt to make Travis work again 2019-10-23 10:24:50 -07:00
Aaron Tomb
17aeccb7ff Add --allow-newer to cry script 2019-10-23 10:24:34 -07:00