Commit Graph

1916 Commits

Author SHA1 Message Date
Brian Huffman
24fb6c9511 Remove unused primitive fromThen. 2019-02-27 16:57:00 -08:00
Brian Huffman
61a17adb02 Remove [x..] and [x,y..] syntax from Cryptol. 2019-02-27 16:36:53 -08:00
Brian Huffman
c387dbe5fd Remove all uses of [x..] syntax from examples and tests. 2019-02-27 16:25:53 -08:00
Aaron Tomb
00b58277bb Update AppVeyor configuration 2019-02-25 16:06:01 -08:00
Aaron Tomb
8ed4dad321 Update Travis for GHC 8.6 2019-02-22 17:06:36 -08:00
Iavor Diatchki
6a8c6c3134 Update Syntax.md and re-sync it with Syntax.tex
Note that Syntax.tex should be generated automatically
2019-02-18 17:20:01 -08:00
Iavor Diatchki
1b780c21e1 Merge branch 'master' into rec-upd 2019-02-17 18:51:20 -08:00
Iavor Diatchki
9ad5568332 Fixup function notation in records 2019-02-17 18:45:50 -08:00
Iavor Diatchki
cf7d97fcaf Reference implementation of updates. 2019-02-17 18:01:27 -08:00
Iavor Diatchki
631a56c558 Concrete evaluation 2019-02-17 17:48:54 -08:00
Iavor Diatchki
41f09183f5 Create updating dictionaries 2019-02-17 17:17:00 -08:00
Iavor Diatchki
9ae35253eb Type checking done (except evidence) + fixes prinintg + filling missing cases 2019-02-16 17:15:03 -08:00
Iavor Diatchki
82ce40f0b6 Replace undefined with error to tell them apart (these are temporary) 2019-02-16 13:08:46 -08:00
Iavor Diatchki
9ca6ac7a82 Parsing of nested field updates 2019-02-16 13:08:19 -08:00
Iavor Diatchki
d0c2285b74 Do most of the desugaring for record updates in the renamer
XXX. Perhaps we should just handle { _ | x = e } here too?
2019-02-16 13:07:51 -08:00
Iavor Diatchki
ff81ea4095 This should correct issue #572
We should leave the ticket open until we figure out if this is actually
a bug in SBV, as the API it exposes is quite odd.
2019-02-14 14:11:40 -08:00
Iavor Diatchki
1dafdb77c6 Renamer changes for update 2019-02-12 17:07:29 -08:00
Iavor Diatchki
50f82a02d3 Basics of setting a single field. 2019-02-12 16:40:43 -08:00
Iavor Diatchki
fbe1c8c7a7 Generalize the dictionary for HasGoal to support multiple methods.
Also get started on selectors, but that's incomplete.
2019-02-12 16:24:52 -08:00
Iavor Diatchki
ea7f95e37d Add a new constructor for updating records to the intermediate language. 2019-02-12 16:24:08 -08:00
Iavor Diatchki
895f69f1c3 Fix parser error 2019-02-12 14:56:03 -08:00
Iavor Diatchki
40642ff43e Merge branch 'master' into rec-upd 2019-02-12 14:48:14 -08:00
Iavor Diatchki
fd67463b2b Add a hacky way to get local executable path 2019-02-12 14:38:17 -08:00
Brian Huffman
244848326c Special case for svFromInteger at bit width 0. Fixes #563.
This change ensures that `fromInteger x : [0]` is concrete,
even if `x` is symbolic.
2019-02-11 10:57:29 -08:00
Brian Huffman
b1edb9e36e No more rebindable syntax. Fixes #568.
When syntactic sugar for constants "negate", "complement" or "splitAt"
is used, the names of those primitives are now resolved during the
type checking phase. This makes them consistent with the handling of
other desugared primitives like "fromThen", etc.
2019-02-08 09:56:37 -08:00
Aaron Tomb
10e87616a2 Update frozen versions of crackNum 2019-02-01 08:51:16 -08:00
Aaron Tomb
016395f403 Update frozen versions of crackNum 2019-02-01 08:24:32 -08:00
Aaron Tomb
8ed77c130d Update SBV version in Cabal freeze files 2019-02-01 08:16:44 -08:00
Aaron Tomb
a336d76f7f
Merge pull request #561 from LeventErkok/master
Make Cryptol compile with SBV 8.0
2019-01-31 13:46:20 -08:00
Aaron Tomb
72e96f9e60
Merge branch 'master' into master 2019-01-31 13:46:11 -08:00
David Thrane Christiansen
1dfc09e533 Export evalSel from Cryptol.Eval
This is needed to do eta-expansion of values when using Cryptol as a
library.
2019-01-29 18:05:02 -08:00
Iavor Diatchki
7d75eb2a64 Checkpoint (incomplete) 2019-01-27 23:54:45 -08:00
Iavor Diatchki
d38eab4b2c Fix test. 2019-01-25 10:20:40 -08:00
Iavor Diatchki
4312787724 Fixes #565 2019-01-24 17:00:16 -08:00
Iavor Diatchki
72a57bfff9 Fix script to use generic runner 2019-01-24 16:44:15 -08:00
Aaron Tomb
2294d81db0 Temporarily use SBV < 8 until we fix the code 2019-01-22 08:52:58 -08:00
Levent Erkok
8d09c79198 Make Cryptol compile with SBV 8.0
SBV 8.0 is now on hackage, with several backwards compatibility breaking changes. You'll need this patch to compile cryptol against it.
2019-01-14 16:49:19 -08:00
Iavor Diatchki
5bad18d3d7 Fix broken library: constants must start with an identifier! :) 2019-01-09 11:31:25 -08:00
Iavor Diatchki
f0e9dcf471 Just a different example.
This used to work with Z3 4.7.1 but does not with 4.8.4
2019-01-09 11:26:53 -08:00
Iavor Diatchki
454dd58fbd Name some of the big numbers. 2019-01-09 11:26:14 -08:00
Iavor Diatchki
4dae9dadcd Add some comments explaining the hackery 2019-01-08 17:18:45 -08:00
Iavor Diatchki
47d118ecf5 A TEMPORARY hack to force rebuilding GitRev.hs so we get the correct hashes. 2019-01-08 17:14:53 -08:00
Iavor Diatchki
58eb799ec9 Indicate in the logo, if the repo has been modified. 2019-01-08 17:14:05 -08:00
Iavor Diatchki
60c1baebfd Indent goals to be shown a bit further, to line up with assumptions. 2019-01-08 16:42:34 -08:00
Iavor Diatchki
d8b1a7a601 Improve some of the error messages. 2019-01-03 11:28:59 -08:00
Iavor Diatchki
d331d16128 Add a command to run the locally built Cryptol 2019-01-03 11:10:29 -08:00
Iavor Diatchki
efe0b7ce7a Add some bullets and rephrase error a bit. 2019-01-02 17:16:48 -08:00
Iavor Diatchki
8caf3f7438 Remove unused error message 2019-01-02 17:16:09 -08:00
Aaron Tomb
f5318d3379 Bump Travis GHC and cabal-install versions 2018-12-13 08:54:28 -08:00
Aaron Tomb
bf3aa4dc01 Adapt Travis to new scripts 2018-12-13 08:39:04 -08:00