cudd
3.0.0
The University of Colorado Decision Diagram Package
|
BDD test functions for the nanotrav program. More...
Functions | |
int | Ntr_TestMinimization (DdManager *dd, BnetNetwork *net1, BnetNetwork *net2, NtrOptions *option) |
Tests BDD minimization functions. More... | |
int | Ntr_TestDensity (DdManager *dd, BnetNetwork *net1, NtrOptions *option) |
Tests BDD density-related functions. More... | |
int | Ntr_TestDecomp (DdManager *dd, BnetNetwork *net1, NtrOptions *option) |
Tests BDD decomposition functions. More... | |
int | Ntr_VerifyEquivalence (DdManager *dd, BnetNetwork *net1, BnetNetwork *net2, NtrOptions *option) |
Verify equivalence of combinational networks. More... | |
int | Ntr_TestCofactorEstimate (DdManager *dd, BnetNetwork *net, NtrOptions *option) |
Tests BDD cofactor estimate functions. More... | |
int | Ntr_TestClipping (DdManager *dd, BnetNetwork *net1, BnetNetwork *net2, NtrOptions *option) |
Tests BDD clipping functions. More... | |
int | Ntr_TestEquivAndContain (DdManager *dd, BnetNetwork *net1, BnetNetwork *net2, NtrOptions *option) |
Tests BDD equivalence and containment with don't cares. More... | |
int | Ntr_TestClosestCube (DdManager *dd, BnetNetwork *net, NtrOptions *option) |
Tests the Cudd_bddClosestCube function. More... | |
int | Ntr_TestTwoLiteralClauses (DdManager *dd, BnetNetwork *net1, NtrOptions *option) |
Tests extraction of two-literal clauses. More... | |
int | Ntr_TestCharToVect (DdManager *dd, BnetNetwork *net1, NtrOptions *option) |
Test char-to-vect conversion. More... | |
static int | ntrTestMinimizationAux (DdManager *dd, BnetNetwork *net1, DdNode *f, char *name, DdNode *c, char *cname, NtrOptions *option) |
Processes one BDD for Ntr_TestMinimization. More... | |
static int | ntrTestDensityAux (DdManager *dd, BnetNetwork *net, DdNode *f, char *name, NtrOptions *option) |
Processes one BDD for Ntr_TestDensity. More... | |
static int | ntrTestDecompAux (DdManager *dd, BnetNetwork *net, DdNode *f, char *name, NtrOptions *option) |
Processes one BDD for Ntr_TestDecomp. More... | |
static int | ntrTestCofEstAux (DdManager *dd, BnetNetwork *net, DdNode *f, char *name, NtrOptions *option) |
Processes one BDD for Ntr_TestCofactorEstimate. More... | |
static int | ntrTestClippingAux (DdManager *dd, BnetNetwork *net1, DdNode *f, char *name, DdNode *g, char *gname, NtrOptions *option) |
Processes one BDD for Ntr_TestClipping. More... | |
static int | ntrTestEquivAndContainAux (DdManager *dd, BnetNetwork *net1, DdNode *f, char *fname, DdNode *g, char *gname, DdNode *d, char *dname, NtrOptions *option) |
Processes one triplet of BDDs for Ntr_TestEquivAndContain. More... | |
static int | ntrTestClosestCubeAux (DdManager *dd, BnetNetwork *net, DdNode *f, char *fname, DdNode *g, char *gname, DdNode **vars, NtrOptions *option) |
Processes one pair of BDDs for Ntr_TestClosestCube. More... | |
static int | ntrTestCharToVect (DdManager *dd, DdNode *f, NtrOptions *option) |
Processes one BDDs for Ntr_TestCharToVect. More... | |
static DdNode * | ntrCompress2 (DdManager *dd, DdNode *f, int nvars, int threshold) |
Try hard to squeeze a BDD. More... | |
static BnetNode * | ntrNodeIsBuffer (BnetNode *nd, st_table *hash) |
Checks whether node is a buffer. More... | |
BDD test functions for the nanotrav program.
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.
int Ntr_TestCharToVect | ( | DdManager * | dd, |
BnetNetwork * | net1, | ||
NtrOptions * | option | ||
) |
Test char-to-vect conversion.
int Ntr_TestClipping | ( | DdManager * | dd, |
BnetNetwork * | net1, | ||
BnetNetwork * | net2, | ||
NtrOptions * | option | ||
) |
Tests BDD clipping functions.
int Ntr_TestClosestCube | ( | DdManager * | dd, |
BnetNetwork * | net, | ||
NtrOptions * | option | ||
) |
Tests the Cudd_bddClosestCube function.
int Ntr_TestCofactorEstimate | ( | DdManager * | dd, |
BnetNetwork * | net, | ||
NtrOptions * | option | ||
) |
Tests BDD cofactor estimate functions.
int Ntr_TestDecomp | ( | DdManager * | dd, |
BnetNetwork * | net1, | ||
NtrOptions * | option | ||
) |
Tests BDD decomposition functions.
int Ntr_TestDensity | ( | DdManager * | dd, |
BnetNetwork * | net1, | ||
NtrOptions * | option | ||
) |
Tests BDD density-related functions.
int Ntr_TestEquivAndContain | ( | DdManager * | dd, |
BnetNetwork * | net1, | ||
BnetNetwork * | net2, | ||
NtrOptions * | option | ||
) |
Tests BDD equivalence and containment with don't cares.
Tests functions for BDD equivalence and containment with don't cares, including Cudd_EquivDC and Cudd_bddLeqUnless. This function uses as care set the first output of net2 and checkes equivalence and containment for of all the output pairs of net1.
int Ntr_TestMinimization | ( | DdManager * | dd, |
BnetNetwork * | net1, | ||
BnetNetwork * | net2, | ||
NtrOptions * | option | ||
) |
Tests BDD minimization functions.
Tests BDD minimization functions, including leaf-identifying compaction, squeezing, and restrict. This function uses as constraint the first output of net2 and computes positive and negative cofactors of all the outputs of net1. For each cofactor, it checks whether compaction was safe (cofactor not larger than original function) and that the expansion based on each minimization function (used as a generalized cofactor) equals the original function.
int Ntr_TestTwoLiteralClauses | ( | DdManager * | dd, |
BnetNetwork * | net1, | ||
NtrOptions * | option | ||
) |
Tests extraction of two-literal clauses.
int Ntr_VerifyEquivalence | ( | DdManager * | dd, |
BnetNetwork * | net1, | ||
BnetNetwork * | net2, | ||
NtrOptions * | option | ||
) |
Verify equivalence of combinational networks.
The two networks are supposed to have the same names for inputs and outputs. The only exception is that the second network may miss output buffers that are present in the first network. This function tries to match both the output and the input of the buffer.
Try hard to squeeze a BDD.
Checks whether node is a buffer.
|
static |
Processes one BDDs for Ntr_TestCharToVect.
|
static |
Processes one BDD for Ntr_TestClipping.
It checks whether clipping was correct.
|
static |
Processes one pair of BDDs for Ntr_TestClosestCube.
|
static |
Processes one BDD for Ntr_TestCofactorEstimate.
|
static |
Processes one BDD for Ntr_TestDecomp.
|
static |
Processes one BDD for Ntr_TestDensity.
|
static |
Processes one triplet of BDDs for Ntr_TestEquivAndContain.
|
static |
Processes one BDD for Ntr_TestMinimization.