public override Predicate exec(Prolog engine) { engine.setB0(); Term a1, a2, a3, a4, a5, a6; Predicate p1, p2, p3; a1 = arg1.Dereference(); a2 = arg2.Dereference(); a3 = arg3.Dereference(); if (a1.IsList()) { a4 = ((ListTerm)a1).cdr; } else if (a1.IsVariable()) { a4 = engine.makeVariable(); if (!a1.Unify(new ListTerm(engine.makeVariable(), a4), engine.trail)) { return(engine.fail()); } } else { return(engine.fail()); } a5 = engine.makeVariable(); Term[] h2 = { engine.makeVariable() }; a6 = new StructureTerm(f1, h2); p1 = new Predicates.dollar_cut_1(a5, cont); p2 = new Predicates.CrearTrofeo_4(a4, a2, s3, a3, p1); p3 = new Predicates.Retractall_1(a6, p2); return(new Predicates.dollar_getLevel_1(a5, p3)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4, a5, a6, a7, a8, a9; 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(); a6 = engine.aregs[6].Dereference(); a7 = engine.aregs[7].Dereference(); Predicate cont = engine.cont; a8 = engine.makeVariable(); Term[] h3 = { a6 }; a9 = new StructureTerm(f2, h3); p1 = new Predicates.dollar_cut_1(a8, cont); p2 = new Predicates.CrearTrofeo_4(a1, a2, a7, a4, p1); p3 = new Predicates.dollar_plus_3(a3, s1, a7, p2); p4 = new Predicates.Assert_1(a9, p3); p5 = new Predicates.dollar_dummy__189511930__15_1(a6, p4); p6 = new Predicates.Contiene_2(a1, a6, p5); p7 = new Predicates.Random_3(s1, a5, a6, p6); p8 = new Predicates.dollar_plus_3(a2, s1, a5, p7); return(new Predicates.dollar_getLevel_1(a8, p8)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4, a5; Predicate p1, p2, p3; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); Predicate cont = engine.cont; if (a1.IsList()) { a3 = ((ListTerm)a1).cdr; } else if (a1.IsVariable()) { a3 = engine.makeVariable(); if (!a1.Unify(new ListTerm(engine.makeVariable(), a3), engine.trail)) { return(engine.fail()); } } else { return(engine.fail()); } a4 = engine.makeVariable(); a5 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a4, cont); p2 = new Predicates.dollar_plus_3(a5, s1, a2, p1); p3 = new Predicates.Contar_2(a3, a5, p2); return(new Predicates.dollar_getLevel_1(a4, p3)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4; Predicate p1, p2, p3; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); Predicate cont = engine.cont; if (a1.IsList()) { a3 = ((ListTerm)a1).car; if (!s1.Unify(((ListTerm)a1).cdr, engine.trail)) { return(engine.fail()); } } else if (a1.IsVariable()) { a3 = engine.makeVariable(); if (!a1.Unify(new ListTerm(a3, s1), engine.trail)) { return(engine.fail()); } } else { return(engine.fail()); } a4 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a4, cont); p2 = new Predicates.dollar_unify_2(a3, a2, p1); p3 = new Predicates.dollar_dummy__189511930__25_1(a3, p2); return(new Predicates.dollar_getLevel_1(a4, p3)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4, a5, a6; Predicate p1, p2, p3, p4; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); Predicate cont = engine.cont; if (a1.IsList()) { a3 = ((ListTerm)a1).car; a4 = ((ListTerm)a1).cdr; } else if (a1.IsVariable()) { a3 = engine.makeVariable(); a4 = engine.makeVariable(); if (!a1.Unify(new ListTerm(a3, a4), engine.trail)) { return(engine.fail()); } } else { return(engine.fail()); } a5 = engine.makeVariable(); a6 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a5, cont); p2 = new Predicates.Verificar_Adyacencias_2(a4, a2, p1); p3 = new Predicates.dollar_dummy__189511930__29_4(a3, a2, a6, engine.makeVariable(), p2); p4 = new Predicates.Obtener_Cabeza_2(a4, a6, p3); return(new Predicates.dollar_getLevel_1(a5, p4)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4, a5, a6, a7, a8, a9, a10; 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(); a6 = engine.aregs[6].Dereference(); a7 = engine.aregs[7].Dereference(); a8 = engine.aregs[8].Dereference(); a9 = engine.aregs[9].Dereference(); Predicate cont = engine.cont; a10 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a10, cont); p2 = new Predicates.dollar_is_2(a4, a7, p1); p3 = new Predicates.dollar_is_2(a3, a6, p2); p4 = new Predicates.Esta_En_Bordes_3(a7, a1, a2, p3); p5 = new Predicates.Esta_En_Bordes_3(a6, a1, a2, p4); p6 = new Predicates.dollar_dummy__189511930__7_2(a6, a7, p5); p7 = new Predicates.Random_3(s1, a5, a7, p6); p8 = new Predicates.Random_3(s1, a5, a6, p7); return(new Predicates.dollar_getLevel_1(a10, p8)); }
public override Predicate exec(Prolog engine) { engine.setB0(); Term a1, a2; Predicate p1, p2; a1 = arg1.Dereference(); a2 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a2, cont); p2 = new Predicates.ObtenerArregloTrofeoAux_2(s1, a1, p1); return(new Predicates.dollar_getLevel_1(a2, p2)); }
public override Predicate exec(Prolog engine) { Term a1, a2; Predicate p1, p2, p3; a1 = engine.aregs[1].Dereference(); Predicate cont = engine.cont; a2 = engine.makeVariable(); p1 = new Predicates.dollar_fail_0(cont); p2 = new Predicates.dollar_cut_1(a2, p1); p3 = new Predicates.Es_Trofeo_1(a1, p2); return(new Predicates.dollar_getLevel_1(a2, p3)); }
public override Predicate exec(Prolog engine) { engine.setB0(); Term a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21; Predicate p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16; a1 = arg1.Dereference(); a2 = arg2.Dereference(); a3 = arg3.Dereference(); a4 = arg4.Dereference(); a5 = arg5.Dereference(); a6 = engine.makeVariable(); a7 = engine.makeVariable(); a8 = engine.makeVariable(); a9 = engine.makeVariable(); a10 = engine.makeVariable(); Term[] h2 = { engine.makeVariable() }; a11 = new StructureTerm(f1, h2); a12 = engine.makeVariable(); Term[] h4 = { engine.makeVariable(), engine.makeVariable() }; a13 = new StructureTerm(f3, h4); Term[] h6 = { engine.makeVariable() }; a14 = new StructureTerm(f5, h6); a15 = engine.makeVariable(); a16 = engine.makeVariable(); Term[] h9 = { engine.makeVariable() }; a17 = new StructureTerm(f8, h9); a18 = engine.makeVariable(); a19 = engine.makeVariable(); a20 = new ListTerm(a12, s10); a21 = new ListTerm(a19, s10); p1 = new Predicates.dollar_cut_1(a6, cont); p2 = new Predicates.Verificar_Laberinto_1(a1, p1); p3 = new Predicates.Concatenar_Arreglos_3(a20, a21, a1, p2); p4 = new Predicates.ObtenerArregloTrofeos_1(a19, p3); p5 = new Predicates.CrearTrofeos_3(a12, a8, a18, p4); p6 = new Predicates.Calcular_Cant_Trofeos_3(a16, a4, a18, p5); p7 = new Predicates.Retractall_1(a17, p6); p8 = new Predicates.dollar_minus_3(a15, s7, a16, p7); p9 = new Predicates.Contar_2(a12, a15, p8); p10 = new Predicates.Retractall_1(a14, p9); p11 = new Predicates.Retractall_1(a13, p10); p12 = new Predicates.GenerarCamino_5(a12, a9, a10, a2, a3, p11); p13 = new Predicates.Retractall_1(a11, p12); p14 = new Predicates.CrearCamino_5(a2, a3, a7, a9, a10, p13); p15 = new Predicates.dollar_multi_3(a2, a3, a8, p14); p16 = new Predicates.Calcular_Cant_Muros_2(a2, a7, p15); return(new Predicates.dollar_getLevel_1(a6, p16)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4; Predicate p1, p2; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); a3 = engine.aregs[3].Dereference(); Predicate cont = engine.cont; a4 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a4, cont); p2 = new Predicates.dollar_unify_2(a1, a3, p1); return(new Predicates.dollar_getLevel_1(a4, p2)); }
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)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4; Predicate p1, p2, p3; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); a3 = engine.aregs[3].Dereference(); Predicate cont = engine.cont; a4 = engine.makeVariable(); p1 = new Predicates.dollar_fail_0(cont); p2 = new Predicates.dollar_cut_1(a4, p1); p3 = new Predicates.AgregarAdyacente_3(a1, a2, a3, p2); return(new Predicates.dollar_getLevel_1(a4, p3)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3; Predicate p1, p2, p3, p4; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); Predicate cont = engine.cont; a3 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a3, cont); p2 = new Predicates.dollar_is_2(a2, a1, p1); p3 = new Predicates.dollar_greaterThan_2(a1, s2, p2); p4 = new Predicates.dollar_lessThan_2(a1, s1, p3); return(new Predicates.dollar_getLevel_1(a3, p4)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4; Predicate p1, p2, p3, p4; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); Predicate cont = engine.cont; a3 = engine.makeVariable(); a4 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a3, cont); p2 = new Predicates.dollar_multi_3(a4, s1, a2, p1); p3 = new Predicates.dollar_minus_3(a1, s2, a4, p2); p4 = new Predicates.dollar_greaterOrEqual_2(a1, s1, p3); return(new Predicates.dollar_getLevel_1(a3, p4)); }
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)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4, a5; Predicate p1, p2, p3; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); a3 = engine.aregs[3].Dereference(); a4 = engine.aregs[4].Dereference(); Predicate cont = engine.cont; a5 = engine.makeVariable(); p1 = new Predicates.dollar_fail_0(cont); p2 = new Predicates.dollar_cut_1(a5, p1); p3 = new Predicates.No_Pueden_Ser_Muros_4(a3, a4, a1, a2, p2); return(new Predicates.dollar_getLevel_1(a5, p3)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3; Predicate p1, p2; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); Predicate cont = engine.cont; if (!s1.Unify(a2, engine.trail)) { return(engine.fail()); } a3 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a3, cont); p2 = new Predicates.dollar_lessOrEqual_2(a1, s2, p1); return(new Predicates.dollar_getLevel_1(a3, p2)); }
public override Predicate exec(Prolog engine) { engine.setB0(); Term a1, a2, a3, a4, a5; Predicate p1, p2, p3, p4; a1 = arg1.Dereference(); a2 = arg2.Dereference(); a3 = engine.makeVariable(); Term[] h2 = { engine.makeVariable(), engine.makeVariable() }; a4 = new StructureTerm(f1, h2); a5 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a3, cont); p2 = new Predicates.AgregarAdyacentes_3(a5, a1, a2, p1); p3 = new Predicates.dollar_multi_3(a1, a2, a5, p2); p4 = new Predicates.Retractall_1(a4, p3); return(new Predicates.dollar_getLevel_1(a3, p4)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16; Predicate p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12; 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(); a6 = engine.aregs[6].Dereference(); a7 = engine.aregs[7].Dereference(); a8 = engine.aregs[8].Dereference(); a9 = engine.aregs[9].Dereference(); Predicate cont = engine.cont; a10 = engine.makeVariable(); Term[] h2 = { a6 }; a11 = new StructureTerm(f1, h2); Term[] h4 = { a7 }; a12 = new StructureTerm(f3, h4); Term[] h6 = { a8 }; a13 = new StructureTerm(f5, h6); Term[] h7 = { a4 }; a14 = new StructureTerm(f5, h7); Term[] h8 = { a5 }; a15 = new StructureTerm(f1, h8); Term[] h9 = { a5 }; a16 = new StructureTerm(f5, h9); p1 = new Predicates.dollar_cut_1(a10, cont); p2 = new Predicates.CrearMuros_2(a9, a3, p1); p3 = new Predicates.dollar_multi_3(a1, a2, a9, p2); p4 = new Predicates.Assert_1(a16, p3); p5 = new Predicates.Assert_1(a15, p4); p6 = new Predicates.Assert_1(a14, p5); p7 = new Predicates.dollar_dummy__189511930__2_4(a1, a2, a4, a5, p6); p8 = new Predicates.CrearCaminoAux_4(a1, a2, a4, a5, p7); p9 = new Predicates.AgregarAdyacentes_2(a1, a2, p8); p10 = new Predicates.Retractall_1(a13, p9); p11 = new Predicates.Retractall_1(a12, p10); p12 = new Predicates.Retractall_1(a11, p11); return(new Predicates.dollar_getLevel_1(a10, p12)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4, a5, a6; Predicate p1, p2, p3, p4, p5; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); Predicate cont = engine.cont; a3 = engine.makeVariable(); a4 = engine.makeVariable(); a5 = engine.makeVariable(); Term[] h2 = { a4 }; a6 = new StructureTerm(f1, h2); p1 = new Predicates.dollar_cut_1(a3, cont); p2 = new Predicates.ObtenerArregloTrofeoAux_2(a5, a2, p1); p3 = new Predicates.Retract_1(a6, p2); p4 = new Predicates.Concatenar_Valor_3(a1, a4, a5, p3); p5 = new Predicates.Es_Trofeo_1(a4, p4); return(new Predicates.dollar_getLevel_1(a3, p5)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4, a5, a6, a7, a8, a9, a10; 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(); a6 = engine.aregs[6].Dereference(); a7 = engine.aregs[7].Dereference(); a8 = engine.aregs[8].Dereference(); a9 = engine.aregs[9].Dereference(); Predicate cont = engine.cont; a10 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a10, cont); p2 = new Predicates.CrearCamino_5(a1, a2, a3, a4, a5, p1); return(new Predicates.dollar_getLevel_1(a10, p2)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4, a5, a6, a7; Predicate p1, p2, p3, p4, p5, p6; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); a3 = engine.aregs[3].Dereference(); Predicate cont = engine.cont; a4 = engine.makeVariable(); a5 = engine.makeVariable(); a6 = engine.makeVariable(); a7 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a4, cont); p2 = new Predicates.dollar_lessOrEqual_2(a1, a7, p1); p3 = new Predicates.dollar_multi_3(a2, a3, a7, p2); p4 = new Predicates.dollar_greaterThan_2(a1, a6, p3); p5 = new Predicates.dollar_multi_3(a2, a5, a6, p4); p6 = new Predicates.dollar_minus_3(a3, s1, a5, p5); return(new Predicates.dollar_getLevel_1(a4, p6)); }
public override Predicate exec(Prolog engine) { Term a1, a2, a3, a4, a5, a6, a7, a8, a9; Predicate p1, p2, p3, p4; 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(); a6 = engine.aregs[6].Dereference(); a7 = engine.aregs[7].Dereference(); Predicate cont = engine.cont; a8 = engine.makeVariable(); a9 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a8, cont); p2 = new Predicates.dollar_unify_2(a1, a6, p1); p3 = new Predicates.dollar_plus_3(a9, s1, a6, p2); p4 = new Predicates.dollar_multi_3(a2, a4, a9, p3); return(new Predicates.dollar_getLevel_1(a8, p4)); }
public override Predicate exec(Prolog engine) { engine.setB0(); Term a1, a2, a3, a4, a5, a6, a7; Predicate p1, p2, p3, p4, p5, p6, p7; a1 = arg1.Dereference(); a2 = arg2.Dereference(); a3 = arg3.Dereference(); a4 = engine.makeVariable(); a5 = engine.makeVariable(); a6 = engine.makeVariable(); a7 = engine.makeVariable(); p1 = new Predicates.dollar_plus_3(a1, a7, a3, cont); p2 = new Predicates.dollar_toInteger_2(a6, a7, p1); p3 = new Predicates.dollar_multi_3(s1, a5, a6, p2); p4 = new Predicates.dollar_minus_3(a2, a1, a5, p3); p5 = new Predicates.dollar_cut_1(a4, p4); p6 = new Predicates.dollar_integer_1(a2, p5); p7 = new Predicates.dollar_integer_1(a1, p6); return(new Predicates.dollar_getLevel_1(a4, p7)); }
public override Predicate exec( Prolog engine ) { Term a1, a2, a3, a4, a5, a6, a7, a8, a9; Predicate p1, p2, p3, p4, p5; 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; if ( !s1.Unify(a4, engine.trail) ) return engine.fail(); if ( !s1.Unify(a5, engine.trail) ) return engine.fail(); a6 = engine.makeVariable(); a8 = engine.makeVariable(); a7 = new ListTerm(a8, engine.makeVariable()); Term[] h3 = {a1, a2, a3}; a9 = new StructureTerm(f2, h3); p1 = new Predicates.dollar_cut_1(a6, cont); p2 = new Predicates.Assert_1(a9, p1); p3 = new Predicates.Free_Line_3(a1, a2, a3, p2); p4 = new Predicates.dollar_dummyLogic__4_2(a3, a8, p3); p5 = new Predicates.Available_Indexs_1(a7, p4); return new Predicates.dollar_getLevel_1(a6, p5); }
public override Predicate exec( Prolog engine ) { Term a1, a2, a3, a4, a5, a6, a7; Predicate p1, p2, p3; 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; if ( !s1.Unify(a3, engine.trail) ) return engine.fail(); if ( !s2.Unify(a4, engine.trail) ) return engine.fail(); a6 = engine.makeVariable(); Term[] h4 = {a1, a2, s1}; a7 = new StructureTerm(f3, h4); p1 = new Predicates.dollar_cut_1(a6, cont); p2 = new Predicates.Assert_1(a7, p1); p3 = new Predicates.Free_Close_Line_4(a1, a2, s1, a5, p2); return new Predicates.dollar_getLevel_1(a6, p3); }
public override Predicate exec( Prolog engine ) { Term a1, a2, a3, a4, a5; Predicate p1, p2, p3, p4; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); a3 = engine.aregs[3].Dereference(); Predicate cont = engine.cont; a4 = engine.makeVariable(); Term[] h2 = {a1, a2, a3}; a5 = new StructureTerm(f1, h2); p1 = new Predicates.dollar_fail_0(cont); p2 = new Predicates.dollar_cut_1(a4, p1); p3 = new Predicates.Retract_1(a5, p2); p4 = new Predicates.Free_Close_Line_4(engine.makeVariable(), engine.makeVariable(), engine.makeVariable(), engine.makeVariable(), p3); return new Predicates.dollar_getLevel_1(a4, p4); }
public override Predicate exec( Prolog engine ) { Term a1, a2, a3, a4; Predicate p1, p2, p3; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); Predicate cont = engine.cont; if ( !s1.Unify(a1, engine.trail) ) return engine.fail(); a3 = engine.makeVariable(); a4 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a3, cont); p2 = new Predicates.dollar_arithEqual_2(a4, s3, p1); p3 = new Predicates.dollar_remainder_3(a2, s2, a4, p2); return new Predicates.dollar_getLevel_1(a3, p3); }
public override Predicate exec(Prolog engine) { engine.setB0(); Term a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13; Predicate p1, p2, p3, p4, p5, p6, p7; a1 = arg1.Dereference(); if (a1.IsList()) { a2 = ((ListTerm)a1).car; a3 = ((ListTerm)a1).cdr; } else if (a1.IsVariable()) { a2 = engine.makeVariable(); a3 = engine.makeVariable(); if (!a1.Unify(new ListTerm(a2, a3), engine.trail)) { return(engine.fail()); } } else { return(engine.fail()); } if (a2.IsList()) { a4 = ((ListTerm)a2).car; a5 = ((ListTerm)a2).cdr; } else if (a2.IsVariable()) { a4 = engine.makeVariable(); a5 = engine.makeVariable(); if (!a2.Unify(new ListTerm(a4, a5), engine.trail)) { return(engine.fail()); } } else { return(engine.fail()); } if (a4.IsList()) { a6 = ((ListTerm)a4).car; a7 = ((ListTerm)a4).cdr; } else if (a4.IsVariable()) { a6 = engine.makeVariable(); a7 = engine.makeVariable(); if (!a4.Unify(new ListTerm(a6, a7), engine.trail)) { return(engine.fail()); } } else { return(engine.fail()); } if (a7.IsList()) { a8 = ((ListTerm)a7).car; a9 = ((ListTerm)a7).cdr; } else if (a7.IsVariable()) { a8 = engine.makeVariable(); a9 = engine.makeVariable(); if (!a7.Unify(new ListTerm(a8, a9), engine.trail)) { return(engine.fail()); } } else { return(engine.fail()); } if (a9.IsList()) { a10 = ((ListTerm)a9).car; a11 = ((ListTerm)a9).cdr; } else if (a9.IsVariable()) { a10 = engine.makeVariable(); a11 = engine.makeVariable(); if (!a9.Unify(new ListTerm(a10, a11), engine.trail)) { return(engine.fail()); } } else { return(engine.fail()); } if (a11.IsList()) { if (!s1.Unify(((ListTerm)a11).cdr, engine.trail)) { return(engine.fail()); } } else if (a11.IsVariable()) { if (!a11.Unify(new ListTerm(engine.makeVariable(), s1), engine.trail)) { return(engine.fail()); } } else { return(engine.fail()); } if (a3.IsList()) { a12 = ((ListTerm)a3).car; if (!s1.Unify(((ListTerm)a3).cdr, engine.trail)) { return(engine.fail()); } } else if (a3.IsVariable()) { a12 = engine.makeVariable(); if (!a3.Unify(new ListTerm(a12, s1), engine.trail)) { return(engine.fail()); } } else { return(engine.fail()); } a13 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a13, cont); p2 = new Predicates.Contiene_2(a5, a8, p1); p3 = new Predicates.Contiene_2(a5, a6, p2); p4 = new Predicates.Esta_Contenido_2(a12, a5, p3); p5 = new Predicates.Verificar_Adyacencias_2(a5, a10, p4); p6 = new Predicates.dollar_dummy__189511930__18_1(a12, p5); p7 = new Predicates.dollar_dummy__189511930__17_1(a5, p6); return(new Predicates.dollar_getLevel_1(a13, p7)); }
public override Predicate exec( Prolog engine ) { Term a1, a2, a3; Predicate p1, p2, p3; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); Predicate cont = engine.cont; a3 = engine.makeVariable(); p1 = new Predicates.dollar_fail_0(cont); p2 = new Predicates.dollar_cut_1(a3, p1); p3 = new Predicates.Line_3(a1, a2, s1, p2); return new Predicates.dollar_getLevel_1(a3, p3); }
public override Predicate exec( Prolog engine ) { Term a1, a2, a3, a4, a5; Predicate p1, p2, p3; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); a3 = engine.aregs[3].Dereference(); a4 = engine.aregs[4].Dereference(); Predicate cont = engine.cont; a5 = engine.makeVariable(); p1 = new Predicates.dollar_fail_0(cont); p2 = new Predicates.dollar_cut_1(a5, p1); p3 = new Predicates.Free_Close_Line_4(a1, a2, a3, a4, p2); return new Predicates.dollar_getLevel_1(a5, p3); }
public override Predicate exec( Prolog engine ) { Term a1, a2, a3; Predicate p1, p2; a1 = engine.aregs[1].Dereference(); a2 = engine.aregs[2].Dereference(); Predicate cont = engine.cont; if ( !s1.Unify(a2, engine.trail) ) return engine.fail(); a3 = engine.makeVariable(); p1 = new Predicates.dollar_cut_1(a3, cont); p2 = new Predicates.dollar_fail_0(p1); return new Predicates.dollar_getLevel_1(a3, p2); }