Commit Graph

727 Commits

Author SHA1 Message Date
Michael Benfield
da8ef9b779 Consistently make 1 empty line between output items in codegen. 2024-10-21 17:00:21 -07:00
Michael Benfield
b4f28bf692 Don't hash bytecode output for tests. 2024-10-21 16:19:31 -07:00
Michael Benfield
6694e058c4 Switch to TOML for tests instead of YAML. 2024-10-21 16:08:46 -07:00
d0cd
64445fb113
Merge pull request #28404 from ProvableHQ/remove-expectations
Remove unused '.out' expectations files.
2024-10-20 14:03:43 -07:00
Michael Benfield
8863974fea Remove unused '.out' expectations files.
A couple of these seem to have been inadvertently left behind
in switching away from the finalize syntax. Others never had a
corresponding '.leo' test.
2024-10-17 16:01:01 -07:00
Michael Benfield
5e7591fec9 Improve handling of guards while flattening.
Specifically three changes are made:

1. Cache Anded together chains of conditionals for early returns.
This prevents quadratic code being generated in the face of a chain
of ifs like

```
if a { return 0u32; } else if b { return 1u32 } else if ...
```

2. Take into account early returns for asserts, and cache the
when reconstructing the assert, as with caching them for early returns.

Fixes #28386, #28387
2024-10-17 10:03:08 -07:00
Michael Benfield
a55dfe29e8 Clean up dependencies.
Remove unused deps. Use workspace deps where appropriate.
2024-10-10 12:56:17 -07:00
Michael Benfield
5a0f39cd9f hex, octal, and binary literals for integers.
Note that they can't be used on the command line since SnarkVM
does the parsing there.
2024-10-10 08:26:58 -07:00
Michael Benfield
9ea9aeb9c8 Require comma separators (and nothing else) between struct members.
Fixes #28377, #28379
2024-10-09 14:47:40 -07:00
Michael Benfield
2bbff6d0a8 Display Type::Boolean as bool, not boolean.
Leo calls this `bool`, so it's potentially confusing when error
messages say `boolean`.
2024-10-04 15:43:52 -07:00
Michael Benfield
2919f0bfd0 Add function inputs to the type table.
Fixes #28370
2024-10-03 11:45:49 -07:00
Pranav Gaddamadugu
819bee3aa7 Update tests 2024-09-04 12:43:37 -07:00
evan-schott
dcf98c4fb0 Add test 2024-08-09 19:33:32 -07:00
evan-schott
ec3c92b4bf add nested external record test 2024-07-08 12:11:23 -07:00
evan-schott
edb3c8ea16
Merge pull request #28198 from ProvableHQ/fix/parser-error-data
Fix expected list in parser error.
2024-07-08 11:41:36 -07:00
Alessandro Coglio
9639c5b1c1 Adjust some text expectations. 2024-07-08 09:48:50 -07:00
Pranav Gaddamadugu
6404d22b09 Fix 2024-07-02 18:10:54 -07:00
evan-schott
d725f37fdd add test 2024-06-12 11:06:13 -07:00
Pranav Gaddamadugu
7584fa7919 Regenerate expectations 2024-06-08 17:42:37 -07:00
evan-schott
1934a23eb2 add test 2024-05-20 13:49:33 -07:00
Pranav Gaddamadugu
f75904710d Fix 2024-05-14 18:05:03 -07:00
Pranav Gaddamadugu
6f48a4a01c Fix flattening 2024-05-14 17:28:53 -07:00
Pranav Gaddamadugu
962526dab5 Fix flattening 2024-05-14 15:20:28 -07:00
Pranav Gaddamadugu
5cb9f65349 Regen expectations 2024-05-13 11:15:28 -07:00
Pranav Gaddamadugu
d2b1d055ce Update tests and fix 2024-05-13 11:09:15 -07:00
Pranav Gaddamadugu
c378e090d7 Merge branch 'mainnet' into update/from-testnet3 2024-05-13 10:10:31 -07:00
evan-schott
37d0b0e367 Change block height expectations so that execution test passes 2024-04-30 12:01:16 -07:00
Pranav Gaddamadugu
3b3a3bff02 Compatibility fixes 2024-04-30 13:51:09 -04:00
Pranav Gaddamadugu
d27ba5fa31 Merge branch 'testnet3' into update/from-testnet3 2024-04-30 13:50:06 -04:00
evan-schott
b85ace8b27 port snarkVM test 2024-04-29 14:36:46 -07:00
evan-schott
760fc3cdba regen 2024-04-23 14:24:08 -07:00
evan-schott
1e0afc20c1 Passing network.id test 2024-04-23 14:19:09 -07:00
evan-schott
5a060a4254 support for network.id 2024-04-22 18:34:31 -07:00
evan-schott
3b3d4b4c26 add tests 2024-04-22 18:33:28 -07:00
evan-schott
dda608f484 Add support for program address literals (ex: hello.aleo) & self.address 2024-04-22 18:18:48 -07:00
Pranav Gaddamadugu
efd12d5b09 Update codegen to include depth on positions 2024-04-18 20:36:38 -07:00
Pranav Gaddamadugu
0eae4f07a1 Update tests; regen expectations 2024-04-18 20:31:00 -07:00
Pranav Gaddamadugu
781d7a816a Fix and add test 2024-04-18 18:20:14 -07:00
evan-schott
88b57bec35 Regen + clippy 2024-04-18 14:16:55 -07:00
evan-schott
313add0493 regen parser exp 2024-04-16 16:06:33 -07:00
evan-schott
e7fa88cfe4 new double nested external records test 2024-04-16 15:16:53 -07:00
evan-schott
1f6e39aaec Bug fix: double nested imported structs reporting wrong program of origin 2024-04-16 14:57:55 -07:00
evan-schott
b95c5d544f proper formatting of external records (plus test) 2024-04-16 13:59:13 -07:00
evan-schott
27ef7e5cd0 Add tests 2024-04-15 18:38:03 -07:00
Pranav Gaddamadugu
d8216a4d6e Regen expectations 2024-04-13 10:49:32 -07:00
evan-schott
71c39b5c31 update expectations 2024-04-11 12:02:09 -07:00
evan-schott
17c35d11af Refactor all tests to get rid of finalize syntax 2024-04-10 15:56:30 -07:00
evan-schott
915ced57bd Switch explicit future typing syntax to match rust 2024-04-10 11:48:41 -07:00
evan-schott
00ce6eb045 explicit future tests 2024-04-09 11:38:57 -07:00
evan-schott
b422657944 Forbit explicit inclusion of async function return type 2024-04-08 11:27:42 -07:00