Fixed typo in register equivalence algorithm