Add rules for globally static function call
Check for static expressions in generate statements