Assessing fine-grained feature dependencies

被引:10
|
作者
Rodrigues, Iran [1 ]
Ribeiro, Marcio [1 ]
Medeiros, Flavio [3 ]
Borba, Paulo [2 ]
Fonseca, Baldoino [1 ]
Gheyi, Rohit [3 ]
机构
[1] Univ Fed Alagoas, Maceio, Brazil
[2] Univ Fed Pernambuco, Recife, PE, Brazil
[3] Univ Fed Campina Grande, Campina Grande, Brazil
关键词
Preprocessor; Software family; Feature dependency;
D O I
10.1016/j.infsof.2016.05.006
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context: Maintaining software families is not a trivial task. Developers commonly introduce bugs when they do not consider existing dependencies among features. When such implementations share program elements, such as variables and functions, inadvertently using these elements may result in bugs. In this context, previous work focuses only on the occurrence of intraprocedural dependencies, that is, when features share program elements within a function. But at the same time, we still lack studies investigating dependencies that transcend the boundaries of a function, since these cases might cause bugs as well. Objective: This work assesses to what extent feature dependencies exist in actual software families, answering research questions regarding the occurrence of intraprocedural, global, and interprocedural dependencies and their characteristics. Method: We perform an empirical study covering 40 software families of different domains and sizes. We use a variability-aware parser to analyze families source code while retaining all variability information. Results: Intraprocedural and interprocedural feature dependencies are common in the families we analyze: more than half of functions with preprocessor directives have intraprocedural dependencies, while over a quarter of all functions have interprocedural dependencies. The median depth of interprocedural dependencies is 9. Conclusion: Given these dependencies are rather common, there is a need for tools and techniques to raise developers awareness in order to minimize or avoid problems when maintaining code in the presence of such dependencies. Problems regarding interprocedural dependencies with high depths might be harder to detect and fix. (C) 2016 Elsevier B.V. All rights reserved.
引用
收藏
页码:27 / 52
页数:26
相关论文
共 50 条
  • [1] Labeling Workflow Views with Fine-Grained Dependencies
    Bao, Zhuowei
    Davidson, Susan B.
    Milo, Tova
    [J]. PROCEEDINGS OF THE VLDB ENDOWMENT, 2012, 5 (11): : 1208 - 1219
  • [2] Vantage Feature Frames For Fine-Grained Categorization
    Sfar, Asma Rejeb
    Boujemaa, Nozha
    Geman, Donald
    [J]. 2013 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2013, : 835 - 842
  • [3] Fine-Grained Crowdsourcing for Fine-Grained Recognition
    Jia Deng
    Krause, Jonathan
    Li Fei-Fei
    [J]. 2013 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2013, : 580 - 587
  • [4] Assessing Fine-Grained Explicitness of Song Lyrics
    Rospocher, Marco
    Eksir, Samaneh
    [J]. INFORMATION, 2023, 14 (03)
  • [5] Distilling Object Detectors With Fine-Grained Feature Imitation
    Wang, Tao
    Yuan, Li
    Zhang, Xiaopeng
    Feng, Jiashi
    [J]. 2019 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR 2019), 2019, : 4928 - 4937
  • [6] A recommendation algorithm based on fine-grained feature analysis
    Lu, Wenjie
    Altenbek, Gulila
    [J]. EXPERT SYSTEMS WITH APPLICATIONS, 2021, 163
  • [7] Feature relocation network for fine-grained image classification
    Zhao, Peng
    Li, Yi
    Tang, Baowei
    Liu, Huiting
    Yao, Sheng
    [J]. NEURAL NETWORKS, 2023, 161 : 306 - 317
  • [8] Subset Feature Learning for Fine-Grained Category Classification
    Ge, ZongYuan
    McCool, Christopher
    Sanderson, Conrad
    Corke, Peter
    [J]. 2015 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION WORKSHOPS (CVPRW), 2015,
  • [9] Embedding Label Structures for Fine-Grained Feature Representation
    Zhang, Xiaofan
    Zhou, Feng
    Lin, Yuanqing
    Zhang, Shaoting
    [J]. 2016 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2016, : 1114 - 1123
  • [10] FINE-GRAINED COLOUR DISCRIMINATION WITHOUT FINE-GRAINED COLOUR
    Gert, Joshua
    [J]. AUSTRALASIAN JOURNAL OF PHILOSOPHY, 2015, 93 (03) : 602 - 605