Simplify replacement of built-in functions from a list of names (#336)
Simplify replacement of built-in functions from a list of names (#336)

Separate the replacement logic from the code that generates
the replacement value to remove duplicate code.

Signed-off-by: Kévin Petit <7be082ac62c87f3fb90b426eef925ff08291362b@free.fr>
google/clspv,google/clspv,google/clspv,google/clspv,google/clspv