Skip to content

Remove duplicates when generating a kore term from a substitution #3936

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 2 commits into from
Jun 13, 2024

Conversation

goodlyrottenapple
Copy link
Contributor

Fixes #3912

Copy link
Member

@jberthold jberthold left a comment

Choose a reason for hiding this comment

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

LGTM (to fix the immediate issue).

Comment on lines +128 to +129
. Set.toList
. Set.fromList
Copy link
Member

Choose a reason for hiding this comment

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

Of course this only addresses cases where the same Assignment is duplicated in the substitution.
In booster there is code (in the pattern internalisation) which vets sets of assignments to decide what is a true substitution and what isn't.
If we continue to have problem reports we should find out whether and where kore generates invalid substitutions

@goodlyrottenapple goodlyrottenapple merged commit e8a623f into master Jun 13, 2024
6 checks passed
@goodlyrottenapple goodlyrottenapple deleted the sam/remove-dup-json-rpc-substitution branch June 13, 2024 09:29
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.

Haskell backend booster returning a doubled substitution
3 participants