public override void Analyze(string language, string code) { base.Analyze(language, code); CodeLines = code.ParseCode(language); SuffixTree = new Bor <string>(); for (var i = 0; i < CodeLines.Length; i++) { SuffixTree.Push(CodeLines, i); ParsedCodeLength += CodeLines[i].Length; } }
public void Bor_RegisterOperands_ResultIsCorrect() { var prev = new MutableState().Set(Register.A, 6).Set(Register.B, 5); var state = new Bor(new Reg(Register.A), new Reg(Register.B)).Apply(prev); Assert.AreEqual(0x7, state.Get(Register.A)); }