Detecting Function Purity in JavaScript. Nicolay, J., Noguera Garcia, C., De Roover, C., & De Meuter, W. In Proceedings of the 15th IEEE Working Conference on Source Code Analysis and Manipulation (SCAM), pages 101–110, 9, 2015. IEEE.
abstract   bibtex   
We present an approach to detect function purity in JavaScript.A function is pure if none of its applications cause observable side-effects.The approach is based on a pushdown flow analysis that besides traditional control and value flow also keeps track of write effects.To increase the precision of our purity analysis, we combine it with an intraprocedural analysis to determine freshness of variables and object references.We formalize the core aspects of our analysis, and discuss our implementation used to analyze several common JavaScript benchmarks. Experiments show that our technique is capable of detecting function purity, even in the presence of higher-order functions, dynamic property expressions, and prototypal inheritance.
@inproceedings{149c8429f75a40918fde3fc06e0ed744,
  title     = "Detecting Function Purity in JavaScript",
  abstract  = "We present an approach to detect function purity in JavaScript.A function is pure if none of its applications cause observable side-effects.The approach is based on a pushdown flow analysis that besides traditional control and value flow also keeps track of write effects.To increase the precision of our purity analysis, we combine it with an intraprocedural analysis to determine freshness of variables and object references.We formalize the core aspects of our analysis, and discuss our implementation used to analyze several common JavaScript benchmarks. Experiments show that our technique is capable of detecting function purity, even in the presence of higher-order functions, dynamic property expressions, and prototypal inheritance.",
  keywords  = "static analysis, abstract interpretation, effects, JavaScript",
  author    = "Jens Nicolay and {Noguera Garcia}, {Carlos Francisco} and {De Roover}, Coen and {De Meuter}, Wolfgang",
  year      = "2015",
  month     = "9",
  language  = "English",
  isbn      = "9781467375306",
  pages     = "101--110",
  booktitle = "Proceedings of the 15th IEEE Working Conference on Source Code Analysis and Manipulation (SCAM)",
  publisher = "IEEE",
}

Downloads: 0