Browse Source

worked in fix to Cudd_addMinus suggested by Fabio Somenzi

tempestpy_adaptions
dehnert 8 years ago
parent
commit
4492f428bb
  1. 4
      resources/3rdparty/cudd-3.0.0/cudd/cuddAddApply.c

4
resources/3rdparty/cudd-3.0.0/cudd/cuddAddApply.c

@ -350,7 +350,9 @@ Cudd_addMinus(
F = *f; G = *g; F = *f; G = *g;
if (F == G) return(DD_ZERO(dd)); if (F == G) return(DD_ZERO(dd));
if (F == DD_ZERO(dd)) return(cuddAddNegateRecur(dd,G));
// CHANGED BY CHRISTIAN DEHNERT.
// Commented out this case to avoid issues with dynamic reordering (fix suggested by Fabio Somenzi).
// if (F == DD_ZERO(dd)) return(cuddAddNegateRecur(dd,G));
if (G == DD_ZERO(dd)) return(F); if (G == DD_ZERO(dd)) return(F);
if (cuddIsConstant(F) && cuddIsConstant(G)) { if (cuddIsConstant(F) && cuddIsConstant(G)) {
value = cuddV(F)-cuddV(G); value = cuddV(F)-cuddV(G);

Loading…
Cancel
Save