Package com.github.javabdd
Class BDDFactoryIntImpl
java.lang.Object
com.github.javabdd.BDDFactory
com.github.javabdd.BDDFactoryIntImpl
- Direct Known Subclasses:
JFactory
A shared superclass for BDD factories that refer to BDDs as ints.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclassclassclassclassclassNested classes/interfaces inherited from class com.github.javabdd.BDDFactory
BDDFactory.BDDOp, BDDFactory.CacheStats, BDDFactory.CacheStatsCallback, BDDFactory.ContinuousStatsCallback, BDDFactory.GCStats, BDDFactory.GCStatsCallback, BDDFactory.LoadHash, BDDFactory.MaxMemoryStats, BDDFactory.MaxMemoryStatsCallback, BDDFactory.MaxUsedBddNodesStats, BDDFactory.MaxUsedBddNodesStatsCallback, BDDFactory.ReorderMethod, BDDFactory.ReorderStats, BDDFactory.ReorderStatsCallback, BDDFactory.ResizeStatsCallback -
Field Summary
FieldsFields inherited from class com.github.javabdd.BDDFactory
and, biimp, cacheCallbacks, cachestats, continuousCallbacks, diff, domain, fdvarnum, firstbddvar, gcCallbacks, gcstats, imp, invimp, less, maxMemoryCallbacks, maxmemorystats, maxUsedBddNodesCallbacks, maxusedbddnodesstats, nand, nor, or, REORDER_NONE, REORDER_RANDOM, REORDER_SIFT, REORDER_SIFTITE, REORDER_WIN2, REORDER_WIN2ITE, REORDER_WIN3, REORDER_WIN3ITE, reorderCallbacks, reorderstats, resizeCallbacks, tokenizer, xor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddref_impl(int v) protected abstract intapply_impl(int v1, int v2, BDDFactory.BDDOp opr) protected abstract intapplyAll_impl(int v1, int v2, BDDFactory.BDDOp opr, int v3) protected abstract intapplyEx_impl(int v1, int v2, BDDFactory.BDDOp opr, int v3) protected abstract intapplyUni_impl(int v1, int v2, BDDFactory.BDDOp opr, int v3) protected abstract intcompose_impl(int v1, int v2, int var) protected abstract intconstrain_impl(int v1, int v2) voiddeferredFree(int v) protected abstract voiddelref_impl(int v) voiddone()This function frees all memory used by the BDD package and resets the package to its uninitialized state.emptySet()Get an empty BDDVarSet.protected abstract intexist_impl(int v1, int v2) protected voidfinalize()protected abstract intforAll_impl(int v1, int v2) protected abstract intfullSatOne_impl(int v) voidprotected abstract inthigh_impl(int v) protected abstract intprotected abstract intite_impl(int v1, int v2, int v3) ithVar(int var) Returns a BDD representing the I'th variable.protected abstract intithVar_impl(int var) protected abstract intlevel_impl(int v) protected abstract intlow_impl(int v) protected BDDFactoryIntImpl.IntBDDmakeBDD(int v) protected BDDFactoryIntImpl.IntBDDVarSetmakeBDDVarSet(int v) protected abstract intmakenode_impl(int lev, int lo, int hi) nithVar(int var) Returns a BDD representing the negation of the I'th variable.protected abstract intnithVar_impl(int var) intnodeCount(Collection<BDD> r) Counts the number of shared nodes in a collection of BDDs.protected abstract intnodeCount_impl(int v) protected abstract intnodeCount_impl2(int[] v) protected abstract intnot_impl(int v1) one()Get the constant true BDD.protected abstract intone_impl()protected abstract doublepathCount_impl(int v) voidprintTable(BDD b) Prints the node table entries used by a BDD.protected abstract voidprintTable_impl(int v) protected abstract intreplace_impl(int v, BDDPairing p) protected abstract intrestrict_impl(int v1, int v2) protected abstract doublesatCount_impl(int v) protected abstract intsatOne_impl(int v) protected abstract intsatOne_impl2(int v1, int v2, boolean pol) protected abstract intsimplify_impl(int v1, int v2) protected abstract intsupport_impl(int v) protected abstract intunique_impl(int v1, int v2) universe()Get the constant universe BDD.protected intprotected static final intprotected static final intprotected static final int[]unwrap(Collection<BDD> c) protected abstract intvar_impl(int v) protected abstract int[]varProfile_impl(int v) protected abstract intveccompose_impl(int v, BDDPairing p) zero()Get the constant false BDD.protected abstract intMethods inherited from class com.github.javabdd.BDDFactory
addVarBlock, addVarBlock, autoReorder, autoReorder, buildCube, buildCube, buildVector, buildVector, buildVector, buildVector, clearAllDomains, clearError, clearVarBlocks, constantVector, constantVector, createBitVector, createDomain, defaultCacheStatsCallback, defaultContinuousStatsCallback, defaultGcStatsCallback, defaultMaxMemoryStatsCallback, defaultMaxUsedBddNodesStatsCallback, defaultReorderStatsCallback, defaultResizeStatsCallback, disableReorder, enableReorder, extDomain, extDomain, extDomain, extDomain, extDomain, extVarNum, getCacheSize, getCacheStats, getDomain, getMaxMemoryStats, getMaxUsedBddNodesStats, getNodeNum, getNodeTableSize, getProperty, getReorderMethod, getReorderTimes, getVarOrder, hasCacheStatsCallback, hasContinuousStatsCallback, hasGcStatsCallback, hasMaxMemoryStatsCallback, hasMaxUsedBddNodesStatsCallback, hasReorderStatsCallback, hasResizeStatsCallback, init, init, initialize, invokeCacheStatsCallbacks, invokeContinuousStatsCallbacks, invokeGcStatsCallbacks, invokeMaxMemoryStatsCallbacks, invokeMaxUsedBddNodesStatsCallbacks, invokeReorderStatsCallbacks, invokeResizeStatsCallbacks, isInitialized, isZDD, level2Var, load, load, load, loadhash_get, makePair, makePair, makePair, makePair, makeSet, makeSet, makeVarOrdering, numberOfDomains, overlapDomain, printAll, printOrder, printStat, readNext, registerCacheStatsCallback, registerContinuousStatsCallback, registerGcStatsCallback, registerMaxMemoryStatsCallback, registerMaxUsedBddNodesStatsCallback, registerReorderStatsCallback, registerResizeStatsCallback, reorder, reorderGain, reorderVerbose, reset, save, save, save_rec, setCacheRatio, setCacheSize, setError, setIncreaseFactor, setMaxIncrease, setMaxNodeNum, setMinFreeNodes, setNodeTableSize, setVarNum, setVarOrder, swapVar, unregisterCacheStatsCallback, unregisterContinuousStatsCallback, unregisterGcStatsCallback, unregisterMaxMemoryStatsCallback, unregisterMaxUsedBddNodesStatsCallback, unregisterReorderStatsCallback, unregisterResizeStatsCallback, var2Level, varBlockAll, varNum
-
Field Details
-
to_free
protected int[] to_free -
to_free_length
protected int to_free_length
-
-
Constructor Details
-
BDDFactoryIntImpl
public BDDFactoryIntImpl()
-
-
Method Details
-
addref_impl
protected abstract void addref_impl(int v) -
delref_impl
protected abstract void delref_impl(int v) -
zero_impl
protected abstract int zero_impl() -
one_impl
protected abstract int one_impl() -
universe_impl
protected int universe_impl() -
invalid_bdd_impl
protected abstract int invalid_bdd_impl() -
var_impl
protected abstract int var_impl(int v) -
level_impl
protected abstract int level_impl(int v) -
low_impl
protected abstract int low_impl(int v) -
high_impl
protected abstract int high_impl(int v) -
ithVar_impl
protected abstract int ithVar_impl(int var) -
nithVar_impl
protected abstract int nithVar_impl(int var) -
makenode_impl
protected abstract int makenode_impl(int lev, int lo, int hi) -
ite_impl
protected abstract int ite_impl(int v1, int v2, int v3) -
apply_impl
-
not_impl
protected abstract int not_impl(int v1) -
applyAll_impl
-
applyEx_impl
-
applyUni_impl
-
compose_impl
protected abstract int compose_impl(int v1, int v2, int var) -
constrain_impl
protected abstract int constrain_impl(int v1, int v2) -
restrict_impl
protected abstract int restrict_impl(int v1, int v2) -
simplify_impl
protected abstract int simplify_impl(int v1, int v2) -
support_impl
protected abstract int support_impl(int v) -
exist_impl
protected abstract int exist_impl(int v1, int v2) -
forAll_impl
protected abstract int forAll_impl(int v1, int v2) -
unique_impl
protected abstract int unique_impl(int v1, int v2) -
fullSatOne_impl
protected abstract int fullSatOne_impl(int v) -
replace_impl
-
veccompose_impl
-
nodeCount_impl
protected abstract int nodeCount_impl(int v) -
pathCount_impl
protected abstract double pathCount_impl(int v) -
satCount_impl
protected abstract double satCount_impl(int v) -
satOne_impl
protected abstract int satOne_impl(int v) -
satOne_impl2
protected abstract int satOne_impl2(int v1, int v2, boolean pol) -
nodeCount_impl2
protected abstract int nodeCount_impl2(int[] v) -
varProfile_impl
protected abstract int[] varProfile_impl(int v) -
printTable_impl
protected abstract void printTable_impl(int v) -
makeBDD
-
unwrap
-
unwrap
-
makeBDDVarSet
-
unwrap
-
ithVar
Description copied from class:BDDFactoryReturns a BDD representing the I'th variable. (One node with the children true and false.) The requested variable must be in the (zero-indexed) range defined bysetVarNum.Compare to bdd_ithvar.
- Specified by:
ithVarin classBDDFactory- Parameters:
var- the variable number- Returns:
- the I'th variable on success, otherwise the constant false BDD
-
nithVar
Description copied from class:BDDFactoryReturns a BDD representing the negation of the I'th variable. (One node with the children false and true.) The requested variable must be in the (zero-indexed) range defined bysetVarNum.Compare to bdd_nithvar.
- Specified by:
nithVarin classBDDFactory- Parameters:
var- the variable number- Returns:
- the negated I'th variable on success, otherwise the constant false BDD
-
nodeCount
Description copied from class:BDDFactoryCounts the number of shared nodes in a collection of BDDs. Counts all distinct nodes that are used in the BDDs -- if a node is used in more than one BDD then it only counts once.Compare to bdd_anodecount.
- Specified by:
nodeCountin classBDDFactory- Parameters:
r- collection of BDDs- Returns:
- number of shared nodes
-
one
Description copied from class:BDDFactoryGet the constant true BDD.Compare to bdd_true.
- Specified by:
onein classBDDFactory- Returns:
- constant true BDD
-
universe
Description copied from class:BDDFactoryGet the constant universe BDD. (The universe BDD differs from the one BDD in ZDD mode.)Compare to bdd_true.
- Overrides:
universein classBDDFactory- Returns:
- constant universe BDD
-
emptySet
Description copied from class:BDDFactoryGet an empty BDDVarSet.Compare to bdd_true.
- Overrides:
emptySetin classBDDFactory- Returns:
- empty BDDVarSet
-
printTable
Description copied from class:BDDFactoryPrints the node table entries used by a BDD.Compare to bdd_printtable.
- Specified by:
printTablein classBDDFactory- Parameters:
b- BDD
-
zero
Description copied from class:BDDFactoryGet the constant false BDD.Compare to bdd_false.
- Specified by:
zeroin classBDDFactory- Returns:
- constant false BDD
-
done
public void done()Description copied from class:BDDFactoryThis function frees all memory used by the BDD package and resets the package to its uninitialized state. The BDD package is no longer usable after this call.Compare to bdd_done.
- Specified by:
donein classBDDFactory
-
finalize
-
deferredFree
public void deferredFree(int v) -
handleDeferredFree
public void handleDeferredFree()
-