** Calling: z3 -nw -in -smt2 [GOOD] ; Automatically generated by SBV. Do not edit. [GOOD] (set-option :print-success true) [GOOD] (set-option :global-declarations true) [GOOD] (set-option :smtlib2_compliant true) [GOOD] (set-option :diagnostic-output-channel "stdout") [GOOD] (set-option :produce-models true) [GOOD] (set-option :pp.max_depth 4294967295) [GOOD] (set-option :pp.min_alias_size 4294967295) [GOOD] (set-option :model.inline_def true ) [GOOD] (set-logic ALL) ; has unbounded values, using catch-all. [GOOD] ; --- tuples --- [GOOD] ; --- sums --- [GOOD] ; --- ADTs --- [GOOD] ; User defined ADT: Either [GOOD] (declare-datatype Either (par (a b) ( (Left (getLeft_1 a)) (Right (getRight_1 b)) ))) [GOOD] ; --- literal constants --- [GOOD] (define-fun s1 () (Either Int String) ((as Right (Either Int String)) (_ char #x41))) [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () (Either Int String)) ; tracks user variable "x" [GOOD] (assert (= 1 (str.len (getRight_1 s0)))) [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments --- [GOOD] (define-fun s2 () Bool (distinct s0 s1)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula --- [GOOD] (assert s2) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0)) [RECV] ((s0 (Left 2))) MODEL: SMTModel {modelObjectives = [], modelBindings = Nothing, modelAssocs = [("x",Left 2 :: Either Integer Char)], modelUIFuns = []} DONE.*** Solver : Z3 *** Exit code: ExitSuccess