File Download

There are no files associated with this item.

  • Find it @ UNIST can give you direct access to the published full text of this article. (UNISTARs only)
Related Researcher

이주용

Yi, Jooyong
Programming Languages and Software Engineering Lab.
Read More

Views & Downloads

Detailed Information

Cited time in webofscience Cited time in scopus
Metadata Downloads

Past expression: Encapsulating pre-states at post-conditions by means of AOP

Author(s)
Yi, JooyongRobbyDeng, XianghuaRoychoudhury, Abhik
Issued Date
2013-03-24
DOI
10.1145/2451436.2451453
URI
https://scholarworks.unist.ac.kr/handle/201301/35667
Fulltext
https://dl.acm.org/citation.cfm?doid=2451436.2451453
Citation
12th Annual International Conference on Aspect-Oriented Software Development, AOSD 2013, pp.133 - 144
Abstract
Providing a pair of pre and post-condition for a method or a procedure is a typical way of program specification. When specifying a post-condition, it is often necessary to compare the post-state value of a variable with its pre-state value. To access a pre-sate value at a post-condition, most contract languages such as Eiffel and JML provide an old expression; old(x) returns a pre-state value of variable x. However, old expressions pose several problems, most notably the lack of encapsulation; old(x) does not encapsulate an object graph rooted from the pre-state value of x. Thus, method-call expressions like x.equals(old(x)) should generally not be used, and instead each field of x should be compared individually as in x.f1==old(x.f1) && x.f2==old(x.f2). In this paper, we first describe this lack of encapsulation and other problems of old expressions in more detail. Then, to address those problems, we propose our novel past expression along with its formal semantics. We also describe how our past expression can be supported during runtime assertion checking. We explain the involved problems, and show how we solve them. We implement our solution by means of AOP where we exploit various primitive pointcuts including our custom branch pointcut. Copyright © 2013 ACM.
Publisher
12th Annual International Conference on Aspect-Oriented Software Development, AOSD 2013

qrcode

Items in Repository are protected by copyright, with all rights reserved, unless otherwise indicated.