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

Bug in the method gov.nasa.jpf.jdart.ConcolicMethodExplorer.advanceValuation() #18

Open
ngocpq opened this issue Mar 6, 2017 · 0 comments

Comments

@ngocpq
Copy link

ngocpq commented Mar 6, 2017

Hello,
I think there is a bug in the method gov.nasa.jpf.jdart.ConcolicMethodExplorer.advanceValuation() at line 218, file gov.nasa.jpf.jdart.ConcolicMethodExplorer.java

The original code is:
`for (Variable v : currValuation.getVariables()) {

    if (!nextValuation.containsValueFor(v)) {

      nextValuation.addEntry(new ValuationEntry(v, 
              nextValuation.getValue(v))); // returns the default value for this type
    }
  }

`

I guest that the correct code should be:
` for (Variable v : currValuation.getVariables()) {

    if (!nextValuation.containsValueFor(v)) {

      nextValuation.addEntry(new ValuationEntry(v, 
              currValuation.getValue(v))); //Suggested fix: change nextValuation to currValuation
    }
  }`
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