1
0
Fork 0
mirror of synced 2025-09-23 04:08:33 +00:00
ZoKrates/zokrates_cli/examples/comments.zok
2022-04-06 20:23:58 +02:00

8 lines
253 B
Text

// only using add, no need to flatten
def main(field a) -> field { // a needs to be 1
field b = a + 5; // inline comment
field c = a + b + a + 4;
assert(a == 1); // another inline comment
field d = a + c + a + b;
return b + c + d;
}