Description
When option "Treat overflow as errors" is on than in some cases test generation is aborted due to JVM crash.
Bad code (will crash):
void test(byte data )
{
byte result = (byte)(data + 1);
System.out.println(result);
}
Good code (does not crash):
void wonderwuffle(int data )
{
int result = (int) (data + 1L);
System.out.println(result);
}
To Reproduce
Steps to reproduce the behavior:
- Enable option "Treat overflow as errors"
- Enable only symbolic execution test generation
- Use code above
- Try to generate test
Expected behavior
Some tests are generated.
Actual behavior
Test generation is cancelled due to JVM crash and hs_err_pid*.log file is generated.
Environment
No special environment.
Additional context
Looks like that problem in method TraverserKt.intOverflowCheck.
Description
When option "Treat overflow as errors" is on than in some cases test generation is aborted due to JVM crash.
Bad code (will crash):
Good code (does not crash):
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Some tests are generated.
Actual behavior
Test generation is cancelled due to JVM crash and hs_err_pid*.log file is generated.
Environment
No special environment.
Additional context
Looks like that problem in method
TraverserKt.intOverflowCheck.