Context Unification with One Context Variable


Gascón, A., Godoy, G., Schmidt-Schauß, M., & Tiwari, A. (2010). Context unification with one context variable. Journal of Symbolic Computation, 45(2), 173-193.


The context unification problem is a generalization of standard term unification. It consists of finding a unifier for a set of term equations containing first-order variables and context variables. In this paper we analyze the special case of context unification where the use of at most one context variable is allowed and show that it is in NP. The motivation for investigating this subcase of context unification is interprocedural program analysis for programs described using arbitrary terms, generalizing the case where terms were restricted to using unary function symbols. Our results imply that the redundancy problem is in coNP, and that the finite redundancy property holds in this case. We also exhibit particular cases where one context unification is polynomial.

Keywords: Unification, Interprocedural program analysis, Context unification, Redundancy

Read more from SRI