コード例 #1
0
        public Conjunct Add(Disjunct d)
        {
            var ans = new Conjunct(this);

            ans.Join(d);
            return(ans);
        }
コード例 #2
0
        public Conjunct Add(Conjunct c)
        {
            var ans = new Conjunct(this);

            ans.Join(c);
            return(ans);
        }
コード例 #3
0
        public Conjunct Disjunction(Conjunct c)
        {
            var ans = new Conjunct();

            if (IsEmpty())
            {
                return(new Conjunct(c));
            }
            if (c.IsEmpty())
            {
                return(new Conjunct(this));
            }

            foreach (var d1 in _disjuncts)
            {
                foreach (var d2 in c._disjuncts)
                {
                    var d = d1.Add(d2);
                    ans.Join(d);
                }
            }
            return(ans);
        }