control flow graphs: introduce 'join' points for easy analyses based on abstract interpretation

This commit is contained in:
Andreas Rumpf 2019-01-21 14:35:49 +01:00
commit 11022fea1b
3 changed files with 395 additions and 154 deletions

View file

@ -1013,7 +1013,7 @@ proc trackProc*(g: ModuleGraph; s: PSym, body: PNode) =
"declared lock level is $1, but real lock level is $2" %
[$s.typ.lockLevel, $t.maxLockLevel])
when defined(useDfa):
if s.kind == skFunc:
if s.name.s == "testp":
dataflowAnalysis(s, body)
when false: trackWrites(s, body)