#include "mdd.h" /* * MDD Package * * $Id: mdd_smooth.c,v 1.10 2002/08/27 03:17:38 fabio Exp $ * * Author: Timothy Kam * * Copyright 1992 by the Regents of the University of California. * * All rights reserved. Permission to use, copy, modify and distribute * this software is hereby granted, provided that the above copyright * notice and this permission notice appear in all copies. This software * is made available as is, with no warranties. */ mdd_t * mdd_smooth( mdd_manager *mgr, mdd_t *fn, array_t *mvars) { array_t *bdd_vars; int i, j, mv_no; mvar_type mv; mdd_t *top; bdd_t *temp; array_t *mvar_list = mdd_ret_mvar_list(mgr); if ( mvars == NIL(array_t) ) { top = bdd_dup(fn); printf("\nWARNING: Empty Array of Smoothing Variables\n"); return top; } else if ( array_n(mvars) == 0) { top = bdd_dup(fn); printf("\nWARNING: Empty Array of Smoothing Variables\n"); return top; } bdd_vars = array_alloc(bdd_t *, 0); for (i=0; i