Commit Graph

205 Commits

Author SHA1 Message Date
Clive2312
4d90141f78 update cost calculation 2022-02-24 20:19:10 +00:00
Clive2312
a86b972315 global combination 2022-02-24 03:33:14 +00:00
Clive2312
5465565dc4 naive mutation assignment 2022-02-23 03:22:07 +00:00
Edward Chen
65499103a0 fixed recursive constructor 2022-01-27 12:57:08 -05:00
Edward Chen
3c3a72b765 fmt and lint 2022-01-27 10:32:57 -05:00
Edward Chen
450aa8df93 cleaning merge 2022-01-27 03:41:42 -05:00
Edward Chen
9bffa84a98 IR partitioning 2022-01-27 03:18:12 -05:00
Edward Chen
60a5c2d866 merged main to graphing 2022-01-26 13:14:32 -05:00
Edward Chen
32c5fd18db graphing v1 2022-01-25 14:14:05 -05:00
Alex Ozdemir
0eea91ea45 Remove un-needed casts (#42) 2022-01-20 14:46:02 -05:00
Edward Chen
75572c6a2c C Frontend (#22) 2022-01-20 10:16:27 -08:00
Edward Chen
616aea7475 local assignments 2022-01-19 21:52:06 -05:00
Edward Chen
996ee74c76 partitioned ir 2022-01-19 17:06:24 -05:00
Edward Chen
cce425efe7 updated graph partitioning 2022-01-13 15:27:27 -05:00
Edward Chen
c8070bbd09 updating graph partitioning scheme 2022-01-13 01:41:33 -05:00
Alex Ozdemir
4b4b7df197 more TODO 2022-01-12 09:34:14 -08:00
Alex Ozdemir
efd74f7b76 Remove nightly from README 2022-01-10 02:43:05 -08:00
Alex Ozdemir
cba4bdc925 Cache submodule build (#38) 2022-01-09 08:49:07 -08:00
Alex Ozdemir
11242a686e TODOs 2022-01-06 09:58:30 -08:00
Alex Ozdemir
a9fd7888c4 Resolve lints and add clippy to CI (#35)
`front::zokrates` is currently excluded
2022-01-01 12:27:36 -08:00
Alex Ozdemir
f2744e0c06 IR-based Zokrates front-end (#33)
The ZoKrates front-end now represents ZoK arrays as IR arrays, and ZoK structures as (type-tagged) IR tuples.

During this change, I discovered that IR support for eliminating tuples and arrays was not complete.

Thus the change list is:

    The ZoK front-end uses IR arrays and tuples
    Improve IR passes for array and tuple elimination
    Enforce cargo fmt in CI
    Bugfix: handle ZoK accessors in L-values in the correct order
    Bugfix: add array evaluation to the IR

This PR does not:

    implement an array flattening pass
    implement permutation-based memory-checking

Benefits:

    The ZoK->R1CS compiler is now ~5.88x faster (as defined by the time it takes to run the tests in master's scripts/zokrates_test.zsh script: this goes from 8.59s to 1.46s)
        For benchmarks with multi-dimensional arrays, the ZoK->R1CS compiler can now compile them with reasonable speed. Before it it would time out on even tiny examples.
    The ZoK->R1CS compiler will be able to benefit from future memory-checking improvements
    IR support for arrays and tuples is complete now, making those parts of the IR more accessible to future front-ends.

alex-ozdemir added 21 commits 11 days ago
2022-01-01 11:44:56 -08:00
Alex Ozdemir
aadd6b7c2d Make the SMT solver configurable. (#34) 2021-12-29 12:22:52 -08:00
Alex Ozdemir
48ac44a3ee Dockerfile 2021-12-20 00:13:43 -08:00
Alex Ozdemir
81b364c2a7 Switch to stable (#32) 2021-12-19 22:35:02 -08:00
Edward Chen
3c7227e2c9 working commit 2021-12-17 03:15:44 -05:00
Edward Chen
2a11ecf8ed added graphing support for converting IR to Chaco format 2021-12-17 02:58:22 -05:00
Alex Ozdemir
8914c007cd Public inputs for proofs. (#27) 2021-12-10 13:09:05 -08:00
Edward Chen
57166c7cc9 updated cost models for hycc 2021-12-09 17:45:01 -05:00
Alex Ozdemir
8a9f294d8d Dual licenses (Apache, MIT) 2021-12-07 09:44:17 -08:00
Edward Chen
adac3c114f added proof to c frontend 2021-12-07 03:33:03 -05:00
Edward Chen
30ccc35bec updating c frontend to include proof mode 2021-12-07 03:18:30 -05:00
Edward Chen
4d51c27ff4 remove pycache files 2021-12-07 02:05:47 -05:00
Alex Ozdemir
b25b18ea8f Merge remote-tracking branch 'origin/c_frontend' into c_frontend 2021-12-06 21:05:56 -08:00
Edward Chen
fdd29e89e3 biomatching test works 2021-12-03 01:04:36 +00:00
Alex Ozdemir
a702a55e93 very basic C zkp 2021-12-02 15:48:16 -08:00
Edward Chen
8268841128 demo 2021-12-01 08:16:35 +00:00
Alex Ozdemir
be8fd6a536 Merge branch 'master' into c_frontend 2021-11-30 17:00:29 -08:00
Alex Ozdemir
4ffa05fca6 Datalog (#26)
Support a datalog variant.
2021-11-30 13:26:25 -08:00
Ubuntu
201f41d941 working kmeans test 2021-11-30 04:17:53 +00:00
Alex Ozdemir
8a05a107ed Deterministic compilation & better CLI (#25)
This PR makes compilation deterministic (by switching to fxhash) and improves the CLI.

Technically, the std-based hash tables cannot be guaranteed to have the deterministic iteration order that we need, regardless of what hash you use, so I've added some micro-tests for the property that we need. I'm not optimistic about getting better guarantees from std, but I'll try.

The CLI has also changed.
2021-11-29 15:17:32 -08:00
Ubuntu
51e5bfdf28 updated ilp solver 2021-11-25 08:34:09 +00:00
Alex Ozdemir
3963728c6a rm dbg statements from opa_bench 2021-11-19 20:57:23 -08:00
Edward Chen
cdb6e4c3e0 working kmeans test! 2021-11-18 03:16:18 -05:00
Edward Chen
9416f6af77 update 2021-11-17 18:01:33 -05:00
Edward Chen
6fcbaddee7 oom on gcc compiler now? 2021-11-17 17:35:19 -05:00
Edward Chen
f6cb183c8c time to change lowering memory efficiency 2021-11-17 13:32:26 -05:00
Edward Chen
ec8bf83558 does kmeans work? 2021-11-15 20:50:14 -05:00
Edward Chen
082dd79617 almost there 2021-11-14 02:53:13 -05:00
Edward Chen
8f7533148e kmeans array select is wrong somewhere.. 2021-11-12 11:23:07 -05:00
Edward Chen
4d903b77c7 kmeans test works! 2021-11-12 02:39:32 -05:00