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

(datatype) Assertion error at src/smt/mam.cpp:1664, src/util/map.h:150 #5307

Closed
rainoftime opened this issue May 26, 2021 · 1 comment
Closed

Comments

@rainoftime
Copy link
Contributor

rainoftime commented May 26, 2021

Hi, for the following formula, z3 322531e

(declare-sort S$t$type)
(declare-sort resource$type)
(declare-datatypes ((BOOL 0)) (((Truth))))
(declare-sort process$type)
(declare-fun S$mem (process$type S$t$type) BOOL)
(declare-fun null () resource$type)
(declare-fun S$empty () S$t$type)
(assert (forall ((handles$1 (Array resource$type S$t$type))) (forall ((handles (Array resource$type S$t$type))) (and (forall ((e process$type)) (= Truth (S$mem e S$empty))) (exists ((p process$type) (r resource$type)) (not (let (($x242 (= Truth (S$mem p (handles$1 r)))))))) (forall ((p process$type) (r resource$type)) (let (($x231 (and (= r null) (= Truth (S$mem p (handles r))))))))))))
(check-sat)
ASSERTION VIOLATION
File: ../src/smt/mam.cpp
Line: 1664
curr != 0
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB
@rainoftime
Copy link
Contributor Author

rainoftime commented May 28, 2021

src/util/map.h:150

(declare-datatypes ((A_llist_a_llist_prod$ 0)))
(declare-fun swap$ (A_llist_a_llist_prod$) A_llist_a_llist_prod$)
(assert (forall ((?v0 A_llist_a_llist_prod$)) (= ?v0 (swap$ ?v0))))
(check-sat-using ctx-solver-simplify)
(error "line 1 column 47: invalid datatype declaration, '(' expected got A_llist_a_llist_prod$")
ASSERTION VIOLATION
File: ../src/util/map.h
Line: 150
e
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB

release mode segfault

@rainoftime rainoftime changed the title Assertion error at src/smt/mam.cpp:1664 (datatype) Assertion error at src/smt/mam.cpp:1664, src/util/map.h:150 May 28, 2021
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

No branches or pull requests

1 participant