Skip to main content
QUICK REVIEW

[Paper Review] An Operational Semantics for Activity Diagrams using SMV

Shahar Maoz, Jan Oliver Ringert|arXiv (Cornell University)|Sep 8, 2014
Advanced Software Engineering MethodologiesComputer Science44 references20 citations
TL;DR

This paper proposes an operational semantics for activity diagrams (ADs) by translating them into the SMV formalism, enabling precise modeling of concurrent actions and data handling. The translation supports interleaved execution of concurrent branches and was validated through implementation in a semantic differencing framework, demonstrating correctness and expressiveness in formal verification contexts.

ABSTRACT

This document defines an operational semantics for activity diagrams (ADs) using a translation to SMV. The translation is inspired by the work of Eshuis [Esh06] and extends it with support for data. Each execution step of the SMV module obtained from an AD represents an executed action of this AD with interleaved execution of concurrent branches. An implementation of the given translation was used in the context of semantic differencing for ADs [MRR11]. We define the translation and give two examples, showing ADs and their complete representation in SMV.

Motivation & Objective

  • To define a formal operational semantics for activity diagrams that captures concurrent and data-aware execution.
  • To extend existing SMV-based translations with native support for data operations in activity diagrams.
  • To enable precise, machine-checkable reasoning about AD behavior using model checking.
  • To support formal analysis in tools like those used for semantic differencing of ADs.
  • To bridge the gap between UML activity diagrams and formal verification via SMV.

Proposed method

  • Translating activity diagrams into SMV modules using a formal mapping that preserves control and data flow.
  • Modeling each action in the AD as a discrete step in the SMV state machine.
  • Supporting concurrent branches through interleaved execution semantics in SMV.
  • Encoding data operations (e.g., assignments, conditions) directly in SMV's logic and state variables.
  • Using SMV's model checker to validate behavioral properties of the translated ADs.
  • Validating the translation with two detailed examples showing full SMV representations.

Experimental results

Research questions

  • RQ1How can activity diagrams be formally mapped to a model checker like SMV while preserving their operational semantics?
  • RQ2What extensions are needed to support data handling in SMV-based translations of ADs?
  • RQ3Can the translation correctly model concurrent execution with interleaved actions in ADs?
  • RQ4How does the inclusion of data operations affect the expressiveness and correctness of the SMV translation?
  • RQ5To what extent can this formalization support automated analysis tasks such as semantic differencing?

Key findings

  • The translation successfully models concurrent branches with interleaved execution, preserving the intended semantics of the original ADs.
  • The inclusion of data operations in the SMV translation enables formal reasoning about data-dependent behaviors in ADs.
  • The method was implemented and used in a prior framework for semantic differencing of ADs, demonstrating practical applicability.
  • Two complete examples were provided, showing full SMV representations of ADs, including control flow and data handling.
  • The approach enables formal verification of ADs using SMV’s model checking capabilities, ensuring correctness of behavioral models.
  • The formalism supports precise, machine-checkable execution traces, enhancing reliability in software engineering contexts.

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.