internal IEnumerable <CutState> Prove(object[] args, PrologContext context) { var myFrame = context.CurrentFrame; if (KnowledgeBase.Trace || Trace) { context.TraceOutput("Goal: {0}", new Structure(Name, args)); } if (Compiled) { context.PushArguments(args); return(StackCall(context)); } if (context.Randomize && Randomizable && Entries.Count > 1) { return(TestShuffledClauses(args, context, myFrame)); } return(TestClausesInOrder(args, context, myFrame)); }
internal IEnumerable<CutState> Prove(object[] args, PrologContext context) { var myFrame = context.CurrentFrame; if (KnowledgeBase.Trace || Trace) context.TraceOutput("Goal: {0}", new Structure(Name, args)); if (Compiled) { context.PushArguments(args); return StackCall(context); } if (context.Randomize && Randomizable && Entries.Count > 1) return TestShuffledClauses(args, context, myFrame); return TestClausesInOrder(args, context, myFrame); }