Skip to content

Fix handling of \values keyword - #3718

Open
FliegendeWurst wants to merge 4 commits into
KeYProject:mainfrom
FliegendeWurst:fixValuesKeyword
Open

FliegendeWurst wants to merge 4 commits into
KeYProject:mainfrom
FliegendeWurst:fixValuesKeyword

Conversation

@FliegendeWurst

Copy link
Copy Markdown
Member

Related Issue

This pull request resolves #3717.

Intended Change

Fix by always using the type for Seq, not the type of the containing class.

Plan

  • Add a simple test case for usage of \values

Type of pull request

  • Bug fix (non-breaking change which fixes an issue)
  • There are changes to the (Java) code

Ensuring quality

Additional information and contact(s)

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

@WolframPfeifer

Copy link
Copy Markdown
Member

@flo2702 Can you take a look here? I think you were involved at some time in the implementation of foreach loops ...

@flo2702

flo2702 commented Jan 30, 2026

Copy link
Copy Markdown
Member

I just pushed some fixes, which allow the proofs to load further. They still don't close automatically, but this may be due to errors in the spec or just the difficulty in the proofs. @FliegendeWurst Maybe you can take another look at it now.

@unp1 I removed some assert false statements in JavaDLTheory that lead to an assertion failure every time a \values expression is parsed. git blame says that you wrote that class, and I don't entirely understand what it does, so is this right?

@unp1

unp1 commented Jan 31, 2026

Copy link
Copy Markdown
Member

Hi,

@unp1 I removed some assert false statements in JavaDLTheory that lead to an assertion failure every time a \values expression is parsed. git blame says that you wrote that class, and I don't entirely understand what it does, so is this right?

fine to remove them. The idea was more that JavaDLTheory should never be asked whether it is responsible for literals etc. But that was not a valid thought :-) and it should just return false.

@KeYProject KeYProject deleted a comment from codecov Bot Sep 14, 2026
@KeYProject KeYProject deleted a comment from codecov-commenter Sep 14, 2026
@wadoon

wadoon commented Sep 15, 2026

Copy link
Copy Markdown
Member

@FliegendeWurst @unp1 @flo2702 PR seems to 99% finish, or?

@flo2702 mentioned that some proofs are not closing, but it seems that this does not affect the test cases. This is a bad omen, and I would suggest at least a proof or test case for future regression avoidance.

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.

Enhanced-for loop example with \values not loadable

5 participants