DELBDDASSOC(3)

πŸ“¦ version 5.1.1-unstable-2025-02, in nixos 26.05, nixpkgs unstable

πŸŽ€ delbddassoc(3) πŸŽ€

okay so this is from BDD FUNCTIONS, and today’s main character is delbddassoc(3) β€” she deletes a variable association. no cap. 🫢


✨ NAME ✨

delbddassoc β€” deletes a variable association. periodt. πŸ’…


🌍 ORIGIN 🌍

this software belongs to the ALLIANCE CAD SYSTEM β€” it was developed by the ASIM team at the LIP6 laboratory of UniversitοΏ½ Pierre and Marie CURIE, in Paris, France. πŸ—ΌπŸ’–

Web : http://asim.lip6.fr/recherche/alliance/

E-mail : alliance-users@asim.lip6.fr


πŸ¦‹ SYNOPSIS πŸ¦‹

#include "bdd101.h"
int delbddassoc( BddSystem, BddAssoc )
  bddsystem  βˆ—BddSystem;
  bddassoc   βˆ—BddAssoc;

πŸ’œ PARAMETERS πŸ’œ

  • BddSystem β€” the bdd system. the whole system vibe.
  • BddAssoc β€” the variable association to delete. the one getting deleted, periodt.

🌸 DESCRIPTION 🌸

okay so delbddassoc deletes the variable association BddAssoc in the bdd system BddSystem. if you pass a null pointer, the default bdd system is used β€” default system era. 🫢

the way that for all the bdd nodes of the variable association BddAssoc, the number of external reference is decremented? literal bookkeeping, bestie. πŸ’…


⭐ RETURN VALUE ⭐

vibe check: delbddassoc returns 1 if the variable association is found, and 0 otherwise. slay. ✨


πŸ”₯ EXAMPLE πŸ”₯

not me keeping every line exactly as written β€” no edits from me, periodt:

       #include "bdd101.h"
          bddsystem  βˆ—BddSystem;
          bddcircuit βˆ—BddCircuit;
          bddnode    βˆ—BddNode;
          bddnode    βˆ—BddSubst;
          bddnode    βˆ—BddVariable;
          bddassoc   βˆ—Assoc;
          chain_list βˆ—Expr;
          bddvar         Variable;
          BddSystem  = createbddsystem( 100, 1000, 100, 50000 );
          BddCircuit = createbddcircuit( "hello_world", 10, 10, BddSystem );
          Expr = createablbinexpr( ABL_AND,
                                   createablatom( "i0" ),
                                   createablatom( "i1" ) );
          BddNode = addbddcircuitabl( BddCircuit, Expr );
          freeablexpr( Expr );
          Expr = createablbinexpr( ABL_OR,
                                   createablatom( "i2" ),
                                   createablatom( "i3" ) );
          BddSubst = addbddcircuitabl( BddCircuit, Expr );
          freeablexpr( Expr );
          BddVariable = searchbddcircuitin( (bddcircuit βˆ—)0, "i0" );
          Variable = getbddvarbyindex( (bddsystem βˆ—)0, BddVariable->INDEX );
          Assoc = delbddassoc( (bddsystem βˆ—)0 );
          addbddnodeassoc( (bddsystem βˆ—)0, Assoc, Variable, BddSubst );
          BddNode = substbddnodeassoc( (bddsystem βˆ—)0, BddSubst, Assoc );
          delbddassoc( (bddsystem βˆ—)0, Assoc );
          Expr = convertbddcircuitabl( BddCircuit, BddNode );
          /* displays ((i3 or i2) and i1) */
          viewablexpr( Expr, ABL_VIEW_VHDL );
          freeablexpr( Expr );
          destroybddassoc( (bddsystem βˆ—)0 );
          destroybddsystem( (bddsystem βˆ—)0 );
          destroybddcircuit( (bddcircuit βˆ—)0 );

πŸ‘‘ SEE ALSO πŸ‘‘

  • bdd(1) β€” go read that one too, bestie. πŸ’–

πŸ’€ BUG REPORT πŸ’€

real talk: this tool is under development at the ASIM department of the LIP6 laboratory. we need your feedback to improve documentation and tools. fr fr, your feedback matters. πŸ™ˆ


mwah πŸ’‹ β€” this page is from ASIM/LIP6, dated October 1, 1997. DELBDDASSOC(3) out πŸ’–βœ¨

πŸ“¦ where this page comes from