mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-07 03:06:42 +01:00
Assembly library started
This commit is contained in:
@@ -558,7 +558,7 @@ function execFunctionCall(ctx, ast) {
|
||||
if (ast.name == "log") {
|
||||
const v = exec(ctx, ast.params[0]);
|
||||
const ev = val(ctx, v, ast);
|
||||
console.log(ev.toString());
|
||||
console.log(ev.v.toString());
|
||||
return;
|
||||
}
|
||||
if (ast.name == "assert") {
|
||||
@@ -691,7 +691,7 @@ function execPin(ctx, ast) {
|
||||
}
|
||||
const sIdx = ctx.components[cIdx].names.getSignalIdx(ast.pin.name, selsP);
|
||||
|
||||
if (sIdx<0) ctx.throwError(ast, "Signal not defined:" + buildFullName() );
|
||||
if (sIdx<0) return ctx.throwError(ast, "Signal not defined:" + buildFullName() );
|
||||
return {
|
||||
t: "S",
|
||||
sIdx: sIdx,
|
||||
|
||||
Reference in New Issue
Block a user