2 Commits

Author SHA1 Message Date
Jordi Baylina
15ddd2a0be 0.0.7 2021-10-15 19:32:11 +02:00
Jordi Baylina
020cb4d510 Add optimization options 2021-10-15 19:31:55 +02:00
4 changed files with 9 additions and 5 deletions

View File

@@ -46,6 +46,8 @@ async function compile (baseName, fileName, options) {
if (options.r1cs) flags += "--r1cs "; if (options.r1cs) flags += "--r1cs ";
if (options.json) flags += "--json "; if (options.json) flags += "--json ";
if (options.output) flags += "--output " + options.output + " "; if (options.output) flags += "--output " + options.output + " ";
if (options.O === 0) flags += "--O0 "
if (options.O === 1) flags += "--O1 "
b = await exec("circom " + flags + fileName); b = await exec("circom " + flags + fileName);
assert(b.stderr == "", assert(b.stderr == "",

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "circom_tester", "name": "circom_tester",
"version": "0.0.6", "version": "0.0.7",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "circom_tester", "name": "circom_tester",
"version": "0.0.6", "version": "0.0.7",
"license": "GPL-3.0", "license": "GPL-3.0",
"dependencies": { "dependencies": {
"chai": "^4.3.4", "chai": "^4.3.4",

View File

@@ -1,6 +1,6 @@
{ {
"name": "circom_tester", "name": "circom_tester",
"version": "0.0.6", "version": "0.0.7",
"description": "Tools for testing circom circuits.", "description": "Tools for testing circom circuits.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@@ -51,6 +51,8 @@ async function compile (fileName, options) {
if (options.r1cs) flags += "--r1cs "; if (options.r1cs) flags += "--r1cs ";
if (options.json) flags += "--json "; if (options.json) flags += "--json ";
if (options.output) flags += "--output " + options.output + " "; if (options.output) flags += "--output " + options.output + " ";
if (options.O === 0) flags += "--O0 "
if (options.O === 1) flags += "--O1 "
b = await exec("circom " + flags + fileName); b = await exec("circom " + flags + fileName);
assert(b.stderr == "", assert(b.stderr == "",