INVESTIGADORES
PONZIO Pablo Daniel
congresos y reuniones científicas
Título:
Automatically Identifying Sufficient Object Builders from Module APIs
Autor/es:
PABLO PONZIO; VALERIA BENGOLEA; MARIANO POLITANO; NAZARENO AGUIRRE; MARCELO F. FRIAS
Reunión:
Conferencia; Fundamental Approaches to Software Engineering - 22nd International Conference, FASE 2019; 2019
Resumen:
Various approaches to software analysis (e.g. test input generation, software model checking) require engineers to (manually) identify a subset of a modules methods in order to drive the analysis. Given a module to be analyzed, engineers typically select a subset of its methods to be considered as object builders to define a so-called driver, that will be used to automatically build objects for analysis, e.g., combining them non-deterministically, randomly, etc. This requires a careful inspection of the module and its API, since both the relative exhaustiveness of the analysis (leaving important methods out may systematically avoid generating different objects), as well as its efficiency (the different bounded combinations of methods grows exponentially as the number of methods increases), are affected by the selection.We propose an approach for automatically selecting a set of builders from a modules API, based on an evolutionary algorithm that favors sets of methods whose combinations lead to producing larger sets of objects. The algorithm also takes into account other characteristics of these sets of methods, trying to prioritize the selection of methods with less and simpler parameters. As the implementation of this evolutionary mechanism requires in principle handling and comparing large sets of objects, and this grows very quickly both in terms of space and running times, we employ an abstraction of sets of objects, called field extensions, that involves using the field values of the objects in the set instead of the actual objects, and enables us to effectively implement our mechanism. An experimental assessment on a benchmark of stateful classes shows that our approach can automatically identify sets of builders that are sufficient (can be used to create any instance of the module) and minimal (do not contain superfluous methods), in a reasonable time.