Advertisement
Guest User

Untitled

a guest
May 4th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.23 KB | None | 0 0
  1. ; Variable declarations
  2. (declare-fun x () Int)
  3. (declare-fun y () Int)
  4.  
  5. ; Constraints
  6. (assert (> x 0))
  7. (assert (> y 0))
  8.  
  9. (assert (= (mod (+ (* 10 x) y) 7) 0))
  10. (assert (= (mod (- x (* 2 y)) 7) 0))
  11.  
  12. ; Solve
  13. (check-sat)
  14. (get-model)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement