cudd/cuddAddApply.c File Reference

Apply functions for ADDs and their operators. More...

#include "util.h"
#include "cuddInt.h"
Include dependency graph for cuddAddApply.c:

Functions

DdNodeCudd_addApply (DdManager *dd, DD_AOP op, DdNode *f, DdNode *g)
 Applies op to the corresponding discriminants of f and g.
DdNodeCudd_addPlus (DdManager *dd, DdNode **f, DdNode **g)
 Integer and floating point addition.
DdNodeCudd_addTimes (DdManager *dd, DdNode **f, DdNode **g)
 Integer and floating point multiplication.
DdNodeCudd_addThreshold (DdManager *dd, DdNode **f, DdNode **g)
 f if fg; 0 if f<g.
DdNodeCudd_addSetNZ (DdManager *dd, DdNode **f, DdNode **g)
 This operator sets f to the value of g wherever g != 0.
DdNodeCudd_addDivide (DdManager *dd, DdNode **f, DdNode **g)
 Integer and floating point division.
DdNodeCudd_addMinus (DdManager *dd, DdNode **f, DdNode **g)
 Integer and floating point subtraction.
DdNodeCudd_addMinimum (DdManager *dd, DdNode **f, DdNode **g)
 Integer and floating point min.
DdNodeCudd_addMaximum (DdManager *dd, DdNode **f, DdNode **g)
 Integer and floating point max.
DdNodeCudd_addOneZeroMaximum (DdManager *dd, DdNode **f, DdNode **g)
 Returns 1 if f > g and 0 otherwise.
DdNodeCudd_addDiff (DdManager *dd, DdNode **f, DdNode **g)
 Returns plusinfinity if f=g; returns min(f,g) if f!=g.
DdNodeCudd_addAgreement (DdManager *dd, DdNode **f, DdNode **g)
 f if f==g; background if f!=g.
DdNodeCudd_addOr (DdManager *dd, DdNode **f, DdNode **g)
 Disjunction of two 0-1 ADDs.
DdNodeCudd_addNand (DdManager *dd, DdNode **f, DdNode **g)
 NAND of two 0-1 ADDs.
DdNodeCudd_addNor (DdManager *dd, DdNode **f, DdNode **g)
 NOR of two 0-1 ADDs.
DdNodeCudd_addXor (DdManager *dd, DdNode **f, DdNode **g)
 XOR of two 0-1 ADDs.
DdNodeCudd_addXnor (DdManager *dd, DdNode **f, DdNode **g)
 XNOR of two 0-1 ADDs.
DdNodeCudd_addMonadicApply (DdManager *dd, DD_MAOP op, DdNode *f)
 Applies op to the discriminants of f.
DdNodeCudd_addLog (DdManager *dd, DdNode *f)
 Natural logarithm of an ADD.
DdNodecuddAddApplyRecur (DdManager *dd, DD_AOP op, DdNode *f, DdNode *g)
 Performs the recursive step of Cudd_addApply.
DdNodecuddAddMonadicApplyRecur (DdManager *dd, DD_MAOP op, DdNode *f)
 Performs the recursive step of Cudd_addMonadicApply.

Detailed Description

Apply functions for ADDs and their operators.

Author:
Fabio Somenzi

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.


Function Documentation

DdNode* Cudd_addAgreement ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

f if f==g; background if f!=g.

Returns:
NULL if not a terminal case; f op g otherwise, where f op g is f if f==g; background if f!=g.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addApply ( DdManager dd,
DD_AOP  op,
DdNode f,
DdNode g 
)

Applies op to the corresponding discriminants of f and g.

Returns:
a pointer to the result if succssful; NULL otherwise.
Side effects
None
See also:
Cudd_addMonadicApply Cudd_addPlus Cudd_addTimes Cudd_addThreshold Cudd_addSetNZ Cudd_addDivide Cudd_addMinus Cudd_addMinimum Cudd_addMaximum Cudd_addOneZeroMaximum Cudd_addDiff Cudd_addAgreement Cudd_addOr Cudd_addNand Cudd_addNor Cudd_addXor Cudd_addXnor
Parameters:
dd manager
op operator
f first operand
g second operand
DdNode* Cudd_addDiff ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

