Exemplo n.º 1
0
        internal override Automaton <BDD> GetAutomatonBDD(SimpleList <Variable> variables, IBDDAlgebra alg, int nrOfLabelBits, bool singletonSetSemantics)
        {
            var pos1 = GetVarIndex(var1, variables) + nrOfLabelBits;
            var pos2 = GetVarIndex(var2, variables) + nrOfLabelBits;

            if (singletonSetSemantics)
            {
                return(BasicAutomata.MkLt1(pos1, pos2, alg));
            }
            else
            {
                return(BasicAutomata.MkLt2(pos1, pos2, alg));
            }
        }
Exemplo n.º 2
0
        internal override Automaton <IMonadicPredicate <BDD, T> > GetAutomatonX(SimpleList <Variable> variables, ICartesianAlgebraBDD <T> alg, bool singletonSetSemantics)
        {
            var pos1 = GetVarIndex(var1, variables);
            var pos2 = GetVarIndex(var2, variables);

            if (singletonSetSemantics)
            {
                return(BasicAutomata.MkLt1 <T>(pos1, pos2, alg));
            }
            else
            {
                return(BasicAutomata.MkLt2 <T>(pos1, pos2, alg));
            }
        }
Exemplo n.º 3
0
        internal override Automaton <BDD> getAutomatonBDD(SimpleList <Variable> variables, IBDDAlgebra alg, int nrOfLabelBits)
        {
            var pos1 = variables.IndexOf(var1);
            var pos2 = variables.IndexOf(var2);

            if (pos1 < 0 || pos2 < 0)
            {
                throw new AutomataException(AutomataExceptionKind.InvalidWS1Sformula_UnknownVariable);
            }

            pos1 = pos1 + nrOfLabelBits;
            pos2 = pos2 + nrOfLabelBits;

            return(BasicAutomata.MkLt1(pos1, pos2, alg));
        }