You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While Model Checking, to obtain a specific (symbolic) state s in a set S, one would want to use the PickOneCube(S) function. Yet to only obtain a single state, the resulting cube needs to fix a value for each variable. Hence, I would then want to provide some cube c of all states (similar to the Exists function).
Yet, doing so returns a non-symbolic vector of assignments which I have to convert back into a BDD.
inline sylvan::Bdd
satone(const sylvan::Bdd& f, const sylvan::Bdd& c)
{
constauto f_vals = f.PickOneCube(c);
constauto c_vars = sylvan::BddSet(c).toVector();
sylvan::Bdd res = top();
for (int i = c_vars.size() - 1; 0 <= i; --i) {
constint var = c_vars[i];
constbool val = f_vals[i];
res &= val ? ithvar(var) : nithvar(var);
}
return res;
}
As you are working towards v2.0, I would propose this is changed to return a sylvan::Bdd instead. If the user wants to have these values output instead then they can provide a begin iterator to some data structure they would like to feed the result into.
The text was updated successfully, but these errors were encountered:
While Model Checking, to obtain a specific (symbolic) state
s
in a setS
, one would want to use thePickOneCube(S)
function. Yet to only obtain a single state, the resulting cube needs to fix a value for each variable. Hence, I would then want to provide some cubec
of all states (similar to theExists
function).Yet, doing so returns a non-symbolic vector of assignments which I have to convert back into a BDD.
As you are working towards v2.0, I would propose this is changed to return a
sylvan::Bdd
instead. If the user wants to have these values output instead then they can provide abegin
iterator to some data structure they would like to feed the result into.The text was updated successfully, but these errors were encountered: