Automatically extract functions prototype

This will be used to vectorize the functions