Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to latest z3 (4.8.14) #161

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft

Upgrade to latest z3 (4.8.14) #161

wants to merge 11 commits into from

Conversation

kostis
Copy link
Collaborator

@kostis kostis commented Apr 13, 2021

No description provided.

@aggelgian
Copy link
Member

aggelgian commented Apr 13, 2021

; z3 -smt2 -T:2 -in
(set-option :produce-models true)
; Erlang types.
(declare-datatypes () ((Term (int (iv Int)) (real (rv Real)) (list (lv TList)) (tuple (tv TList)) (atom (av IList)) (str (sv SList)) (fun (fv Int))) (TList (tn) (tc (th Term) (tt TList))) (IList (in) (ic (ih Int) (it IList))) (SList (sn) (sc (sh Bool) (st SList))) (FList (fn) (fc (fx TList) (fy Term) (ft FList)))))
(declare-const x Term)
(define-fun-rec fun-rec-0 ((l TList)) Bool (or (is-tn l) (and (is-tc l) true (fun-rec-0 (tt l)))))
; Type signature for argument.
(assert (and (is-list x) (fun-rec-0 (lv x))))
; Two terms are not equal.
(assert (not (= (list tn) x)))
; Term is a non-empty list.
(assert (and (is-list x) (is-tc (lv x))))
(declare-const y Term)
; T0 = hd(T1).
(assert (and (is-list x) (is-tc (lv x)) (= y (th (lv x)))))
(declare-const z Term)
; T0 = tl(T1).
(assert (and (is-list x) (is-tc (lv x)) (= z (list (tt (lv x))))))
; Two terms are equal.
(assert (= (list tn) z))
(check-sat)
➜  cuter git:(z3-4.8.10) ✗ z3 --version && z3 -smt2 -T:2 f.smt
Z3 version 4.8.10 - 64 bit
timeout

➜  cuter git:(z3-4.8.10) ✗ z3 --version && z3 -smt2 -T:2 f.smt
Z3 version 4.8.8 - 64 bit
sat

➜  cuter git:(z3-4.8.10) ✗ z3 --version && z3 -smt2 -T:2 f.smt             
Z3 version 4.8.9 - 64 bit
timeout

@kostis kostis changed the title Upgrade to latest z3 (4.8.10) Upgrade to latest z3 (4.8.12) Sep 11, 2021
@kostis kostis changed the title Upgrade to latest z3 (4.8.12) Upgrade to latest z3 (4.8.14) Feb 8, 2022
@kostis kostis marked this pull request as draft February 8, 2022 17:09
@kostis kostis marked this pull request as ready for review February 8, 2022 17:22
@kostis kostis marked this pull request as draft February 8, 2022 18:25
@kostis kostis force-pushed the z3-4.8.10 branch 2 times, most recently from 477282c to 02ab36c Compare September 24, 2022 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants