Commit Graph

79 Commits

Author SHA1 Message Date
Collin Chin
4a0ee1d9d8
[Feature] implement block.height command (#2420)
* implement initial block.height

* commit.height parsing and code generation

* patch self.caller tests

* add error for self.caller in a finalize context

* fix test
2023-06-20 16:36:11 -07:00
Collin Chin
e5ae160d1a
Implement new hash and commit functions (#2415)
* refactor hash -> hash_to_field

* refactor commit -> commit_to_field

* implement commit_to_address

* implement hash_to_address

* update hash and commit examples

* implement hash_to_scalar

* update tests

* implement bhp hash to integer variants

* implement bhp pedersen and poseidon integer variants

* Update compiler/passes/src/type_checking/checker.rs

Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

* Update compiler/passes/src/type_checking/checker.rs

Co-authored-by: Alessandro Coglio <coglio@kestrel.edu>
Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

* fix pedersen hash type checks

---------

Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>
Co-authored-by: Alessandro Coglio <coglio@kestrel.edu>
2023-06-15 19:55:03 -07:00
d0cd
d0c29ce8e0
[Update] snarkvm 0.11.0 (#2377)
* Remove gates from tests

* Remove Finalize test namespace

* Remove gates from examples

* Remove gates from compiler

* Regen expectations

* Add test that gates is allowed as a standard field of a record

* Update Rust version in CI

* Add check for MAX_MAPPINGS
2023-05-10 21:32:37 -07:00
Pranav Gaddamadugu
581a671e31 Update maximum number of transitions 2023-04-18 17:14:01 -07:00
Pranav Gaddamadugu
2390d10677 Regen expectations 2023-04-18 17:14:01 -07:00
Pranav Gaddamadugu
7bef7c401f Regen expectations 2023-04-18 17:08:09 -07:00
Pranav Gaddamadugu
8b1861fff1 Regen expectations 2023-04-18 16:59:07 -07:00
Pranav Gaddamadugu
d4eb6441d7 Enable warnings in compiler output 2023-04-18 16:37:45 -07:00
Pranav Gaddamadugu
871b35d6d1 Cleanup expectations 2023-04-12 12:38:44 -07:00
Pranav Gaddamadugu
69f4a20aca Regen expectations 2023-04-12 12:38:43 -07:00
Pranav Gaddamadugu
1adc4d232a Update benches 2023-04-12 12:38:43 -07:00
Pranav Gaddamadugu
ee0930b834 Regen expectations 2023-04-11 10:13:15 -07:00
Pranav Gaddamadugu
484eea5bd2 Regen expectations 2023-03-31 09:58:25 -07:00
d0cd
2b5c24ada6 Regen expectations 2023-02-22 08:25:51 -08:00
d0cd
6c61296f78 Add targeted DCE test; cleanup 2023-02-21 17:13:54 -08:00
d0cd
ce4d016742 Regen expectations 2023-02-21 17:13:53 -08:00
d0cd
c8f6089be3
[Fix] Excludes inline functions from produced bytecode. (#2277)
* Remove codegen for inline functions

* Regen expectations
2023-02-21 14:17:11 -08:00
d0cd
0522c2a08f
Removes unused or deprecated keywords from the grammar. (#2273)
* Remove unused/deprecated symbols

* Remove tokens

* Update parser

* Update tests

* Regen expectations
2023-02-17 19:25:11 -08:00
d0cd
4b28d81882 Regen other expectations 2023-02-10 21:51:54 -08:00
d0cd
bf49a0cc48 Generate expectations 2023-02-10 16:26:25 -08:00
d0cd
98c7825833 Regen expectations 2023-02-10 09:48:54 -08:00
d0cd
6a3039277e Regen exepectations 2023-02-08 16:41:32 -08:00
d0cd
f0c7314e17 Regen expectations 2023-02-08 11:32:53 -08:00
d0cd
789c2e6443 Remove input files from compiler tests 2023-02-08 11:18:40 -08:00
d0cd
5565150f30 Regen expectations 2023-02-05 12:46:21 -08:00
d0cd
498d4b698d Add tests for recursion 2023-02-05 12:46:21 -08:00
d0cd
b17702e019 Fix graph init; regen expectations 2023-02-05 12:46:20 -08:00
d0cd
9975a2c200 Regen expectations 2023-01-18 12:49:19 -08:00
d0cd
48a1f0590b
Rename console.assert* to assert*. (#2205)
* Add assert statements to AST

* Add support in passes

* Add parser support

* Add tyc support

* Add support for assert statements in the remaining passes

* Fix examples, tests, and regen expectations

* Fmt

* Regen expectations
2022-12-06 21:56:48 -08:00
collin
f6f286ac8a pull testnet3, regen tests 2022-11-23 02:37:57 -05:00
collin
9e28591589 pull testnet3, regen tests 2022-11-23 01:56:37 -05:00
collin
801df56f9c pull testnet3, regen tests 2022-11-22 20:55:12 -05:00
d0cd
1ae833ba7c Regen expectations 2022-11-16 10:24:29 -08:00
d0cd
f60dcca1a3 Regen expectations 2022-11-12 16:35:54 -08:00
d0cd
a69c1b4dae Regen expectations 2022-11-12 09:53:29 -08:00
d0cd
2f9bfd7ab9 Cleanup debug prints; fix bug, the flatten test builds 2022-11-08 17:10:39 -08:00
d0cd
62644d8851 Regen expectations 2022-11-08 16:02:16 -08:00
d0cd
91db5c3b8a Regen expectations 2022-11-08 15:49:47 -08:00
d0cd
8a3ffbc141 Fix tests; regen expectations 2022-11-08 15:49:47 -08:00
d0cd
367dc8b536 Regen expectations 2022-11-08 15:49:47 -08:00
d0cd
691ceae4a1 Regen expectations 2022-10-31 13:53:56 -07:00
Pranav Gaddamadugu
e1a148a93e Regen expectations 2022-10-05 23:52:37 -07:00
Pranav Gaddamadugu
6ce64f8a78 Add tests checking for invalid function calls 2022-10-03 16:33:15 -07:00
Pranav Gaddamadugu
dbb72ddbf8 Add tests showing program annotation fails 2022-10-03 15:02:28 -07:00
Pranav Gaddamadugu
ce3fd38cd4 Regen expectations 2022-10-03 14:57:14 -07:00
Pranav Gaddamadugu
898d831249 Regen expectations 2022-09-30 12:58:39 -07:00
Pranav Gaddamadugu
7a859e7b63 Regen test expectations 2022-09-21 13:18:50 -07:00
collin
bdaf486604 fix bug and regen tests 2022-09-20 22:05:49 -07:00
Pranav Gaddamadugu
cb319b1678 Add test 2022-09-17 20:45:33 +02:00
Pranav Gaddamadugu
c2bed2bb54 Add name to finalize block 2022-09-13 11:06:24 +02:00