Automatic Inference of Determinacy and Mutual Exclusion for Logic Programs Using Mode and Type Analyses


Autoria(s): Bueno Carrillo, Francisco; Hermenegildo, Manuel V.; López García, Pedro
Data(s)

2010

Resumo

We propose an analysis for detecting procedures and goals that are deterministic (i.e., that produce at most one solution at most once),or predicates whose clause tests are mutually exclusive (which implies that at most one of their clauses will succeed) even if they are not deterministic. The analysis takes advantage of the pruning operator in order to improve the detection of mutual exclusion and determinacy. It also supports arithmetic equations and disequations, as well as equations and disequations on terms,for which we give a complete satisfiability testing algorithm, w.r.t. available type information. Information about determinacy can be used for program debugging and optimization, resource consumption and granularity control, abstraction carrying code, etc. We have implemented the analysis and integrated it in the CiaoPP system, which also infers automatically the mode and type information that our analysis takes as input. Experiments performed on this implementation show that the analysis is fairly accurate and efficient.

Formato

application/pdf

Identificador

http://oa.upm.es/13285/

Idioma(s)

eng

Publicador

Facultad de Informática (UPM)

Relação

http://oa.upm.es/13285/1/HERME_A_2010-2.pdf

http://www.springerlink.com/content/2761376717112242/

info:eu-repo/grantAgreement/EC/FP7/215483

info:eu-repo/semantics/altIdentifier/doi/10.1007/s00354-008-0085-1

Direitos

http://creativecommons.org/licenses/by-nc-nd/3.0/es/

info:eu-repo/semantics/openAccess

Fonte

New generation computing, ISSN 0288-3635, 2010, Vol. 28, No. 2

Palavras-Chave #Informática
Tipo

info:eu-repo/semantics/article

Artículo

PeerReviewed