cudd
3.0.0
The University of Colorado Decision Diagram Package
|
Sanity check tests for some CUDD functions. More...
Macros | |
#define | TESTCUDD_VERSION "TestCudd Version #1.0, Release date 3/17/01" |
Functions | |
int | main (int argc, char *const *argv) |
Main function for testcudd. More... | |
static void | usage (char *prog) |
Prints usage info for testcudd. More... | |
static FILE * | open_file (char *filename, const char *mode) |
Opens a file. More... | |
static int | testWalsh (DdManager *dd, int N, int cmu, int approach, int pr) |
Tests Walsh matrix multiplication. More... | |
static int | testIterators (DdManager *dd, DdNode *M, DdNode *C, int pr) |
Tests iterators on cubes and nodes. More... | |
static int | testXor (DdManager *dd, DdNode *f, int pr, int nvars) |
Tests the functions related to the exclusive OR. More... | |
static int | testHamming (DdManager *dd, DdNode *f, int pr) |
Tests the Hamming distance functions. More... | |
static int | testSupport (DdManager *dd, DdNode *f, DdNode *g, int pr) |
Tests the support functions. More... | |
Variables | |
static const char * | onames [] = { "C", "M" } |
Sanity check tests for some CUDD functions.
testcudd reads a matrix with real coefficients and transforms it into an ADD. It then performs various operations on the ADD and on the BDD corresponding to the ADD pattern. Finally, testcudd tests functions relate to Walsh matrices and matrix multiplication.
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 main | ( | int | argc, |
char *const * | argv | ||
) |
Main function for testcudd.
< Initial size of subtables
< readable true
|
static |
Opens a file.
Opens a file, or fails with an error message and exits. Allows '-' as a synonym for standard input.
Tests the Hamming distance functions.
Tests iterators on cubes and nodes.
< readable true
< readable true
< readable true
Tests the support functions.
|
static |
Tests Walsh matrix multiplication.
Tests the functions related to the exclusive OR.
Builds the boolean difference of the given function in three different ways and checks that the results is the same.
|
static |
Prints usage info for testcudd.