libr/core/cmd_anal: some refactoring
libr/core/cmd_anal: avoid code duplication
libr/core/cmd_anal: remove r_ prefix from function