randomltl: fix initialization of the simplifier, caught by PVS-Studio
For #192. * spot/tl/randomltl.cc: Here.
This commit is contained in:
parent
c31ba658bf
commit
288f6ead9f
1 changed files with 2 additions and 3 deletions
|
|
@ -406,13 +406,14 @@ namespace spot
|
|||
char* opt_pL,
|
||||
char* opt_pS,
|
||||
char* opt_pB)
|
||||
: opt_simpl_level_(opts.get("simplification_level", 3)),
|
||||
simpl_(tl_simplifier_options{opt_simpl_level_})
|
||||
{
|
||||
aprops_ = aprops;
|
||||
output_ = opts.get("output", OUTPUTLTL);
|
||||
opt_seed_ = opts.get("seed", 0);
|
||||
opt_tree_size_min_ = opts.get("tree_size_min", 15);
|
||||
opt_tree_size_max_ = opts.get("tree_size_max", 15);
|
||||
opt_simpl_level_ = opts.get("simplification_level", 3);
|
||||
opt_unique_ = opts.get("unique", 1);
|
||||
opt_wf_ = opts.get("wf", 0);
|
||||
|
||||
|
|
@ -470,8 +471,6 @@ namespace spot
|
|||
+ std::string(tok_pB));
|
||||
|
||||
spot::srand(opt_seed_);
|
||||
tl_simplifier_options simpl_opts(opt_simpl_level_);
|
||||
tl_simplifier simpl_(simpl_opts);
|
||||
}
|
||||
|
||||
randltlgenerator::randltlgenerator(int aprops_n,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue