mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-07 03:06:42 +01:00
15 lines
201 B
Plaintext
15 lines
201 B
Plaintext
template ForRolled() {
|
|
signal input in;
|
|
signal output out;
|
|
|
|
var acc = 0;
|
|
|
|
for (var i=0; i<in; i = i+1) {
|
|
acc = acc + 1;
|
|
}
|
|
|
|
out <== acc;
|
|
}
|
|
|
|
component main = ForRolled();
|