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

Concrete execution error on usage of stream .toArray #2413

Open
tyuldashev opened this issue Jul 13, 2023 · 2 comments
Open

Concrete execution error on usage of stream .toArray #2413

tyuldashev opened this issue Jul 13, 2023 · 2 comments
Assignees
Labels
comp-instrumented-process Issue is related to Instrumented process comp-symbolic-engine Issue is related to the symbolic execution engine ctg-bug Issue is a bug

Comments

@tyuldashev
Copy link
Collaborator

Description
For example when user code contains IntStream.toArray() concrete executor fails during test generation

To Reproduce

  1. Install UnitTestBot plugin built from main in IntelliJ IDEA
  2. Open UTBotJava project
  3. Set 100% Symbolic execution
  4. Generate tests for org.utbot.examples.stream.IntStreamExample#useParameterStream or for following code:
    int[] useParameterStream(IntStream s) {
        return s.toArray();
    }

Expected behavior
Tests are generated

Actual behavior
There are errors in the tests

    public void testUseParameterStream_errors() {
        // Couldn't generate some tests. List of errors:
        // 
        // 2 occurrences of:
        // Default concrete execution failed

    }

Screenshots, logs
utbot-engine-current.zip

@tyuldashev tyuldashev added ctg-bug Issue is a bug comp-symbolic-engine Issue is related to the symbolic execution engine labels Jul 13, 2023
@tyuldashev
Copy link
Collaborator Author

Probably related pull request - #912

@alisevych alisevych added the comp-instrumented-process Issue is related to Instrumented process label Jul 13, 2023
@tyuldashev
Copy link
Collaborator Author

The same with other stream samples:

  • DoubleStreamExample
  • LongStreamExample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-instrumented-process Issue is related to Instrumented process comp-symbolic-engine Issue is related to the symbolic execution engine ctg-bug Issue is a bug
Projects
Status: Todo
Development

No branches or pull requests

3 participants