Storm 1.11.1.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
sylvan.cpp
Go to the documentation of this file.
2
3#ifdef STORM_HAVE_SYLVAN
4namespace storm {
5namespace dd {
6
7bool sylvan_bdd_matches_variable_index(BDD node, uint64_t variableIndex, int64_t offset) {
8 return !sylvan_isconst(node) && static_cast<uint64_t>(sylvan_var(node) + offset) == variableIndex;
9}
10
11bool sylvan_mtbdd_matches_variable_index(MTBDD node, uint64_t variableIndex, int64_t offset) {
12 return !mtbdd_isleaf(node) && static_cast<uint64_t>(sylvan_var(node) + offset) == variableIndex;
13}
14
15} // namespace dd
16} // namespace storm
17#endif