#include "mdd.h" /* * MDD Package * * $Id: mdd_func1c.c,v 1.11 2002/08/25 05:30:12 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_func1c( mdd_manager *mgr, int mvar1, int constant, boolean (*func2)(int, int)) { mvar_type x; array_t *child_list_x; int i; mdd_t *tx; array_t *mvar_list = mdd_ret_mvar_list(mgr); mdd_t *zero, *one; zero = mdd_zero(mgr); one = mdd_one(mgr); x = array_fetch(mvar_type, mvar_list, mvar1); if (x.status == MDD_BUNDLED) printf("\nWarning: mdd_func1c, bundled variable %s is used\n", x.name); child_list_x = array_alloc(mdd_t *, x.values); for (i=0; i