Exemple #1
0
        public override Predicate exec(Prolog engine)
        {
            Term      a1, a2, a3, a4, a5, a6, a7;
            Predicate p1, p2, p3, p4, p5, p6, p7, p8;

            a1 = engine.aregs[1].Dereference();
            a2 = engine.aregs[2].Dereference();
            a3 = engine.aregs[3].Dereference();
            a4 = engine.aregs[4].Dereference();
            a5 = engine.aregs[5].Dereference();
            Predicate cont = engine.cont;

            a6 = engine.makeVariable();
            Term[] h3 = { a4 };
            a7 = new StructureTerm(f2, h3);
            p1 = new Predicates.dollar_cut_1(a6, cont);
            p2 = new Predicates.CrearMuro_3(a1, a5, a3, p1);
            p3 = new Predicates.dollar_plus_3(a2, s1, a5, p2);
            p4 = new Predicates.Assert_1(a7, p3);
            p5 = new Predicates.dollar_dummy__189511930__24_1(a4, p4);
            p6 = new Predicates.dollar_dummy__189511930__23_1(a4, p5);
            p7 = new Predicates.dollar_dummy__189511930__22_1(a4, p6);
            p8 = new Predicates.Random_3(s1, a1, a4, p7);
            return(new Predicates.dollar_getLevel_1(a6, p8));
        }
Exemple #2
0
        public override Predicate exec(Prolog engine)
        {
            engine.setB0();
            Term      a1, a2, a3, a4;
            Predicate p1, p2, p3;

            a1 = arg1.Dereference();
            a2 = arg2.Dereference();

            a3 = engine.makeVariable();
            a4 = engine.makeVariable();
            p1 = new Predicates.dollar_cut_1(a3, cont);
            p2 = new Predicates.CrearMuro_3(a4, s2, a2, p1);
            p3 = new Predicates.dollar_plus_3(a1, s1, a4, p2);
            return(new Predicates.dollar_getLevel_1(a3, p3));
        }
Exemple #3
0
        public override Predicate exec(Prolog engine)
        {
            Term      a1, a2, a3, a4, a5, a6;
            Predicate p1, p2;

            a1 = engine.aregs[1].Dereference();
            a2 = engine.aregs[2].Dereference();
            a3 = engine.aregs[3].Dereference();
            a4 = engine.aregs[4].Dereference();
            a5 = engine.aregs[5].Dereference();
            Predicate cont = engine.cont;

            a6 = engine.makeVariable();
            p1 = new Predicates.dollar_cut_1(a6, cont);
            p2 = new Predicates.CrearMuro_3(a1, a2, a3, p1);
            return(new Predicates.dollar_getLevel_1(a6, p2));
        }