abc-master
|
Go to the source code of this file.
Macros | |
#define | TESTCUDD_VERSION "TestCudd Version #1.0, Release date 3/17/01" |
Functions | |
static void | usage (char *prog) |
static FILE * | open_file (char *filename, const char *mode) |
static int | testIterators (DdManager *dd, DdNode *M, DdNode *C, int pr) |
static int | testXor (DdManager *dd, DdNode *f, int pr, int nvars) |
static int | testHamming (DdManager *dd, DdNode *f, int pr) |
static int | testWalsh (DdManager *dd, int N, int cmu, int approach, int pr) |
int | main (int argc, char **argv) |
Variables | |
static char rcsid[] | DD_UNUSED = "$Id: testcudd.c,v 1.20 2009/03/08 02:49:02 fabio Exp $" |
static const char * | onames [] = { "C", "M" } |
#define TESTCUDD_VERSION "TestCudd Version #1.0, Release date 3/17/01" |
CFile***********************************************************************
FileName [testcudd.c]
PackageName [cudd]
Synopsis [Sanity check tests for some CUDD functions.]
Description [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.]
SeeAlso []
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 61 of file testcudd.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
AutomaticEnd Function********************************************************************
Synopsis [Main function for testcudd.]
Description []
SideEffects [None]
SeeAlso []
Definition at line 101 of file testcudd.c.
|
static |
Function********************************************************************
Synopsis [Opens a file.]
Description [Opens a file, or fails with an error message and exits. Allows '-' as a synonym for standard input.]
SideEffects [None]
SeeAlso []
Definition at line 707 of file testcudd.c.
Function********************************************************************
Synopsis [Tests the Hamming distance functions.]
Description [Tests the Hammming distance functions. Returns 1 if successful; 0 otherwise.]
SideEffects [None]
SeeAlso []
Definition at line 1015 of file testcudd.c.
Function********************************************************************
Synopsis [Tests iterators.]
Description [Tests iterators on cubes and nodes.]
SideEffects [None]
SeeAlso []
Definition at line 822 of file testcudd.c.
|
static |
Function********************************************************************
Synopsis [Tests Walsh matrix multiplication.]
Description [Tests Walsh matrix multiplication. Return 1 if successful; 0 otherwise.]
SideEffects [May create new variables in the manager.]
SeeAlso []
Definition at line 735 of file testcudd.c.
Function********************************************************************
Synopsis [Tests the functions related to the exclusive OR.]
Description [Tests the functions related to the exclusive OR. It builds the boolean difference of the given function in three different ways and checks that the results is the same. Returns 1 if successful; 0 otherwise.]
SideEffects [None]
SeeAlso []
Definition at line 938 of file testcudd.c.
|
static |
AutomaticStart
Function********************************************************************
Synopsis [Prints usage info for testcudd.]
Description []
SideEffects [None]
SeeAlso []
Definition at line 654 of file testcudd.c.
|
static |
Definition at line 68 of file testcudd.c.
Definition at line 71 of file testcudd.c.