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

Fix slicing bug related to Evaluate Query #3393

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

FliegendeWurst
Copy link
Member

@FliegendeWurst FliegendeWurst commented Jan 31, 2024

Intended Change

This PR fixes a slicing failure with a specific proof. In that particular case, the dynamically added taclet was slightly too different for the previous code to pick it up.

Type of pull request

  • Bug fix (non-breaking change which fixes an issue)
  • Refactoring (behaviour should not change or only minimally change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • There are changes to the (Java) code
  • There are changes to the taclet rule base
  • There are changes to the deployment/CI infrastructure (gradle, github, ...)
  • Other:

Ensuring quality

  • I made sure that introduced/changed code is well documented (javadoc and inline comments).
  • I made sure that new/changed end-user features are well documented (https://github.com/KeYProject/key-docs).
  • I added new test case(s) for new functionality.
  • I have tested the feature as follows: slicing now works for the (confidential) proof file
  • I have checked that runtime performance has not deteriorated.

Additional information and contact(s)

cc @WolframPfeifer who reported the bug

The contributions within this pull request are licensed under GPLv2 (only) for inclusion in KeY.

Copy link

codecov bot commented Jan 31, 2024

Codecov Report

Attention: Patch coverage is 3.44828% with 28 lines in your changes are missing coverage. Please review.

Project coverage is 37.84%. Comparing base (99658cc) to head (d19e2d7).
Report is 3 commits behind head on main.

Current head d19e2d7 differs from pull request most recent head a0746d8

Please upload reports for the commit a0746d8 to get more accurate results.

Files Patch % Lines
...e/src/main/java/de/uka/ilkd/key/logic/Sequent.java 0.00% 7 Missing ⚠️
...lkd/key/rule/tacletbuilder/TacletGoalTemplate.java 0.00% 5 Missing ⚠️
...c/main/java/de/uka/ilkd/key/logic/Semisequent.java 0.00% 4 Missing ⚠️
...ule/tacletbuilder/AntecSuccTacletGoalTemplate.java 0.00% 4 Missing ⚠️
.../rule/tacletbuilder/RewriteTacletGoalTemplate.java 0.00% 4 Missing ⚠️
...a/ilkd/key/proof/replay/AbstractProofReplayer.java 25.00% 2 Missing and 1 partial ⚠️
...ore/src/main/java/de/uka/ilkd/key/rule/Taclet.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3393      +/-   ##
============================================
- Coverage     38.02%   37.84%   -0.19%     
+ Complexity    17080    17042      -38     
============================================
  Files          2099     2082      -17     
  Lines        127189   127315     +126     
  Branches      21368    21447      +79     
============================================
- Hits          48369    48183     -186     
- Misses        72856    73219     +363     
+ Partials       5964     5913      -51     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FliegendeWurst FliegendeWurst added 🐞 Bug keyext.slicing Module: keyext.slicing labels Feb 1, 2024
@WolframPfeifer WolframPfeifer removed 🐞 Bug keyext.slicing Module: keyext.slicing labels Feb 1, 2024
@FliegendeWurst FliegendeWurst added the keyext.slicing Module: keyext.slicing label Mar 8, 2024
@WolframPfeifer
Copy link
Member

This PR fixes one of the original bug (file belongs to a student exercise, thus I do not want to attach it for the moment). However, there is a follow-up bug with the same file. Could you also look into the second bug, please?

@FliegendeWurst
Copy link
Member Author

I think the other bug you are referring to is fixed by #3438

@WolframPfeifer
Copy link
Member

I think the other bug you are referring to is fixed by #3438

Yes, thanks. I did not notice the other fix.

Copy link
Member

@WolframPfeifer WolframPfeifer left a comment

Choose a reason for hiding this comment

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

The original bug seems to be fixed now, thanks!

Can you please take a look at my comments in the code (not sure about them, though)?

@FliegendeWurst
Copy link
Member Author

I really don't understand the test failure. None of the changes in this PR change anything relevant to normal proof search. I'll do a no-op commit and push again.

@tobias-rnh
Copy link
Contributor

I really don't understand the test failure. None of the changes in this PR change anything relevant to normal proof search. I'll do a no-op commit and push again.

I was having trouble with tests failing for no reason at all in the last few weeks too. First it was the unit tests only on Ubuntu and then the integration test testRunAllFunProofs. The caches in the repository were completely filled and after making some space, we got the tests to pass. I don't know if this could also be the problem here, but it might be worth a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keyext.slicing Module: keyext.slicing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants