Dataflow: Move viableImplNotCallContextReducedReverse to DataFlowImplCommon::CallContextSensitivity.

This commit is contained in:
Anders Schack-Mulligen
2024-05-01 16:13:49 +02:00
parent 740bb84423
commit 5ac96d009a
2 changed files with 8 additions and 4 deletions

View File

@@ -2569,10 +2569,6 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
Cc ccNone() { result instanceof CallContextAny }
CcCall ccSomeCall() { result instanceof CallContextSomeCall }
predicate viableImplNotCallContextReducedReverse(CcNoCall ctx) {
ctx instanceof CallContextAny
}
}
private module Stage2Param implements MkStage<Stage1>::StageParam {

View File

@@ -593,6 +593,14 @@ module MakeImplCommon<LocationSig Location, InputSig<Location> Lang> {
)
}
/**
* Holds if a return does not have a reduced set of viable call sites to
* return to in call context `ctx`.
*/
predicate viableImplNotCallContextReducedReverse(CallContextNoCall ctx) {
ctx instanceof CallContextAny
}
/**
* Resolves a return from `callable` in `cc` to `call`.
*/