()
| 143 | |
| 144 | |
| 145 | def test_bind_allow_override(): |
| 146 | ana = tvm.arith.Analyzer() |
| 147 | x = tirx.Var("x", "int64") |
| 148 | |
| 149 | ana.bind(x, tvm.ir.Range(0, 10)) |
| 150 | ana.bind(x, tvm.ir.Range(0, 5), allow_override=True) |
| 151 | assert ana.can_prove(x < 5) |
| 152 | |
| 153 | with pytest.raises(RuntimeError, match="Trying to update var 'x' with a different const bound"): |
| 154 | ana.bind(x, tvm.ir.Range(0, 3)) |
| 155 | |
| 156 | |
| 157 | def test_simplify_floor_mod_with_linear_offset(): |