Slicing algebraic specifications

被引:3
作者
Woodward, MR [1 ]
Allen, SP [1 ]
机构
[1] Univ Liverpool, Dept Comp Sci, Liverpool L69 7ZF, Merseyside, England
基金
英国工程与自然科学研究理事会;
关键词
slicing; generalized slice; algebraic specification; OBJ; slice-based metrics; cohesion;
D O I
10.1016/S0950-5849(98)00029-9
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
This paper reports an investigation into the application of slicing techniques to OBJ, an algebraic specification notation. A general method for slicing an OBJ specification based on its abstract syntax tree is described and examples of slices produced are presented. A tool that slices OBJ specifications is reported together with the results of applying this tool to several published specifications. The results show that slices of algebraic specifications can provide the same benefit as slices of imperative programs, namely reduced length, thus leading to ease of comprehension and future maintenance. However, slice-based metrics that have been suggested for determining the cohesion of modules in imperative languages do not give an obvious indication of quality in the context of an OBJ module. (C) 1998 Elsevier Science B.V.
引用
收藏
页码:105 / 118
页数:14
相关论文
共 48 条
[1]  
Allen S. P., 1996, Achieving Quality in Software. Proceedings of the Third International Conference on Achieving Quality in Software, 1996, P341
[2]  
Allen SP, 1996, PROCEEDINGS OF THE 5TH SOFTWARE QUALITY CONFERENCE, P116
[3]  
ALLEN SP, 1998, THESIS U LIVERPOOL
[4]  
Bergstra J. A., 1989, ALGEBRAIC SPECIFICAT
[5]   SOFTWARE TESTING BASED ON FORMAL SPECIFICATIONS - A THEORY AND A TOOL [J].
BERNOT, G ;
GAUDEL, MC ;
MARRE, B .
SOFTWARE ENGINEERING JOURNAL, 1991, 6 (06) :387-405
[6]  
BIDOIT M, 1989, SCI COMPUT PROGRAM, V12, P1, DOI 10.1016/0167-6423(89)90026-9
[7]  
BIDOIT M, 1984, SOFTWARE ENG PRACTIC, P182
[8]   MEASURING FUNCTIONAL COHESION [J].
BIEMAN, JM ;
OTT, LM .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1994, 20 (08) :644-657
[9]  
Binkley D., 1996, ADV COMPUT, V43, P1
[10]   TEST SETS GENERATION FROM ALGEBRAIC SPECIFICATIONS USING LOGIC PROGRAMMING [J].
BOUGE, L ;
CHOQUET, N ;
FRIBOURG, L ;
GAUDEL, MC .
JOURNAL OF SYSTEMS AND SOFTWARE, 1986, 6 (04) :343-360