You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
193 B

  1. #!/usr/bin/python
  2. from z3 import *
  3. # TODO: Check for equivalence:
  4. ## - (((y & x)*-2) + (y+x))
  5. ## - x^y
  6. s= Solver()
  7. result = s.check()
  8. print(result)
  9. if result == sat:
  10. print(s.model())