Abstract
The operational semantics of a programming language is said to be small-step if each transition step is an atomic computation step in the language. A semantics with this property faithfully corresponds to the implementation of the language. The previous semantics of the graph programming language GP 2 is not fully small-step because the loop and branching commands are defined in big-step style. In this paper, we present a truly small-step operational semantics for GP 2 which, in particular, accurately models diverging computations. To obtain small-step definitions of all commands, we equip the transition relation with a stack of host graphs and associated operations. We prove that the new semantics is non-blocking in that every computation either diverges or eventually produces a result graph or the failure state. We also show the finite nondeterminism property, viz. that each configuration has only a finite number of direct successors. The previous semantics of GP 2 is neither non-blocking nor does it have the finite nondeterminism property. We also show that, for a program and a graph that terminate, both semantics are equivalent, and that the old semantics can be simulated with the new one.
| Original language | English |
|---|---|
| Pages (from-to) | 89-110 |
| Number of pages | 22 |
| Journal | Electronic Proceedings in Theoretical Computer Science, EPTCS |
| Volume | 350 |
| DOIs | |
| Publication status | Published - 21 Dec 2021 |
| Externally published | Yes |
| Event | 12th International Workshop on Graph Computational Models - Virtual, Online Duration: 22 Jun 2021 → 22 Jun 2021 https://arxiv.org/abs/2112.10217 |
Fingerprint
Dive into the research topics of 'A Small-Step Operational Semantics for GP 2'. Together they form a unique fingerprint.Activities
- 1 Oral presentation
-
A Small-Step Operational Semantics for GP 2
Courtehoute, B. (Speaker) & Plump, D. (Contributor to Paper or Presentation)
22 Jun 2021Activity: Talk or presentation types › Oral presentation
Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver