Handle input predicates correctly

This commit is contained in:
Patrick Lühne 2020-05-28 06:29:57 +02:00
parent 1e55f733d0
commit 870fdd048c
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
2 changed files with 7 additions and 1 deletions

View File

@ -117,7 +117,8 @@ impl PredicateDeclaration
let dependencies = match *dependencies let dependencies = match *dependencies
{ {
Some(ref dependencies) => dependencies, Some(ref dependencies) => dependencies,
None => unreachable!("all dependencies should have been collected at this point"), // Input predicates dont have completed definitions and no dependencies, so ignore them
None => return,
}; };
for dependency in dependencies.iter() for dependency in dependencies.iter()

View File

@ -69,6 +69,11 @@ impl Problem
continue; continue;
} }
if *predicate_declaration.is_input.borrow()
{
continue;
}
let matching_statement = |statement: &&Statement| let matching_statement = |statement: &&Statement|
match statement.kind match statement.kind
{ {