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
1628b188
Commit
1628b188
authored
Sep 24, 2015
by
Etienne Renault
Browse files
Remove useless register_propositions method
* src/twa/bdddict.cc, src/twa/bdddict.hh, src/twaalgos/ltl2tgba_fm.cc: here.
parent
11b9ada2
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/twa/bdddict.cc
View file @
1628b188
...
...
@@ -131,22 +131,6 @@ namespace spot
return
num
;
}
void
bdd_dict
::
register_propositions
(
bdd
f
,
const
void
*
for_me
)
{
if
(
f
==
bddtrue
||
f
==
bddfalse
)
return
;
int
v
=
bdd_var
(
f
);
assert
(
unsigned
(
v
)
<
bdd_map
.
size
());
bdd_info
&
i
=
bdd_map
[
v
];
assert
(
i
.
type
==
var
);
i
.
refs
.
insert
(
for_me
);
register_propositions
(
bdd_high
(
f
),
for_me
);
register_propositions
(
bdd_low
(
f
),
for_me
);
}
int
bdd_dict
::
register_acceptance_variable
(
const
ltl
::
formula
*
f
,
const
void
*
for_me
)
...
...
src/twa/bdddict.hh
View file @
1628b188
...
...
@@ -109,23 +109,6 @@ namespace spot
}
/// @}
/// \brief Register BDD variables as atomic propositions.
///
/// Register all variables occurring in \a f as atomic propositions
/// used by \a for_me. This assumes that these atomic propositions
/// are already known from the dictionary (i.e., they have already
/// been registered by register_proposition() for another
/// automaton).
/// @{
void
register_propositions
(
bdd
f
,
const
void
*
for_me
);
template
<
typename
T
>
void
register_propositions
(
bdd
f
,
std
::
shared_ptr
<
T
>
for_me
)
{
register_propositions
(
f
,
for_me
.
get
());
}
/// @}
/// \brief whether a proposition has already been registered
///
/// If \a f has been registered for \a me, this returns
...
...
src/twaalgos/ltl2tgba_fm.cc
View file @
1628b188
...
...
@@ -1187,14 +1187,6 @@ namespace spot
}
}
// Register all known propositions for a. This may contain
// proposition from other parts of the formula being translated,
// but this is not really important as this automaton will be
// short-lived. (Maybe it would even work without this line.)
dict_
.
dict
->
register_propositions
(
dict_
.
var_set
,
a
);
//print_dot(std::cerr, a);
// The following code trims the automaton in a crude way by
// eliminating SCCs that are not coaccessible. It does not
// actually remove the states, it simply marks the corresponding
...
...
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