C#/Ruby: Replace cached with nomagic for deprecated predicates.

This commit is contained in:
Anders Schack-Mulligen
2025-02-10 15:05:03 +01:00
parent 0b5270979d
commit c5d0e2f125
2 changed files with 23 additions and 23 deletions

View File

@@ -794,6 +794,15 @@ deprecated private predicate lastRefSkipUncertainReads(
)
}
pragma[nomagic]
deprecated predicate lastReadSameVar(Definition def, ControlFlow::Node cfn) {
exists(ControlFlow::BasicBlock bb, int i |
lastRefSkipUncertainReads(def, bb, i) and
variableReadActual(bb, i, _) and
cfn = bb.getNode(i)
)
}
cached
private module Cached {
cached
@@ -957,15 +966,6 @@ private module Cached {
)
}
cached
deprecated predicate lastReadSameVar(Definition def, ControlFlow::Node cfn) {
exists(ControlFlow::BasicBlock bb, int i |
lastRefSkipUncertainReads(def, bb, i) and
variableReadActual(bb, i, _) and
cfn = bb.getNode(i)
)
}
cached
Definition uncertainWriteDefinitionInput(UncertainWriteDefinition def) {
Impl::uncertainWriteDefinitionInput(def, result)