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.

19 lines
330 B

  1. # coding: utf-8
  2. import os, sys
  3. from z3 import *
  4. # Create an instance of a z3 solver
  5. solver = Solver()
  6. # Declare z3 variables for the needed BitVectors
  7. min_ite = BitVec(...)
  8. solver.add(min_ite == If(x < y, x, y))
  9. # Check and print the result.
  10. result = solver.check()
  11. print(result)
  12. if result == sat:
  13. print(solver.model())