You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Briefly, the reason for this incorrect NPE is the lack of approximation for java.lang.String.
In more detail, the JcMachine has no information that the value field of any correct String instance is always not null. So, the machine considers the value of the input string as a common input field that may be null, and retrieving its length may lead to NPE. There are no more executions than 2 because of the default steps limit 3500, but there are still no meaningful executions even with increased steps limit and/or timeout.
As java.lang.Integer#parseInt(java.lang.String, int) is quite complex, I suppose approximations are the only way to fix this problem.
Generate tests in the following configuration:
There are two tests for the function
isInteger
. They have the same input. One of them is incorrect.It seems that erronous NPE comes from the
JcState
The text was updated successfully, but these errors were encountered: