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

CVC4 --sygus-inference check failure on LIA formula at CVC4/src/theory/theory_model_builder.cpp:65 #3506

Closed
muchang opened this issue Nov 29, 2019 · 2 comments
Assignees
Labels
minor Priority

Comments

@muchang
Copy link

muchang commented Nov 29, 2019

Hi,
For this formula,

(set-logic ALL)
(declare-fun f (Int) Bool)
(declare-fun g (Int) Bool)
(assert (= f g))
(assert (exists ((x Int)) (f x)))
(check-sat)

CVC4 with --sygus-inference will throw out a check failure:

Fatal failure within bool CVC4::theory::TheoryEngineModelBuilder::isAssignable(CVC4::TNode) at /home/CVC4/src/theory/theory_model_builder.cpp:65
Check failure
 !n.getType().isFunction()
Aborted

OS: Ubuntu 18.04
Revision: 5e2d39c

@muchang muchang changed the title CVC4 --sygus-inference check failure on LIA formula CVC4 --sygus-inference check failure !n.getType().isFunction() on LIA formula Nov 29, 2019
@muchang muchang changed the title CVC4 --sygus-inference check failure !n.getType().isFunction() on LIA formula CVC4 --sygus-inference check failure !n.getType().isFunction() at CVC4/src/theory/theory_model_builder.cpp:65 Nov 29, 2019
@muchang muchang changed the title CVC4 --sygus-inference check failure !n.getType().isFunction() at CVC4/src/theory/theory_model_builder.cpp:65 CVC4 --sygus-inference check failure on LIA formula at CVC4/src/theory/theory_model_builder.cpp:65 Nov 29, 2019
@ajreynol ajreynol added the minor Priority label Nov 29, 2019
@ajreynol
Copy link
Member

Since this problem involves equality between functions, you should use --uf-ho for this problem. This avoids the assertion failure.

@ajreynol
Copy link
Member

Fixed in #3551.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Priority
Projects
None yet
Development

No branches or pull requests

3 participants