Guards: Add elaborating comment.

This commit is contained in:
Anders Schack-Mulligen
2025-11-13 13:09:44 +01:00
parent 62e28d2dcf
commit b31dfdd5f4

View File

@@ -1114,6 +1114,11 @@ module Make<
private predicate validReturnInCustomGuardToRank(
int rnk, NonOverridableMethod m, ParameterPosition ppos, GuardValue retval, GuardValue val
) {
// The forall-range has been pushed all the way into
// `relevantReturnExprValue` and `validReturnInCustomGuard`. This means
// that this base case ensures that at least one return expression
// non-vacuously satisfies that it's a valid implication from return
// value to parameter value.
validReturnInCustomGuard(_, _, m, ppos, retval, val) and rnk = 0
or
validReturnInCustomGuardToRank(rnk - 1, m, ppos, retval, val) and