Suppose DdManager
has four variables: x, y, x', y'
and I have a BDD built by x
and y
.
Now I want to change x
to x'
, y
to y'
, namely, get an identical BDD built by x'
and y'
.
How can I get this using the CUDD package? I encountered this problem when I wanted to implement a model checking algorithm. I want to know how to implement this operation or whether I misunderstand the symbolic model checking algorithm? Thank you very much!
You do this with the function Cudd_bddSwapVariables
. It gets the following parameters:
Cudd_bddNewVar
would return)You will need to allocate and free the arrays yourself.