Skip to content

Commit

Permalink
egraphs: fix important parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Dec 19, 2024
1 parent 2605802 commit 4aea4db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion patronus-egraphs/src/arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use std::cmp::Ordering;
use std::fmt::{Display, Formatter};
use std::str::FromStr;


define_language! {
/// Intermediate expression language for bit vector arithmetic rewrites.
/// Inspired by: "ROVER: RTL Optimization via Verified E-Graph Rewriting" (TCAD'24)
Expand Down Expand Up @@ -154,7 +155,7 @@ impl FromStr for Sign {
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s {
"sign" => Ok(Self::Signed),
"unsign" => Ok(Self::Signed),
"unsign" => Ok(Self::Unsigned),
_ => Err(()),
}
}
Expand Down

0 comments on commit 4aea4db

Please sign in to comment.