VCDiffInstructionMap { public short LookupFirstOpcode(byte inst, byte size, byte mode) { return first_instruction_map_.Lookup(inst, size, mode); } VCDiffInstructionMap(VCDiffCodeTableData code_table_data, byte max_mode); short LookupFirstOpcode(byte inst, byte size, byte mode); short LookupSecondOpcode(byte first_opcode, byte inst, byte size, byte mode); static final VCDiffInstructionMap DEFAULT_INSTRUCTION_MAP; }
@Test public void DefaultMapLookupFirstNoopTest() { assertEquals(kNoOpcode, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_NOOP, (byte) 0, (byte) 0)); assertEquals(kNoOpcode, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_NOOP, (byte) 0, (byte) 255)); assertEquals(kNoOpcode, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_NOOP, (byte) 255, (byte) 0)); assertEquals(kNoOpcode, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_NOOP, (byte) 255, (byte) 255)); }
@Test public void DefaultMapLookupFirstAddTest() { Assert.assertEquals(2, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 1, (byte) 0)); Assert.assertEquals(3, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 2, (byte) 0)); Assert.assertEquals(4, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 3, (byte) 0)); Assert.assertEquals(5, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 4, (byte) 0)); Assert.assertEquals(6, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 5, (byte) 0)); Assert.assertEquals(7, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 6, (byte) 0)); Assert.assertEquals(8, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 7, (byte) 0)); Assert.assertEquals(9, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 8, (byte) 0)); Assert.assertEquals(10, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 9, (byte) 0)); Assert.assertEquals(11, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 10, (byte) 0)); Assert.assertEquals(12, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 11, (byte) 0)); Assert.assertEquals(13, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 12, (byte) 0)); Assert.assertEquals(14, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 13, (byte) 0)); Assert.assertEquals(15, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 14, (byte) 0)); Assert.assertEquals(16, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 15, (byte) 0)); Assert.assertEquals(17, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 16, (byte) 0)); Assert.assertEquals(18, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 17, (byte) 0)); assertEquals(kNoOpcode, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 100, (byte) 0)); assertEquals(kNoOpcode, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 255, (byte) 0)); Assert.assertEquals(1, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 0, (byte) 0)); Assert.assertEquals(2, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 1, (byte) 2)); Assert.assertEquals(2, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_ADD, (byte) 1, (byte) 255)); }
@Test public void DefaultMapLookupFirstRun() { Assert.assertEquals(0, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_RUN, (byte) 0, (byte) 0)); assertEquals(kNoOpcode, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_RUN, (byte) 1, (byte) 0)); assertEquals(kNoOpcode, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_RUN, (byte) 255, (byte) 0)); Assert.assertEquals(0, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_RUN, (byte) 0, (byte) 2)); }
@Test public void DefaultMapLookupFirstCopyMode0() { Assert.assertEquals(19, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 0, (byte) 0)); Assert.assertEquals(20, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 4, (byte) 0)); Assert.assertEquals(21, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 5, (byte) 0)); Assert.assertEquals(22, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 6, (byte) 0)); Assert.assertEquals(23, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 7, (byte) 0)); Assert.assertEquals(24, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 8, (byte) 0)); Assert.assertEquals(25, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 9, (byte) 0)); Assert.assertEquals(26, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 10, (byte) 0)); Assert.assertEquals(27, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 11, (byte) 0)); Assert.assertEquals(28, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 12, (byte) 0)); Assert.assertEquals(29, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 13, (byte) 0)); Assert.assertEquals(30, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 14, (byte) 0)); Assert.assertEquals(31, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 15, (byte) 0)); Assert.assertEquals(32, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 16, (byte) 0)); Assert.assertEquals(33, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 17, (byte) 0)); Assert.assertEquals(34, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 18, (byte) 0)); }
@Test public void DefaultMapLookupFirstCopyMode1() { Assert.assertEquals(35, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 0, (byte) 1)); Assert.assertEquals(36, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 4, (byte) 1)); Assert.assertEquals(37, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 5, (byte) 1)); Assert.assertEquals(38, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 6, (byte) 1)); Assert.assertEquals(39, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 7, (byte) 1)); Assert.assertEquals(40, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 8, (byte) 1)); Assert.assertEquals(41, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 9, (byte) 1)); Assert.assertEquals(42, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 10, (byte) 1)); Assert.assertEquals(43, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 11, (byte) 1)); Assert.assertEquals(44, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 12, (byte) 1)); Assert.assertEquals(45, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 13, (byte) 1)); Assert.assertEquals(46, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 14, (byte) 1)); Assert.assertEquals(47, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 15, (byte) 1)); Assert.assertEquals(48, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 16, (byte) 1)); Assert.assertEquals(49, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 17, (byte) 1)); Assert.assertEquals(50, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 18, (byte) 1)); }
@Test public void DefaultMapLookupFirstCopyMode2() { Assert.assertEquals(51, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 0, (byte) 2)); Assert.assertEquals(52, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 4, (byte) 2)); Assert.assertEquals(53, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 5, (byte) 2)); Assert.assertEquals(54, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 6, (byte) 2)); Assert.assertEquals(55, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 7, (byte) 2)); Assert.assertEquals(56, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 8, (byte) 2)); Assert.assertEquals(57, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 9, (byte) 2)); Assert.assertEquals(58, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 10, (byte) 2)); Assert.assertEquals(59, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 11, (byte) 2)); Assert.assertEquals(60, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 12, (byte) 2)); Assert.assertEquals(61, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 13, (byte) 2)); Assert.assertEquals(62, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 14, (byte) 2)); Assert.assertEquals(63, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 15, (byte) 2)); Assert.assertEquals(64, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 16, (byte) 2)); Assert.assertEquals(65, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 17, (byte) 2)); Assert.assertEquals(66, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 18, (byte) 2)); }
@Test public void DefaultMapLookupFirstCopyMode3() { Assert.assertEquals(67, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 0, (byte) 3)); Assert.assertEquals(68, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 4, (byte) 3)); Assert.assertEquals(69, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 5, (byte) 3)); Assert.assertEquals(70, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 6, (byte) 3)); Assert.assertEquals(71, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 7, (byte) 3)); Assert.assertEquals(72, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 8, (byte) 3)); Assert.assertEquals(73, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 9, (byte) 3)); Assert.assertEquals(74, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 10, (byte) 3)); Assert.assertEquals(75, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 11, (byte) 3)); Assert.assertEquals(76, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 12, (byte) 3)); Assert.assertEquals(77, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 13, (byte) 3)); Assert.assertEquals(78, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 14, (byte) 3)); Assert.assertEquals(79, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 15, (byte) 3)); Assert.assertEquals(80, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 16, (byte) 3)); Assert.assertEquals(81, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 17, (byte) 3)); Assert.assertEquals(82, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 18, (byte) 3)); }
@Test public void DefaultMapLookupFirstCopyMode4() { Assert.assertEquals(83, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 0, (byte) 4)); Assert.assertEquals(84, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 4, (byte) 4)); Assert.assertEquals(85, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 5, (byte) 4)); Assert.assertEquals(86, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 6, (byte) 4)); Assert.assertEquals(87, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 7, (byte) 4)); Assert.assertEquals(88, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 8, (byte) 4)); Assert.assertEquals(89, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 9, (byte) 4)); Assert.assertEquals(90, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 10, (byte) 4)); Assert.assertEquals(91, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 11, (byte) 4)); Assert.assertEquals(92, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 12, (byte) 4)); Assert.assertEquals(93, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 13, (byte) 4)); Assert.assertEquals(94, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 14, (byte) 4)); Assert.assertEquals(95, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 15, (byte) 4)); Assert.assertEquals(96, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 16, (byte) 4)); Assert.assertEquals(97, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 17, (byte) 4)); Assert.assertEquals(98, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 18, (byte) 4)); }
@Test public void DefaultMapLookupFirstCopyMode5() { Assert.assertEquals(99, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 0, (byte) 5)); Assert.assertEquals(100, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 4, (byte) 5)); Assert.assertEquals(101, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 5, (byte) 5)); Assert.assertEquals(102, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 6, (byte) 5)); Assert.assertEquals(103, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 7, (byte) 5)); Assert.assertEquals(104, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 8, (byte) 5)); Assert.assertEquals(105, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 9, (byte) 5)); Assert.assertEquals(106, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 10, (byte) 5)); Assert.assertEquals(107, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 11, (byte) 5)); Assert.assertEquals(108, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 12, (byte) 5)); Assert.assertEquals(109, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 13, (byte) 5)); Assert.assertEquals(110, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 14, (byte) 5)); Assert.assertEquals(111, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 15, (byte) 5)); Assert.assertEquals(112, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 16, (byte) 5)); Assert.assertEquals(113, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 17, (byte) 5)); Assert.assertEquals(114, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 18, (byte) 5)); }
@Test public void DefaultMapLookupFirstCopyMode6() { Assert.assertEquals(115, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 0, (byte) 6)); Assert.assertEquals(116, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 4, (byte) 6)); Assert.assertEquals(117, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 5, (byte) 6)); Assert.assertEquals(118, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 6, (byte) 6)); Assert.assertEquals(119, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 7, (byte) 6)); Assert.assertEquals(120, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 8, (byte) 6)); Assert.assertEquals(121, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 9, (byte) 6)); Assert.assertEquals(122, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 10, (byte) 6)); Assert.assertEquals(123, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 11, (byte) 6)); Assert.assertEquals(124, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 12, (byte) 6)); Assert.assertEquals(125, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 13, (byte) 6)); Assert.assertEquals(126, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 14, (byte) 6)); Assert.assertEquals(127, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 15, (byte) 6)); Assert.assertEquals(128, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 16, (byte) 6)); Assert.assertEquals(129, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 17, (byte) 6)); Assert.assertEquals(130, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 18, (byte) 6)); }
@Test public void DefaultMapLookupFirstCopyMode7() { Assert.assertEquals(131, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 0, (byte) 7)); Assert.assertEquals(132, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 4, (byte) 7)); Assert.assertEquals(133, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 5, (byte) 7)); Assert.assertEquals(134, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 6, (byte) 7)); Assert.assertEquals(135, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 7, (byte) 7)); Assert.assertEquals(136, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 8, (byte) 7)); Assert.assertEquals(137, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 9, (byte) 7)); Assert.assertEquals(138, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 10, (byte) 7)); Assert.assertEquals(139, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 11, (byte) 7)); Assert.assertEquals(140, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 12, (byte) 7)); Assert.assertEquals(141, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 13, (byte) 7)); Assert.assertEquals(142, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 14, (byte) 7)); Assert.assertEquals(143, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 15, (byte) 7)); Assert.assertEquals(144, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 16, (byte) 7)); Assert.assertEquals(145, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 17, (byte) 7)); Assert.assertEquals(146, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 18, (byte) 7)); }
@Test public void DefaultMapLookupFirstCopyMode8() { Assert.assertEquals(147, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 0, (byte) 8)); Assert.assertEquals(148, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 4, (byte) 8)); Assert.assertEquals(149, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 5, (byte) 8)); Assert.assertEquals(150, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 6, (byte) 8)); Assert.assertEquals(151, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 7, (byte) 8)); Assert.assertEquals(152, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 8, (byte) 8)); Assert.assertEquals(153, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 9, (byte) 8)); Assert.assertEquals(154, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 10, (byte) 8)); Assert.assertEquals(155, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 11, (byte) 8)); Assert.assertEquals(156, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 12, (byte) 8)); Assert.assertEquals(157, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 13, (byte) 8)); Assert.assertEquals(158, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 14, (byte) 8)); Assert.assertEquals(159, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 15, (byte) 8)); Assert.assertEquals(160, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 16, (byte) 8)); Assert.assertEquals(161, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 17, (byte) 8)); Assert.assertEquals(162, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 18, (byte) 8)); }
@Test public void DefaultMapLookupFirstCopyInvalid() { assertEquals(kNoOpcode, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 3, (byte) 0)); assertEquals(kNoOpcode, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 3, (byte) 3)); assertEquals(kNoOpcode, VCDiffInstructionMap.DEFAULT_INSTRUCTION_MAP.LookupFirstOpcode(VCD_COPY, (byte) 255, (byte) 0)); }