()
| 63 | |
| 64 | |
| 65 | def test_add_sub(): |
| 66 | ck = IntSetChecker() |
| 67 | x, y = tvm.tirx.Var("x", "int32"), tvm.tirx.Var("y", "int32") |
| 68 | ck.verify(x + y, {x: tvm.arith.IntervalSet(0, 10)}, (y, 10 + y)) |
| 69 | ck.verify(x + y, {x: tvm.arith.IntervalSet(0, 10), y: tvm.arith.IntervalSet(1, 11)}, (1, 21)) |
| 70 | ck.verify(x - y, {x: tvm.arith.IntervalSet(0, 10), y: tvm.arith.IntervalSet(1, 11)}, (-11, 9)) |
| 71 | |
| 72 | |
| 73 | def test_mul_div(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…