Anti-pattern Matching Modulo

  • Authors:
  • Claude Kirchner;Radu Kopetz;Pierre-Etienne Moreau

  • Affiliations:
  • INRIA Bordeaux --- Sud Ouest,;INRIA Nancy --- Grand Est,;INRIA Nancy --- Grand Est,

  • Venue:
  • Language and Automata Theory and Applications
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

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 recent work, the notion of term was extended to the one of anti-term, i.e.terms that may contain complement symbols.Here we generalize the syntactic anti-pattern matching to anti-pattern matching moduloan arbitrary equational theory ε, and we study the specific and practically very useful case of associativity, possibly with a unity ($\mathcal{AU}$). To this end, based on the syntacticnessof associativity, we present a rule-based associative matching algorithm, and we extend it to $\mathcal{AU}$. This algorithm is then used to solve $\mathcal{AU}$ anti-pattern matching problems. This allows us to be generic enough so that for instance, the AllDiffstandard predicate of constraint programming becomes simply expressible in this framework. $\mathcal{AU}$ anti-patterns are implemented in the Tomlanguage and we show some examples of their usage.