Ltac2_plugin.Tac2printSourcePrints the shortest name for the constant. Also works for constants not in the nametab (because they're local to another module).
Utility function
type val_printer = {val_printer : 'a. Environ.env ->
Evd.evar_map ->
Tac2ffi.valexpr ->
'a Tac2expr.glb_typexpr list ->
Pp.t;}val pr_valexpr :
Environ.env ->
Evd.evar_map ->
Tac2ffi.valexpr ->
'a Tac2expr.glb_typexpr ->
Pp.tCreate a function that give names to integers. The names are generated on the fly, in the order they are encountered.