cudd  3.0.0
The University of Colorado Decision Diagram Package
Functions
testextra.c File Reference

This program tests selected features of CUDD. More...

#include "util.h"
#include "epd.h"
#include "cudd.h"
#include <setjmp.h>
Include dependency graph for testextra.c:

Functions

int main (int argc, char const *const *argv)
 Main program for testextra.
 
static int testBdd (int verbosity)
 Basic BDD test. More...
 
static int testAdd (int verbosity)
 Basic ADD test. More...
 
static int testZdd (int verbosity)
 Basic test of ZDDs. More...
 
static int testApa (int verbosity)
 Basic test of arbitrary-precision arithmetic. More...
 
static int testCount (int verbosity)
 Basic test of Cudd_CountMinterm(). More...
 
static int testLdbl (int verbosity)
 Basic test of long double and EPD minterm computation. More...
 
static int testTimeout (int verbosity)
 Basic test of timeout handler. More...
 
static void timeoutHandler (DdManager *dd, void *arg)
 Timeout handler.
 

Detailed Description

This program tests selected features of CUDD.

Author
Fabio Somenzi

Function Documentation

◆ testAdd()

static int testAdd ( int  verbosity)
static

Basic ADD test.

Returns
0 if successful; -1 otherwise.

< Initial size of subtables
< Default size of the cache

◆ testApa()

static int testApa ( int  verbosity)
static

Basic test of arbitrary-precision arithmetic.

Returns
0 if successful; -1 otherwise.

◆ testBdd()

static int testBdd ( int  verbosity)
static

Basic BDD test.

Returns
0 if successful; -1 otherwise.

< Initial size of subtables
< Default size of the cache

◆ testCount()

static int testCount ( int  verbosity)
static

Basic test of Cudd_CountMinterm().

Returns
0 if successful; -1 otherwise.

< Initial size of subtables
< Default size of the cache

◆ testLdbl()

static int testLdbl ( int  verbosity)
static

Basic test of long double and EPD minterm computation.

Returns
0 if successful; -1 otherwise.

< Initial size of subtables
< Default size of the cache

◆ testTimeout()

static int testTimeout ( int  verbosity)
static

Basic test of timeout handler.

Sets a short timeout and then tries to build a function with a large BDD. Strives to avoid leaking nodes.

Returns
0 if successful; -1 otherwise.

< Initial size of subtables
< Default size of the cache

◆ testZdd()

static int testZdd ( int  verbosity)
static

Basic test of ZDDs.

Returns
0 if successful; -1 otherwise.

< Initial size of subtables
< Default size of the cache