fix Print r1cs with deps
This commit is contained in:
parent
86ee180a81
commit
eebe654cdf
@ -1094,7 +1094,7 @@ function r1csPrint(r1cs, syms, logger) {
|
|||||||
let name = syms.varIdx2Name[k];
|
let name = syms.varIdx2Name[k];
|
||||||
if (name == "one") name = "";
|
if (name == "one") name = "";
|
||||||
|
|
||||||
let vs = r1cs.Fr.toString(lc[k]);
|
let vs = r1cs.curve.Fr.toString(lc[k]);
|
||||||
if (vs == "1") vs = ""; // Do not show ones
|
if (vs == "1") vs = ""; // Do not show ones
|
||||||
if (vs == "-1") vs = "-"; // Do not show ones
|
if (vs == "-1") vs = "-"; // Do not show ones
|
||||||
if ((S!="")&&(vs[0]!="-")) vs = "+"+vs;
|
if ((S!="")&&(vs[0]!="-")) vs = "+"+vs;
|
||||||
|
@ -3991,7 +3991,7 @@ function r1csPrint(r1cs, syms, logger) {
|
|||||||
let name = syms.varIdx2Name[k];
|
let name = syms.varIdx2Name[k];
|
||||||
if (name == "one") name = "";
|
if (name == "one") name = "";
|
||||||
|
|
||||||
let vs = r1cs.Fr.toString(lc[k]);
|
let vs = r1cs.curve.Fr.toString(lc[k]);
|
||||||
if (vs == "1") vs = ""; // Do not show ones
|
if (vs == "1") vs = ""; // Do not show ones
|
||||||
if (vs == "-1") vs = "-"; // Do not show ones
|
if (vs == "-1") vs = "-"; // Do not show ones
|
||||||
if ((S!="")&&(vs[0]!="-")) vs = "+"+vs;
|
if ((S!="")&&(vs[0]!="-")) vs = "+"+vs;
|
||||||
|
File diff suppressed because one or more lines are too long
2
build/snarkjs.min.js
vendored
2
build/snarkjs.min.js
vendored
File diff suppressed because one or more lines are too long
@ -11,7 +11,7 @@ export default function r1csPrint(r1cs, syms, logger) {
|
|||||||
let name = syms.varIdx2Name[k];
|
let name = syms.varIdx2Name[k];
|
||||||
if (name == "one") name = "";
|
if (name == "one") name = "";
|
||||||
|
|
||||||
let vs = r1cs.Fr.toString(lc[k]);
|
let vs = r1cs.curve.Fr.toString(lc[k]);
|
||||||
if (vs == "1") vs = ""; // Do not show ones
|
if (vs == "1") vs = ""; // Do not show ones
|
||||||
if (vs == "-1") vs = "-"; // Do not show ones
|
if (vs == "-1") vs = "-"; // Do not show ones
|
||||||
if ((S!="")&&(vs[0]!="-")) vs = "+"+vs;
|
if ((S!="")&&(vs[0]!="-")) vs = "+"+vs;
|
||||||
|
Loading…
Reference in New Issue
Block a user