Commit Graph

149 Commits

Author SHA1 Message Date
Edward Chen
8c0afa7ffc need to change how to input arrays 2021-11-04 00:49:39 -04:00
Edward Chen
ec74621ccf for loop support 2021-11-03 22:12:11 -04:00
Edward Chen
40a4342826 passed all tests 2021-10-27 23:33:47 -04:00
Edward Chen
dc0cadc5ee small changes 2021-10-27 23:20:52 -04:00
Edward Chen
16635ac4ef passes all c test 2021-10-27 23:11:18 -04:00
Edward Chen
835e411f94 temp 2021-10-27 14:16:20 -04:00
Edward Chen
d9a837c30c flatten array in c 2021-10-26 21:21:36 -04:00
Edward Chen
8f5115c6af allocation ids are weird... 2021-10-25 23:56:06 -04:00
Edward Chen
a3e5de40b2 refactoring c_frontend, including signed int and extending arrays to use AllocID 2021-10-25 20:34:31 -04:00
Edward Chen
a16b80733a extracted type_ into its own helper function 2021-10-22 02:27:54 -04:00
Edward Chen
88b6768798 minor changes to add in typing for integers, address some review comments 2021-10-22 01:32:58 -04:00
Edward Chen
fda3fa76a3 Merge branch 'master' into c_frontend 2021-10-20 18:31:46 -04:00
Edward Chen
eb01f3e07f Working C frontend supporting just one main function, binary arithmetic, if-else stmts, & array select and store. Supports both integer and boolean types. 2021-10-20 18:27:59 -04:00
Alex Ozdemir
df8dd66ce0 Fix build:
I forgot to run the tests, and one of them failed to build (cause: a
bls12_381 version upgrade that I triggered).

Fixed now.
2021-10-18 16:44:13 -07:00
Alex Ozdemir
efe0d62263 Proof of high-value & tests 2021-10-18 15:29:37 -07:00
Edward Chen
a0d07c5717 array stores and loads work! 2021-10-13 22:09:19 -04:00
Edward Chen
9c20fd55f4 temp 2021-10-08 16:26:33 -04:00
Edward Chen
2b320a6426 decl initialization for array types and need to reverse search ctx to get LOC 2021-10-06 22:11:43 -04:00
Edward Chen
82358e89fd array sum! 2021-10-03 17:51:23 -04:00
Edward Chen
1bbb41126e updating array constructs 2021-10-02 20:01:15 -04:00
Edward Chen
193a680eaa adding arr struct 2021-09-30 23:44:36 -04:00
Edward Chen
d83c26de06 conditionals work!0 2021-09-30 22:20:53 -04:00
Edward Chen
7af5c69940 ite... doesn't work yet 2021-09-28 20:27:50 -04:00
Edward Chen
a4297bc022 updated testing suite for both zok and c frontends 2021-09-27 19:39:17 -04:00
Edward Chen
9787c355c6 updated 2021-09-26 20:30:38 -04:00
Edward Chen
5a46a5da8d updated zok tests and added casting to c frontend 2021-09-24 16:00:34 -04:00
Edward Chen
b654c484d0 adding in boolean and bitwise operations for c frontend 2021-09-20 17:19:18 -04:00
Edward Chen
4a01517ea3 int tests work for c frontendgit add .git add . 2021-09-19 21:05:34 -04:00
Edward Chen
9d3dd64da9 adding in parameter parsing and completed ast for simple add program 2021-09-16 21:21:02 -04:00
Edward Chen
3f87762dfa not sure if circify frontend for c is implemented correctly.. 2021-09-16 19:20:59 -04:00
Edward Chen
c2851e8152 binops 2021-09-16 17:06:56 -04:00
Edward Chen
00b867445c return stmt 2021-09-16 01:30:36 -04:00
Edward Chen
12166687a9 parsing statements 2021-09-16 01:11:12 -04:00
Edward Chen
72b44eec00 adding in fn def 2021-09-15 20:54:57 -04:00
Edward Chen
af4107afea adding cterms and types 2021-09-15 17:52:16 -04:00
Edward Chen
c078fa464a Fixed compiler warnings in lowering to ABY (#21) 2021-09-15 13:12:37 -04:00
Edward Chen
49c2696362 initial commit for c-frontend, parsing c files works! 2021-09-08 18:32:09 -04:00
Edward Chen
be0f59a2cd Merge branch 'master' of https://github.com/circify/circ 2021-09-07 12:09:48 -04:00
Edward Chen
991c710cea Support lowering loops to ABY (#19)
* loops for ABY!
2021-09-03 11:24:53 -04:00
Edward Chen
561483a875 merged 2021-09-03 09:49:30 -04:00
Edward Chen
92cff0a119 Integrated EZPC helper file (#18)
* Added EZPC helper file, updated output, added shift tests
2021-09-02 18:08:08 -04:00
Edward Chen
ea3a6ee747 Added EZPC helper file, updated output, added shift tests 2021-09-02 16:58:47 -04:00
Edward Chen
d9d66896b3 Added support for multiple outputs in test cases (#17) 2021-08-31 19:24:14 -07:00
Edward Chen
fd2a7e4bf2 Added Conversion Gates & Integrated with OPA SharingMap (#16)
* OPA-by-ILP benchmark example

* Reverted unverified push to master branch

* Added conversion gates and integrated ABY lowering with SharingMap

Co-authored-by: Alex Ozdemir <aozdemir@hmc.edu>
2021-08-25 22:38:50 -07:00
Edward Chen
5579b99888 Revert "Added conversion gates and integrated SharingMap"
This reverts commit bd022fad38.
2021-08-25 16:48:07 -04:00
Edward Chen
bd022fad38 Added conversion gates and integrated SharingMap 2021-08-25 16:45:24 -04:00
Alex Ozdemir
3b964f0bd3 OPA-by-ILP benchmark example 2021-08-24 10:01:19 -07:00
Alex Ozdemir
2226ad901f Draft OPA implementation (#15) 2021-08-24 08:29:54 -07:00
Alex Ozdemir
3691bb91b8 Sharing assignment types 2021-08-23 16:34:59 -07:00
Edward Chen
df8cdeece9 More efficient comparison calls (#14) 2021-08-20 07:25:52 -07:00