예제 #1
0
        internal static int IthVar(int states)         //MinValue always beeing 0
        {
            int size = Log2(states);

            FddDictionary.Add(MaxVar, size);
            for (int i = MaxVar; i < MaxVar + size; i++)
            {
                Kernel.Ithvar(i);
            }

            int result = MaxVar;

            MaxVar += size;

            return(result);                          //result beeing the StartVar.
        }
예제 #2
0
 public Bdd(int var)
 {
     U = Kernel.Ithvar(var);
 }
예제 #3
0
 /// <summary>
 /// For creating initial variable node.
 /// </summary>
 /// <param name="var">Variable number</param>
 public Bdd(int var)
 {
     u   = Kernel.Ithvar(var);
     gen = Kernel.generation;
     Ref(u);
 }