Skip to content

New treating of artificial errors #1573

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

Merged
merged 1 commit into from
Dec 27, 2022
Merged

New treating of artificial errors #1573

merged 1 commit into from
Dec 27, 2022

Conversation

EgorkaKulikov
Copy link
Collaborator

@EgorkaKulikov EgorkaKulikov commented Dec 22, 2022

Description

Currently generated unit tests for OverflowExamples from utbot-samples are false negatives if the mode to treat overflows as errors is selected.

The only sign of something wrong is a comment about failing test. Test passes whenever it's behavior is unpredictable.

We should add failing assertion and show that actual result is not reliable. It requires changes in

  • engine (new way to traverse and resolve overflows)
  • engine tests (correct OverflowDetectionAndErrors test)
  • codegen (new approach to render overflow detections, new assert introduced)
  • reporting (support one more behavior type - artificial errors)
  • summarization (new display names, test method names, summaries)

Everything except summarization is ready now.

Fixes # (1272)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Regression and integration tests

OverflowAsErrorTest

as far as no new scenarios were added to the symbolic engine, we just corrected current tests

Manual Scenario

Stanfard checks on both codegen languages and used test frameworks that generated code with failure assertion is compilable and test run results correlate with our expectations.

@EgorkaKulikov EgorkaKulikov changed the title New treating of Overflows New treating of artificial errors Dec 22, 2022
@EgorkaKulikov EgorkaKulikov requested a review from Damtev December 23, 2022 06:46
Copy link
Member

@Damtev Damtev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, looks very good. Please, do not forget to fill the description of the PR

@EgorkaKulikov EgorkaKulikov marked this pull request as ready for review December 23, 2022 08:40
@EgorkaKulikov EgorkaKulikov merged commit df4340e into main Dec 27, 2022
@EgorkaKulikov EgorkaKulikov deleted the egor/simple_overflow branch December 27, 2022 11:04
tamarinvs19 pushed a commit that referenced this pull request Jan 9, 2023
@alisevych alisevych added ctg-enhancement New feature, improvement or change request ctg-bug-fix PR is fixing a bug comp-codegen Issue is related to code generator comp-symbolic-engine Issue is related to the symbolic execution engine labels Jan 24, 2023
zishkaz pushed a commit that referenced this pull request Feb 14, 2023
@alisevych alisevych added this to the 2023.03 Release milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-codegen Issue is related to code generator comp-symbolic-engine Issue is related to the symbolic execution engine ctg-bug-fix PR is fixing a bug ctg-enhancement New feature, improvement or change request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants