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

Assertion violation at File: ../src/ast/ast.h Line: 952 #7033

Closed
merlinsun opened this issue Dec 3, 2023 · 1 comment
Closed

Assertion violation at File: ../src/ast/ast.h Line: 952 #7033

merlinsun opened this issue Dec 3, 2023 · 1 comment

Comments

@merlinsun
Copy link

Hi,
For this instance, z3 965bee5 debug build

$ cat small.smt2 
(set-option :rewriter.expand_nested_stores true)
(declare-fun b ((Array Int (Array Int Real)) (Array Int (Array Int Real))) (Array Int Int))
(declare-fun v () Int)
(declare-fun ar () (Array Int (Array Int Int)))
(declare-fun a () (Array Int (Array Int Real)))
(declare-fun r () (Array Int Int))
(assert (= (select (b a a) 0) (r v (r a))))
(assert (exists ((V Int)) (distinct r (store r 0 0))))
(assert (forall ((var20 Int)) (and (forall ((var20 (Array Int (Array Int Int)))) (= ar (store var20 0 (store (var20 0) 0 0)))))))
(check-sat-using qsat)
$ z3 small.smt2 
(error "line 7 column 39: unknown constant r ((Array Int (Array Int Real))) 
declared: (declare-fun r () (Array Int Int)) ")
ASSERTION VIOLATION
File: ../src/ast/ast.h
Line: 952
is_app(n)
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB

NikolajBjorner added a commit that referenced this issue Dec 3, 2023
@NikolajBjorner
Copy link
Contributor

not clear the overhead of fixing such a bug is worth while: it relies on setting parameters outside their default ranges that are incompatible with qsat assumptions and for domains where qsat isn't designed for (LIA/LRA/DT), with nlqsat for (NRA).

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

2 participants