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, File: ../src/qe/mbp/mbp_basic_tg.cpp, Line: 139 #6950

Closed
merlinsun opened this issue Oct 18, 2023 · 1 comment
Closed
Assignees
Labels

Comments

@merlinsun
Copy link

Hi,
For this following instance, z3 f678861 debug build

$ cat delta.smt2 
(declare-fun a () (Seq Int))
(declare-fun r () (Seq (Seq Int)))
(declare-fun ar () (Seq (Seq Int)))
(assert (exists ((v String)) (= "" (str.replace "" v (int.to.str 0)))))
(assert (distinct r ar (seq.unit a)))
(check-sat-using qe2)
$ z3 delta.smt2 
ASSERTION VIOLATION
File: ../src/qe/mbp/mbp_basic_tg.cpp
Line: 139
m_mdl.is_false(e)
(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB
a
@hgvk94
Copy link
Contributor

hgvk94 commented Nov 14, 2023

The problem is that in MBP, we want the model to evaluate expressions as true or false but model evaluation is not always complete (expected). Here, we reduce an expression to (= (seq.nth_i r 0) (seq.unit 2) but cannot reduce it to false. I guess, for now, the best action is to revert to earlier behavior when such things happen.

hgvk94 added a commit to hgvk94/z3 that referenced this issue Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants