parser: refactor some execution analysis functions
parser: move more functions to analyzer.go
Merge branch 'parser'