/usr/include/polybori/extrafwd.h is in libpolybori-dev 0.5~rc1-2.1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | /* Copyright (c) 2005-2007 by The PolyBoRi Team */
#ifndef EXTRA_FWD_HEADER
#define EXTRA_FWD_HEADER
#include <cudd.h>
extern "C"{
/* the result of this operation is primes contained in the product of cubes */
extern DdNode * Extra_zddPrimeProduct( DdManager *dd, DdNode * f, DdNode * g );
/* an alternative implementation of the cover product */
extern DdNode * Extra_zddProductAlt( DdManager *dd, DdNode * f, DdNode * g );
/* returns the set of cubes pair-wise unate with the given cube */
extern DdNode * Extra_zddCompatible( DdManager * dd, DdNode * zCover, DdNode * zCube );
/* a wrapper for the call to Extra_zddIsop() */
extern DdNode * Extra_zddIsopCover( DdManager * dd, DdNode * F1, DdNode * F12 );
/* a wrapper for the call to Extra_zddIsopCover() and Extra_zddPrintCover() */
extern void Extra_zddIsopPrintCover( DdManager * dd, DdNode * F1, DdNode * F12 );
/* a simple cover computation (not ISOP) */
extern DdNode * Extra_zddSimplify( DdManager * dd, DdNode * F1, DdNode * F12 );
/* an alternative ISOP cover computation (faster than Extra_zddIsop()) */
extern DdNode * Extra_zddIsopCoverAlt( DdManager * dd, DdNode * F1, DdNode * F12 );
/* count the number of cubes in the ISOP without building the ISOP as a ZDD */
extern int Extra_zddIsopCubeNum( DdManager * dd, DdNode * F1, DdNode * F12 );
/* computes the disjoint cube cover produced by the bdd paths */
extern DdNode * Extra_zddDisjointCover( DdManager * dd, DdNode * F );
/* performs resolution on the set of clauses (S) w.r.t. variables in zdd Vars */
extern DdNode * Extra_zddResolve( DdManager * dd, DdNode * S, DdNode * Vars );
/* cubes from zC that are not contained by cubes from zD over area bA */
extern DdNode * Extra_zddNotContainedCubesOverArea( DdManager * dd, DdNode * zC, DdNode * zD, DdNode * bA );
extern DdNode * extraZddNotContainedCubesOverArea( DdManager * dd, DdNode * zC, DdNode * zD, DdNode * bA );
/* finds cofactors of the cover w.r.t. the top-most variable without creating new nodes */
/* selects one cube from a ZDD representing the cube cover */
extern DdNode * Extra_zddSelectOneCube( DdManager * dd, DdNode * zS );
/* selects one subset from a ZDD representing the set of subsets */
extern DdNode * Extra_zddSelectOneSubset( DdManager * dd, DdNode * zS );
/* checks unateness of the cover */
extern int Extra_zddCheckUnateness( DdManager * dd, DdNode * zCover );
/* computes the BDD of the area covered by the max number of cubes in a ZDD. */
extern DdNode * Extra_zddGetMostCoveredArea( DdManager * dd, DdNode * zC, int * nOverlaps );
/*=== extraZddExor.c ==============================================================*/
/* computes the Exclusive-OR-type union of two cube sets */
extern DdNode * Extra_zddUnionExor( DdManager * dd, DdNode * S, DdNode * T );
/* given two sets of cubes, computes the set of pair-wise supercubes */
extern DdNode * Extra_zddSupercubes( DdManager *dd, DdNode * zA, DdNode * zB );
/* selects cubes from zA that have a distance-1 cube in zB */
extern DdNode * Extra_zddSelectDist1Cubes( DdManager *dd, DdNode * zA, DdNode * zB );
/* computes the set of fast ESOP covers for the multi-output function */
extern int Extra_zddFastEsopCoverArray( DdManager * dd, DdNode ** bFs, DdNode ** zCs, int nFs );
/* computes a fast ESOP cover for the single-output function */
//extern DdNode * Extra_zddFastEsopCover( DdManager * dd, DdNode * bF, st_table * Visited, int * pnCubes );
/*=== extraZddFactor.c ================================================================*/
/* counting the number of literals in the factored form */
extern int Extra_bddFactoredFormLiterals( DdManager * dd, DdNode * bOnSet, DdNode * bOnDcSet );
extern DdNode * Extra_zddFactoredFormLiterals( DdManager * dd, DdNode * zCover );
extern DdNode * Extra_zddLFLiterals( DdManager * dd, DdNode * zCover, DdNode * zCube );
/* computing a quick divisor */
extern DdNode * Extra_zddQuickDivisor( DdManager * dd, DdNode * zCover );
extern DdNode * Extra_zddLevel0Kernel( DdManager * dd, DdNode * zCover );
/* division with quotient and remainder */
extern void Extra_zddDivision( DdManager * dd, DdNode * zCover, DdNode * zDiv, DdNode ** zQuo, DdNode ** zRem );
/* the common cube */
extern DdNode * Extra_zddCommonCubeFast( DdManager * dd, DdNode * zCover );
/* the cube of literals that occur more than once */
extern DdNode * Extra_zddMoreThanOnceCubeFast( DdManager * dd, DdNode * zCover );
/* making the cover cube-free */
extern DdNode * Extra_zddMakeCubeFree( DdManager * dd, DdNode * zCover, int iZVar );
/* testing whether the cover is cube-free */
extern int Extra_zddTestCubeFree( DdManager * dd, DdNode * zCover );
/* counts the number of literals in the simple cover */
extern int Extra_zddCountLiteralsSimple( DdManager * dd, DdNode * zCover );
/* tests whether the cover contains more than one cube */
extern int Extra_zddMoreThanOneCube( DdManager * dd, DdNode * zCover );
/* the cube from levels */
extern DdNode * Extra_zddCombinationFromLevels( DdManager * dd, int * pLevels, int nVars );
/* determines common literals */
extern int Extra_zddCommonLiterals( DdManager * dd, DdNode * zCover, int iZVar, int * pLevels, int * pLiterals );
/* determines the set of literals that occur more than once */
extern int Extra_zddMoreThanOneLiteralSet( DdManager * dd, DdNode * zCover, int StartLevel, int * pVars, int * pCounters );
/* tests whether the given literal literal occurs more than once */
extern int Extra_zddMoreThanOneLiteral( DdManager * dd, DdNode * zCover, int iZVar );
/*=== extraZddGraph.c ==============================================================*/
/* construct the set of cliques */
extern DdNode * Extra_zddCliques( DdManager *dd, DdNode * G, int fMaximal );
/* construct the set of all maximal cliques */
extern DdNode * Extra_zddMaxCliques( DdManager *dd, DdNode * G );
/* incrementally contruct the set of cliques */
extern DdNode * Extra_zddIncremCliques( DdManager *dd, DdNode * G, DdNode * C );
extern DdNode * Extra_zddIsopCoverAllVars( DdManager * dd, DdNode * F1, DdNode * F12 );
extern DdNode * Extra_zddIsopCoverUnateVars( DdManager * dd, DdNode * F1, DdNode * F12 );
/* computes an ISOP cover with a random ordering of variables */
extern DdNode * Extra_zddIsopCoverRandom( DdManager * dd, DdNode * F1, DdNode * F12 );
extern DdNode * Extra_zddIsopCoverReduced( DdManager * dd, DdNode * F1, DdNode * F12 );
/*=== extraZddLitCount.c ==============================================================*/
/* count the number of times each variable occurs in the combinations */
extern int * Extra_zddLitCount( DdManager * dd, DdNode * Set );
/* count the number of literals in one ZDD combination */
extern int Extra_zddLitCountComb( DdManager * dd, DdNode * zComb );
/*=== extraZddMaxMin.c ==============================================================*/
/* maximal/minimimal */
extern DdNode * Extra_zddMaximal( DdManager *dd, DdNode * S );
extern DdNode * Extra_zddMinimal( DdManager *dd, DdNode * S );
/* maximal/minimal of the union of two sets of subsets */
extern DdNode * Extra_zddMaxUnion( DdManager *dd, DdNode * S, DdNode * T );
extern DdNode * Extra_zddMinUnion( DdManager *dd, DdNode * S, DdNode * T );
/* dot/cross products */
extern DdNode * Extra_zddDotProduct( DdManager *dd, DdNode * S, DdNode * T );
extern DdNode * Extra_zddExorProduct( DdManager *dd, DdNode * S, DdNode * T );
extern DdNode * Extra_zddCrossProduct( DdManager *dd, DdNode * S, DdNode * T );
extern DdNode * Extra_zddMaxDotProduct( DdManager *dd, DdNode * S, DdNode * T );
/*=== extraZddMisc.c ==============================================================*/
/* create the combination composed of a single ZDD variable */
extern DdNode * Extra_zddVariable( DdManager * dd, int iVar );
/* build a ZDD for a combination of variables */
extern DdNode * Extra_zddCombination( DdManager *dd, int* VarValues, int nVars );
/* the set of all possible combinations of the given set of variables */
extern DdNode * Extra_zddUniverse( DdManager * dd, DdNode * VarSet );
/* build the set of all tuples of K variables out of N */
extern DdNode * Extra_zddTuples( DdManager * dd, int K, DdNode * zVarsN );
/* build the set of all tuples of K variables out of N from the BDD cube */
extern DdNode * Extra_zddTuplesFromBdd( DdManager * dd, int K, DdNode * bVarsN );
/* convert the set of singleton combinations into one combination */
extern DdNode * Extra_zddSinglesToComb( DdManager * dd, DdNode * Singles );
/* returns the set of combinations containing the max/min number of elements */
extern DdNode * Extra_zddMaximum( DdManager * dd, DdNode * S, int * nVars );
extern DdNode * Extra_zddMinimum( DdManager * dd, DdNode * S, int * nVars );
/* returns the random set of k combinations of n elements with average density d */
extern DdNode * Extra_zddRandomSet( DdManager * dd, int n, int k, double d );
/* other utilities */
extern DdNode * Extra_zddCoveredByArea( DdManager *dd, DdNode * zC, DdNode * bA );
extern DdNode * Extra_zddNotCoveredByCover( DdManager *dd, DdNode * zC, DdNode * zD );
extern DdNode * Extra_zddOverlappingWithArea( DdManager *dd, DdNode * zC, DdNode * bA );
extern DdNode * Extra_zddConvertToBdd( DdManager *dd, DdNode * zC );
extern DdNode * Extra_zddConvertToBddUnate( DdManager *dd, DdNode * zC );
extern DdNode * Extra_zddConvertEsopToBdd( DdManager *dd, DdNode * zC );
extern DdNode * Extra_zddConvertToBddAndAdd( DdManager *dd, DdNode * zC, DdNode * bA );
extern DdNode * Extra_zddSingleCoveredArea( DdManager *dd, DdNode * zC );
extern DdNode * Extra_zddConvertBddCubeIntoZddCube( DdManager *dd, DdNode * bCube );
/*=== extraZddPermute.c ==============================================================*/
/* quantifications */
extern DdNode * Extra_zddExistAbstract( DdManager *manager, DdNode * F, DdNode * cube );
/* changes the value of several variables in the ZDD */
extern DdNode * Extra_zddChangeVars( DdManager *manager, DdNode * F, DdNode * cube );
/* permutes variables in ZDD */
extern DdNode * Extra_zddPermute ( DdManager *dd, DdNode * N, int *permut );
/* computes combinations in F with vars in Cube having the negative polarity */
extern DdNode * Extra_zddCofactor0( DdManager * dd, DdNode * f, DdNode * cube );
/* computes combinations in F with vars in Cube having the positive polarity */
extern DdNode * Extra_zddCofactor1( DdManager * dd, DdNode * f, DdNode * cube, int fIncludeVars );
/*=== extraZddSubSup.c ==============================================================*/
/* subset/supset operations */
extern DdNode * Extra_zddSubSet ( DdManager *dd, DdNode * X, DdNode * Y );
extern DdNode * Extra_zddSupSet ( DdManager *dd, DdNode * X, DdNode * Y );
extern DdNode * Extra_zddNotSubSet( DdManager *dd, DdNode * X, DdNode * Y );
extern DdNode * Extra_zddNotSupSet( DdManager *dd, DdNode * X, DdNode * Y );
extern DdNode * Extra_zddMaxNotSupSet( DdManager *dd, DdNode * X, DdNode * Y );
/* check whether the empty combination belongs to the set of subsets */
extern int Extra_zddEmptyBelongs ( DdManager *dd, DdNode* zS );
/* check whether the set consists of one subset only */
extern int Extra_zddIsOneSubset( DdManager *dd, DdNode* zS );
}
#endif
|