Skip to content

Fix PCall.forceSubstitution#865

Merged
JonasAlaif merged 1 commit into
masterfrom
fix-call-forceSubstitution
Apr 22, 2025
Merged

Fix PCall.forceSubstitution#865
JonasAlaif merged 1 commit into
masterfrom
fix-call-forceSubstitution

Conversation

@JonasAlaif

Copy link
Copy Markdown
Contributor

If one calls forceSubstitution on a n nested PCall expression, we would get 2^n calls to forceSubstitution since each PCall would call forceSubstitution on its children twice. See the attached Viper file for an example where this results in non-termination of typechecking (rename to .vpr after downloading).
program-check.txt

@JonasAlaif JonasAlaif merged commit e802082 into master Apr 22, 2025
@JonasAlaif JonasAlaif deleted the fix-call-forceSubstitution branch April 22, 2025 09:05
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.

1 participant