refine code generation, scale back unsafe variable instructions for conjunctive queries

This commit is contained in:
Mark Thom
2017-05-17 16:32:46 -06:00
parent 5fa9881556
commit 5efee09434
2 changed files with 47 additions and 64 deletions

View File

@@ -133,15 +133,6 @@ pub struct Rule {
pub clauses: Vec<TermOrCut>
}
impl Rule {
pub fn last_clause(&self) -> &TermOrCut {
match self.clauses.last() {
None => &self.head.1,
Some(clause) => clause
}
}
}
#[derive(Clone, Copy)]
pub enum TermRef<'a> {
AnonVar(Level),