Closed dakk closed 2 months ago
I fixed for List of Tuple; List of Tuple of Tuple is not necessary right now (wontfix for now).
def test_list_of_tuple_of_tuple2(self):
f = (
"def oracle(io_list: Parameter[List[Tuple[bool, bool, bool]]], f: bool) -> bool:\n"
"\tv = True\n"
"\tfor io in io_list:\n"
"\t\tv = v and (io[0] or io[1]) == io[2]\n"
"\treturn v"
)
qf = qlassf(f, to_compile=COMPILATION_ENABLED, compiler=self.compiler)
ttable = [(False, False), (True, False), (False, True), (True, True)]
tt = list(map(lambda e: (e[0], e[1], e[0] or e[1]), ttable))
qfb = qf.bind(io_list=tt)
Raises: