Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
infogulch committed Nov 11, 2023
1 parent 8570f11 commit f704fcb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
12 changes: 6 additions & 6 deletions src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,12 @@ impl DebrayAllocator {
self.mark_var_in_non_callable(var_num, term_loc, vr, code);
temp_v!(arg)
} else {
match &self.var_data.records[var_num].allocation {
VarAlloc::Perm(_, PermVarAllocation::Pending) => {
self.mark_var_in_non_callable(var_num, term_loc, vr, code);
}
_ => {}
}
match &self.var_data.records[var_num].allocation {
VarAlloc::Perm(_, PermVarAllocation::Pending) => {
self.mark_var_in_non_callable(var_num, term_loc, vr, code);
}
_ => {}
}

self.increment_running_count(var_num);
RegType::Perm(p)
Expand Down
10 changes: 5 additions & 5 deletions src/debray_allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ impl DebrayAllocator {
for var_num in subsumed_hits {
match &mut self.var_data.records[var_num].allocation {
VarAlloc::Perm(_, ref mut allocation) => {
if let PermVarAllocation::Done {
if let PermVarAllocation::Done {
shallow_safety,
deep_safety,
..
} = allocation
{
{
if !self
.branch_stack
.safety_unneeded_in_branch(shallow_safety, &branch_designator)
Expand All @@ -188,7 +188,7 @@ impl DebrayAllocator {
branch_occurrences.deep_safety.insert(var_num);
}
}

*allocation = PermVarAllocation::Pending;
}
_ => unreachable!(),
Expand Down Expand Up @@ -470,7 +470,7 @@ impl DebrayAllocator {

#[inline(always)]
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 {
Expand Down Expand Up @@ -748,7 +748,7 @@ impl Allocator for DebrayAllocator {
}
RegType::Perm(0) => {
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)
}
r @ RegType::Perm(_) => {
Expand Down
2 changes: 0 additions & 2 deletions src/forms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -885,8 +885,6 @@ pub(crate) struct PredicateInfo {
pub(crate) has_clauses: bool,
}



impl PredicateInfo {
#[inline]
pub(crate) fn compile_incrementally(&self) -> bool {
Expand Down

0 comments on commit f704fcb

Please sign in to comment.