Favor arrays with different values #2547
Labels
comp-symbolic-engine
Issue is related to the symbolic execution engine
ctg-enhancement
New feature, improvement or change request
Description
Suggestion to make arrays with different values more prioritized.
Expected behavior
Arrays with different values inside should be generated if and only if values equality is not included in path constraints.
Environment
For both IntelliJ Plugin and CLI
Context
Now equal values are generated for successful execution of
Sort::swap
The coverage is reached. But it is not really informative for such a method.
Different values are generated only when such an assumption is explicitly added inside the method.
Method under test:
Compare successful test being generated.
Without assume:
With assume:
Autotest on this (to be added in SortTest.kt):
The text was updated successfully, but these errors were encountered: