Skip to content

Fixes missing positional information in error reason caused by PredicateInstance plugin#836

Merged
ArquintL merged 1 commit intomasterfrom
arquintl-fix-predicate-instance-position
Jan 31, 2025
Merged

Fixes missing positional information in error reason caused by PredicateInstance plugin#836
ArquintL merged 1 commit intomasterfrom
arquintl-fix-predicate-instance-position

Conversation

@ArquintL
Copy link
Copy Markdown
Member

If a predicate instance is used as a termination measure but there are insufficient permissions for this predicate instance, Viper creates a PredicateInstanceNoAccess error with that predicate instance as a reason.
While the PredicateInstance plugin propagates positional information to the translated PredicateAccessPredicate, it did not do so for the PredicateAccess contained therein. However, it seems that Viper uses the PredicateAccess as offending node and this PR adapts the PredicateInstance plugin to use the same positional information for both, the generated PredicateAccessPredicate and PredicateAccess.

…sitional information to not only the generatated PredicateAccessPredicate but also PredicateAccess as the latter is used as offending node in the resulting reason
Copy link
Copy Markdown
Contributor

@marcoeilers marcoeilers left a comment

Choose a reason for hiding this comment

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

LGTM

@ArquintL ArquintL merged commit 16a0027 into master Jan 31, 2025
@ArquintL ArquintL deleted the arquintl-fix-predicate-instance-position branch January 31, 2025 14:55
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.

2 participants