cudd
3.0.0
The University of Colorado Decision Diagram Package
|
Functions for symmetry-based variable reordering. More...
Macros | |
#define | MV_OOM (Move *)1 |
Functions | |
void | Cudd_SymmProfile (DdManager *table, int lower, int upper) |
Prints statistics on symmetric variables. More... | |
int | cuddSymmCheck (DdManager *table, int x, int y) |
Checks for symmetry of x and y. More... | |
int | cuddSymmSifting (DdManager *table, int lower, int upper) |
Symmetric sifting algorithm. More... | |
int | cuddSymmSiftingConv (DdManager *table, int lower, int upper) |
Symmetric sifting to convergence algorithm. More... | |
static int | ddSymmUniqueCompare (void const *ptrX, void const *ptrY) |
Comparison function used by qsort. More... | |
static int | ddSymmSiftingAux (DdManager *table, int x, int xLow, int xHigh) |
Given xLow <= x <= xHigh moves x up and down between the boundaries. More... | |
static int | ddSymmSiftingConvAux (DdManager *table, int x, int xLow, int xHigh) |
Given xLow <= x <= xHigh moves x up and down between the boundaries. More... | |
static Move * | ddSymmSiftingUp (DdManager *table, int y, int xLow) |
Moves x up until either it reaches the bound (xLow) or the size of the DD heap increases too much. More... | |
static Move * | ddSymmSiftingDown (DdManager *table, int x, int xHigh) |
Moves x down until either it reaches the bound (xHigh) or the size of the DD heap increases too much. More... | |
static int | ddSymmGroupMove (DdManager *table, int x, int y, Move **moves) |
Swaps two groups. More... | |
static int | ddSymmGroupMoveBackward (DdManager *table, int x, int y) |
Undoes the swap of two groups. More... | |
static int | ddSymmSiftingBackward (DdManager *table, Move *moves, int size) |
Given a set of moves, returns the DD heap to the position giving the minimum size. More... | |
static void | ddSymmSummary (DdManager *table, int lower, int upper, int *symvars, int *symgroups) |
Counts numbers of symmetric variables and symmetry groups. More... | |
Functions for symmetry-based variable reordering.
Copyright (c) 1995-2015, Regents of the University of Colorado
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the University of Colorado nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
void Cudd_SymmProfile | ( | DdManager * | table, |
int | lower, | ||
int | upper | ||
) |
Prints statistics on symmetric variables.
The information is accurate only if this function is called right after reordering with methods CUDD_REORDER_SYMM_SIFT or CUDD_REORDER_SYMM_SIFT_CONV.
int cuddSymmCheck | ( | DdManager * | table, |
int | x, | ||
int | y | ||
) |
Checks for symmetry of x and y.
Ignores projection functions, unless they are isolated.
int cuddSymmSifting | ( | DdManager * | table, |
int | lower, | ||
int | upper | ||
) |
Symmetric sifting algorithm.
Assumes that no dead nodes are present.
int cuddSymmSiftingConv | ( | DdManager * | table, |
int | lower, | ||
int | upper | ||
) |
Symmetric sifting to convergence algorithm.
Assumes that no dead nodes are present.
Swaps two groups.
x is assumed to be the bottom variable of the first group. y is assumed to be the top variable of the second group. Updates the list of moves.
|
static |
Undoes the swap of two groups.
x is assumed to be the bottom variable of the first group. y is assumed to be the top variable of the second group.
|
static |
Given xLow <= x <= xHigh moves x up and down between the boundaries.
Finds the best position and does the required changes. Assumes that x is not part of a symmetry group.
Given a set of moves, returns the DD heap to the position giving the minimum size.
In case of ties, returns to the closest position giving the minimum size.
|
static |
Given xLow <= x <= xHigh moves x up and down between the boundaries.
Finds the best position and does the required changes. Assumes that x is either an isolated variable, or it is the bottom of a symmetry group. All symmetries may not have been found, because of exceeded growth limit.
Moves x down until either it reaches the bound (xHigh) or the size of the DD heap increases too much.
Assumes that x is the bottom of a symmetry group. Checks x for symmetry to the adjacent variables. If symmetry is found, the symmetry group of x is merged with the symmetry group of the other variable.
Moves x up until either it reaches the bound (xLow) or the size of the DD heap increases too much.
Assumes that x is the top of a symmetry group. Checks x for symmetry to the adjacent variables. If symmetry is found, the symmetry group of x is merged with the symmetry group of the other variable.
|
static |
Counts numbers of symmetric variables and symmetry groups.
|
static |
Comparison function used by qsort.
Used to order the variables according to the number of keys in the subtables.