** 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 () Int 0) [GOOD] (define-fun s4 () Int 1) [GOOD] ; --- top level inputs --- [GOOD] (declare-fun s0 () (Seq (Either Int Int))) ; tracks user variable "lst" [GOOD] ; --- constant tables --- [GOOD] ; --- non-constant tables --- [GOOD] ; --- uninterpreted constants --- [GOOD] ; --- user defined functions --- [GOOD] ; --- assignments --- [GOOD] (define-fun s2 () (Either Int Int) (seq.nth s0 s1)) [GOOD] (define-fun s3 () Bool ((as is-Left Bool) s2)) [GOOD] (define-fun s5 () Int (seq.len s0)) [GOOD] (define-fun s6 () Int (- s5 s4)) [GOOD] (define-fun s7 () (Seq (Either Int Int)) (seq.extract s0 s4 s6)) [GOOD] (define-fun s8 () (Either Int Int) (seq.nth s7 s1)) [GOOD] (define-fun s9 () Bool ((as is-Right Bool) s8)) [GOOD] ; --- delayedEqualities --- [GOOD] ; --- formula --- [GOOD] (assert s3) [GOOD] (assert s9) [SEND] (check-sat) [RECV] sat [SEND] (get-value (s0)) [RECV] ((s0 (seq.unit (Left 3)))) *** Solver : Z3 *** Exit code: ExitSuccess FINAL OUTPUT: [Left 3]