Skip to content

Commit

Permalink
Merge pull request #70 from Riddhimaan-Senapati/main
Browse files Browse the repository at this point in the history
Fixed issue #69
  • Loading branch information
ninehusky authored Jan 27, 2025
2 parents 2b49bca + 6e8556c commit 3082744
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/chomper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ pub trait Chomper {
}
}

/// Runs the existing set of `non-cond-rewrites` and `cond-rewrites` in the e-graph
/// Runs the existing set of `total-rewrites` and `cond-rewrites` in the e-graph
/// for the given number of iterations. If no number of iterations is given, the rewrites
/// are run until saturation.
fn run_rewrites(&self, egraph: &mut EGraph, iters: Option<usize>) {
Expand All @@ -127,15 +127,15 @@ pub trait Chomper {
r#"
(run-schedule
(repeat {limit}
(run non-cond-rewrites)
(run total-rewrites)
(run cond-rewrites)))
"#
)
.to_string()
} else {
r#"
(run-schedule
(saturate non-cond-rewrites)
(saturate total-rewrites)
(saturate cond-rewrites))
"#
.to_string()
Expand Down Expand Up @@ -287,7 +287,7 @@ pub trait Chomper {
(({UNIVERSAL_RELATION} {lhs}))
(({UNIVERSAL_RELATION} {rhs})
(union {lhs} {rhs}))
:ruleset non-cond-rewrites)
:ruleset total-rewrites)
"#
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ pub trait ChompyLanguage {
;;; forward ruleset definitions
(ruleset eclass-report)
(ruleset non-cond-rewrites)
(ruleset total-rewrites)
(ruleset cond-rewrites)
;;; a "function", more or less, that prints out each e-class and its
Expand Down

0 comments on commit 3082744

Please sign in to comment.