Dynamic languages, such as JavaScript, PHP, Python or Ruby, provide a memory model for objects data structures allowing programmers to dynamically create, manipulate, and delete objects’ properties. Moreover, in dynamic languages it is possible to access and update properties by using strings: this represents a hard challenge for static analysis. In this paper, we exploit the finite state automata abstract domain, approximating strings, in order to define a novel abstract domain for objects. We design an abstract interpreter useful to analyze objects in a toy language, inspired by real-word dynamic programming languages. We then show, by means of minimal yet expressive examples, the precision of the proposed abstract domain.

An abstract domain for objects in dynamic programming languages / Arceri, V.; Pasqua, M.; Mastroeni, I.. - 12233:(2020), pp. 136-151. (Intervento presentato al convegno 3rd World Congress on Formal Methods, FM 2019 tenutosi a prt nel 2019) [10.1007/978-3-030-54997-8_9].

An abstract domain for objects in dynamic programming languages

Arceri V.
;
2020-01-01

Abstract

Dynamic languages, such as JavaScript, PHP, Python or Ruby, provide a memory model for objects data structures allowing programmers to dynamically create, manipulate, and delete objects’ properties. Moreover, in dynamic languages it is possible to access and update properties by using strings: this represents a hard challenge for static analysis. In this paper, we exploit the finite state automata abstract domain, approximating strings, in order to define a novel abstract domain for objects. We design an abstract interpreter useful to analyze objects in a toy language, inspired by real-word dynamic programming languages. We then show, by means of minimal yet expressive examples, the precision of the proposed abstract domain.
2020
An abstract domain for objects in dynamic programming languages / Arceri, V.; Pasqua, M.; Mastroeni, I.. - 12233:(2020), pp. 136-151. (Intervento presentato al convegno 3rd World Congress on Formal Methods, FM 2019 tenutosi a prt nel 2019) [10.1007/978-3-030-54997-8_9].
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11381/2899274
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact