SWAPBDDVAR(3)

πŸ“¦ version 5.1.1, in fedora 43, fedora 44

πŸ’– SWAPBDDVAR πŸ’–

okay bestie, welcome to the swapbddvar page from the BDD FUNCTIONS manual β€” it's giving very specific, very powerful, very "two variables walk into a bar and switch places" energy ✨


🌸 NAME 🌸

swapbddvar β€” swaps two contiguous variables. that's it. that's the whole job. and she does it flawlessly πŸ’…


πŸ¦‹ ORIGIN πŸ¦‹

so this software belongs to the ALLIANCE CAD SYSTEM, developed by the ASIM team at the LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France πŸ‡«πŸ‡·βœ¨

like, they literally built a whole CAD system. main character energy fr fr πŸ‘‘


✨ SYNOPSIS ✨

#include "bdd101.h"
void swapbddvar( BddSystem, Variable )
  bddsystem βˆ—BddSystem;
  bddvar     Variable;

πŸŽ€ PARAMETERS πŸŽ€

  • BddSystem β€” the bdd system. yes, the one. your whole little universe of nodes 🌈
  • Variable β€” the variable to swap. she's getting a new neighbor, no cap.

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea β˜•: swapbddvar swaps the variable number Variable with the variable number Variable + 1, inside the bdd system BddSystem.

and if you hand her a null pointer? she just uses the default bdd system. lowkey iconic behavior, honestly 🫢

this function is useful for the bdd nodes reordering β€” so like, when your nodes need a lil glow-up and a new arrangement, this is the girl you call πŸ’…βœ¨


⭐ RETURN VALUE ⭐

swapbddvar returns nothing. she gives you no receipts, no notes, no little gift. just vibes. 😌


πŸ’€ ERRORS πŸ’€

  • "variable xxx out of range, error !" β€” this pops up when Variable and Variable + 1 aren't valid variable numbers. so like, pls give her valid ones bestie, she's begging πŸ™ˆ

🌸 EXAMPLE 🌸

#include "bdd101.h"
   bddsystem  βˆ—BddSystem;
   bddnode    βˆ—BddNode1;
   bddnode    βˆ—BddNode2;
   BddSystem  = createbddsystem( 100, 1000, 100, 50000 );
   BddNode1 = addbddvar( (bddsystem βˆ—)0, 0 );
   BddNode2 = addbddvar( (bddsystem βˆ—)0, 0 );
   swapbddvar( (bddsystem βˆ—)0, 0 );
   destroybddsystem( (bddsystem βˆ—)0 );

see how she created a system, added some vars, swapped, and cleaned up after herself? that's called being a responsible queen πŸ‘‘πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

go read that one too, iykyk πŸ“šβœ¨


🧚 BUG REPORT 🧚

this tool is under development at the ASIM department of the LIP6 laboratory. they need your feedback to improve documentation and tools β€” so like, if something's weird, TELL THEM. they're literally asking. don't leave them on read πŸ˜­πŸ’Œ


ASIM/LIP6 Β· October 1, 1997 Β· and that's the SWAPBDDVAR(3) page bestie β€” go forth and swap those variables, you absolute legend πŸŽ€πŸ’–βœ¨πŸ¦‹