1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
ZoKrates/zokrates_stdlib/tests/bench/utils/multiplexer/lookup1bit.code
2019-06-22 17:32:51 +02:00

24 lines
No EOL
329 B
Text

import "utils/multiplexer/lookup1bit.code" as lookup
def left() -> (field):
field sel = 0 //left
field[2] t = [0, 1]
0 == lookup(sel, t)
return 1
def right() -> (field):
field sel = 1 //right
field[2] t = [0, 1]
1 == lookup(sel, t)
return 1
def main() -> (field):
1 == left()
1 == right()
return 1