Commit Graph

669 Commits

Author SHA1 Message Date
evan-schott
143e9cdc23 formatting of futures in CG 2024-03-08 14:35:26 -08:00
evan-schott
dd6d40edf9 Convert f.1 from tuple access to member access to prepare for CG 2024-03-08 14:32:46 -08:00
evan-schott
8f6a94d250 Nested async function/transition logic 2024-03-08 14:31:51 -08:00
evan-schott
b29978cda9 Add fully typed futures to ST in finalize scope 2024-03-08 14:18:53 -08:00
evan-schott
e6e8811f5c Support nested async functions in return. return finalize_main(1u32, external.aleo/foo().1); 2024-03-08 14:12:58 -08:00
evan-schott
69fd6edab6 Only track finalize stub inputs 2024-03-08 11:58:44 -08:00
evan-schott
ccc7bf0eec Fix bug: Logic error in analyzing unawaited paths through nested conditionals 2024-03-08 11:56:29 -08:00
evan-schott
dea6443f67 Fix bug: If no futures present don't initialize await checker 2024-03-08 11:54:38 -08:00
evan-schott
2b2bc91d53 Fix bug: Never use Identifier as key to Indexmap because spans will change 2024-03-08 11:52:43 -08:00
evan-schott
7d5b1ed8a8 Change syntax so that finalize functions signatures no longer must explicitly declare output is future 2024-03-05 10:39:26 -08:00
evan-schott
35894d79fe Remove old futures logic from CG 2024-03-04 17:13:22 -08:00
evan-schott
c482b81d95 TYC small fixes 2024-03-04 17:08:43 -08:00
evan-schott
9f20aa867f fix borrowing error 2024-03-04 17:05:02 -08:00
evan-schott
31d3373c8d supporting changes 2024-03-04 17:03:41 -08:00
evan-schott
8e67cfbf2a AST refactor 2024-03-04 16:59:28 -08:00
evan-schott
c516db61f0 Finished TYC pass 2024-02-28 19:54:58 -08:00
evan-schott
29f1a97ee3 Update helpers 2024-02-28 19:42:21 -08:00
evan-schott
084451c1c8 Refactor to simplify borrowing 2024-02-27 14:11:28 -08:00
evan-schott
8320adccdf Type inference for external finalize inputs 2024-02-27 14:09:00 -08:00
evan-schott
b7c1f472d6 Track all possible paths through nested conditionals for unawaited and duplicate awaited futures 2024-02-26 18:34:49 -08:00
evan-schott
7dba5affc9 Errors for improper awaiting of futures (static and dynamic) 2024-02-26 15:19:20 -08:00
evan-schott
c886bafa43 Refactor to use structs instead of long lists of flags 2024-02-26 15:07:18 -08:00
evan-schott
5a499937e6 Function signature checking w/ nested struct/future 2024-02-19 18:28:33 -08:00
evan-schott
8feb612ce7 TYC future argument retrieval 2024-02-19 18:25:13 -08:00
evan-schott
c733b360a3 refactor equality checking of types to account for nested external structs and futures 2024-02-19 18:24:30 -08:00
evan-schott
839ffddc7e Combine finalize and function variant signature checks 2024-02-15 16:47:44 -08:00
evan-schott
d8c12ffa49 New struct fields to track function state 2024-02-15 16:46:59 -08:00
evan-schott
118b9c4b82 Deprecate finalize when TYC program 2024-02-15 16:33:54 -08:00
evan-schott
e5f98168f3 Small compatibility changes 2024-02-15 16:26:51 -08:00
Pranav Gaddamadugu
95d95f27e7 Merge branch 'testnet3' into feat/leo-deploy 2024-02-10 23:13:20 -06:00
evan-schott
9e0cfd565d TYC 2024-02-09 15:44:18 -08:00
evan-schott
78f8d319ea Passes refactor 2024-02-09 15:43:16 -08:00
evan-schott
27beae3bcb Parser 2024-02-09 15:40:19 -08:00
evan-schott
4894cf75f3 update ST usages to reflect ST structure change 2024-02-09 15:38:40 -08:00
evan-schott
975c21cdcd Fix json serialization error (can't have non-string Option<..> as IndexMap key) 2024-02-09 15:38:40 -08:00
evan-schott
8a6d382976 Refactor Type::Identifier => Type::Struct 2024-02-09 15:38:40 -08:00
evan-schott
278f59bba7 usage changes 2024-02-09 15:37:04 -08:00
evan-schott
8159c9af85 add external mapping to symbol table 2024-02-09 15:37:04 -08:00
evan-schott
f743f20876 unused 2024-02-09 15:37:04 -08:00
evan-schott
bfa41e1d79 clippy 2024-02-09 15:10:16 -08:00
dependabot[bot]
8ee5f2180d
Bump num-traits from 0.2.17 to 0.2.18
Bumps [num-traits](https://github.com/rust-num/num-traits) from 0.2.17 to 0.2.18.
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.17...num-traits-0.2.18)

---
updated-dependencies:
- dependency-name: num-traits
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-08 10:19:10 +00:00
dependabot[bot]
1a7b1d17e0
Bump itertools from 0.12.0 to 0.12.1
Bumps [itertools](https://github.com/rust-itertools/itertools) from 0.12.0 to 0.12.1.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.12.0...v0.12.1)

---
updated-dependencies:
- dependency-name: itertools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-30 10:10:55 +00:00
evan-schott
a0d53a74d5 style 2024-01-26 21:46:32 -08:00
evan-schott
a0d1e128a1 enforce that all functions have at least one transition function (a snarkvm requirement) 2024-01-26 21:42:43 -08:00
evan-schott
f38ed40f0d Don't add input variables from stub function and finalize signatures to symbol table 2024-01-26 20:00:27 -08:00
evan-schott
51e3ad9f78 relax external struct shadowing 2023-12-05 20:00:56 -08:00
evan-schott
8ea5e3afec fix stub shadowing issue & name mismatch issue 2023-12-05 20:00:18 -08:00
evan-schott
94b3290681 remove leftover traces of previous import system 2023-12-01 16:09:59 -08:00
evan-schott
3695ac649e clippy 2023-11-30 16:11:38 -08:00
evan-schott
184c2f583b Print imports in post order 2023-11-30 16:11:33 -08:00