Fix formatting issues
This commit is contained in:
@@ -296,12 +296,12 @@ impl DebrayAllocator {
|
|||||||
self.mark_var_in_non_callable(var_num, term_loc, vr, code);
|
self.mark_var_in_non_callable(var_num, term_loc, vr, code);
|
||||||
temp_v!(arg)
|
temp_v!(arg)
|
||||||
} else {
|
} else {
|
||||||
match &self.var_data.records[var_num].allocation {
|
match &self.var_data.records[var_num].allocation {
|
||||||
VarAlloc::Perm(_, PermVarAllocation::Pending) => {
|
VarAlloc::Perm(_, PermVarAllocation::Pending) => {
|
||||||
self.mark_var_in_non_callable(var_num, term_loc, vr, code);
|
self.mark_var_in_non_callable(var_num, term_loc, vr, code);
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
||||||
self.increment_running_count(var_num);
|
self.increment_running_count(var_num);
|
||||||
RegType::Perm(p)
|
RegType::Perm(p)
|
||||||
|
|||||||
@@ -166,12 +166,12 @@ impl DebrayAllocator {
|
|||||||
for var_num in subsumed_hits {
|
for var_num in subsumed_hits {
|
||||||
match &mut self.var_data.records[var_num].allocation {
|
match &mut self.var_data.records[var_num].allocation {
|
||||||
VarAlloc::Perm(_, ref mut allocation) => {
|
VarAlloc::Perm(_, ref mut allocation) => {
|
||||||
if let PermVarAllocation::Done {
|
if let PermVarAllocation::Done {
|
||||||
shallow_safety,
|
shallow_safety,
|
||||||
deep_safety,
|
deep_safety,
|
||||||
..
|
..
|
||||||
} = allocation
|
} = allocation
|
||||||
{
|
{
|
||||||
if !self
|
if !self
|
||||||
.branch_stack
|
.branch_stack
|
||||||
.safety_unneeded_in_branch(shallow_safety, &branch_designator)
|
.safety_unneeded_in_branch(shallow_safety, &branch_designator)
|
||||||
@@ -470,7 +470,7 @@ impl DebrayAllocator {
|
|||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn get_binding(&self, var_num: usize) -> RegType {
|
pub fn get_binding(&self, var_num: usize) -> RegType {
|
||||||
self.var_data.records[var_num].allocation.as_reg_type()
|
self.var_data.records[var_num].allocation.as_reg_type()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn num_perm_vars(&self) -> usize {
|
pub fn num_perm_vars(&self) -> usize {
|
||||||
@@ -748,7 +748,7 @@ impl Allocator for DebrayAllocator {
|
|||||||
}
|
}
|
||||||
RegType::Perm(0) => {
|
RegType::Perm(0) => {
|
||||||
let p = self.alloc_perm_var(var_num, term_loc.chunk_num());
|
let p = self.alloc_perm_var(var_num, term_loc.chunk_num());
|
||||||
cell.set(VarReg::Norm(RegType::Perm(p)));
|
cell.set(VarReg::Norm(RegType::Perm(p)));
|
||||||
(RegType::Perm(p), true)
|
(RegType::Perm(p), true)
|
||||||
}
|
}
|
||||||
r @ RegType::Perm(_) => {
|
r @ RegType::Perm(_) => {
|
||||||
|
|||||||
@@ -885,8 +885,6 @@ pub(crate) struct PredicateInfo {
|
|||||||
pub(crate) has_clauses: bool,
|
pub(crate) has_clauses: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
impl PredicateInfo {
|
impl PredicateInfo {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub(crate) fn compile_incrementally(&self) -> bool {
|
pub(crate) fn compile_incrementally(&self) -> bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user