import spot
spot.setup()
Work in progress for a representation of EL-automata (a.k.a. twa
in Spot) using MTBDDs.
a = spot.translate("(G(Fa U b) <-> FGc)", "generic", "deterministic")
a
m = spot.dtwa_to_mtdtwa(a)
m
Each terminal stores a integerer that allows to retrive the data presented in the leaves above: a set of colors, and a destination state.
for i, d in enumerate(m.terminal_data):
print(f"terminal_data[{i}] = {d}")
terminal_data[0] = (spot.mark_t([0]), 0) terminal_data[1] = (spot.mark_t([0, 1]), 0) terminal_data[2] = (spot.mark_t([0, 2]), 0) terminal_data[3] = (spot.mark_t([0, 1, 2]), 0) terminal_data[4] = (spot.mark_t([]), 1) terminal_data[5] = (spot.mark_t([2]), 1) terminal_data[6] = (spot.mark_t([1]), 1) terminal_data[7] = (spot.mark_t([1, 2]), 1)