Browse Source

lIdx BigArray

master
Jordi Baylina 4 years ago
parent
commit
f48de61ca9
No known key found for this signature in database GPG Key ID: 7480C80C1BE43112
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/compiler.js

+ 3
- 1
src/compiler.js

@ -115,10 +115,12 @@ async function compile(srcFile, options) {
if (ctx.error) throw(ctx.error);
if (options.r1csFileName) {
if (ctx.verbose) console.log("Generating r1cs...");
await buildR1cs(ctx, options.r1csFileName);
}
if (options.symWriteStream) {
if (ctx.verbose) console.log("Generating syms...");
const rdStream = buildSyms(ctx);
rdStream.pipe(options.symWriteStream);
@ -297,7 +299,7 @@ async function reduceConstrains(ctx) {
nextPossibleConstraints = new BigArray();
removedSignals = new BigArray();
nRemoved = 0;
lIdx = {};
lIdx = new BigArray();
for (let i=0;i<possibleConstraints.length;i++) {
if ((ctx.verbose)&&(i%10000 == 0)) {
await Promise.resolve();

Loading…
Cancel
Save