Package com.github.javabdd
Class BDDFactoryIntImpl
- java.lang.Object
-
- com.github.javabdd.BDDFactory
-
- com.github.javabdd.BDDFactoryIntImpl
-
- Direct Known Subclasses:
JFactory
public abstract class BDDFactoryIntImpl extends BDDFactory
A shared superclass for BDD factories that refer to BDDs as ints.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classBDDFactoryIntImpl.IntBDDclassBDDFactoryIntImpl.IntBDDBitVectorclassBDDFactoryIntImpl.IntBDDVarSetclassBDDFactoryIntImpl.IntBDDVarSetWithFinalizerclassBDDFactoryIntImpl.IntBDDWithFinalizerclassBDDFactoryIntImpl.IntZDDVarSetclassBDDFactoryIntImpl.IntZDDVarSetWithFinalizer-
Nested classes/interfaces inherited from class com.github.javabdd.BDDFactory
BDDFactory.BDDOp, BDDFactory.CacheStats, BDDFactory.CacheStatsCallback, BDDFactory.ContinuousStatsCallback, BDDFactory.GCStats, BDDFactory.GCStatsCallback, BDDFactory.LoadHash, BDDFactory.MaxUsedBddNodesStats, BDDFactory.MaxUsedBddNodesStatsCallback, BDDFactory.ReorderMethod, BDDFactory.ReorderStats, BDDFactory.ReorderStatsCallback, BDDFactory.ResizeStatsCallback
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]to_freeprotected intto_free_length-
Fields inherited from class com.github.javabdd.BDDFactory
and, biimp, cacheCallbacks, cachestats, continuousCallbacks, diff, domain, fdvarnum, firstbddvar, gcCallbacks, gcstats, imp, invimp, less, 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 Constructor Description BDDFactoryIntImpl()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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.BDDVarSetemptySet()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)voidhandleDeferredFree()protected abstract inthigh_impl(int v)protected abstract intinvalid_bdd_impl()protected abstract intite_impl(int v1, int v2, int v3)BDDithVar(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)BDDnithVar(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)BDDone()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)BDDuniverse()Get the constant universe BDD.protected intuniverse_impl()protected static intunwrap(BDD b)protected static intunwrap(BDDVarSet b)protected static 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)BDDzero()Get the constant false BDD.protected abstract intzero_impl()-
Methods 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, defaultMaxUsedBddNodesStatsCallback, defaultReorderStatsCallback, defaultResizeStatsCallback, disableReorder, enableReorder, extDomain, extDomain, extDomain, extDomain, extDomain, extVarNum, getCacheSize, getCacheStats, getDomain, getMaxUsedBddNodesStats, getNodeNum, getNodeTableSize, getProperty, getReorderMethod, getReorderTimes, getVarOrder, hasCacheStatsCallback, hasContinuousStatsCallback, hasGcStatsCallback, hasMaxUsedBddNodesStatsCallback, hasReorderStatsCallback, hasResizeStatsCallback, init, init, initialize, invokeCacheStatsCallbacks, invokeContinuousStatsCallbacks, invokeGcStatsCallbacks, 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, 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, unregisterMaxUsedBddNodesStatsCallback, unregisterReorderStatsCallback, unregisterResizeStatsCallback, var2Level, varBlockAll, varNum
-
-
-
-
Method Detail
-
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
protected abstract int apply_impl(int v1, int v2, BDDFactory.BDDOp opr)
-
not_impl
protected abstract int not_impl(int v1)
-
applyAll_impl
protected abstract int applyAll_impl(int v1, int v2, BDDFactory.BDDOp opr, int v3)
-
applyEx_impl
protected abstract int applyEx_impl(int v1, int v2, BDDFactory.BDDOp opr, int v3)
-
applyUni_impl
protected abstract int applyUni_impl(int v1, int v2, BDDFactory.BDDOp opr, int v3)
-
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
protected abstract int replace_impl(int v, BDDPairing p)
-
veccompose_impl
protected abstract int veccompose_impl(int v, BDDPairing p)
-
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
protected BDDFactoryIntImpl.IntBDD makeBDD(int v)
-
unwrap
protected static final int unwrap(BDD b)
-
unwrap
protected static final int[] unwrap(Collection<BDD> c)
-
makeBDDVarSet
protected BDDFactoryIntImpl.IntBDDVarSet makeBDDVarSet(int v)
-
unwrap
protected static final int unwrap(BDDVarSet b)
-
ithVar
public BDD ithVar(int var)
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
public BDD nithVar(int var)
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
public int nodeCount(Collection<BDD> r)
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
public BDD one()
Description copied from class:BDDFactoryGet the constant true BDD.Compare to bdd_true.
- Specified by:
onein classBDDFactory- Returns:
- constant true BDD
-
universe
public 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
public BDDVarSet emptySet()
Description copied from class:BDDFactoryGet an empty BDDVarSet.Compare to bdd_true.
- Overrides:
emptySetin classBDDFactory- Returns:
- empty BDDVarSet
-
printTable
public void printTable(BDD b)
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
public 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
protected void finalize() throws Throwable
-
deferredFree
public void deferredFree(int v)
-
handleDeferredFree
public void handleDeferredFree()
-
-