Simplify the interface of AnalyzeGlobal a bit and rename to analyzeGlobal.

No functionality change.