Topologically non-degenerate functions on a compactn-manifoldM