Ignore built-in predicates in completion
This commit is contained in:
parent
7020bc0bf0
commit
34b8dce9be
@ -144,7 +144,8 @@ impl Problem
|
|||||||
|
|
||||||
let hidden_predicate_declarations =
|
let hidden_predicate_declarations =
|
||||||
predicate_declarations.iter().filter(|x| !output_predicate_declarations.contains(*x)
|
predicate_declarations.iter().filter(|x| !output_predicate_declarations.contains(*x)
|
||||||
&& !input_predicate_declarations.contains(*x));
|
&& !input_predicate_declarations.contains(*x)
|
||||||
|
&& !(x.name.starts_with("p__") && x.name.ends_with("__")));
|
||||||
|
|
||||||
let mut statements = self.statements.borrow_mut();
|
let mut statements = self.statements.borrow_mut();
|
||||||
|
|
||||||
|
@ -143,8 +143,10 @@ impl<'p> Translator<'p>
|
|||||||
|
|
||||||
for predicate_declaration in self.problem.predicate_declarations.borrow().iter()
|
for predicate_declaration in self.problem.predicate_declarations.borrow().iter()
|
||||||
{
|
{
|
||||||
// Don’t perform completion for input predicates
|
// Don’t perform completion for input predicates and built-in predicates
|
||||||
if self.problem.input_predicate_declarations.borrow().contains(predicate_declaration)
|
if self.problem.input_predicate_declarations.borrow().contains(predicate_declaration)
|
||||||
|
|| predicate_declaration.name.starts_with("p__")
|
||||||
|
&& predicate_declaration.name.ends_with("__")
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user