SWAPBDDVAR(3)
π 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!! π«π·
- Web :
http://asim.lip6.fr/recherche/alliance/ - E-mail :
alliance-users@asim.lip6.fr
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 !"β theVariableandVariable + 1must 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:VariableandVariable + 1both 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
- nixos 26.05: alliance 5.1.1-unstable-2025-02-24
- nixpkgs unstable: alliance 5.1.1-unstable-2025-02-24
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms