Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose normal_from and is_full_node #116

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
}
Loading