abc-master
|
Go to the source code of this file.
Macros | |
#define | ZDD_MV_OOM (Move *)1 |
Functions | |
static int | cuddZddSymmSiftingAux (DdManager *table, int x, int x_low, int x_high) |
static int | cuddZddSymmSiftingConvAux (DdManager *table, int x, int x_low, int x_high) |
static Move * | cuddZddSymmSifting_up (DdManager *table, int x, int x_low, int initial_size) |
static Move * | cuddZddSymmSifting_down (DdManager *table, int x, int x_high, int initial_size) |
static int | cuddZddSymmSiftingBackward (DdManager *table, Move *moves, int size) |
static int | zdd_group_move (DdManager *table, int x, int y, Move **moves) |
static int | zdd_group_move_backward (DdManager *table, int x, int y) |
static void | cuddZddSymmSummary (DdManager *table, int lower, int upper, int *symvars, int *symgroups) |
void | Cudd_zddSymmProfile (DdManager *table, int lower, int upper) |
int | cuddZddSymmCheck (DdManager *table, int x, int y) |
int | cuddZddSymmSifting (DdManager *table, int lower, int upper) |
int | cuddZddSymmSiftingConv (DdManager *table, int lower, int upper) |
Variables | |
static char rcsid[] | DD_UNUSED = "$Id: cuddZddSymm.c,v 1.29 2004/08/13 18:04:54 fabio Exp $" |
int * | zdd_entry |
int | zddTotalNumberSwapping |
static DdNode * | empty |
#define ZDD_MV_OOM (Move *)1 |
CFile***********************************************************************
FileName [cuddZddSymm.c]
PackageName [cudd]
Synopsis [Functions for symmetry-based ZDD variable reordering.]
Description [External procedures included in this module:
Internal procedures included in this module:
Static procedures included in this module:
]
SeeAlso [cuddSymmetry.c]
Author [Hyong-Kyoon Shin, In-Ho Moon]
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 81 of file cuddZddSymm.c.
void Cudd_zddSymmProfile | ( | DdManager * | table, |
int | lower, | ||
int | upper | ||
) |
AutomaticEnd Function********************************************************************
Synopsis [Prints statistics on symmetric ZDD variables.]
Description []
SideEffects [None]
SeeAlso []
Definition at line 145 of file cuddZddSymm.c.
int cuddZddSymmCheck | ( | DdManager * | table, |
int | x, | ||
int | y | ||
) |
Function********************************************************************
Synopsis [Checks for symmetry of x and y.]
Description [Checks for symmetry of x and y. Ignores projection functions, unless they are isolated. Returns 1 in case of symmetry; 0 otherwise.]
SideEffects [None]
SeeAlso []
Definition at line 197 of file cuddZddSymm.c.
int cuddZddSymmSifting | ( | DdManager * | table, |
int | lower, | ||
int | upper | ||
) |
Function********************************************************************
Synopsis [Symmetric sifting algorithm for ZDDs.]
Description [Symmetric sifting algorithm. Assumes that no dead nodes are present.
Returns 1 plus the number of symmetric variables if successful; 0 otherwise.]
SideEffects [None]
SeeAlso [cuddZddSymmSiftingConv]
Definition at line 302 of file cuddZddSymm.c.
|
static |
Function********************************************************************
Synopsis [Moves x down until either it reaches the bound (x_high) or the size of the ZDD heap increases too much.]
Description [Moves x down until either it reaches the bound (x_high) or the size of the ZDD 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. Returns the set of moves in case of success; ZDD_MV_OOM if memory is full.]
SideEffects [None]
SeeAlso []
Definition at line 1338 of file cuddZddSymm.c.
|
static |
Function********************************************************************
Synopsis [Moves x up until either it reaches the bound (x_low) or the size of the ZDD heap increases too much.]
Description [Moves x up until either it reaches the bound (x_low) or the size of the ZDD 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. Returns the set of moves in case of success; ZDD_MV_OOM if memory is full.]
SideEffects [None]
SeeAlso []
Definition at line 1250 of file cuddZddSymm.c.
|
static |
AutomaticStart
Function********************************************************************
Synopsis [Given x_low <= x <= x_high moves x up and down between the boundaries.]
Description [Given x_low <= x <= x_high 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. Returns 1 if successful; 0 otherwise.]
SideEffects [None]
SeeAlso []
Definition at line 601 of file cuddZddSymm.c.
Function********************************************************************
Synopsis [Given a set of moves, returns the ZDD heap to the position giving the minimum size.]
Description [Given a set of moves, returns the ZDD 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]
SeeAlso []
Definition at line 1429 of file cuddZddSymm.c.
int cuddZddSymmSiftingConv | ( | DdManager * | table, |
int | lower, | ||
int | upper | ||
) |
Function********************************************************************
Synopsis [Symmetric sifting to convergence algorithm for ZDDs.]
Description [Symmetric sifting to convergence algorithm for ZDDs. Assumes that no dead nodes are present.
Returns 1 plus the number of symmetric variables if successful; 0 otherwise.]
SideEffects [None]
SeeAlso [cuddZddSymmSifting]
Definition at line 423 of file cuddZddSymm.c.
|
static |
Function********************************************************************
Synopsis [Given x_low <= x <= x_high moves x up and down between the boundaries.]
Description [Given x_low <= x <= x_high 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. Returns 1 if successful; 0 otherwise.]
SideEffects [None]
SeeAlso []
Definition at line 941 of file cuddZddSymm.c.
|
static |
Function********************************************************************
Synopsis [Counts numbers of symmetric variables and symmetry groups.]
Description []
SideEffects [None]
Definition at line 1671 of file cuddZddSymm.c.
Function********************************************************************
Synopsis [Swaps two groups.]
Description [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. Returns the number of keys in the table if successful; 0 otherwise.]
SideEffects [None]
SeeAlso []
Definition at line 1481 of file cuddZddSymm.c.
|
static |
Function********************************************************************
Synopsis [Undoes the swap of two groups.]
Description [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. Returns 1 if successful; 0 otherwise.]
SideEffects [None]
SeeAlso []
Definition at line 1588 of file cuddZddSymm.c.
|
static |
Definition at line 96 of file cuddZddSymm.c.
|
static |
Definition at line 103 of file cuddZddSymm.c.
int* zdd_entry |
Definition at line 108 of file cuddZddReord.c.
int zddTotalNumberSwapping |
Definition at line 110 of file cuddZddReord.c.