forked from chyanju/Picus
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DO NOT MERGE] feat: support patching properly
- Loading branch information
Showing
3 changed files
with
68 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#lang racket/base | ||
|
||
(provide get-public-inputs) | ||
(provide get-global-inputs) | ||
|
||
(require racket/set | ||
racket/match | ||
csv-reading | ||
(prefix-in r1cs: "./r1cs/r1cs-grammar.rkt")) | ||
|
||
(define (get-public-inputs r1cs-path sym-path) | ||
(define (get-global-inputs r1cs-path sym-path) | ||
(define r0 (r1cs:read-r1cs r1cs-path)) | ||
(define input-signals (r1cs:r1cs-inputs r0)) | ||
(define ins (list->set input-signals)) | ||
|
@@ -24,9 +24,9 @@ | |
|
||
(module+ test | ||
(require rackunit) | ||
(check-equal? (get-public-inputs "../benchmarks/circomlib-cff5ab6/[email protected]" | ||
(check-equal? (get-global-inputs "../benchmarks/circomlib-cff5ab6/[email protected]" | ||
"../benchmarks/circomlib-cff5ab6/[email protected]") | ||
(set "in")) | ||
(check-equal? (get-public-inputs "../benchmarks/circomlib-cff5ab6/[email protected]" | ||
(check-equal? (get-global-inputs "../benchmarks/circomlib-cff5ab6/[email protected]" | ||
"../benchmarks/circomlib-cff5ab6/[email protected]") | ||
(set "x1" "y1" "x2" "y2"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters