In program analysis by abstract interpretation, completeness represents the best possible scenario where no imprecision is generated by the abstract interpreter. However, as for all approximation methods, the presence of false-alarms is unavoidable and therefore we need to deal somehow with imprecision, i.e., incompleteness. To this end, the partial completeness property has been recently formalized in order to tolerate a limited amount of imprecision when the abstract and concrete domains are complete lattices and form a Galois Connection. Partial completeness measures the amount of imprecision by using quasi-metrics compatible with the underlying abstract domain. In this paper we generalize the partial completeness property by considering also abstractions that admit a concretization map only and are not necessarily complete lattices. This leads us to formalize a weaker form of quasi-metric, called premetric, which can be defined on all domains equipped with a pre-order relation. Pre-metrics allow us to design distance functions that well fit in the considered abstract interpretation, according to the information and the corresponding level of approximation that we want to measure. We show how this newly defined notion of pre-metric allows us to derive other pre-metrics on other domains by exploiting the concretization and, when available, the abstraction maps.

A Formal Framework to Measure the Incompleteness of Abstract Interpretations

Marco Campion;Mila Dalla Preda;Roberto Giacobazzi
2023-01-01

Abstract

In program analysis by abstract interpretation, completeness represents the best possible scenario where no imprecision is generated by the abstract interpreter. However, as for all approximation methods, the presence of false-alarms is unavoidable and therefore we need to deal somehow with imprecision, i.e., incompleteness. To this end, the partial completeness property has been recently formalized in order to tolerate a limited amount of imprecision when the abstract and concrete domains are complete lattices and form a Galois Connection. Partial completeness measures the amount of imprecision by using quasi-metrics compatible with the underlying abstract domain. In this paper we generalize the partial completeness property by considering also abstractions that admit a concretization map only and are not necessarily complete lattices. This leads us to formalize a weaker form of quasi-metric, called premetric, which can be defined on all domains equipped with a pre-order relation. Pre-metrics allow us to design distance functions that well fit in the considered abstract interpretation, according to the information and the corresponding level of approximation that we want to measure. We show how this newly defined notion of pre-metric allows us to derive other pre-metrics on other domains by exploiting the concretization and, when available, the abstraction maps.
2023
9783031442445
Abstract Interpretation, Partial Completeness, Completeness, Distances, Program Analysis
File in questo prodotto:
File Dimensione Formato  
SAS23.pdf

accesso aperto

Tipologia: Documento in Pre-print
Licenza: Dominio pubblico
Dimensione 596.68 kB
Formato Adobe PDF
596.68 kB Adobe PDF Visualizza/Apri

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/11562/1189251
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact