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

Long Variable in Method Argument not supported via JaCoP Solver #34

Open
anfuchs opened this issue Aug 10, 2016 · 0 comments
Open

Long Variable in Method Argument not supported via JaCoP Solver #34

anfuchs opened this issue Aug 10, 2016 · 0 comments

Comments

@anfuchs
Copy link
Contributor

anfuchs commented Aug 10, 2016

A method to test with following signature:
public boolean doesUserExist(long key)

The de.wwu.muggl.solvers.jacop.JaCoPSolverManager creates a NumericConstant.INT in method getSolution, because the found solution (e.g., -50) is of type IntDomain.

In de.wwu.muggl.symbolic.testCases.SoltionProcessor#generateTestCases the following if-clause is used, that is never true:

if (parameterTypes[a - startAt].equals("long") && parameters[a] instanceof LongConstant)

This is because parametersTyes[x] is long , but parameters[a] is of type IntConstant , and not LongConstant.

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

1 participant