Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
288f6ead
Commit
288f6ead
authored
Oct 28, 2016
by
Alexandre Duret-Lutz
Browse files
randomltl: fix initialization of the simplifier, caught by PVS-Studio
For
#192
. * spot/tl/randomltl.cc: Here.
parent
c31ba658
Changes
1
Hide whitespace changes
Inline
Side-by-side
spot/tl/randomltl.cc
View file @
288f6ead
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment