mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-27 00:36:02 +08:00
Include postdominators in CFGResult
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user