emergency commit
[cl-cudd.git] / distr / sis / cuddPwPt.c
blob823f7b9666b524830591b4cbcc8769b9d39a42f4
1 /**CFile***********************************************************************
3 FileName [cuddPwPt.c]
5 PackageName [cudd]
7 Synopsis [Emulation functions for the power package in SIS.]
9 Description [This file contains functions that are necessary for the
10 power package in SIS. This package directly calls a few functions of
11 the CMU BDD package. Therefore, functions with identical names and
12 equivalent functionality are provided here.
13 External procedures included in this file:
14 <ul>
15 <li> cmu_bdd_zero()
16 <li> cmu_bdd_one()
17 <li> cmu_bdd_if_index()
18 </ul>
19 Internal procedures included in this module:
20 <ul>
21 <li>
22 </ul>]
24 Author [Fabio Somenzi]
26 Copyright [This file was created at the University of Colorado at
27 Boulder. The University of Colorado at Boulder makes no warranty
28 about the suitability of this software for any purpose. It is
29 presented on an AS IS basis.]
31 ******************************************************************************/
33 #include "util.h"
34 #include "array.h"
35 #include "st.h"
36 #include "cuddInt.h"
37 #include "cuddBdd.h"
39 /*---------------------------------------------------------------------------*/
40 /* Constant declarations */
41 /*---------------------------------------------------------------------------*/
43 /*---------------------------------------------------------------------------*/
44 /* Stucture declarations */
45 /*---------------------------------------------------------------------------*/
47 /*---------------------------------------------------------------------------*/
48 /* Type declarations */
49 /*---------------------------------------------------------------------------*/
51 /*---------------------------------------------------------------------------*/
52 /* Variable declarations */
53 /*---------------------------------------------------------------------------*/
55 #ifndef lint
56 static char rcsid[] DD_UNUSED = "$Id: cuddPwPt.c,v 1.3 1997/01/18 19:43:19 fabio Exp $";
57 #endif
59 /*---------------------------------------------------------------------------*/
60 /* Macro declarations */
61 /*---------------------------------------------------------------------------*/
63 /**AutomaticStart*************************************************************/
65 /*---------------------------------------------------------------------------*/
66 /* Static function prototypes */
67 /*---------------------------------------------------------------------------*/
69 /**AutomaticEnd***************************************************************/
72 /*---------------------------------------------------------------------------*/
73 /* Definition of exported functions */
74 /*---------------------------------------------------------------------------*/
77 /**Function********************************************************************
79 Synopsis [Returns a pointer to the one constant.]
81 Description [Returns a pointer to the one constant. Used by the power
82 package in SIS. For new code, use Cudd_ReadOne instead.]
84 SideEffects [None]
86 SeeAlso [Cudd_ReadOne]
88 ******************************************************************************/
89 bdd_node *
90 cmu_bdd_one(dd)
91 bdd_manager *dd;
93 return((bdd_node *)((DdManager *)dd)->one);
95 } /* end of cmu_bdd_one */
98 /**Function********************************************************************
100 Synopsis [Returns a pointer to the zero constant.]
102 Description [Returns a pointer to the zero constant. Used by the power
103 package in SIS. For new code, use Cudd_ReadZero instead.]
105 SideEffects [None]
107 SeeAlso [Cudd_ReadZero]
109 ******************************************************************************/
110 bdd_node *
111 cmu_bdd_zero(dd)
112 bdd_manager *dd;
114 return((bdd_node *)Cudd_Not(((DdManager *)dd)->one));
116 } /* end of cmu_bdd_zero */
119 /**Function********************************************************************
121 Synopsis [Returns the index of the top variable in a BDD.]
123 Description [Returns the index of the top variable in a BDD. Used by
124 the power package in SIS. For new code, use Cudd_ReadIndex instead.]
126 SideEffects [None]
128 SeeAlso [Cudd_ReadIndex]
130 ******************************************************************************/
132 cmu_bdd_if_index(dd, node)
133 bdd_manager *dd;
134 bdd_node *node;
136 return(Cudd_Regular(node)->index);
138 } /* end of cmu_bdd_if_index */
141 /*---------------------------------------------------------------------------*/
142 /* Definition of internal functions */
143 /*---------------------------------------------------------------------------*/
145 /*---------------------------------------------------------------------------*/
146 /* Definition of static functions */
147 /*---------------------------------------------------------------------------*/