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

mixed constraint #44

Open
dah-fari7009 opened this issue Feb 2, 2020 · 3 comments
Open

mixed constraint #44

dah-fari7009 opened this issue Feb 2, 2020 · 3 comments

Comments

@dah-fari7009
Copy link

Hello,

Sometimes when doing operations with both integer and double, I get this exxception:
java.lang.RuntimeException: ## Error Z3

    at gov.nasa.jpf.symbc.numeric.solvers.ProblemZ3.mixed(ProblemZ3.java:1062)
    at gov.nasa.jpf.symbc.numeric.PCParser.createDPMixedConstraint(PCParser.java:370)
    at gov.nasa.jpf.symbc.numeric.PCParser.addConstraint(PCParser.java:1110)

Does this mean that z3 can not handle mixing integer and real numbers ? I remember seeing in the specification that it could. Am I understanding this correctly

@dah-fari7009
Copy link
Author

I obtained this result on this line of code
int signC = 0; double xC = xC0 + signC*rC* (Math.cos(psiC)-Math.cos(psiC+dpsiC));

Is it specific to nonlinear arithmetic ?

@affan
Copy link

affan commented Aug 3, 2021

Any update on this? I am facing the same issue.

@dah-fari7009
Copy link
Author

dah-fari7009 commented Aug 3, 2021

@affan, the problem seemed to be indeed with Z3 and mixed nonlinear arithmetic, so I ended up switching to a different solver (coral)

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