1GETBDDVARBYINDEX(3) BDD FUNCTIONS GETBDDVARBYINDEX(3)
2
3
4
6 getbddvarbyindex - converts bdd index to a variable number.
7
9 #include "bdd101.h"
10 bddindex getbddvarbyindex( BddSystem, Index )
11 bddsystem ∗BddSystem;
12 bddindex Index;
13
15 BddSystem The bdd system.
16
17 Index The bdd index to convert.
18
20 getbddvarbyindex converts the bdd index Index to a variable number, in
21 the bdd system BddSystem. If a null pointer is given, the default bdd
22 system is used. The function uses simply the translation table BddSys‐
23 tem->INDEX_TO_VAR.
24
26 getbddvarbyindex returns the variable number of the bdd index Index.
27
29 "index xxx out of range, error !"
30 The Index parameter must be a valid index.
31
33 #include "bdd101.h"
34 bddsystem ∗BddSystem;
35 bddnode ∗BddNode;
36 BddSystem = createbddsystem( 100, 1000, 100, 50000 );
37 BddNode = addbddvar( (bddsystem ∗)0, 0 );
38 /* displays 0 */
39 printf( "%d", getbddvarbyindex( (bddsystem ∗)0, BddNode->INDEX ) );
40 destroybddsystem( (bddsystem ∗)0 );
41
43 bdd(1)
44
45
46
47
48
49
50ASIM/LIP6 October 1, 1997 GETBDDVARBYINDEX(3)