Returns plusinfinity if f=g; returns min(f,g) if f!=g.

Returns:
NULL if not a terminal case; f op g otherwise, where f op g is plusinfinity if f=g; min(f,g) if f!=g.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addDivide ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

Integer and floating point division.

Returns:
NULL if not a terminal case; f / g otherwise.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addLog ( DdManager dd,
DdNode f 
)

Natural logarithm of an ADD.

The discriminants of f must be positive double's.

Returns:
NULL if not a terminal case; log(f) otherwise.
Side effects
None
See also:
Cudd_addMonadicApply
DdNode* Cudd_addMaximum ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

Integer and floating point max.

Integer and floating point max for Cudd_addApply.

Returns:
NULL if not a terminal case; max(f,g) otherwise.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addMinimum ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

Integer and floating point min.

Integer and floating point min for Cudd_addApply.

Returns:
NULL if not a terminal case; min(f,g) otherwise.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addMinus ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

Integer and floating point subtraction.

Returns:
NULL if not a terminal case; f - g otherwise.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addMonadicApply ( DdManager dd,
DD_MAOP  op,
DdNode f 
)

Applies op to the discriminants of f.

Returns:
a pointer to the result if succssful; NULL otherwise.
Side effects
None
See also:
Cudd_addApply Cudd_addLog
DdNode* Cudd_addNand ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

NAND of two 0-1 ADDs.

Returns:
NULL if not a terminal case; f NAND g otherwise.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addNor ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

NOR of two 0-1 ADDs.

Returns:
NULL if not a terminal case; f NOR g otherwise.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addOneZeroMaximum ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

Returns 1 if f > g and 0 otherwise.

Used in conjunction with Cudd_addApply.

Returns:
NULL if not a terminal case.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addOr ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

Disjunction of two 0-1 ADDs.

Returns:
NULL if not a terminal case; f OR g otherwise.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addPlus ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

Integer and floating point addition.

Returns:
NULL if not a terminal case; f+g otherwise.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addSetNZ ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

This operator sets f to the value of g wherever g != 0.

Returns:
NULL if not a terminal case; f op g otherwise.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addThreshold ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

f if fg; 0 if f<g.

Threshold operator for Apply (f if f g; 0 if f<g).

Returns:
NULL if not a terminal case; f op g otherwise.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addTimes ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

Integer and floating point multiplication.

This function can be used also to take the AND of two 0-1 ADDs.

Returns:
NULL if not a terminal case; f * g otherwise.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addXnor ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

XNOR of two 0-1 ADDs.

Returns:
NULL if not a terminal case; f XNOR g otherwise.
Side effects
None
See also:
Cudd_addApply
DdNode* Cudd_addXor ( DdManager dd,
DdNode **  f,
DdNode **  g 
)

XOR of two 0-1 ADDs.

Returns:
NULL if not a terminal case; f XOR g otherwise.
Side effects
None
See also:
Cudd_addApply
DdNode* cuddAddApplyRecur ( DdManager dd,
DD_AOP  op,
DdNode f,
DdNode g 
)

Performs the recursive step of Cudd_addApply.

Returns:
a pointer to the result if successful; NULL otherwise.
Side effects
None
See also:
cuddAddMonadicApplyRecur
DdNode* cuddAddMonadicApplyRecur ( DdManager dd,
DD_MAOP  op,
DdNode f 
)

Performs the recursive step of Cudd_addMonadicApply.

Returns:
a pointer to the result if successful; NULL otherwise.
Side effects
None
See also:
cuddAddApplyRecur
 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated on 31 Dec 2015 for cudd by  doxygen 1.6.1