title: "Dynamic Inference of Abstract Types" authors: Philip J. Guo, Jeff H. Perkins, Stephen McCamant, Michael D. Ernst venue: International Symposium on Software Testing and Analysis (ISSTA) year: 2006 tweet: DynComp infers semantically-meaningful types by running code & tracking run-time value interactions abstract: > An abstract type groups variables that are used for related purposes in a program. We describe a dynamic unification-based analysis for inferring abstract types. Initially, each run-time value gets a unique abstract type. A run-time interaction among values indicates that they have the same abstract type, so their abstract types are unified. Also at run time, abstract types for variables are accumulated from abstract types for values. The notion of interaction may be customized, permitting the analysis to compute finer or coarser abstract types; these different notions of abstract type are useful for different tasks. We have implemented the analysis for compiled x86 binaries and for Java bytecodes. Our experiments indicate that the inferred abstract types are useful for program comprehension, improve both the results and the run time of a follow-on program analysis, and are more precise than the output of a comparable static analysis, without suffering from overfitting. bibtex: > @inproceedings{GuoDyncompISSTA2006, author = {Guo, Philip J. and Perkins, Jeff H. and McCamant, Stephen and Ernst, Michael D.}, title = {Dynamic Inference of Abstract Types}, booktitle = {Proceedings of the 2006 International Symposium on Software Testing and Analysis}, series = {ISSTA '06}, year = {2006}, isbn = {1-59593-263-1}, location = {Portland, Maine, USA}, pages = {255--265}, numpages = {11}, url = {http://doi.acm.org/10.1145/1146238.1146268}, doi = {10.1145/1146238.1146268}, acmid = {1146268}, publisher = {ACM}, address = {New York, NY, USA}, keywords = {C, C++, Java, abstract types, dynamic analysis, interaction, mixed-level analysis, type inference, units, values and variables}, }