mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Include postdominators in CFGResult
This commit is contained in:
parent
982681fc05
commit
f1148b8b41
2 changed files with 84 additions and 7 deletions
|
@ -99,6 +99,7 @@ data CFGAnalysis = CFGAnalysis {
|
|||
graph :: CFGraph,
|
||||
tokenToRange :: M.Map Id (Node, Node),
|
||||
tokenToNodes :: M.Map Id (S.Set Node),
|
||||
postDominators :: M.Map Node (S.Set Node),
|
||||
nodeToData :: M.Map Node (ProgramState, ProgramState)
|
||||
} deriving (Show, Generic, NFData)
|
||||
|
||||
|
@ -1304,7 +1305,8 @@ analyzeControlFlow params t =
|
|||
graph = cfGraph cfg,
|
||||
tokenToRange = cfIdToRange cfg,
|
||||
tokenToNodes = cfIdToNodes cfg,
|
||||
nodeToData = nodeToData
|
||||
nodeToData = nodeToData,
|
||||
postDominators = cfPostDominators cfg
|
||||
}
|
||||
|
||||
|
||||
|
@ -1355,5 +1357,6 @@ analyzeStragglers ctx state stragglers = do
|
|||
transferFunctionValue ctx def
|
||||
|
||||
|
||||
|
||||
return []
|
||||
runTests = $quickCheckAll
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue