SWAPBDDVAR(3)

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

πŸ’… SWAPBDDVAR(3) β€” the swap-your-variables one, bestie

okay so this is a page from the BDD FUNCTIONS manual, and it's literally about swapping two variables that are sitting right next to each other. tiny function, big main character energy. let's get into it 🫢


✨ NAME ✨

swapbddvar β€” swaps two contiguous variables. that's it. that's the whole gig. πŸ’«


🌸 ORIGIN 🌸

bestie 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. fancy!! πŸ‡«πŸ‡·

like, actual real humans you can email. iconic.


πŸŽ€ SYNOPSIS πŸŽ€

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

πŸ¦‹ PARAMETERS πŸ¦‹

  • BddSystem β€” the bdd system. yes, the whole system. it's giving "you need the vibe before you can do anything" ✨
  • Variable β€” the variable to swap. the one you're yeeting one slot over πŸ’…

πŸ’– DESCRIPTION πŸ’–

so swapbddvar swaps the variable number Variable with the variable number Variable + 1, inside the bdd system BddSystem. like they literally trade places. not me reorganizing the whole friend group πŸ™ˆ

if a null pointer is given, the default bdd system is used. no cap, it just knows which one you meant.

this function is useful for the bdd nodes reordering β€” that's the whole point, that's the assignment, that's why we're here, periodt. πŸ”₯


⭐ RETURN VALUE ⭐

swapbddvar returns nothing. void. empty. she gives you nothing back and she doesn't need to πŸ’€


πŸ’€ ERRORS πŸ’€

  • "variable xxx out of range, error !" β€” the Variable and Variable + 1 must be valid variables number. so like, please don't hand her a variable that doesn't exist, it will literally yell at you 😭

🌈 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 );

look at her go. create, add, add, swap, destroy. a full little lifecycle, we love a tidy queen πŸ‘‘


🧚 SEE ALSO 🧚

  • bdd(1) β€” go read that one too, iykyk

πŸ“ BUG REPORT πŸ“

this tool is under development at the ASIM department of the LIP6 laboratory. πŸ› οΈ

we need your feedback to improve documentation and tools. fr fr, they're literally asking. send the feedback. be the helpful bestie. πŸ’œ


quick vibe check reminder: Variable and Variable + 1 both gotta be valid variable numbers, or you get the out-of-range error. no skipping. πŸ™‚β€β†”οΈ

and that's the page!! brought to you by ASIM/LIP6, dated October 1, 1997 β€” yes, she's been slaying since the 90s, and the manual name in the corner is SWAPBDDVAR(3) in case you forgot where you were πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from