mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Implement IR equivalence checker
This commit is contained in:
@@ -178,7 +178,7 @@ pub fn test_opt<P1: AsRef<Path>, P2: AsRef<Path>, O: Optimize<ir::TranslationUni
|
||||
.expect("parse failed while parsing the output from implemented printer");
|
||||
opt.optimize(&mut ir);
|
||||
|
||||
if ir != to {
|
||||
if !ir.is_equiv(&to) {
|
||||
stderr()
|
||||
.lock()
|
||||
.write_fmt(format_args!(
|
||||
|
||||
Reference in New Issue
Block a user