[SCEV] Don't recurse into isKnownPredicate from IsKnownPredicateViaAddRecStart #238298
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.33) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 144 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.298
Real PR Conversation Timeline
1 comments
"Review active on #238298"
general
weight: 0.35
d-makogon
isKnownViaNonRecursiveReasoningis meant to use non-recursive checks, butone of them,
IsKnownPredicateViaAddRecStart, proves a predicate on twoAddRecs by calling
isKnownPredicateon the AddRecs start values.The start values may themselves be AddRecs of another loop.
For example, when a loop's IV starts at the exit value of the previous loop's IV.
Then that query recurses into every loop of such a chain, and each level
tries several proofs, so the number of queries grows exponentially with
the length of the chain.
Now prove the predicate on the start values with
isKnownViaNonRecursiveReasoningtoo, instead ofisKnownPredicate.This is less precise.
Before,
isKnownPredicatecould also prove the query by splitting the predicate,and by induction.
Now only the non-recursive checks are used.
The test
IndVarSimplify/addrec-start-chain.llshows the improvement via statistic on how many AddRec start queries are made.Also added a test that shows the regression, where proving the predicate in the inner loop requires this recursion. No other existing tests have regressed, though.
Assisted-By: Claude