Anti-Pattern Matching Modulo - INRIA - Institut National de Recherche en Informatique et en Automatique Accéder directement au contenu
Communication Dans Un Congrès Année : 2007

Anti-Pattern Matching Modulo

Résumé

Negation is intrinsic to human thinking and most of the time when searching for something, we base our patterns on both positive and negative conditions. In a previous work, we have extended the notion of term to the one of anti-term that may contain complement symbols.Matching such anti-terms against terms has the nice property of being unitary. Here we generalize the syntactic anti-pattern matching to anti-pattern matching modulo an arbitrary equational theory E, and we study the specific and practically very useful case of associativity, possibly with a unity (AU). To this end, based on the syntacticness of associativity, we present a rule-based associative matching algorithm, and we extend it to AU. This algorithm is then used to solve AU anti-pattern matching problems. This allows us to be generic enough so that for instance, the AllDiff standard predicate of constraint programming becomes simply expressible in this framework. AU anti-patterns are implemented in the Tom language and we show some examples of their usage.
Fichier principal
Vignette du fichier
associativeAntiPatterns.pdf (298.88 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

inria-00129421 , version 1 (07-02-2007)
inria-00129421 , version 2 (15-06-2007)
inria-00129421 , version 3 (30-10-2007)

Identifiants

  • HAL Id : inria-00129421 , version 1

Citer

Claude Kirchner, Radu Kopetz, Pierre-Etienne Moreau. Anti-Pattern Matching Modulo. The Fifth ASIAN Symposium on Programming Languages and Systems - APLAS 2007, Nov 2007, Singapore. ⟨inria-00129421v1⟩
142 Consultations
112 Téléchargements

Partager

Gmail Facebook X LinkedIn More