Commit Graph

2561 Commits

Author SHA1 Message Date
Collin Chin
94e7509690
Merge pull request #784 from AleoHQ/dead-code-elimination
Dead code elimination
2021-03-23 16:26:22 -07:00
collin
113ba12959 add tests for dead code elim 2021-03-23 15:49:56 -07:00
collin
99efdf00cb add comments to asg passes 2021-03-23 15:33:13 -07:00
Collin Chin
46220aa889
Merge pull request #761 from AleoHQ/feature/const-inputs
[Feature, Compiler] Adds constant inputs
2021-03-23 15:19:44 -07:00
collin
b9d676a404 assign todos 2021-03-23 15:17:31 -07:00
collin
d410d84153 add reduce_statement_alloc comment 2021-03-23 15:04:55 -07:00
collin
3a6ca5018d edit main input comments 2021-03-23 14:44:16 -07:00
gluax
c9daf4a8a9 typed one thing in the comment and another in the if condition whoops 2021-03-23 17:42:54 -04:00
collin
8172d73a71 fix bit not error 2021-03-23 14:38:20 -07:00
collin
68afcadfa4 update error descriptions 2021-03-23 14:36:22 -07:00
gluax
becafb3798 fix some cases where _ is the only character in the identifier 2021-03-23 17:35:55 -04:00
collin
ee30ad97cc modify macro names 2021-03-23 14:28:22 -07:00
gluax
98fd0ac4dc rename function names to reflect abnf more 2021-03-23 17:27:45 -04:00
collin
f16bb70da9 test pedersen hash constraint numbers 2021-03-23 14:16:51 -07:00
gluax
026816f085 cleaner way to remove _ from beginning of idents 2021-03-23 16:45:43 -04:00
gluax
62e68f42da forgot to push new error with previous commit 2021-03-23 16:06:39 -04:00
gluax
8c996fb15d do not allow _ at start of identifier 2021-03-23 16:02:01 -04:00
gluax
0663227741 order tokens to try and match ABNF 2021-03-23 13:45:57 -04:00
gluax
1adc8cee14 consistent keyword order and names 2021-03-23 12:11:42 -04:00
gluax
0ea4f1e0e3 const_ self as function input properly 2021-03-23 11:49:27 -04:00
gluax
fe8eae981d const_ self as function input 2021-03-23 11:32:36 -04:00
dependabot-preview[bot]
6e255c526c
Bump serde from 1.0.124 to 1.0.125
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.124 to 1.0.125.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-23 13:21:54 +00:00
dependabot-preview[bot]
6f45b5f944
Bump walkdir from 2.3.1 to 2.3.2
Bumps [walkdir](https://github.com/BurntSushi/walkdir) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/BurntSushi/walkdir/releases)
- [Commits](https://github.com/BurntSushi/walkdir/compare/2.3.1...2.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-23 13:20:58 +00:00
ljedrz
d14edcb4cd refactor: use a macro to deduplicate code in Integer::allocate_type
Signed-off-by: ljedrz <ljedrz@gmail.com>
2021-03-23 11:24:47 +01:00
collin
ae9ba51b7d update pedersen hash example to use constant inputs 2021-03-22 15:24:32 -07:00
gluax
bac54b21de make sure we keep crlf for abnf grammar file 2021-03-22 15:12:33 -04:00
gluax
dde8ab59fa initial commit, so I can open retroactive pr 2021-03-22 14:38:38 -04:00
gluax
2c6a34fea7 test that was failing coverage only existed on master 2021-03-22 11:47:34 -04:00
gluax
ef43230e98 merge master and see if it fixes coverage ci 2021-03-22 11:38:19 -04:00
Max Bruce
d120e90d6e
Merge branch 'master' into dead-code-elimination 2021-03-22 07:04:38 -07:00
dependabot-preview[bot]
634889de33
Bump anyhow from 1.0.38 to 1.0.39
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.38 to 1.0.39.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.38...1.0.39)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-22 10:34:10 +00:00
gluax
1d9befc0ac function input mutable by default 2021-03-19 11:30:24 -04:00
damirka
b5ae4e1ca4 extended errors, added more error cases 2021-03-19 15:15:06 +03:00
Howard Wu
19e40a89a3
Merge pull request #774 from AleoHQ/transparent-keywords
Transparent keywords
2021-03-18 15:47:06 -07:00
Howard Wu
b5d3d09b17
Merge pull request #776 from AleoHQ/fix/const-loop-range
Check loop ranges are constant
2021-03-18 15:45:52 -07:00
gluax
b50919085b deprecate let mut, undeprecate const, let is now mutable by default 2021-03-18 15:19:07 -04:00
damirka
2b6f39fd14 added macro for const and main inputs sections 2021-03-18 11:57:25 +03:00
gluax
0e9bff8419
Delete test.report
Delete debug file
2021-03-17 18:00:02 -04:00
gluax
e2817f9b8d
Delete HEAD
Not sure when I accidentally made this
2021-03-17 17:58:21 -04:00
collin
f1f8b99690 add passing iteration test with loop variable 2021-03-17 12:35:16 -07:00
gluax
dceb8a9744 fix Self inside of circuit giving an error, tests 2021-03-17 14:33:04 -04:00
damirka
0eb7b972c7 Merge branch 'master' into feature/const-inputs 2021-03-17 20:54:52 +03:00
damirka
2862549603 removed unwraps 2021-03-17 13:23:58 +03:00
gluax
e9bc1159ff merge master and fix last bug 2021-03-16 17:28:59 -04:00
gluax
6ffcb48822 asg now handles Circuit name in Circuit name, some bug fixes 2021-03-16 16:49:18 -04:00
damirka
60519275c9 added test for non const input as const 2021-03-16 23:18:10 +03:00
collin
0a28945262 Merge branch 'master' of https://github.com/AleoHQ/leo into dead-code-elimination 2021-03-16 12:19:01 -07:00
collin
71618f8aec Merge branch 'master' of https://github.com/AleoHQ/leo into transparent-keywords 2021-03-16 12:18:34 -07:00
collin
078f0b4351 Merge branch 'master' of https://github.com/AleoHQ/leo into fix/const-loop-range 2021-03-16 12:18:15 -07:00
damirka
8c228cc6b7 forced const inputs for const variables 2021-03-16 20:37:27 +03:00