Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Jan 13, 2025
1 parent 6a7dc7e commit 2732c20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions patronus-egraphs/src/rewrites.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ fn lsh_no_ov(wo: WidthInt, wa: WidthInt, wb: WidthInt) -> bool {
wo >= eval_width_left_shift(wa, wb)
}

/// Represents a constraint for a width. Can be used to check whether a rewrite can be applied,
/// as well as to derive a legal width for the right-hand-side of a rewrite.
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
pub enum WidthConstraint {
AddNoOverflow(Var, Var),
Expand Down

0 comments on commit 2732c20

Please sign in to comment.