-
Notifications
You must be signed in to change notification settings - Fork 18
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
Debuggable lattices #53
Conversation
2238213
to
b72b903
Compare
@@ -3,7 +3,7 @@ use std::cmp::Ordering; | |||
use super::{BoundedLattice, Lattice}; | |||
|
|||
/// A flat `Lattice`: `Bottom` <= everything <= `Top`, and `Constant(x) == Constant(y)` iff `x == y` | |||
#[derive(PartialEq, Eq, Clone, Copy, Debug, Hash)] | |||
#[derive(PartialEq, Eq, Clone, Copy, Hash, Debug)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please undo this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { self.0.fmt(f) } | ||
} | ||
|
||
impl<T: Debug> Display for OrdLattice<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this impl is appropriate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
b72b903
to
2281d99
Compare
Some of the lattice types don't impl
std::fmt::Debug
, making it tedious to debug a program's state.