abc-master
|
Go to the source code of this file.
Macros | |
#define | CUDD_SWAP_MOVE 0 |
#define | CUDD_LINEAR_TRANSFORM_MOVE 1 |
#define | CUDD_INVERSE_TRANSFORM_MOVE 2 |
#define | BPL 32 |
#define | LOGBPL 5 |
Functions | |
static int | ddLinearUniqueCompare (int *ptrX, int *ptrY) |
static int | ddLinearAndSiftingAux (DdManager *table, int x, int xLow, int xHigh) |
static Move * | ddLinearAndSiftingUp (DdManager *table, int y, int xLow, Move *prevMoves) |
static Move * | ddLinearAndSiftingDown (DdManager *table, int x, int xHigh, Move *prevMoves) |
static int | ddLinearAndSiftingBackward (DdManager *table, int size, Move *moves) |
static Move * | ddUndoMoves (DdManager *table, Move *moves) |
static void | cuddXorLinear (DdManager *table, int x, int y) |
int | Cudd_PrintLinear (DdManager *table) |
int | Cudd_ReadLinear (DdManager *table, int x, int y) |
int | cuddLinearAndSifting (DdManager *table, int lower, int upper) |
int | cuddLinearInPlace (DdManager *table, int x, int y) |
void | cuddUpdateInteractionMatrix (DdManager *table, int xindex, int yindex) |
int | cuddInitLinear (DdManager *table) |
int | cuddResizeLinear (DdManager *table) |
Variables | |
static char rcsid[] | DD_UNUSED = "$Id: cuddLinear.c,v 1.28 2009/02/19 16:21:03 fabio Exp $" |
static int * | entry |
#define BPL 32 |
Definition at line 82 of file cuddLinear.c.
#define CUDD_INVERSE_TRANSFORM_MOVE 2 |
Definition at line 77 of file cuddLinear.c.
#define CUDD_LINEAR_TRANSFORM_MOVE 1 |
Definition at line 76 of file cuddLinear.c.
#define CUDD_SWAP_MOVE 0 |
CFile***********************************************************************
FileName [cuddLinear.c]
PackageName [cudd]
Synopsis [Functions for DD reduction by linear transformations.]
Description [ Internal procedures included in this module:
Static procedures included in this module:
]
Author [Fabio Somenzi]
Copyright [Copyright (c) 1995-2004, 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.]
Definition at line 75 of file cuddLinear.c.
#define LOGBPL 5 |
Definition at line 83 of file cuddLinear.c.
int Cudd_PrintLinear | ( | DdManager * | table | ) |
AutomaticEnd Function********************************************************************
Synopsis [Prints the linear transform matrix.]
Description [Prints the linear transform matrix. Returns 1 in case of success; 0 otherwise.]
SideEffects [none]
SeeAlso []
Definition at line 153 of file cuddLinear.c.
int Cudd_ReadLinear | ( | DdManager * | table, |
int | x, | ||
int | y | ||
) |
Function********************************************************************
Synopsis [Reads an entry of the linear transform matrix.]
Description [Reads an entry of the linear transform matrix.]
SideEffects [none]
SeeAlso []
Definition at line 191 of file cuddLinear.c.
int cuddInitLinear | ( | DdManager * | table | ) |
Function********************************************************************
Synopsis [Initializes the linear transform matrix.]
Description [Initializes the linear transform matrix. Returns 1 if successful; 0 otherwise.]
SideEffects [none]
SeeAlso []
Definition at line 759 of file cuddLinear.c.
int cuddLinearAndSifting | ( | DdManager * | table, |
int | lower, | ||
int | upper | ||
) |
Function********************************************************************
Synopsis [BDD reduction based on combination of sifting and linear transformations.]
Description [BDD reduction based on combination of sifting and linear transformations. Assumes that no dead nodes are present.
Returns 1 if successful; 0 otherwise.]
SideEffects [None]
Definition at line 240 of file cuddLinear.c.
int cuddLinearInPlace | ( | DdManager * | table, |
int | x, | ||
int | y | ||
) |
Function********************************************************************
Synopsis [Linearly combines two adjacent variables.]
Description [Linearly combines two adjacent variables. Specifically, replaces the top variable with the exclusive nor of the two variables. It assumes that no dead nodes are present on entry to this procedure. The procedure then guarantees that no dead nodes will be present when it terminates. cuddLinearInPlace assumes that x < y. Returns the number of keys in the table if successful; 0 otherwise.]
SideEffects [The two subtables corrresponding to variables x and y are modified. The global counters of the unique table are also affected.]
SeeAlso [cuddSwapInPlace]
Definition at line 364 of file cuddLinear.c.
int cuddResizeLinear | ( | DdManager * | table | ) |
Function********************************************************************
Synopsis [Resizes the linear transform matrix.]
Description [Resizes the linear transform matrix. Returns 1 if successful; 0 otherwise.]
SideEffects [none]
SeeAlso []
Definition at line 804 of file cuddLinear.c.
void cuddUpdateInteractionMatrix | ( | DdManager * | table, |
int | xindex, | ||
int | yindex | ||
) |
Function********************************************************************
Synopsis [Updates the interaction matrix.]
Description []
SideEffects [none]
SeeAlso []
Definition at line 718 of file cuddLinear.c.
|
static |
Function********************************************************************
Synopsis [XORs two rows of the linear transform matrix.]
Description [XORs two rows of the linear transform matrix and replaces the first row with the result.]
SideEffects [none]
SeeAlso []
Definition at line 1353 of file cuddLinear.c.
|
static |
Function********************************************************************
Synopsis [Given xLow <= x <= xHigh moves x up and down between the boundaries.]
Description [Given xLow <= x <= xHigh moves x up and down between the boundaries. At each step a linear transformation is tried, and, if it decreases the size of the DD, it is accepted. Finds the best position and does the required changes. Returns 1 if successful; 0 otherwise.]
SideEffects [None]
Definition at line 900 of file cuddLinear.c.
Function********************************************************************
Synopsis [Given a set of moves, returns the DD heap to the order giving the minimum size.]
Description [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. Returns 1 in case of success; 0 otherwise.]
SideEffects [None]
Definition at line 1242 of file cuddLinear.c.
|
static |
Function********************************************************************
Synopsis [Sifts a variable down and applies linear transformations.]
Description [Sifts a variable down and applies linear transformations. Moves x down until either it reaches the bound (xHigh) or the size of the DD heap increases too much. Returns the set of moves in case of success; NULL if memory is full.]
SideEffects [None]
Definition at line 1129 of file cuddLinear.c.
Function********************************************************************
Synopsis [Sifts a variable up and applies linear transformations.]
Description [Sifts a variable up and applies linear transformations. Moves y up until either it reaches the bound (xLow) or the size of the DD heap increases too much. Returns the set of moves in case of success; NULL if memory is full.]
SideEffects [None]
Definition at line 1006 of file cuddLinear.c.
|
static |
AutomaticStart
Function********************************************************************
Synopsis [Comparison function used by qsort.]
Description [Comparison function used by qsort to order the variables according to the number of keys in the subtables. Returns the difference in number of keys between the two variables being compared.]
SideEffects [None]
Definition at line 872 of file cuddLinear.c.
Function********************************************************************
Synopsis [Given a set of moves, returns the DD heap to the order in effect before the moves.]
Description [Given a set of moves, returns the DD heap to the order in effect before the moves. Returns 1 in case of success; 0 otherwise.]
SideEffects [None]
Definition at line 1288 of file cuddLinear.c.
|
static |
Definition at line 99 of file cuddLinear.c.
|
static |
Definition at line 102 of file cuddLinear.c.