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

--check-unsat-cores fatal failure at CVC4/src/theory/theory_model_builder.cpp:797 #3813

Closed
muchang opened this issue Feb 25, 2020 · 0 comments · Fixed by #3843
Closed

--check-unsat-cores fatal failure at CVC4/src/theory/theory_model_builder.cpp:797 #3813

muchang opened this issue Feb 25, 2020 · 0 comments · Fixed by #3843
Assignees
Labels

Comments

@muchang
Copy link

muchang commented Feb 25, 2020

Hi,
For this formula:

(declare-fun a () (Array Int Bool))
(declare-fun b () (Array Int Bool))
(assert (= a (store b 0 true)))
(check-sat)

CVC4 --check-unsat-cores throws out a fatal failure:

Fatal failure within virtual bool CVC4::theory::TheoryEngineModelBuilder::buildModel(CVC4::Model*) at CVC4/src/theory/theory_model_builder.cpp:797
Check failure
 !t.isBoolean() || (*i2).isVar() || (*i2).getKind() == kind::APPLY_UF
Aborted

OS: Ubuntu 18.04
Commit: 6e17dd6

@ajreynol ajreynol added bug minor Priority and removed minor Priority labels Feb 25, 2020
@ajreynol ajreynol self-assigned this Feb 25, 2020
aniemetz pushed a commit that referenced this issue Feb 29, 2020
Fixes #3813.

It appears that an assertion was hardcoded to check whether a term was a variable or APPLY_UF application whereas this check should use isAssignable. This avoids an assertion failure on the given benchmark.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants