defaultenv: simplify usage
* src/ltlenv/defaultenv.hh, src/ltlenv/defaultenv.cc (require): Return an atomic_prop*, not a formula*. * src/bin/randaut.cc, src/bin/randltl.cc, src/ltlvisit/apcollect.cc, src/tgbatest/ltl2tgba.cc, src/tgbatest/randtgba.cc: Do not cast the return of require().
This commit is contained in:
parent
e6e416e1e1
commit
4f1535c8fe
7 changed files with 12 additions and 20 deletions
|
|
@ -31,7 +31,6 @@
|
|||
#include "common_range.hh"
|
||||
#include "common_cout.hh"
|
||||
|
||||
#include "ltlast/atomic_prop.hh"
|
||||
#include "ltlenv/defaultenv.hh"
|
||||
#include "misc/random.hh"
|
||||
|
||||
|
|
@ -242,8 +241,7 @@ parse_opt(int key, char* arg, struct argp_state* as)
|
|||
break;
|
||||
}
|
||||
}
|
||||
aprops.insert(static_cast<const spot::ltl::atomic_prop*>
|
||||
(spot::ltl::default_environment::instance().require(arg)));
|
||||
aprops.insert(spot::ltl::default_environment::instance().require(arg));
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue