Commit Graph

777 Commits

Author SHA1 Message Date
Iavor S. Diatchki
6912c55e22 Functions for computing roots 2015-05-27 11:48:00 -07:00
Trevor Elliott
ecb8ea2aa6 Use Text consistently in the parser interface 2015-05-27 10:42:31 -07:00
Trevor Elliott
c04446b53a Adds more support for UTF-8 in identifiers
Also:

- Improves the `lexical error` message, changing it to `unrecognized
  character`, and only displaying the one character that caused the
  problem.

- Adds more relevant text when showing a lexical error, which should
  address #219

- Switches parser to operate over lazy `Data.Text` rather than `String`
2015-05-26 14:29:36 -07:00
Adam C. Foltzer
1ae907f5d9 version bump to 2.3.0; fix warnings 2015-05-26 14:04:31 -07:00
Trevor Elliott
86ca669154 Fix 7.10/7.8 compatibility with use of mempty 2015-05-22 10:46:49 -07:00
Trevor Elliott
5e92b00789 Fix #177
Add a name mapping environment to the pretty printer to control how qualified
names get printed.
2015-05-21 23:17:15 -07:00
Trevor Elliott
ace54c884f Add a naming environment to the pretty printer 2015-05-21 23:13:04 -07:00
Iavor S. Diatchki
8bbc6883eb Add option to run-core lint. 2015-05-20 15:26:17 -07:00
Iavor S. Diatchki
bc1dd56720 Import applicative qualified, to make things work on 7.8 2015-05-20 11:18:08 -07:00
Iavor S. Diatchki
6249563fd8 First stab at type-checker sanity checking. 2015-05-19 14:25:56 -07:00
Iavor S. Diatchki
8900a50449 Remember to insert casts when simplifying; don't mess with user-supplied signatures. 2015-05-18 14:04:38 -07:00
Adam C. Foltzer
f822f1104e add announcement venues 2015-05-15 15:32:31 -07:00
Thomas M. DuBuisson
92aa8ffca2 Make 'lg2' actually compute 'lg2'
So this boring bug has seen three patches today... sigh.
2015-05-13 16:15:47 -07:00
Thomas M. DuBuisson
fb6b9b6a3f Remove unintentional string change
Oops, string twiddle I use to ease grepping snuck in,.
2015-05-13 13:35:24 -07:00
Thomas M. DuBuisson
87c265615b Fix #215
We were hitting `x :: Double == inf`.
2015-05-13 13:34:08 -07:00
Thomas M. DuBuisson
d553a33179 Fix #214: Add the test that shows the success.
Notice the actual fix is in commit
342b1cf3ff
2015-05-11 10:25:22 -07:00
Iavor S. Diatchki
342b1cf3ff Fix the exporting of length function to SMT 2015-05-08 16:44:21 -07:00
Iavor S. Diatchki
5edb15ff9e Merge branch 'master' of github.com:GaloisInc/cryptol 2015-05-08 15:47:58 -07:00
Iavor S. Diatchki
af3a8c1a87 Another take on improvements. 2015-05-08 15:40:58 -07:00
Thomas M. DuBuisson
7457f7d5aa Example crash in HEAD (issue #214)
This shows a type error in 2.2.3 but crashes HEAD.
2015-05-08 13:56:53 -07:00
Iavor S. Diatchki
2400c1d300 Split out expression simplification in a separate module 2015-05-08 13:40:35 -07:00
Iavor S. Diatchki
dd27e76753 An extra constraint for well-definedness of LenFromThen 2015-05-08 09:41:35 -07:00
Thomas M. DuBuisson
fd4ed49fe5 @yav Another TC example for #212
So I'm treating this issue as a running conversation centered around
this one topic, let me know if it gets old.
2015-05-07 23:24:41 -07:00
Iavor S. Diatchki
0708e37db6 Simplify things by reusing type-checker names in the solver.
This is simpler and more efficient.
2015-05-07 16:20:59 -07:00
Iavor S. Diatchki
b92c6f62fd Merge branch 'master' of github.com:GaloisInc/cryptol 2015-05-07 11:39:51 -07:00
Iavor S. Diatchki
1b4eaa5379 Start on interval analysis 2015-05-07 11:39:43 -07:00
Iavor S. Diatchki
298aa8ea77 Checkpoint 2015-05-07 10:46:36 -07:00
Thomas M. DuBuisson
94abebdf01 Example type constraint width issues 2015-05-07 09:31:10 -07:00
Iavor S. Diatchki
2508f15b60 Split off in a separate module 2015-05-06 10:19:01 -07:00
Iavor S. Diatchki
9de771299d Checkpoint. 2015-05-05 17:04:12 -07:00
Iavor S. Diatchki
e15cf8ce15 A bit more simplification of types. 2015-05-05 14:32:12 -07:00
Iavor S. Diatchki
c38608126b Merge branch 'master' of github.com:GaloisInc/cryptol 2015-05-05 12:20:27 -07:00
Iavor S. Diatchki
0686a11a6b Fix pretty printing bug 2015-05-05 12:20:08 -07:00
Iavor S. Diatchki
c32e79983e Some more info about non-linear constraints.
Fixes #185
2015-05-05 12:19:55 -07:00
Brian Huffman
f95d3fadb6 Add regression test for issue #211. 2015-05-05 11:49:12 -07:00
Brian Huffman
508af4e1ec Make evaluation of splitAt a bit lazier. Fixes #211. 2015-05-05 11:27:01 -07:00
Dylan McNamee
aa1565bac4 documentation fixes (tuples, spelling, other wibble) 2015-05-05 08:38:43 -07:00
Iavor S. Diatchki
aa4bd9c9b0 More debug info and comments only 2015-05-04 17:14:24 -07:00
Iavor S. Diatchki
c9bbf02a71 Fix incorrect import of PNeq. 2015-05-04 16:10:13 -07:00
Iavor S. Diatchki
52d2c666bd Remove TypeCheck/Solver/Smtlib.hs
This should not be used
2015-05-04 15:58:55 -07:00
Adam C. Foltzer
4438329f76 Merge branch 'releases' 2015-04-30 15:31:14 -07:00
Adam C. Foltzer
b35dbbd403 Merge branch 'hotfix/2.2.3' into releases 2015-04-30 14:59:35 -07:00
Adam C. Foltzer
8007f97205 prepare for 7.10
- Move the stackage file so it's not on by default (will test with it on
  Jenkins instead of all the time)
- Use CPP to remove unnecessary import warnings in 7.10
2015-04-30 13:53:24 -07:00
Adam C. Foltzer
a07980b652 bump version to 2.2.3 2015-04-30 13:53:24 -07:00
Brian Huffman
267a5d1486 Fix endian-ness bug in (^^) introduced in b6b7e18adb.
Fixes #203.
2015-04-30 13:53:24 -07:00
Brian Huffman
43cd2df448 Bump sbv minimum version to 4.3 2015-04-30 13:53:24 -07:00
Brian Huffman
ba91e37a5d Merge module Cryptol.Symbolic.BitVector into Cryptol.Symbolic.Value 2015-04-30 13:53:24 -07:00
Brian Huffman
c710239bdb Adapt to further changes in SBV 4.3 2015-04-30 13:53:24 -07:00
Brian Huffman
8ddec0a2bc Adapt to use new Data.SBV.Dynamic API in SBV-4.3 2015-04-30 13:53:24 -07:00
Adam C. Foltzer
10dcfd7243 Merge branch 'releases' into master from 2.2.2
We accidentally forgot to merge the 2.2.2 changes back into master, but
since they were mostly temporary fixes pending SBV updates, this didn't
cause any problems. This commit is just to be tidy :)
2015-04-30 13:51:51 -07:00