Faster constraint solving with subtypes


Constraints in predicate or relational logic can be translated into boolean logic and solved with a SAT solver. For faster solving, it is common to exploit the typing of predicates or relations, in order to reduce the number of boolean variables needed to encode the constraint. Here we show how to extend this idea to constraints expressed in a language with subtyping. Our technique, called <i>atomization</i>, refactors the type hierarchy into a flat collection of disjoint atomic types. The constraints are then decomposed into equivalent constraints involving smaller relations or predicates over these new types, which can then be solved in the normal fashion. Experiments with an implementation of this technique within the Alloy Analyzer show improved performance on practical software checking problems.

DOI: 10.1145/1007512.1007544

Extracted Key Phrases

3 Figures and Tables

Cite this paper

@inproceedings{Edwards2004FasterCS, title={Faster constraint solving with subtypes}, author={Jonathan Edwards and Daniel Jackson and Emina Torlak and Vincent Yeung}, booktitle={ISSTA}, year={2004} }