Package com.github.javabdd
Class TryVarOrder
java.lang.Object
com.github.javabdd.TryVarOrder
Try var order.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
class
-
Constructor Summary
ConstructorsConstructorDescriptionTryVarOrder
(int nodeTableSize, int cacheSize, int maxIncrease, long bestTime, long delayTime) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
Clean up the temporary files.long
void
init
(BDD b1, BDD b2, BDD dom, BDDFactory.BDDOp op) Initialize for a new trial.long
Try out a variable order.void
writeBDDConfig
(BDDFactory bdd, String fileName) Write the BDD configuration to a file.
-
Constructor Details
-
TryVarOrder
public TryVarOrder(int nodeTableSize, int cacheSize, int maxIncrease, long bestTime, long delayTime)
-
-
Method Details
-
init
Initialize for a new trial. Takes the given input BDDs and saves them out to temporary files.- Parameters:
b1
- first input to applyExb2
- second input to applyExdom
- third input to applyExop
- operation to be passed to applyEx- Throws:
IOException
- In case of an I/O error.
-
cleanup
public void cleanup()Clean up the temporary files. -
writeBDDConfig
Write the BDD configuration to a file.- Parameters:
bdd
- BDD factoryfileName
- filename- Throws:
IOException
- In case of an I/O error.
-
tryOrder
Try out a variable order.- Parameters:
factory
- BDD factory namereverse
- whether to reverse the bitsvarOrder
- variable order to try- Returns:
- time spent, or Long.MAX_VALUE if it didn't terminate
-
getBestOrder
-
getBestTime
public long getBestTime()
-