Skip to main content
QUICK REVIEW

[Paper Review] Dynamic Backward Slicing of Rewriting Logic Computations

Marı́a Alpuente, Demis Ballis|arXiv (Cornell University)|May 13, 2011
Software Testing and Debugging TechniquesComputer Science20 references4 citations
TL;DR

This paper introduces a novel dynamic backward trace slicing technique for Rewriting Logic (RWL) computations that systematically reduces complex, large-scale execution traces—especially counterexamples from Maude model-checkers—by detecting and eliminating irrelevant data and control dependencies. By leveraging backward tracing with context-based labeling, the method enables efficient debugging and analysis of RWL theories, even under equational axioms like associativity and commutativity, significantly compressing traces while preserving semantic relevance.

ABSTRACT

Trace slicing is a widely used technique for execution trace analysis that is effectively used in program debugging, analysis and comprehension. In this paper, we present a backward trace slicing technique that can be used for the analysis of Rewriting Logic theories. Our trace slicing technique allows us to systematically trace back rewrite sequences modulo equational axioms (such as associativity and commutativity) by means of an algorithm that dynamically simplifies the traces by detecting control and data dependencies, and dropping useless data that do not influence the final result. Our methodology is particularly suitable for analyzing complex, textually-large system computations such as those delivered as counter-example traces by Maude model-checkers.

Motivation & Objective

  • To address the challenge of analyzing excessively large and complex execution traces generated by RWL-based tools, particularly Maude model-checkers.
  • To enable effective debugging and comprehension of system behaviors in complex, concurrent systems formalized in Rewriting Logic.
  • To develop a general-purpose trace slicing technique that works under equational theories, including associative and commutative axioms.
  • To provide a backward tracing mechanism that identifies and prunes data and control dependencies irrelevant to the final result.
  • To implement and evaluate a practical tool for trace slicing that supports both elementary and extended rewrite theories.

Proposed method

  • Proposes a backward trace slicing algorithm that traverses reduction sequences in reverse to identify and eliminate irrelevant events.
  • Employs a labeling mechanism based on context relations derived from rewrite rules to track dynamic dependencies between function symbols across terms.
  • Extends prior dynamic tracing techniques to handle non-left-linear rules, collapsing equations, and associative-commutative (AC) equational axioms.
  • Uses a context-based labeling strategy where symbols in the left-hand side of a rule propagate to all symbols in its right-hand side, enabling precise origin tracking.
  • Supports both elementary and extended rewrite theories, including built-in operators and complex equational constraints.
  • Implements the slicing technique in a software tool that processes Maude-style traces and applies filtering based on user-defined positions of interest.

Experimental results

Research questions

  • RQ1How can backward trace slicing be formally defined and implemented for Rewriting Logic computations under equational theories?
  • RQ2What mechanisms enable accurate backward tracing of dependencies in the presence of associative and commutative equational axioms?
  • RQ3To what extent can dynamic backward slicing reduce the size of large, complex execution traces from Maude model-checkers?
  • RQ4How does the proposed slicing technique preserve semantic relevance while removing irrelevant data and control flow?
  • RQ5What are the practical performance and scalability benefits of applying backward slicing to real-world RWL-based system traces?

Key findings

  • The proposed backward slicing technique successfully reduces trace sizes by filtering out irrelevant data and control dependencies, enabling feasible analysis of large traces.
  • The method achieves significant trace compression, with counterexample traces in Web-TLR being reduced from 75 KB (5000% of model size) to a manageable size.
  • The labeling mechanism correctly identifies ancestors and descendants in rewrite sequences, even under non-left-linear and collapsing rules.
  • The technique supports complex equational theories, including AC axioms, which are common in practical systems like Web applications and biological models.
  • The implemented tool demonstrates practical utility in debugging and monitoring, especially in model-checking scenarios where trace size hinders inspection.
  • The backward tracing strategy is more effective for error diagnosis than forward tracing, as it focuses on the final result and works backward to relevant causes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.