functions added

This commit is contained in:
Jordi Baylina
2019-11-29 20:19:58 +01:00
parent 93330f065b
commit f4bbcfd90c
13 changed files with 258 additions and 161 deletions

View File

@@ -1 +0,0 @@
{"in":[1,2]}

View File

@@ -0,0 +1,12 @@
function func1(a,b) {
return a+b;
}
template Main() {
signal input in;
signal output out;
out <== func1(in, 3);
}
component main = Main();

View File

@@ -0,0 +1,13 @@
function fnConst(a,b) {
return a+b;
}
template Main() {
signal input in;
signal output out;
var a = fnConst(1,2);
out <== in +a;
}
component main = Main();

View File

@@ -1,5 +0,0 @@
[
"1"
,"0"
,"0"
]