“…Given a quadratic string matcher that searches for the first occurrence of a pattern in a text, a partial evaluator specializes this string matcher with respect to a pattern and yields a residual program that traverses the text in linear time. The problem was first stated by Yoshihiko Futamura in 1987 [20] and since then, it has served as a catalyst for the development of partial evaluators, giving rise to a variety of solutions [3,4,15,18,19,20,22,26,32,35,38,40,41].…”