1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
Commit graph

286 commits

Author SHA1 Message Date
schaeff
f98585b784 revert to original impl, add symetric check, add logs 2021-10-15 13:00:48 +03:00
schaeff
43b2a1d350 move to non breaking nightly, fix conflicts 2021-10-12 16:37:30 +03:00
Thibaut Schaeffer
65c4ccb316
Merge pull request #997 from Zokrates/strict-field-to-uint
Make field to uint casts truncate values bigger than uint max
2021-10-11 10:17:29 +03:00
schaeff
6de5a21d7e improve example 2021-10-08 20:26:28 +03:00
schaeff
f3f400a6bd fix tests, add breaking example 2021-10-05 21:20:55 +03:00
Thibaut Schaeffer
5f2d65124b
Merge pull request #975 from Zokrates/allow-calls-in-constants
Allow calls in constants
2021-10-01 18:01:52 +03:00
dark64
3ad8938897 add failing test for unpack 2021-09-27 20:51:30 +02:00
schaeff
ca55c984e3 address review comments 2021-09-24 17:54:16 +03:00
schaeff
77a3888600 fix example 2021-09-21 13:07:26 +03:00
schaeff
43f4934586 detect out of bounds reads and writes 2021-09-21 13:00:36 +03:00
schaeff
187a1e834b refactor for ordered symbols, clean, propagate constants globally to cover constants in function key 2021-09-10 23:27:19 +02:00
schaeff
8f7cf36eec fold module when id is found for constant calls inliner 2021-09-06 19:25:29 +02:00
Thibaut Schaeffer
db25d3f159
Merge pull request #977 from Zokrates/handle-unconstrained-vars
Graceful handling of unconstrained variable detection
2021-09-06 16:47:23 +02:00
schaeff
97a034cdb9 implement imported constants, implement inference on generic structs 2021-09-04 23:36:14 +02:00
schaeff
edc8c015c4 add breaking test 2021-08-30 18:00:48 +02:00
Thibaut Schaeffer
cf9ca9bf72
Merge pull request #957 from Zokrates/zir-propagation
Apply propagation in ZIR
2021-08-27 15:59:17 +02:00
schaeff
88197a57d6 refactor to keep constants until reduction, then try to inline their definitions 2021-08-27 15:57:14 +02:00
dark64
3235cf4df9 fix div by zero test 2021-08-23 21:23:44 +02:00
dark64
b01c477a55 merge develop, fix conflicts 2021-08-23 15:54:53 +02:00
dark64
b7a035025d add test for unconstrained input 2021-08-23 15:51:56 +02:00
schaeff
ce158ca5dc add breaking test when propagation is not powerful enough 2021-08-23 13:10:23 +02:00
dark64
db33856ed5 fix test 2021-08-23 00:56:45 +02:00
schaeff
c71b31d1af refactor constants to keep track of them across modules 2021-08-21 00:08:12 +02:00
schaeff
b5f243965d detect mistyped constant during constant inlining 2021-08-18 23:51:00 +02:00
dark64
f7f6a8421a merge develop, fix conflict 2021-08-17 18:46:56 +02:00
dark64
6ea4cfbe84 div by zero 2021-08-17 18:44:25 +02:00
dark64
934d36078e use result folder in zir propagation 2021-08-17 18:31:52 +02:00
Thibaut Schaeffer
872b07d3cb
Merge pull request #969 from Zokrates/avoid-blowup-on-element-wise-eq
Avoid AST depth blowup on complex equality
2021-08-17 01:27:27 +02:00
schaeff
e5ae49831e add changelog, make test bigger 2021-08-16 16:55:17 +02:00
schaeff
79dea12a3e use binary tree to limit ast depth 2021-08-16 16:52:43 +02:00
Thibaut Schaeffer
b324e17684
Merge pull request #955 from Zokrates/bit_lt_embed
Add bit LT embed to make unpack safe for any size
2021-08-16 11:25:09 +02:00
Thibaut Schaeffer
d8ae907030
Fix constant in struct type (#965)
* add breaking test

* implement from constant for uint

* tweak

* tweak

* revert and add breaking test

* implement from
2021-08-16 10:44:00 +02:00
schaeff
0c68477275 add docs 2021-08-10 15:58:51 +02:00
Thibaut Schaeffer
ba5150afb4
Merge pull request #942 from Zokrates/update-stdlib
Use constants in stdlib where applicable
2021-08-09 16:04:23 +02:00
schaeff
81c537769c merge deve, fix conflicts 2021-08-09 14:06:34 +02:00
Thibaut Schaeffer
5a02186fc1
Merge pull request #944 from Zokrates/run-ci-tutorials
Test tutorials in CI
2021-08-09 12:04:42 +02:00
Thibaut Schaeffer
f717d243b2
Merge pull request #945 from Zokrates/generic-structs
Implement generic structs
2021-08-09 11:58:34 +02:00
schaeff
249187a157 merge dev, fix conflicts, fix comment in test 2021-08-09 11:43:03 +02:00
Darko Macesic
0f2e3f5881
Merge pull request #948 from Zokrates/gm17-stdlib-verify
Add gm17 verifier to stdlib
2021-08-05 16:34:59 +02:00
schaeff
b1c9a171f8 add bit lt embed, fail on non constant bound, implement safe unpack 2021-08-04 14:55:17 +02:00
schaeff
3103d17d6f add tests, unwrap on infailible semantic check 2021-08-03 00:20:40 +02:00
Thibaut Schaeffer
caf4dd2acb
Merge pull request #943 from Zokrates/use-field-constants
Use field constants to avoid curve-dependant code
2021-08-02 22:55:33 +02:00
Thibaut Schaeffer
34992138a8
Merge pull request #886 from axic/bubblesort
Add bubblesort example
2021-08-02 12:58:31 +02:00
schaeff
1d985919ea Merge branch 'generic-structs' of github.com:Zokrates/ZoKrates into gm17-stdlib-verify 2021-07-28 13:11:57 +02:00
schaeff
f92df0fa1a add tests, fail gracefully on generic inference attempt and eq generic mismatch 2021-07-28 12:38:58 +02:00
schaeff
fbd7fddf99 update doc, example, fix absy creation 2021-07-28 00:11:18 +02:00
schaeff
5f75c495a0 Merge branch 'develop' of github.com:Zokrates/ZoKrates into generic-structs 2021-07-26 17:03:48 +02:00
schaeff
ecb105fb56 add test 2021-07-26 15:02:37 +02:00
schaeff
737d224d6b add gm17 passing test 2021-07-25 16:56:59 +02:00
schaeff
51fea62a9e add example, and make it compile, using a DeclarationType for common type detection 2021-07-16 15:30:59 +02:00