Skip to content

Commit

Permalink
Merge pull request #510 from bvssvni/master
Browse files Browse the repository at this point in the history
Added `EqvEval`
  • Loading branch information
bvssvni committed May 30, 2020
2 parents 1c39ab5 + e0e3e8e commit eead728
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/knowledge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ pub enum Knowledge {
Red(Expr, Expr),
/// Two expressions that are equivalent but neither normalizes the other.
Eqv(Expr, Expr),
/// Two expressions that are equivalent but evaluates from left to right.
EqvEval(Expr, Expr),
}

impl fmt::Display for Knowledge {
Expand All @@ -20,6 +22,7 @@ impl fmt::Display for Knowledge {
Def(a, b) => write!(w, "{} := {}", a, b)?,
Red(a, b) => write!(w, "{} => {}", a, b)?,
Eqv(a, b) => write!(w, "{} <=> {}", a, b)?,
EqvEval(a, b) => write!(w, "{} <=> {}", a, b)?,
}
Ok(())
}
Expand Down

0 comments on commit eead728

Please sign in to comment.