Unverified Commit 91cf7966 authored by Kuris's avatar Kuris Committed by GitHub
Browse files

[Analyzer] Fix floordiv & floormod bug in z3 prover (#1458)

* fix floordiv & floormod in z3 prover

* fix lint error
parent 3ee0939b
......@@ -93,5 +93,13 @@ def test_bind():
raise e
def test_divmod():
analyzer = Analyzer()
a = T.Var("a", T.int32)
assert not analyzer.can_prove(a % 2 % -2 - a % 2 == 0)
assert analyzer.can_prove(a % -2 % 2 - a % 2 == 0)
if __name__ == "__main__":
tilelang.testing.main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment