diff options
Diffstat (limited to 'src/bdd/reo/reoTransfer.c')
-rw-r--r-- | src/bdd/reo/reoTransfer.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/bdd/reo/reoTransfer.c b/src/bdd/reo/reoTransfer.c index 65d31d01..26a6689e 100644 --- a/src/bdd/reo/reoTransfer.c +++ b/src/bdd/reo/reoTransfer.c @@ -41,7 +41,8 @@ reo_unit * reoTransferNodesToUnits_rec( reo_man * p, DdNode * F ) { DdManager * dd = p->dd; reo_unit * pUnit; - int HKey, fComp; + int HKey = -1; // Suppress "might be used uninitialized" + int fComp; fComp = Cudd_IsComplement(F); F = Cudd_Regular(F); @@ -68,7 +69,7 @@ reo_unit * reoTransferNodesToUnits_rec( reo_man * p, DdNode * F ) if ( cuddIsConstant(F) ) { pUnit->lev = REO_CONST_LEVEL; - pUnit->pE = (reo_unit*)((int)(cuddV(F))); + pUnit->pE = (reo_unit*)((int)(PORT_PTRUINT_T)(cuddV(F))); pUnit->pT = NULL; // check if the diagram that is being reordering has complement edges if ( F != dd->one ) @@ -117,7 +118,8 @@ DdNode * reoTransferUnitsToNodes_rec( reo_man * p, reo_unit * pUnit ) { DdManager * dd = p->dd; DdNode * bRes, * E, * T; - int HKey, fComp; + int HKey = -1; // Suppress "might be used uninitialized" + int fComp; fComp = Cudd_IsComplement(pUnit); pUnit = Unit_Regular(pUnit); @@ -137,7 +139,7 @@ DdNode * reoTransferUnitsToNodes_rec( reo_man * p, reo_unit * pUnit ) // treat the case of constants if ( Unit_IsConstant(pUnit) ) { - bRes = cuddUniqueConst( dd, ((double)((int)(pUnit->pE))) ); + bRes = cuddUniqueConst( dd, ((double)((int)(PORT_PTRUINT_T)(pUnit->pE))) ); cuddRef( bRes ); } else |