svf-lib 1.0.1825 → 1.0.1827

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/SVF-linux/Release-build/svf/libSvfCore.a +0 -0
  2. package/{SVF-osx → SVF-linux}/Release-build/svf-llvm/extapi.bc +459 -460
  3. package/SVF-linux/Release-build/svf-llvm/libSvfLLVM.a +0 -0
  4. package/SVF-osx/svf/include/Util/WorkList.h +0 -0
  5. package/SVF-osx/svf-llvm/include/SVF-LLVM/CPPUtil.h +37 -12
  6. package/SVF-osx/svf-llvm/include/SVF-LLVM/DCHG.h +1 -9
  7. package/SVF-osx/svf-llvm/include/SVF-LLVM/ICFGBuilder.h +1 -0
  8. package/SVF-osx/svf-llvm/include/SVF-LLVM/LLVMModule.h +0 -1
  9. package/SVF-osx/svf-llvm/include/SVF-LLVM/LLVMUtil.h +4 -108
  10. package/package.json +1 -1
  11. package/SVF-osx/Release-build/svf/libSvfCore.a +0 -0
  12. package/SVF-osx/Release-build/svf-llvm/libSvfLLVM.a +0 -0
  13. package/SVF-osx/svf/include/AbstractExecution/WTO.h +0 -892
  14. package/SVF-osx/svf/include/CFL/CFLData.h +0 -316
  15. package/SVF-osx/svf/include/CFL/CFLDataBuilder.h +0 -91
  16. package/SVF-osx/svf/include/CFL/CFLGrammar.h +0 -468
  17. package/SVF-osx/svf/include/CFL/CFLGrammar.txt +0 -15
  18. package/SVF-osx/svf/include/CFL/CFLGrammarDev.txt +0 -16
  19. package/SVF-osx/svf/include/CFL/PEGGrammar.txt +0 -11
  20. package/SVF-osx/svf/include/CFL/VFG.txt +0 -7
  21. package/SVF-osx/svf/include/CUDD/cudd.h +0 -688
  22. package/SVF-osx/svf/include/CUDD/cuddInt.h +0 -1145
  23. package/SVF-osx/svf/include/CUDD/epd.h +0 -192
  24. package/SVF-osx/svf/include/CUDD/mtr.h +0 -180
  25. package/SVF-osx/svf/include/CUDD/mtrInt.h +0 -92
  26. package/SVF-osx/svf/include/CUDD/st.h +0 -230
  27. package/SVF-osx/svf/include/CUDD/util.h +0 -196
  28. package/SVF-osx/svf/include/Graphs/ExternalPAG.h +0 -147
  29. package/SVF-osx/svf/include/Graphs/ICFGWrapper.h +0 -726
  30. package/SVF-osx/svf/include/Graphs/OfflineConsG.h +0 -151
  31. package/SVF-osx/svf/include/Graphs/PAG.h +0 -932
  32. package/SVF-osx/svf/include/Graphs/PAGEdge.h +0 -738
  33. package/SVF-osx/svf/include/Graphs/PAGNode.h +0 -843
  34. package/SVF-osx/svf/include/MTA/LockResultValidator.h +0 -118
  35. package/SVF-osx/svf/include/MTA/MTAAnnotator.h +0 -118
  36. package/SVF-osx/svf/include/MemoryModel/LocationSet.h +0 -157
  37. package/SVF-osx/svf/include/MemoryModel/MemModel.h +0 -414
  38. package/SVF-osx/svf/include/MemoryModel/PAGBuilderFromFile.h +0 -80
  39. package/SVF-osx/svf/include/MemoryModel/PTAStat.h +0 -174
  40. package/SVF-osx/svf/include/MemoryModel/PTAType.h +0 -368
  41. package/SVF-osx/svf/include/MemoryModel/PointsToDFDS.h +0 -514
  42. package/SVF-osx/svf/include/MemoryModel/PointsToDS.h +0 -289
  43. package/SVF-osx/svf/include/MemoryModel/SVFIR.h +0 -650
  44. package/SVF-osx/svf/include/MemoryModel/SVFStatements.h +0 -1101
  45. package/SVF-osx/svf/include/MemoryModel/SVFSymbols.h +0 -648
  46. package/SVF-osx/svf/include/MemoryModel/SVFVariables.h +0 -721
  47. package/SVF-osx/svf/include/MemoryModel/SymbolTableInfo.h +0 -713
  48. package/SVF-osx/svf/include/SABER/PathCondAllocator.h +0 -303
  49. package/SVF-osx/svf/include/SABER/SaberAnnotator.h +0 -72
  50. package/SVF-osx/svf/include/SVFIR/SVFIRRW.h +0 -1302
  51. package/SVF-osx/svf/include/SVFIR/SVFModuleRW.h +0 -197
  52. package/SVF-osx/svf/include/Util/BDDExpr.h +0 -198
  53. package/SVF-osx/svf/include/Util/BasicTypes.h +0 -768
  54. package/SVF-osx/svf/include/Util/CFLSolver.h +0 -186
  55. package/SVF-osx/svf/include/Util/Conditions.h +0 -421
  56. package/SVF-osx/svf/include/Util/CppUtil.h +0 -81
  57. package/SVF-osx/svf/include/Util/ExeState.h +0 -197
  58. package/SVF-osx/svf/include/Util/ExtAPI.json +0 -5853
  59. package/SVF-osx/svf/include/Util/IRAnnotator.h +0 -321
  60. package/SVF-osx/svf/include/Util/PathCondAllocator.h +0 -286
  61. package/SVF-osx/svf/include/Util/PathDPItem.h +0 -310
  62. package/SVF-osx/svf/include/Util/SCC.h +0 -352
  63. package/SVF-osx/svf/include/Util/SVFBasicTypes.h +0 -245
  64. package/SVF-osx/svf/include/Util/SVFInstruction.h +0 -40
  65. package/SVF-osx/svf/include/Util/SVFModule.h +0 -278
  66. package/SVF-osx/svf/include/Util/SymState.h +0 -118
  67. package/SVF-osx/svf/include/Util/TypeBasedHeapCloning.h +0 -188
  68. package/SVF-osx/svf/include/WPA/AndersenSFR.h +0 -160
  69. package/SVF-osx/svf/include/WPA/FlowSensitiveTBHC.h +0 -122
  70. package/SVF-osx/svf/include/WPA/TypeBasedHeapCloning.h +0 -188
  71. package/SVF-osx/svf-llvm/include/SVF-LLVM/IRAnnotator.h +0 -324
