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.

20 lines
322 B

  1. # coding: utf-8
  2. from z3 import *
  3. # Create an instance of a z3 solver
  4. solver = None
  5. # Declare needed z3 variables
  6. # Add the needed constraints to check equivalence of the two formulae.
  7. # solver.add(...)
  8. # Check and print the result.
  9. result = solver.check()
  10. print(result)
  11. if result == sat:
  12. print(solver.model())