Skip to content

Commit

Permalink
Expose normal_from and is_full_node (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
imaqtkatt authored Apr 9, 2024
1 parent f13f24c commit 54cf65f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/run/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl<'a, M: Mode> Net<'a, M> {

// Lazy mode weak head normalizer
#[inline(always)]
fn weak_normal(&mut self, mut prev: Port, root: Wire) -> Port {
pub fn weak_normal(&mut self, mut prev: Port, root: Wire) -> Port {
assert!(M::LAZY);

let mut path: Vec<Port> = vec![];
Expand Down
2 changes: 1 addition & 1 deletion src/run/port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl Port {
Port::new(Var, 0, self.addr())
}

pub(super) fn is_full_node(&self) -> bool {
pub fn is_full_node(&self) -> bool {
self.tag() > Num
}
}

0 comments on commit 54cf65f

Please sign in to comment.