예제 #1
0
        public void Lemma17Test(CspInstance instance)
        {
            var res = CSPLemmas.Lemma17(instance, out bool applied);

            if (applied == false)
            {
                Assert.Null(CSPLemmas.FindBadThreeComponent(instance, false));
            }
            else
            {
                foreach (var inst in res)
                {
                    Lemma17Test(inst);
                }
            }
        }
예제 #2
0
        public void Lemma15Test(CspInstance instance)
        {
            var res = CSPLemmas.Lemma15(instance, out bool b);

            if (b == true)
            {
                foreach (var inst in res)
                {
                    if (inst != null)
                    {
                        Lemma15Test(inst);
                    }
                }
            }
            else
            {
                Assert.Null(CSPLemmas.FindBadThreeComponent(instance, true));
            }
        }