MCPcopy Create free account
hub / github.com/apache/tvm / verify

Method verify

tests/python/arith/test_arith_intset.py:28–35  ·  view source on GitHub ↗
(self, data, dmap, expected)

Source from the content-addressed store, hash-verified

26 self.analyzer = tvm.arith.Analyzer()
27
28 def verify(self, data, dmap, expected):
29 res = self.analyzer.int_set(data, dmap)
30
31 def err_msg():
32 return f"\ndata={data}\ndmap={dmap}\nres={res}\nexpected={expected}"
33
34 assert self.analyzer.can_prove_equal(res.min_value, expected[0]), err_msg()
35 assert self.analyzer.can_prove_equal(res.max_value, expected[1]), err_msg()
36
37
38def test_basic():

Callers 7

test_add_subFunction · 0.95
test_mul_divFunction · 0.95
test_modFunction · 0.95
test_max_minFunction · 0.95
test_selectFunction · 0.95
test_modular_setFunction · 0.95

Calls 2

int_setMethod · 0.80
can_prove_equalMethod · 0.80

Tested by

no test coverage detected