Skip to content

Instantly share code, notes, and snippets.

@LeventErkok
Created February 3, 2015 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeventErkok/54cee74eb3def22dfb5f to your computer and use it in GitHub Desktop.
Save LeventErkok/54cee74eb3def22dfb5f to your computer and use it in GitHub Desktop.
Z3 output containing the full model
sat
(model
;; universe for A:
;; A!val!1 A!val!0
;; -----------
;; definitions for universe elements:
(declare-fun A!val!1 () A)
(declare-fun A!val!0 () A)
;; cardinality constraint:
(forall ((x A)) (or (= x A!val!1) (= x A!val!0)))
;; -----------
(define-fun s1 () Bool
false)
(define-fun s0 () Int
0)
(define-fun int2A ((x!1 Int)) A
(ite (= x!1 0) A!val!0
A!val!0))
(define-fun prop ((x!1 A)) Bool
(ite (= x!1 A!val!0) true
(ite (= x!1 A!val!1) true
true)))
(define-fun bool2A ((x!1 Bool)) A
(ite (= x!1 false) A!val!1
A!val!1))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment