public void Alst_Self() { var alst = new AliasState(); alst.Add(eax); var aliases = alst.GetAliases(eax); Assert.AreEqual("eax", string.Join(" ", aliases.Select(a => ((RegisterStorage)a).Name).OrderBy(r => r))); }
public void Alst_NonOverlap() { var alst = new AliasState(); alst.Add(ah); alst.Add(al); var aliases = alst.GetAliases(ah); Assert.AreEqual("ah", string.Join(" ", aliases.Select(a => ((RegisterStorage)a).Name).OrderBy(r => r))); }