Browse Source

Fixed header/implementation mismatches which Clang detects and can not ignore.

This might introduce bugs, but it was my best guess as to what atrocity the author was trying to to there.


Former-commit-id: 8d269a71e0
tempestpy_adaptions
PBerger 11 years ago
parent
commit
1d6b6c83e0
  1. 2
      resources/3rdparty/cudd-2.5.0/src/dddmp/dddmpInt.h
  2. 4
      resources/3rdparty/cudd-2.5.0/src/dddmp/dddmpStoreCnf.c

2
resources/3rdparty/cudd-2.5.0/src/dddmp/dddmpInt.h

@ -190,7 +190,7 @@ extern int DddmpNumberDdNodesCnf(DdManager *ddMgr, DdNode **f, int rootN, int *c
extern int DddmpDdNodesCountEdgesAndNumber(DdManager *ddMgr, DdNode **f, int rootN, int edgeInTh, int pathLengthTh, int *cnfIds, int id); extern int DddmpDdNodesCountEdgesAndNumber(DdManager *ddMgr, DdNode **f, int rootN, int edgeInTh, int pathLengthTh, int *cnfIds, int id);
extern void DddmpUnnumberDdNodesCnf(DdManager *ddMgr, DdNode **f, int rootN); extern void DddmpUnnumberDdNodesCnf(DdManager *ddMgr, DdNode **f, int rootN);
extern int DddmpPrintBddAndNext(DdManager *ddMgr, DdNode **f, int rootN); extern int DddmpPrintBddAndNext(DdManager *ddMgr, DdNode **f, int rootN);
extern int DddmpWriteNodeIndexCnf(DdNode *f, int id);
extern int DddmpWriteNodeIndexCnfBis(DdNode *f, int id);
extern int DddmpVisitedCnf(DdNode *f); extern int DddmpVisitedCnf(DdNode *f);
extern void DddmpSetVisitedCnf(DdNode *f); extern void DddmpSetVisitedCnf(DdNode *f);
extern int DddmpReadNodeIndexCnf(DdNode *f); extern int DddmpReadNodeIndexCnf(DdNode *f);

4
resources/3rdparty/cudd-2.5.0/src/dddmp/dddmpStoreCnf.c

@ -1486,7 +1486,7 @@ StoreCnfBestSharedRecur (
idf = DddmpReadNodeIndexCnf (node); idf = DddmpReadNodeIndexCnf (node);
if (idf > 0) { if (idf > 0) {
/* Cheat the Recur Function about the Index of the Current Node */ /* Cheat the Recur Function about the Index of the Current Node */
DddmpWriteNodeIndexCnf (node, 0);
DddmpWriteNodeIndexCnfBis (node, 0);
#if DDDMP_DEBUG_CNF #if DDDMP_DEBUG_CNF
fprintf (fp, "Else of XNOR\n"); fprintf (fp, "Else of XNOR\n");
@ -1507,7 +1507,7 @@ StoreCnfBestSharedRecur (
fp, list, clauseN, varMax); fp, list, clauseN, varMax);
/* Set Back Index of Current Node */ /* Set Back Index of Current Node */
DddmpWriteNodeIndexCnf (node, idf);
DddmpWriteNodeIndexCnfBis (node, idf);
} }
/* Mark node as visited. */ /* Mark node as visited. */

Loading…
Cancel
Save