@@ -1,1145 +0,0 @@
1
- /**CHeaderFile*****************************************************************
2
-
3
- FileName [cuddInt.h]
4
-
5
- PackageName [cudd]
6
-
7
- Synopsis [Internal data structures of the CUDD package.]
8
-
9
- Description []
10
-
11
- SeeAlso []
12
-
13
- Author [Fabio Somenzi]
14
-
15
- Copyright [Copyright (c) 1995-2012, Regents of the University of Colorado
16
-
17
- All rights reserved.
18
-
19
- Redistribution and use in source and binary forms, with or without
20
- modification, are permitted provided that the following conditions
21
- are met:
22
-
23
- Redistributions of source code must retain the above copyright
24
- notice, this list of conditions and the following disclaimer.
25
-
26
- Redistributions in binary form must reproduce the above copyright
27
- notice, this list of conditions and the following disclaimer in the
28
- documentation and/or other materials provided with the distribution.
29
-
30
- Neither the name of the University of Colorado nor the names of its
31
- contributors may be used to endorse or promote products derived from
32
- this software without specific prior written permission.
33
-
34
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
37
- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
38
- COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
39
- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
40
- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
41
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
42
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
43
- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
44
- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45
- POSSIBILITY OF SUCH DAMAGE.]
46
-
47
- Revision [$Id: cuddInt.h,v 1.142 2012/02/05 01:07:19 fabio Exp $]
48
-
49
- ******************************************************************************/
50
-
51
- #ifndef _CUDDINT
52
- #define _CUDDINT
53
-
54
-
55
- /*---------------------------------------------------------------------------*/
56
- /* Nested includes */
57
- /*---------------------------------------------------------------------------*/
58
-
59
- #ifdef DD_MIS
60
- #include "array.h"
61
- #include "list.h"
62
- #include "st.h"
63
- #include "espresso.h"
64
- #include "node.h"
65
- #ifdef SIS
66
- #include "graph.h"
67
- #include "astg.h"
68
- #endif
69
- #include "network.h"
70
- #endif
71
-
72
- #include <math.h>
73
- #include "cudd.h"
74
- #include "st.h"
75
-
76
- #ifdef __cplusplus
77
- extern "C" {
78
- #endif
79
-
80
- #if defined(__GNUC__)
81
- # define DD_INLINE __inline__
82
- # if (__GNUC__ >2 || __GNUC_MINOR__ >=7)
83
- # define DD_UNUSED __attribute__ ((__unused__))
84
- # else
85
- # define DD_UNUSED
86
- # endif
87
- #else
88
- # if defined(__cplusplus)
89
- # define DD_INLINE inline
90
- # else
91
- # define DD_INLINE
92
- # endif
93
- # define DD_UNUSED
94
- #endif
95
-
96
-
97
- /*---------------------------------------------------------------------------*/
98
- /* Constant declarations */
99
- /*---------------------------------------------------------------------------*/
100
-
101
- #define DD_MAXREF ((DdHalfWord) ~0)
102
-
103
- #define DD_DEFAULT_RESIZE 10 /* how many extra variables */
104
- /* should be added when resizing */
105
- #define DD_MEM_CHUNK 1022
106
-
107
- /* These definitions work for CUDD_VALUE_TYPE == double */
108
- #define DD_ONE_VAL (1.0)
109
- #define DD_ZERO_VAL (0.0)
110
- #define DD_EPSILON (1.0e-12)
111
-
112
- /* The definitions of +/- infinity in terms of HUGE_VAL work on
113
- ** the DECstations and on many other combinations of OS/compiler.
114
- */
115
- #ifdef HAVE_IEEE_754
116
- # define DD_PLUS_INF_VAL (HUGE_VAL)
117
- #else
118
- # define DD_PLUS_INF_VAL (10e301)
119
- # define DD_CRI_HI_MARK (10e150)
120
- # define DD_CRI_LO_MARK (-(DD_CRI_HI_MARK))
121
- #endif
122
- #define DD_MINUS_INF_VAL (-(DD_PLUS_INF_VAL))
123
-
124
- #define DD_NON_CONSTANT ((DdNode *) 1) /* for Cudd_bddIteConstant */
125
-
126
- /* Unique table and cache management constants. */
127
- #define DD_MAX_SUBTABLE_DENSITY 4 /* tells when to resize a subtable */
128
- /* gc when this percent are dead (measured w.r.t. slots, not keys)
129
- ** The first limit (LO) applies normally. The second limit applies when
130
- ** the package believes more space for the unique table (i.e., more dead
131
- ** nodes) would improve performance, and the unique table is not already
132
- ** too large. The third limit applies when memory is low.
133
- */
134
- #define DD_GC_FRAC_LO DD_MAX_SUBTABLE_DENSITY * 0.25
135
- #define DD_GC_FRAC_HI DD_MAX_SUBTABLE_DENSITY * 1.0
136
- #define DD_GC_FRAC_MIN 0.2
137
- #define DD_MIN_HIT 30 /* resize cache when hit ratio
138
- above this percentage (default) */
139
- #define DD_MAX_LOOSE_FRACTION 5 /* 1 / (max fraction of memory used for
140
- unique table in fast growth mode) */
141
- #define DD_MAX_CACHE_FRACTION 3 /* 1 / (max fraction of memory used for
142
- computed table if resizing enabled) */
143
- #define DD_STASH_FRACTION 64 /* 1 / (fraction of memory set
144
- aside for emergencies) */
145
- #define DD_MAX_CACHE_TO_SLOTS_RATIO 4 /* used to limit the cache size */
146
-
147
- /* Variable ordering default parameter values. */
148
- #define DD_SIFT_MAX_VAR 1000
149
- #define DD_SIFT_MAX_SWAPS 2000000
150
- #define DD_DEFAULT_RECOMB 0
151
- #define DD_MAX_REORDER_GROWTH 1.2
152
- #define DD_FIRST_REORDER 4004 /* 4 for the constants */
153
- #define DD_DYN_RATIO 2 /* when to dynamically reorder */
154
-
155
- /* Primes for cache hash functions. */
156
- #define DD_P1 12582917
157
- #define DD_P2 4256249
158
- #define DD_P3 741457
159
- #define DD_P4 1618033999
160
-
161
- /* Cache tags for 3-operand operators. These tags are stored in the
162
- ** least significant bits of the cache operand pointers according to
163
- ** the following scheme. The tag consists of two hex digits. Both digits
164
- ** must be even, so that they do not interfere with complementation bits.
165
- ** The least significant one is stored in Bits 3:1 of the f operand in the
166
- ** cache entry. Bit 1 is always 1, so that we can differentiate
167
- ** three-operand operations from one- and two-operand operations.
168
- ** Therefore, the least significant digit is one of {2,6,a,e}. The most
169
- ** significant digit occupies Bits 3:1 of the g operand in the cache
170
- ** entry. It can by any even digit between 0 and e. This gives a total
171
- ** of 5 bits for the tag proper, which means a maximum of 32 three-operand
172
- ** operations. */
173
- #define DD_ADD_ITE_TAG 0x02
174
- #define DD_BDD_AND_ABSTRACT_TAG 0x06
175
- #define DD_BDD_XOR_EXIST_ABSTRACT_TAG 0x0a
176
- #define DD_BDD_ITE_TAG 0x0e
177
- #define DD_ADD_BDD_DO_INTERVAL_TAG 0x22
178
- #define DD_BDD_CLIPPING_AND_ABSTRACT_UP_TAG 0x26
179
- #define DD_BDD_CLIPPING_AND_ABSTRACT_DOWN_TAG 0x2a
180
- #define DD_BDD_COMPOSE_RECUR_TAG 0x2e
181
- #define DD_ADD_COMPOSE_RECUR_TAG 0x42
182
- #define DD_ADD_NON_SIM_COMPOSE_TAG 0x46
183
- #define DD_EQUIV_DC_TAG 0x4a
184
- #define DD_ZDD_ITE_TAG 0x4e
185
- #define DD_ADD_ITE_CONSTANT_TAG 0x62
186
- #define DD_ADD_EVAL_CONST_TAG 0x66
187
- #define DD_BDD_ITE_CONSTANT_TAG 0x6a
188
- #define DD_ADD_OUT_SUM_TAG 0x6e
189
- #define DD_BDD_LEQ_UNLESS_TAG 0x82
190
- #define DD_ADD_TRIANGLE_TAG 0x86
191
- #define DD_BDD_MAX_EXP_TAG 0x8a
192
-
193
- /* Generator constants. */
194
- #define CUDD_GEN_CUBES 0
195
- #define CUDD_GEN_PRIMES 1
196
- #define CUDD_GEN_NODES 2
197
- #define CUDD_GEN_ZDD_PATHS 3
198
- #define CUDD_GEN_EMPTY 0
199
- #define CUDD_GEN_NONEMPTY 1
200
-
201
-
202
- /*---------------------------------------------------------------------------*/
203
- /* Stucture declarations */
204
- /*---------------------------------------------------------------------------*/
205
-
206
- struct DdGen
207
- {
208
- DdManager *manager;
209
- int type;
210
- int status;
211
- union
212
- {
213
- struct
214
- {
215
- int *cube;
216
- CUDD_VALUE_TYPE value;
217
- } cubes;
218
- struct
219
- {
220
- int *cube;
221
- DdNode *ub;
222
- } primes;
223
- struct
224
- {
225
- int size;
226
- } nodes;
227
- } gen;
228
- struct
229
- {
230
- int sp;
231
- DdNode **stack;
232
- } stack;
233
- DdNode *node;
234
- };
235
-
236
-
237
- /*---------------------------------------------------------------------------*/
238
- /* Type declarations */
239
- /*---------------------------------------------------------------------------*/
240
-
241
- /* Hooks in CUDD are functions that the application registers with the
242
- ** manager so that they are called at appropriate times. The functions
243
- ** are passed the manager as argument; they should return 1 if
244
- ** successful and 0 otherwise.
245
- */
246
- typedef struct DdHook /* hook list element */
247
- {
248
- DD_HFP f; /* function to be called */
249
- struct DdHook *next; /* next element in the list */
250
- } DdHook;
251
-
252
- #if SIZEOF_VOID_P == 8 && SIZEOF_INT == 4
253
- typedef long ptrint;
254
- typedef unsigned long ptruint;
255
- #else
256
- typedef int ptrint;
257
- typedef unsigned int ptruint;
258
- #endif
259
-
260
- typedef DdNode *DdNodePtr;
261
-
262
- /* Generic local cache item. */
263
- typedef struct DdLocalCacheItem
264
- {
265
- DdNode *value;
266
- #ifdef DD_CACHE_PROFILE
267
- ptrint count;
268
- #endif
269
- DdNode *key[1];
270
- } DdLocalCacheItem;
271
-
272
- /* Local cache. */
273
- typedef struct DdLocalCache
274
- {
275
- DdLocalCacheItem *item;
276
- unsigned int itemsize;
277
- unsigned int keysize;
278
- unsigned int slots;
279
- int shift;
280
- double lookUps;
281
- double minHit;
282
- double hits;
283
- unsigned int maxslots;
284
- DdManager *manager;
285
- struct DdLocalCache *next;
286
- } DdLocalCache;
287
-
288
- /* Generic hash item. */
289
- typedef struct DdHashItem
290
- {
291
- struct DdHashItem *next;
292
- ptrint count;
293
- DdNode *value;
294
- DdNode *key[1];
295
- } DdHashItem;
296
-
297
- /* Local hash table */
298
- typedef struct DdHashTable
299
- {
300
- unsigned int keysize;
301
- unsigned int itemsize;
302
- DdHashItem **bucket;
303
- DdHashItem *nextFree;
304
- DdHashItem **memoryList;
305
- unsigned int numBuckets;
306
- int shift;
307
- unsigned int size;
308
- unsigned int maxsize;
309
- DdManager *manager;
310
- } DdHashTable;
311
-
312
- typedef struct DdCache
313
- {
314
- DdNode *f,*g; /* DDs */
315
- ptruint h; /* either operator or DD */
316
- DdNode *data; /* already constructed DD */
317
- #ifdef DD_CACHE_PROFILE
318
- ptrint count;
319
- #endif
320
- } DdCache;
321
-
322
- typedef struct DdSubtable /* subtable for one index */
323
- {
324
- DdNode **nodelist; /* hash table */
325
- int shift; /* shift for hash function */
326
- unsigned int slots; /* size of the hash table */
327
- unsigned int keys; /* number of nodes stored in this table */
328
- unsigned int maxKeys; /* slots * DD_MAX_SUBTABLE_DENSITY */
329
- unsigned int dead; /* number of dead nodes in this table */
330
- unsigned int next; /* index of next variable in group */
331
- int bindVar; /* flag to bind this variable to its level */
332
- /* Fields for lazy sifting. */
333
- Cudd_VariableType varType; /* variable type (ps, ns, pi) */
334
- int pairIndex; /* corresponding variable index (ps <-> ns) */
335
- int varHandled; /* flag: 1 means variable is already handled */
336
- Cudd_LazyGroupType varToBeGrouped; /* tells what grouping to apply */
337
- } DdSubtable;
338
-
339
- struct DdManager /* specialized DD symbol table */
340
- {
341
- /* Constants */
342
- DdNode sentinel; /* for collision lists */
343
- DdNode *one; /* constant 1 */
344
- DdNode *zero; /* constant 0 */
345
- DdNode *plusinfinity; /* plus infinity */
346
- DdNode *minusinfinity; /* minus infinity */
347
- DdNode *background; /* background value */
348
- /* Computed Table */
349
- DdCache *acache; /* address of allocated memory for cache */
350
- DdCache *cache; /* the cache-based computed table */
351
- unsigned int cacheSlots; /* total number of cache entries */
352
- int cacheShift; /* shift value for cache hash function */
353
- double cacheMisses; /* number of cache misses (since resizing) */
354
- double cacheHits; /* number of cache hits (since resizing) */
355
- double minHit; /* hit percentage above which to resize */
356
- int cacheSlack; /* slots still available for resizing */
357
- unsigned int maxCacheHard; /* hard limit for cache size */
358
- /* Unique Table */
359
- int size; /* number of unique subtables */
360
- int sizeZ; /* for ZDD */
361
- int maxSize; /* max number of subtables before resizing */
362
- int maxSizeZ; /* for ZDD */
363
- DdSubtable *subtables; /* array of unique subtables */
364
- DdSubtable *subtableZ; /* for ZDD */
365
- DdSubtable constants; /* unique subtable for the constants */
366
- unsigned int slots; /* total number of hash buckets */
367
- unsigned int keys; /* total number of BDD and ADD nodes */
368
- unsigned int keysZ; /* total number of ZDD nodes */
369
- unsigned int dead; /* total number of dead BDD and ADD nodes */
370
- unsigned int deadZ; /* total number of dead ZDD nodes */
371
- unsigned int maxLive; /* maximum number of live nodes */
372
- unsigned int minDead; /* do not GC if fewer than these dead */
373
- double gcFrac; /* gc when this fraction is dead */
374
- int gcEnabled; /* gc is enabled */
375
- unsigned int looseUpTo; /* slow growth beyond this limit */
376
- /* (measured w.r.t. slots, not keys) */
377
- unsigned int initSlots; /* initial size of a subtable */
378
- DdNode **stack; /* stack for iterative procedures */
379
- double allocated; /* number of nodes allocated */
380
- /* (not during reordering) */
381
- double reclaimed; /* number of nodes brought back from the dead */
382
- int isolated; /* isolated projection functions */
383
- int *perm; /* current variable perm. (index to level) */
384
- int *permZ; /* for ZDD */
385
- int *invperm; /* current inv. var. perm. (level to index) */
386
- int *invpermZ; /* for ZDD */
387
- DdNode **vars; /* projection functions */
388
- int *map; /* variable map for fast swap */
389
- DdNode **univ; /* ZDD 1 for each variable */
390
- int linearSize; /* number of rows and columns of linear */
391
- long *interact; /* interacting variable matrix */
392
- long *linear; /* linear transform matrix */
393
- /* Memory Management */
394
- DdNode **memoryList; /* memory manager for symbol table */
395
- DdNode *nextFree; /* list of free nodes */
396
- char *stash; /* memory reserve */
397
- #ifndef DD_NO_DEATH_ROW
398
- DdNode **deathRow; /* queue for dereferencing */
399
- int deathRowDepth; /* number of slots in the queue */
400
- int nextDead; /* index in the queue */
401
- unsigned deadMask; /* mask for circular index update */
402
- #endif
403
- /* General Parameters */
404
- CUDD_VALUE_TYPE epsilon; /* tolerance on comparisons */
405
- /* Dynamic Reordering Parameters */
406
- int reordered; /* flag set at the end of reordering */
407
- unsigned int reorderings; /* number of calls to Cudd_ReduceHeap */
408
- unsigned int maxReorderings;/* maximum number of calls to Cudd_ReduceHeap */
409
- int siftMaxVar; /* maximum number of vars sifted */
410
- int siftMaxSwap; /* maximum number of swaps per sifting */
411
- double maxGrowth; /* maximum growth during reordering */
412
- double maxGrowthAlt; /* alternate maximum growth for reordering */
413
- int reordCycle; /* how often to apply alternate threshold */
414
- int autoDyn; /* automatic dynamic reordering flag (BDD) */
415
- int autoDynZ; /* automatic dynamic reordering flag (ZDD) */
416
- Cudd_ReorderingType autoMethod; /* default reordering method */
417
- Cudd_ReorderingType autoMethodZ; /* default reordering method (ZDD) */
418
- int realign; /* realign ZDD order after BDD reordering */
419
- int realignZ; /* realign BDD order after ZDD reordering */
420
- unsigned int nextDyn; /* reorder if this size is reached */
421
- unsigned int countDead; /* if 0, count deads to trigger reordering */
422
- MtrNode *tree; /* variable group tree (BDD) */
423
- MtrNode *treeZ; /* variable group tree (ZDD) */
424
- Cudd_AggregationType groupcheck; /* used during group sifting */
425
- int recomb; /* used during group sifting */
426
- int symmviolation; /* used during group sifting */
427
- int arcviolation; /* used during group sifting */
428
- int populationSize; /* population size for GA */
429
- int numberXovers; /* number of crossovers for GA */
430
- unsigned int randomizeOrder; /* perturb the next reordering threshold */
431
- DdLocalCache *localCaches; /* local caches currently in existence */
432
- char *hooks; /* application-specific field (used by vis) */
433
- DdHook *preGCHook; /* hooks to be called before GC */
434
- DdHook *postGCHook; /* hooks to be called after GC */
435
- DdHook *preReorderingHook; /* hooks to be called before reordering */
436
- DdHook *postReorderingHook; /* hooks to be called after reordering */
437
- FILE *out; /* stdout for this manager */
438
- FILE *err; /* stderr for this manager */
439
- Cudd_ErrorType errorCode; /* info on last error */
440
- unsigned long startTime; /* start time in milliseconds */
441
- unsigned long timeLimit; /* CPU time limit */
442
- /* Statistical counters. */
443
- unsigned long memused; /* total memory allocated for the manager */
444
- unsigned long maxmem; /* target maximum memory */
445
- unsigned long maxmemhard; /* hard limit for maximum memory */
446
- int garbageCollections; /* number of garbage collections */
447
- unsigned long GCTime; /* total time spent in garbage collection */
448
- unsigned long reordTime; /* total time spent in reordering */
449
- double totCachehits; /* total number of cache hits */
450
- double totCacheMisses; /* total number of cache misses */
451
- double cachecollisions; /* number of cache collisions */
452
- double cacheinserts; /* number of cache insertions */
453
- double cacheLastInserts; /* insertions at the last cache resizing */
454
- double cachedeletions; /* number of deletions during garbage coll. */
455
- #ifdef DD_STATS
456
- double nodesFreed; /* number of nodes returned to the free list */
457
- double nodesDropped; /* number of nodes killed by dereferencing */
458
- #endif
459
- unsigned int peakLiveNodes; /* maximum number of live nodes */
460
- #ifdef DD_UNIQUE_PROFILE
461
- double uniqueLookUps; /* number of unique table lookups */
462
- double uniqueLinks; /* total distance traveled in coll. chains */
463
- #endif
464
- #ifdef DD_COUNT
465
- double recursiveCalls; /* number of recursive calls */
466
- #ifdef DD_STATS
467
- double nextSample; /* when to write next line of stats */
468
- #endif
469
- double swapSteps; /* number of elementary reordering steps */
470
- #endif
471
- #ifdef DD_MIS
472
- /* mis/verif compatibility fields */
473
- array_t *iton; /* maps ids in ddNode to node_t */
474
- array_t *order; /* copy of order_list */
475
- lsHandle handle; /* where it is in network BDD list */
476
- network_t *network;
477
- st_table *local_order; /* for local BDDs */
478
- int nvars; /* variables used so far */
479
- int threshold; /* for pseudo var threshold value*/
480
- #endif
481
- };
482
-
483
- typedef struct Move
484
- {
485
- DdHalfWord x;
486
- DdHalfWord y;
487
- unsigned int flags;
488
- int size;
489
- struct Move *next;
490
- } Move;
491
-
492
- /* Generic level queue item. */
493
- typedef struct DdQueueItem
494
- {
495
- struct DdQueueItem *next;
496
- struct DdQueueItem *cnext;
497
- void *key;
498
- } DdQueueItem;
499
-
500
- /* Level queue. */
501
- typedef struct DdLevelQueue
502
- {
503
- void *first;
504
- DdQueueItem **last;
505
- DdQueueItem *freelist;
506
- DdQueueItem **buckets;
507
- int levels;
508
- int itemsize;
509
- int size;
510
- int maxsize;
511
- int numBuckets;
512
- int shift;
513
- } DdLevelQueue;
514
-
515
- /*---------------------------------------------------------------------------*/
516
- /* Variable declarations */
517
- /*---------------------------------------------------------------------------*/
518
-
519
-
520
- /*---------------------------------------------------------------------------*/
521
- /* Macro declarations */
522
- /*---------------------------------------------------------------------------*/
523
-
524
- /**Macro***********************************************************************
525
-
526
- Synopsis [Adds node to the head of the free list.]
527
-
528
- Description [Adds node to the head of the free list. Does not
529
- deallocate memory chunks that become free. This function is also
530
- used by the dynamic reordering functions.]
531
-
532
- SideEffects [None]
533
-
534
- SeeAlso [cuddAllocNode cuddDynamicAllocNode cuddDeallocMove]
535
-
536
- ******************************************************************************/
537
- #define cuddDeallocNode(unique,node) \
538
- (node)->next = (unique)->nextFree; \
539
- (unique)->nextFree = node;
540
-
541
- /**Macro***********************************************************************
542
-
543
- Synopsis [Adds node to the head of the free list.]
544
-
545
- Description [Adds node to the head of the free list. Does not
546
- deallocate memory chunks that become free. This function is also
547
- used by the dynamic reordering functions.]
548
-
549
- SideEffects [None]
550
-
551
- SeeAlso [cuddDeallocNode cuddDynamicAllocNode]
552
-
553
- ******************************************************************************/
554
- #define cuddDeallocMove(unique,node) \
555
- ((DdNode *)(node))->ref = 0; \
556
- ((DdNode *)(node))->next = (unique)->nextFree; \
557
- (unique)->nextFree = (DdNode *)(node);
558
-
559
-
560
- /**Macro***********************************************************************
561
-
562
- Synopsis [Increases the reference count of a node, if it is not
563
- saturated.]
564
-
565
- Description [Increases the reference count of a node, if it is not
566
- saturated. This being a macro, it is faster than Cudd_Ref, but it
567
- cannot be used in constructs like cuddRef(a = b()).]
568
-
569
- SideEffects [none]
570
-
571
- SeeAlso [Cudd_Ref]
572
-
573
- ******************************************************************************/
574
- #define cuddRef(n) cuddSatInc(Cudd_Regular(n)->ref)
575
-
576
-
577
- /**Macro***********************************************************************
578
-
579
- Synopsis [Decreases the reference count of a node, if it is not
580
- saturated.]
581
-
582
- Description [Decreases the reference count of node. It is primarily
583
- used in recursive procedures to decrease the ref count of a result
584
- node before returning it. This accomplishes the goal of removing the
585
- protection applied by a previous cuddRef. This being a macro, it is
586
- faster than Cudd_Deref, but it cannot be used in constructs like
587
- cuddDeref(a = b()).]
588
-
589
- SideEffects [none]
590
-
591
- SeeAlso [Cudd_Deref]
592
-
593
- ******************************************************************************/
594
- #define cuddDeref(n) cuddSatDec(Cudd_Regular(n)->ref)
595
-
596
-
597
- /**Macro***********************************************************************
598
-
599
- Synopsis [Returns 1 if the node is a constant node.]
600
-
601
- Description [Returns 1 if the node is a constant node (rather than an
602
- internal node). All constant nodes have the same index
603
- (CUDD_CONST_INDEX). The pointer passed to cuddIsConstant must be regular.]
604
-
605
- SideEffects [none]
606
-
607
- SeeAlso [Cudd_IsConstant]
608
-
609
- ******************************************************************************/
610
- #define cuddIsConstant(node) ((node)->index == CUDD_CONST_INDEX)
611
-
612
-
613
- /**Macro***********************************************************************
614
-
615
- Synopsis [Returns the then child of an internal node.]
616
-
617
- Description [Returns the then child of an internal node. If
618
- <code>node</code> is a constant node, the result is unpredictable.
619
- The pointer passed to cuddT must be regular.]
620
-
621
- SideEffects [none]
622
-
623
- SeeAlso [Cudd_T]
624
-
625
- ******************************************************************************/
626
- #define cuddT(node) ((node)->type.kids.T)
627
-
628
-
629
- /**Macro***********************************************************************
630
-
631
- Synopsis [Returns the else child of an internal node.]
632
-
633
- Description [Returns the else child of an internal node. If
634
- <code>node</code> is a constant node, the result is unpredictable.
635
- The pointer passed to cuddE must be regular.]
636
-
637
- SideEffects [none]
638
-
639
- SeeAlso [Cudd_E]
640
-
641
- ******************************************************************************/
642
- #define cuddE(node) ((node)->type.kids.E)
643
-
644
-
645
- /**Macro***********************************************************************
646
-
647
- Synopsis [Returns the value of a constant node.]
648
-
649
- Description [Returns the value of a constant node. If
650
- <code>node</code> is an internal node, the result is unpredictable.
651
- The pointer passed to cuddV must be regular.]
652
-
653
- SideEffects [none]
654
-
655
- SeeAlso [Cudd_V]
656
-
657
- ******************************************************************************/
658
- #define cuddV(node) ((node)->type.value)
659
-
660
-
661
- /**Macro***********************************************************************
662
-
663
- Synopsis [Finds the current position of variable index in the
664
- order.]
665
-
666
- Description [Finds the current position of variable index in the
667
- order. This macro duplicates the functionality of Cudd_ReadPerm,
668
- but it does not check for out-of-bounds indices and it is more
669
- efficient.]
670
-
671
- SideEffects [none]
672
-
673
- SeeAlso [Cudd_ReadPerm]
674
-
675
- ******************************************************************************/
676
- #define cuddI(dd,index) (((index)==CUDD_CONST_INDEX)?(int)(index):(dd)->perm[(index)])
677
-
678
-
679
- /**Macro***********************************************************************
680
-
681
- Synopsis [Finds the current position of ZDD variable index in the
682
- order.]
683
-
684
- Description [Finds the current position of ZDD variable index in the
685
- order. This macro duplicates the functionality of Cudd_ReadPermZdd,
686
- but it does not check for out-of-bounds indices and it is more
687
- efficient.]
688
-
689
- SideEffects [none]
690
-
691
- SeeAlso [Cudd_ReadPermZdd]
692
-
693
- ******************************************************************************/
694
- #define cuddIZ(dd,index) (((index)==CUDD_CONST_INDEX)?(int)(index):(dd)->permZ[(index)])
695
-
696
-
697
- /**Macro***********************************************************************
698
-
699
- Synopsis [Hash function for the unique table.]
700
-
701
- Description []
702
-
703
- SideEffects [none]
704
-
705
- SeeAlso [ddCHash ddCHash2]
706
-
707
- ******************************************************************************/
708
- #if SIZEOF_VOID_P == 8 && SIZEOF_INT == 4
709
- #define ddHash(f,g,s) \
710
- ((((unsigned)(ptruint)(f) * DD_P1 + \
711
- (unsigned)(ptruint)(g)) * DD_P2) >> (s))
712
- #else
713
- #define ddHash(f,g,s) \
714
- ((((unsigned)(f) * DD_P1 + (unsigned)(g)) * DD_P2) >> (s))
715
- #endif
716
-
717
-
718
- /**Macro***********************************************************************
719
-
720
- Synopsis [Hash function for the cache.]
721
-
722
- Description []
723
-
724
- SideEffects [none]
725
-
726
- SeeAlso [ddHash ddCHash2]
727
-
728
- ******************************************************************************/
729
- #if SIZEOF_VOID_P == 8 && SIZEOF_INT == 4
730
- #define ddCHash(o,f,g,h,s) \
731
- ((((((unsigned)(ptruint)(f) + (unsigned)(ptruint)(o)) * DD_P1 + \
732
- (unsigned)(ptruint)(g)) * DD_P2 + \
733
- (unsigned)(ptruint)(h)) * DD_P3) >> (s))
734
- #else
735
- #define ddCHash(o,f,g,h,s) \
736
- ((((((unsigned)(f) + (unsigned)(o)) * DD_P1 + (unsigned)(g)) * DD_P2 + \
737
- (unsigned)(h)) * DD_P3) >> (s))
738
- #endif
739
-
740
-
741
- /**Macro***********************************************************************
742
-
743
- Synopsis [Hash function for the cache for functions with two
744
- operands.]
745
-
746
- Description []
747
-
748
- SideEffects [none]
749
-
750
- SeeAlso [ddHash ddCHash]
751
-
752
- ******************************************************************************/
753
- #if SIZEOF_VOID_P == 8 && SIZEOF_INT == 4
754
- #define ddCHash2(o,f,g,s) \
755
- (((((unsigned)(ptruint)(f) + (unsigned)(ptruint)(o)) * DD_P1 + \
756
- (unsigned)(ptruint)(g)) * DD_P2) >> (s))
757
- #else
758
- #define ddCHash2(o,f,g,s) \
759
- (((((unsigned)(f) + (unsigned)(o)) * DD_P1 + (unsigned)(g)) * DD_P2) >> (s))
760
- #endif
761
-
762
-
763
- /**Macro***********************************************************************
764
-
765
- Synopsis [Clears the 4 least significant bits of a pointer.]
766
-
767
- Description []
768
-
769
- SideEffects [none]
770
-
771
- SeeAlso []
772
-
773
- ******************************************************************************/
774
- #define cuddClean(p) ((DdNode *)((ptruint)(p) & ~0xf))
775
-
776
-
777
- /**Macro***********************************************************************
778
-
779
- Synopsis [Computes the minimum of two numbers.]
780
-
781
- Description []
782
-
783
- SideEffects [none]
784
-
785
- SeeAlso [ddMax]
786
-
787
- ******************************************************************************/
788
- #define ddMin(x,y) (((y) < (x)) ? (y) : (x))
789
-
790
-
791
- /**Macro***********************************************************************
792
-
793
- Synopsis [Computes the maximum of two numbers.]
794
-
795
- Description []
796
-
797
- SideEffects [none]
798
-
799
- SeeAlso [ddMin]
800
-
801
- ******************************************************************************/
802
- #define ddMax(x,y) (((y) > (x)) ? (y) : (x))
803
-
804
-
805
- /**Macro***********************************************************************
806
-
807
- Synopsis [Computes the absolute value of a number.]
808
-
809
- Description []
810
-
811
- SideEffects [none]
812
-
813
- SeeAlso []
814
-
815
- ******************************************************************************/
816
- #define ddAbs(x) (((x)<0) ? -(x) : (x))
817
-
818
-
819
- /**Macro***********************************************************************
820
-
821
- Synopsis [Returns 1 if the absolute value of the difference of the two
822
- arguments x and y is less than e.]
823
-
824
- Description []
825
-
826
- SideEffects [none]
827
-
828
- SeeAlso []
829
-
830
- ******************************************************************************/
831
- #define ddEqualVal(x,y,e) (ddAbs((x)-(y))<(e))
832
-
833
-
834
- /**Macro***********************************************************************
835
-
836
- Synopsis [Saturating increment operator.]
837
-
838
- Description []
839
-
840
- SideEffects [none]
841
-
842
- SeeAlso [cuddSatDec]
843
-
844
- ******************************************************************************/
845
- #if SIZEOF_VOID_P == 8 && SIZEOF_INT == 4
846
- #define cuddSatInc(x) ((x)++)
847
- #else
848
- #define cuddSatInc(x) ((x) += (x) != (DdHalfWord)DD_MAXREF)
849
- #endif
850
-
851
-
852
- /**Macro***********************************************************************
853
-
854
- Synopsis [Saturating decrement operator.]
855
-
856
- Description []
857
-
858
- SideEffects [none]
859
-
860
- SeeAlso [cuddSatInc]
861
-
862
- ******************************************************************************/
863
- #if SIZEOF_VOID_P == 8 && SIZEOF_INT == 4
864
- #define cuddSatDec(x) ((x)--)
865
- #else
866
- #define cuddSatDec(x) ((x) -= (x) != (DdHalfWord)DD_MAXREF)
867
- #endif
868
-
869
-
870
- /**Macro***********************************************************************
871
-
872
- Synopsis [Returns the constant 1 node.]
873
-
874
- Description []
875
-
876
- SideEffects [none]
877
-
878
- SeeAlso [DD_ZERO DD_PLUS_INFINITY DD_MINUS_INFINITY]
879
-
880
- ******************************************************************************/
881
- #define DD_ONE(dd) ((dd)->one)
882
-
883
-
884
- /**Macro***********************************************************************
885
-
886
- Synopsis [Returns the arithmetic 0 constant node.]
887
-
888
- Description [Returns the arithmetic 0 constant node. This is different
889
- from the logical zero. The latter is obtained by
890
- Cudd_Not(DD_ONE(dd)).]
891
-
892
- SideEffects [none]
893
-
894
- SeeAlso [DD_ONE Cudd_Not DD_PLUS_INFINITY DD_MINUS_INFINITY]
895
-
896
- ******************************************************************************/
897
- #define DD_ZERO(dd) ((dd)->zero)
898
-
899
-
900
- /**Macro***********************************************************************
901
-
902
- Synopsis [Returns the plus infinity constant node.]
903
-
904
- Description []
905
-
906
- SideEffects [none]
907
-
908
- SeeAlso [DD_ONE DD_ZERO DD_MINUS_INFINITY]
909
-
910
- ******************************************************************************/
911
- #define DD_PLUS_INFINITY(dd) ((dd)->plusinfinity)
912
-
913
-
914
- /**Macro***********************************************************************
915
-
916
- Synopsis [Returns the minus infinity constant node.]
917
-
918
- Description []
919
-
920
- SideEffects [none]
921
-
922
- SeeAlso [DD_ONE DD_ZERO DD_PLUS_INFINITY]
923
-
924
- ******************************************************************************/
925
- #define DD_MINUS_INFINITY(dd) ((dd)->minusinfinity)
926
-
927
-
928
- /**Macro***********************************************************************
929
-
930
- Synopsis [Enforces DD_MINUS_INF_VAL <= x <= DD_PLUS_INF_VAL.]
931
-
932
- Description [Enforces DD_MINUS_INF_VAL <= x <= DD_PLUS_INF_VAL.
933
- Furthermore, if x <= DD_MINUS_INF_VAL/2, x is set to
934
- DD_MINUS_INF_VAL. Similarly, if DD_PLUS_INF_VAL/2 <= x, x is set to
935
- DD_PLUS_INF_VAL. Normally this macro is a NOOP. However, if
936
- HAVE_IEEE_754 is not defined, it makes sure that a value does not
937
- get larger than infinity in absolute value, and once it gets to
938
- infinity, stays there. If the value overflows before this macro is
939
- applied, no recovery is possible.]
940
-
941
- SideEffects [none]
942
-
943
- SeeAlso []
944
-
945
- ******************************************************************************/
946
- #ifdef HAVE_IEEE_754
947
- #define cuddAdjust(x)
948
- #else
949
- #define cuddAdjust(x) ((x) = ((x) >= DD_CRI_HI_MARK) ? DD_PLUS_INF_VAL : (((x) <= DD_CRI_LO_MARK) ? DD_MINUS_INF_VAL : (x)))
950
- #endif
951
-
952
-
953
- /**Macro***********************************************************************
954
-
955
- Synopsis [Extract the least significant digit of a double digit.]
956
-
957
- Description [Extract the least significant digit of a double digit. Used
958
- in the manipulation of arbitrary precision integers.]
959
-
960
- SideEffects [None]
961
-
962
- SeeAlso [DD_MSDIGIT]
963
-
964
- ******************************************************************************/
965
- #define DD_LSDIGIT(x) ((x) & DD_APA_MASK)
966
-
967
-
968
- /**Macro***********************************************************************
969
-
970
- Synopsis [Extract the most significant digit of a double digit.]
971
-
972
- Description [Extract the most significant digit of a double digit. Used
973
- in the manipulation of arbitrary precision integers.]
974
-
975
- SideEffects [None]
976
-
977
- SeeAlso [DD_LSDIGIT]
978
-
979
- ******************************************************************************/
980
- #define DD_MSDIGIT(x) ((x) >> DD_APA_BITS)
981
-
982
-
983
- /**Macro***********************************************************************
984
-
985
- Synopsis [Outputs a line of stats.]
986
-
987
- Description [Outputs a line of stats if DD_COUNT and DD_STATS are
988
- defined. Increments the number of recursive calls if DD_COUNT is
989
- defined.]
990
-
991
- SideEffects [None]
992
-
993
- SeeAlso []
994
-
995
- ******************************************************************************/
996
- #ifdef DD_COUNT
997
- #ifdef DD_STATS
998
- #define statLine(dd) dd->recursiveCalls++; \
999
- if (dd->recursiveCalls == dd->nextSample) {(void) fprintf(dd->err, \
1000
- "@%.0f: %u nodes %u live %.0f dropped %.0f reclaimed\n", dd->recursiveCalls, \
1001
- dd->keys, dd->keys - dd->dead, dd->nodesDropped, dd->reclaimed); \
1002
- dd->nextSample += 250000;}
1003
- #else
1004
- #define statLine(dd) dd->recursiveCalls++;
1005
- #endif
1006
- #else
1007
- #define statLine(dd)
1008
- #endif
1009
-
1010
-
1011
- /**AutomaticStart*************************************************************/
1012
-
1013
- /*---------------------------------------------------------------------------*/
1014
- /* Function prototypes */
1015
- /*---------------------------------------------------------------------------*/
1016
-
1017
- extern DdNode * cuddAddIteRecur (DdManager *dd, DdNode *f, DdNode *g, DdNode *h);
1018
- extern DdNode * cuddAddCmplRecur (DdManager *dd, DdNode *f);
1019
- extern int cuddAnnealing (DdManager *table, int lower, int upper);
1020
- extern DdNode * cuddBddExistAbstractRecur (DdManager *manager, DdNode *f, DdNode *cube);
1021
- extern DdNode * cuddBddXorExistAbstractRecur (DdManager *manager, DdNode *f, DdNode *g, DdNode *cube);
1022
- extern DdNode * cuddBddBooleanDiffRecur (DdManager *manager, DdNode *f, DdNode *var);
1023
- extern DdNode * cuddBddIteRecur (DdManager *dd, DdNode *f, DdNode *g, DdNode *h);
1024
- extern DdNode * cuddBddIntersectRecur (DdManager *dd, DdNode *f, DdNode *g);
1025
- extern DdNode * cuddBddAndRecur (DdManager *manager, DdNode *f, DdNode *g);
1026
- extern DdNode * cuddBddXorRecur (DdManager *manager, DdNode *f, DdNode *g);
1027
- extern int cuddInitCache (DdManager *unique, unsigned int cacheSize, unsigned int maxCacheSize);
1028
- extern void cuddCacheInsert (DdManager *table, ptruint op, DdNode *f, DdNode *g, DdNode *h, DdNode *data);
1029
- extern void cuddCacheInsert2 (DdManager *table, DdNode * (*)(DdManager *, DdNode *, DdNode *), DdNode *f, DdNode *g, DdNode *data);
1030
- extern void cuddCacheInsert1 (DdManager *table, DdNode * (*)(DdManager *, DdNode *), DdNode *f, DdNode *data);
1031
- extern DdNode * cuddCacheLookup (DdManager *table, ptruint op, DdNode *f, DdNode *g, DdNode *h);
1032
- extern DdNode * cuddCacheLookupZdd (DdManager *table, ptruint op, DdNode *f, DdNode *g, DdNode *h);
1033
- extern DdNode * cuddCacheLookup2 (DdManager *table, DdNode * (*)(DdManager *, DdNode *, DdNode *), DdNode *f, DdNode *g);
1034
- extern DdNode * cuddCacheLookup1 (DdManager *table, DdNode * (*)(DdManager *, DdNode *), DdNode *f);
1035
- extern DdNode * cuddCacheLookup2Zdd (DdManager *table, DdNode * (*)(DdManager *, DdNode *, DdNode *), DdNode *f, DdNode *g);
1036
- extern DdNode * cuddCacheLookup1Zdd (DdManager *table, DdNode * (*)(DdManager *, DdNode *), DdNode *f);
1037
- extern DdNode * cuddConstantLookup (DdManager *table, ptruint op, DdNode *f, DdNode *g, DdNode *h);
1038
- extern void cuddCacheResize (DdManager *table);
1039
- extern void cuddCacheFlush (DdManager *table);
1040
- extern int cuddComputeFloorLog2 (unsigned int value);
1041
- extern void cuddPrintNode (DdNode *f, FILE *fp);
1042
- extern void cuddPrintVarGroups (DdManager * dd, MtrNode * root, int zdd, int silent);
1043
- extern void cuddGetBranches (DdNode *g, DdNode **g1, DdNode **g0);
1044
- extern DdNode * cuddCofactorRecur (DdManager *dd, DdNode *f, DdNode *g);
1045
- extern int cuddExact (DdManager *table, int lower, int upper);
1046
- extern int cuddGa (DdManager *table, int lower, int upper);
1047
- extern int cuddTreeSifting (DdManager *table, Cudd_ReorderingType method);
1048
- extern int cuddZddInitUniv (DdManager *zdd);
1049
- extern void cuddZddFreeUniv (DdManager *zdd);
1050
- extern void cuddSetInteract (DdManager *table, int x, int y);
1051
- extern int cuddTestInteract (DdManager *table, int x, int y);
1052
- extern int cuddInitInteract (DdManager *table);
1053
- extern void cuddLocalCacheClearDead (DdManager *manager);
1054
- extern void cuddLocalCacheClearAll (DdManager *manager);
1055
- #ifdef DD_CACHE_PROFILE
1056
- extern int cuddLocalCacheProfile (DdLocalCache *cache);
1057
- #endif
1058
- extern DdHashTable * cuddHashTableInit (DdManager *manager, unsigned int keySize, unsigned int initSize);
1059
- extern void cuddHashTableQuit (DdHashTable *hash);
1060
- extern int cuddHashTableInsert1 (DdHashTable *hash, DdNode *f, DdNode *value, ptrint count);
1061
- extern DdNode * cuddHashTableLookup1 (DdHashTable *hash, DdNode *f);
1062
- extern int cuddLinearAndSifting (DdManager *table, int lower, int upper);
1063
- extern int cuddLinearInPlace (DdManager * table, int x, int y);
1064
- extern void cuddUpdateInteractionMatrix (DdManager * table, int xindex, int yindex);
1065
- extern int cuddInitLinear (DdManager *table);
1066
- extern int cuddResizeLinear (DdManager *table);
1067
- extern void cuddReclaim (DdManager *table, DdNode *n);
1068
- extern void cuddReclaimZdd (DdManager *table, DdNode *n);
1069
- extern void cuddClearDeathRow (DdManager *table);
1070
- extern void cuddShrinkDeathRow (DdManager *table);
1071
- extern DdNode * cuddDynamicAllocNode (DdManager *table);
1072
- extern int cuddSifting (DdManager *table, int lower, int upper);
1073
- extern int cuddSwapping (DdManager *table, int lower, int upper, Cudd_ReorderingType heuristic);
1074
- extern int cuddNextHigh (DdManager *table, int x);
1075
- extern int cuddNextLow (DdManager *table, int x);
1076
- extern int cuddSwapInPlace (DdManager *table, int x, int y);
1077
- extern int cuddBddAlignToZdd (DdManager *table);
1078
- extern DdNode * cuddBddMakePrime (DdManager *dd, DdNode *cube, DdNode *f);
1079
- #ifdef ST_INCLUDED
1080
- #endif
1081
- extern int cuddSymmCheck (DdManager *table, int x, int y);
1082
- extern int cuddSymmSifting (DdManager *table, int lower, int upper);
1083
- extern int cuddSymmSiftingConv (DdManager *table, int lower, int upper);
1084
- extern DdNode * cuddAllocNode (DdManager *unique);
1085
- extern DdManager * cuddInitTable (unsigned int numVars, unsigned int numVarsZ, unsigned int numSlots, unsigned int looseUpTo);
1086
- extern void cuddFreeTable (DdManager *unique);
1087
- extern int cuddGarbageCollect (DdManager *unique, int clearCache);
1088
- extern DdNode * cuddZddGetNode (DdManager *zdd, int id, DdNode *T, DdNode *E);
1089
- extern DdNode * cuddZddGetNodeIVO (DdManager *dd, int index, DdNode *g, DdNode *h);
1090
- extern DdNode * cuddUniqueInter (DdManager *unique, int index, DdNode *T, DdNode *E);
1091
- extern DdNode * cuddUniqueInterIVO (DdManager *unique, int index, DdNode *T, DdNode *E);
1092
- extern DdNode * cuddUniqueInterZdd (DdManager *unique, int index, DdNode *T, DdNode *E);
1093
- extern DdNode * cuddUniqueConst (DdManager *unique, CUDD_VALUE_TYPE value);
1094
- extern void cuddRehash (DdManager *unique, int i);
1095
- extern int cuddResizeTableZdd (DdManager *unique, int index);
1096
- extern void cuddSlowTableGrowth (DdManager *unique);
1097
- #ifdef ST_INCLUDED
1098
- extern int cuddCollectNodes (DdNode *f, st_table *visited);
1099
- #endif
1100
- extern DdNodePtr * cuddNodeArray (DdNode *f, int *n);
1101
- extern int cuddWindowReorder (DdManager *table, int low, int high, Cudd_ReorderingType submethod);
1102
- extern DdNode * cuddZddProduct (DdManager *dd, DdNode *f, DdNode *g);
1103
- extern DdNode * cuddZddUnateProduct (DdManager *dd, DdNode *f, DdNode *g);
1104
- extern DdNode * cuddZddWeakDiv (DdManager *dd, DdNode *f, DdNode *g);
1105
- extern DdNode * cuddZddWeakDivF (DdManager *dd, DdNode *f, DdNode *g);
1106
- extern DdNode * cuddZddDivide (DdManager *dd, DdNode *f, DdNode *g);
1107
- extern DdNode * cuddZddDivideF (DdManager *dd, DdNode *f, DdNode *g);
1108
- extern int cuddZddGetCofactors3 (DdManager *dd, DdNode *f, int v, DdNode **f1, DdNode **f0, DdNode **fd);
1109
- extern int cuddZddGetCofactors2 (DdManager *dd, DdNode *f, int v, DdNode **f1, DdNode **f0);
1110
- extern DdNode * cuddZddComplement (DdManager *dd, DdNode *node);
1111
- extern int cuddZddGetPosVarIndex(DdManager * dd, int index);
1112
- extern int cuddZddGetNegVarIndex(DdManager * dd, int index);
1113
- extern int cuddZddGetPosVarLevel(DdManager * dd, int index);
1114
- extern int cuddZddGetNegVarLevel(DdManager * dd, int index);
1115
- extern int cuddZddTreeSifting (DdManager *table, Cudd_ReorderingType method);
1116
- extern DdNode * cuddZddIsop (DdManager *dd, DdNode *L, DdNode *U, DdNode **zdd_I);
1117
- extern DdNode * cuddBddIsop (DdManager *dd, DdNode *L, DdNode *U);
1118
- extern DdNode * cuddMakeBddFromZddCover (DdManager *dd, DdNode *node);
1119
- extern int cuddZddLinearSifting (DdManager *table, int lower, int upper);
1120
- extern int cuddZddAlignToBdd (DdManager *table);
1121
- extern int cuddZddNextHigh (DdManager *table, int x);
1122
- extern int cuddZddNextLow (DdManager *table, int x);
1123
- extern int cuddZddUniqueCompare (int *ptr_x, int *ptr_y);
1124
- extern int cuddZddSwapInPlace (DdManager *table, int x, int y);
1125
- extern int cuddZddSwapping (DdManager *table, int lower, int upper, Cudd_ReorderingType heuristic);
1126
- extern int cuddZddSifting (DdManager *table, int lower, int upper);
1127
- extern DdNode * cuddZddIte (DdManager *dd, DdNode *f, DdNode *g, DdNode *h);
1128
- extern DdNode * cuddZddUnion (DdManager *zdd, DdNode *P, DdNode *Q);
1129
- extern DdNode * cuddZddIntersect (DdManager *zdd, DdNode *P, DdNode *Q);
1130
- extern DdNode * cuddZddDiff (DdManager *zdd, DdNode *P, DdNode *Q);
1131
- extern DdNode * cuddZddChangeAux (DdManager *zdd, DdNode *P, DdNode *zvar);
1132
- extern DdNode * cuddZddSubset1 (DdManager *dd, DdNode *P, int var);
1133
- extern DdNode * cuddZddSubset0 (DdManager *dd, DdNode *P, int var);
1134
- extern int cuddZddSymmCheck (DdManager *table, int x, int y);
1135
- extern int cuddZddSymmSifting (DdManager *table, int lower, int upper);
1136
- extern int cuddZddSymmSiftingConv (DdManager *table, int lower, int upper);
1137
- extern int cuddZddP (DdManager *zdd, DdNode *f);
1138
-
1139
- /**AutomaticEnd***************************************************************/
1140
-
1141
- #ifdef __cplusplus
1142
- } /* end of extern "C" */
1143
- #endif
1144
-
1145
- #endif /* _CUDDINT */