chore: add files used for tests

This commit is contained in:
dmpierre
2024-05-22 18:04:11 +02:00
parent 9a19e3c557
commit a994f89031
5 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
template Multiplier() {
signal input a; // 3
signal input b; // 3
signal input c; // 3
signal temp;
signal output d; // 27
signal output e; // 9
temp <== a*b;
d <== temp*c;
e <== b*c;
}
component main{public [a, b]} = Multiplier();

Binary file not shown.

View File

@@ -0,0 +1,6 @@
1,1,0,main.d
2,2,0,main.e
3,3,0,main.a
4,4,0,main.b
5,5,0,main.c
6,6,0,main.temp

Binary file not shown.

View File

@@ -0,0 +1,7 @@
{
"constraints": [
[{"3":"21888242871839275222246405745257275088548364400416034343698204186575808495616"},{"4":"1"},{"6":"21888242871839275222246405745257275088548364400416034343698204186575808495616"}],
[{"6":"21888242871839275222246405745257275088548364400416034343698204186575808495616"},{"5":"1"},{"1":"21888242871839275222246405745257275088548364400416034343698204186575808495616"}],
[{"4":"21888242871839275222246405745257275088548364400416034343698204186575808495616"},{"5":"1"},{"2":"21888242871839275222246405745257275088548364400416034343698204186575808495616"}]
]
}