gen: pass the bdd_dict to aut_pattern()

* spot/gen/automata.hh (aut_pattern): Add the dict argument.
* spot/gen/automata.cc, python/spot/gen.i: Adjust.
* tests/python/gen.py: Make sure two automata built without
specifying any dictionary share the same one.
This commit is contained in:
Alexandre Duret-Lutz 2017-04-27 18:00:51 +02:00
parent 11ca2803c9
commit 649793df75
4 changed files with 24 additions and 5 deletions

View file

@ -31,6 +31,9 @@ assert k2.num_states() == 5
# the type returned by spot.gen.ks_cobuchi() is the correct one.
assert 'to_str' in dir(k2)
k3 = gen.aut_pattern(gen.AUT_KS_COBUCHI, 3)
assert k2.get_dict() == k3.get_dict()
try:
gen.aut_pattern(gen.AUT_KS_COBUCHI, 0)
except RuntimeError as e: