cudd/cuddSolve.c File Reference

Boolean equation solver and related functions. More...

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

Functions

DdNodeCudd_SolveEqn (DdManager *bdd, DdNode *F, DdNode *Y, DdNode **G, int **yIndex, int n)
 Implements the solution of F(x,y) = 0.
DdNodeCudd_VerifySol (DdManager *bdd, DdNode *F, DdNode **G, int *yIndex, int n)
 Checks the solution of F(x,y) = 0.
DdNodecuddSolveEqnRecur (DdManager *bdd, DdNode *F, DdNode *Y, DdNode **G, int n, int *yIndex, int i)
 Implements the recursive step of Cudd_SolveEqn.
DdNodecuddVerifySol (DdManager *bdd, DdNode *F, DdNode **G, int *yIndex, int n)
 Implements the recursive step of Cudd_VerifySol.

Detailed Description

Boolean equation solver and related functions.

Author:
Balakrishna Kumthekar

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_SolveEqn ( DdManager bdd,
DdNode F,
DdNode Y,
DdNode **  G,
int **  yIndex,
int  n 
)

Implements the solution of F(x,y) = 0.

The return value is the consistency condition. The y variables are the unknowns and the remaining variables are the parameters. Cudd_SolveEqn allocates an array and fills it with the indices of the unknowns. This array is used by Cudd_VerifySol.

Returns:
the consistency condition if successful; NULL otherwise.
Side effects
The solution is returned in G; the indices of the y variables are returned in yIndex.
See also:
Cudd_VerifySol
Parameters:
bdd CUDD manager
F the left-hand side of the equation
Y the cube of the y variables
G the array of solutions (return parameter)
yIndex index of y variables
n numbers of unknowns
DdNode* Cudd_VerifySol ( DdManager bdd,
DdNode F,
DdNode **  G,
int *  yIndex,
int  n 
)

Checks the solution of F(x,y) = 0.

This procedure substitutes the solution components for the unknowns of F and returns the resulting BDD for F.

Side effects
Frees the memory pointed by yIndex.
See also:
Cudd_SolveEqn
Parameters:
bdd CUDD manager
F the left-hand side of the equation
G the array of solutions
yIndex index of y variables
n numbers of unknowns
DdNode* cuddSolveEqnRecur ( DdManager bdd,
DdNode F,
DdNode Y,
DdNode **  G,
int  n,
int *  yIndex,
int  i 
)

Implements the recursive step of Cudd_SolveEqn.

Returns:
NULL if the intermediate solution blows up or reordering occurs.
Side effects
The parametric solutions are stored in the array G.
See also:
Cudd_SolveEqn, Cudd_VerifySol
Parameters:
bdd CUDD manager
F the left-hand side of the equation
Y the cube of remaining y variables
G the array of solutions
n number of unknowns
yIndex array holding the y variable indices
i level of recursion
DdNode* cuddVerifySol ( DdManager bdd,
DdNode F,
DdNode **  G,
int *  yIndex,
int  n 
)

Implements the recursive step of Cudd_VerifySol.

Side effects
none
See also:
Cudd_VerifySol
Parameters:
bdd CUDD manager
F the left-hand side of the equation
G the array of solutions
yIndex array holding the y variable indices
n number of unknowns
 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated on 31 Dec 2015 for cudd by  doxygen 1.6.1