Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
get-gas looks in the right place for state dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
d-xo authored and mhhf committed Jan 24, 2019
1 parent 01d80a0 commit b24eab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const prune_edges = (proofid, prune = true) => {
.filter(l => l.split(" ")[1] == "rule")
.map(l => l.split(" ")[3])
.reduce((a, ruleid) => {
if(!a[ruleid]) a[ruleid] = JSON.parse(read(path.join(KLAB_WD_PATH, "blobs", ruleid + ".json")));
if(!a[ruleid]) a[ruleid] = JSON.parse(read(path.join(KLAB_WD_PATH, `${proofid}_blobs`, ruleid + ".json")));
return a;
}, {})

Expand Down
2 changes: 1 addition & 1 deletion libexec/klab-get-gas
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const blobs = Object.keys(Object.keys(pruned_edges)
ensureDir(path.join(KLAB_OUT, "log"));
const pruned_path = path.join(KLAB_OUT, "log", `boot_${proofid}.json`);
const blobs_data = blobs
.map(blobid => [blobid, JSON.parse(read(path.join(KLAB_WD_PATH, "blobs", blobid + ".json")))])
.map(blobid => [blobid, JSON.parse(read(path.join(KLAB_WD_PATH, `${proofid}_blobs`, blobid + ".json")))])

const compiled_states = blobs_data
.filter(([_, k]) => k.term.label == "<generatedTop>")
Expand Down

0 comments on commit b24eab9

Please sign in to comment.