Make symbolic execs preferable in minimization process by sofurihafe · Pull Request #1514 · UnitTestBot/UTBotJava · GitHub
Skip to content

Make symbolic execs preferable in minimization process#1514

Merged
EgorkaKulikov merged 1 commit intomainfrom
andrey-t/symbolic-execs-supremacy
Dec 14, 2022
Merged

Make symbolic execs preferable in minimization process#1514
EgorkaKulikov merged 1 commit intomainfrom
andrey-t/symbolic-execs-supremacy

Conversation

@sofurihafe
Copy link
Copy Markdown
Member

@sofurihafe sofurihafe commented Dec 14, 2022

Description

After some discussions it was decided to prioritize symbolic executions over fuzzed ones. Now, priority is based on source priority (symbolic is preferable), number of useful lines (more is preferable), and exec id.
For instance, if there are two identical executions differing only by their source, the one from symbolic engine will be preferable in minimization.
This is the second attempt of pull854.

Fixes # (1504)

Type of Change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Regression and integration tests

Added a new test testPriority1 in MinimizationGreedyEssentialTest.

Automated Testing

utbot-samples, plus testPriorityTest1.

Manual Scenario

Generate a test for max method in IntExamples sample. Verify that there are two tests sourcing from symbolic engine in the generated test.

@sofurihafe sofurihafe linked an issue Dec 14, 2022 that may be closed by this pull request
Comment thread utbot-framework/src/main/kotlin/org/utbot/framework/minimization/Minimization.kt Outdated
@sofurihafe sofurihafe force-pushed the andrey-t/symbolic-execs-supremacy branch from 6ed1e6c to 37662b4 Compare December 14, 2022 09:59
@sofurihafe sofurihafe force-pushed the andrey-t/symbolic-execs-supremacy branch from 37662b4 to 02fe06a Compare December 14, 2022 10:01
@EgorkaKulikov EgorkaKulikov self-requested a review December 14, 2022 10:01
@EgorkaKulikov EgorkaKulikov enabled auto-merge (squash) December 14, 2022 10:02
@EgorkaKulikov EgorkaKulikov merged commit 047ea48 into main Dec 14, 2022
@EgorkaKulikov EgorkaKulikov deleted the andrey-t/symbolic-execs-supremacy branch December 14, 2022 10:49
@CaelmBleidd
Copy link
Copy Markdown
Member

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

Successfully merging this pull request may close these issues.

Improve executions priorities in minimization

3 participants