You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
179 B

5 years ago
  1. function fnConst(a,b) {
  2. return a+b;
  3. }
  4. template Main() {
  5. signal input in;
  6. signal output out;
  7. var a = fnConst(1,2);
  8. out <== in +a;
  9. }
  10. component main = Main();