1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
ZoKrates/zokrates_cli/examples/propagate.zok
2022-04-06 20:23:58 +02:00

10 lines
174 B
Text

def main() -> field {
field a = 1 + 2 + 3;
field b = 1 < a ? 3 : a + 3;
field c = b + a == 2 ? 1 : b;
for u32 e in 0..2 {
field g = 4;
c = c + g;
}
return c * a;
}