move hasDominatingWrite to the TypeTracking stage

This commit is contained in:
Erik Krogh Kristensen
2022-02-28 11:50:07 +01:00
parent 1db6a644a5
commit 62f2614f72
2 changed files with 3 additions and 3 deletions

View File

@@ -557,7 +557,7 @@ module AccessPath {
*/
cached
predicate hasDominatingWrite(DataFlow::PropRead read) {
Stages::FlowSteps::ref() and
Stages::TypeTracking::ref() and
// within the same basic block.
exists(ReachableBasicBlock bb, Root root, string path, int ranking |
read.asExpr() = rankedAccessPath(bb, root, path, ranking, AccessPathRead()) and

View File

@@ -212,6 +212,8 @@ module Stages {
any(DataFlow::Node node).hasUnderlyingType(_)
or
any(DataFlow::Node node).hasUnderlyingType(_, _)
or
AccessPath::DominatingPaths::hasDominatingWrite(_)
}
}
@@ -235,8 +237,6 @@ module Stages {
predicate backref() {
1 = 1
or
AccessPath::DominatingPaths::hasDominatingWrite(_)
or
DataFlow::SharedFlowStep::step(_, _)
}
}