Function finder based on sampled function arguments and values