A Comparison of Three Occur-Check Analysers. Crnogorac, L., Kelly, A., & Søndergaard, H. In Cousot, R. & Schmidt, D. A., editors, Static Analysis: Proceedings of the Third International Symposium, volume 1145, of Lecture Notes in Computer Science, pages 159–173, 1996. Springer. doi abstract bibtex A well known problem with many Prolog interpreters and compilers is the lack of occur-check in the implementation of the unification algorithm. This means that such systems are unsound with respect to first-order predicate logic. Static analysis offers an appealing approach to the problem of occur-check reduction, that is, the safe omission of occur-checks in unification. We compare, for the first time, three static methods that have been suggested for occur-check reduction, two based on assigning ``modes'' to programs and one which uses abstract interpretation. In each case, the analysis or some essential part of it had not been implemented so far. Of the mode-based methods, one is due to Chadha and Plaisted and the other is due to Apt and Pellegrini. The method using abstract interpretation is based on earlier work by Plaisted, Søndergaard and others who have developed groundness and sharing analyses for logic programs. The conclusion is that a truly global analysis based on abstract interpretation leads to markedly higher precision and hence fewer occur-checks at run-time. Given the potential run-time speedups, a precise analysis would be well worth the extra time.
@Inproceedings{Crn-Kel-Son_SAS96,
author = {Lobel Crnogorac and
Andrew Kelly and
Harald S{\o}ndergaard},
title = {A Comparison of Three Occur-Check Analysers},
editor = {R. Cousot and D. A. Schmidt},
booktitle = {Static Analysis: Proceedings of the Third International
Symposium},
series = {Lecture Notes in Computer Science},
volume = {1145},
pages = {159--173},
publisher = {Springer},
year = {1996},
doi = {10.1007/3-540-61739-6_40},
abstract = {A well known problem with many Prolog interpreters and compilers
is the lack of occur-check in the implementation of the
unification algorithm. This means that such systems are unsound
with respect to first-order predicate logic. Static analysis
offers an appealing approach to the problem of occur-check
reduction, that is, the safe omission of occur-checks in
unification. We compare, for the first time, three static
methods that have been suggested for occur-check reduction,
two based on assigning ``modes'' to programs and one which
uses abstract interpretation. In each case, the analysis or
some essential part of it had not been implemented so far.
Of the mode-based methods, one is due to Chadha and Plaisted
and the other is due to Apt and Pellegrini. The method using
abstract interpretation is based on earlier work by Plaisted,
S{\o}ndergaard and others who have developed groundness and
sharing analyses for logic programs. The conclusion is that a
truly global analysis based on abstract interpretation leads
to markedly higher precision and hence fewer occur-checks at
run-time. Given the potential run-time speedups, a precise
analysis would be well worth the extra time.},
keywords = {Abstract interpretation, Groundness analysis, Sharing analysis, Unification, Prolog, Compilation},
}
Downloads: 0
{"_id":"xkZD6yYdtNfCa47RG","bibbaseid":"crnogorac-kelly-sndergaard-acomparisonofthreeoccurcheckanalysers-1996","author_short":["Crnogorac, L.","Kelly, A.","Søndergaard, H."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","author":[{"firstnames":["Lobel"],"propositions":[],"lastnames":["Crnogorac"],"suffixes":[]},{"firstnames":["Andrew"],"propositions":[],"lastnames":["Kelly"],"suffixes":[]},{"firstnames":["Harald"],"propositions":[],"lastnames":["Søndergaard"],"suffixes":[]}],"title":"A Comparison of Three Occur-Check Analysers","editor":[{"firstnames":["R."],"propositions":[],"lastnames":["Cousot"],"suffixes":[]},{"firstnames":["D.","A."],"propositions":[],"lastnames":["Schmidt"],"suffixes":[]}],"booktitle":"Static Analysis: Proceedings of the Third International Symposium","series":"Lecture Notes in Computer Science","volume":"1145","pages":"159–173","publisher":"Springer","year":"1996","doi":"10.1007/3-540-61739-6_40","abstract":"A well known problem with many Prolog interpreters and compilers is the lack of occur-check in the implementation of the unification algorithm. This means that such systems are unsound with respect to first-order predicate logic. Static analysis offers an appealing approach to the problem of occur-check reduction, that is, the safe omission of occur-checks in unification. We compare, for the first time, three static methods that have been suggested for occur-check reduction, two based on assigning ``modes'' to programs and one which uses abstract interpretation. In each case, the analysis or some essential part of it had not been implemented so far. Of the mode-based methods, one is due to Chadha and Plaisted and the other is due to Apt and Pellegrini. The method using abstract interpretation is based on earlier work by Plaisted, Søndergaard and others who have developed groundness and sharing analyses for logic programs. The conclusion is that a truly global analysis based on abstract interpretation leads to markedly higher precision and hence fewer occur-checks at run-time. Given the potential run-time speedups, a precise analysis would be well worth the extra time.","keywords":"Abstract interpretation, Groundness analysis, Sharing analysis, Unification, Prolog, Compilation","bibtex":"@Inproceedings{Crn-Kel-Son_SAS96,\n author = {Lobel Crnogorac and \n\t\tAndrew Kelly and \n\t\tHarald S{\\o}ndergaard},\n title = {A Comparison of Three Occur-Check Analysers},\n editor = {R. Cousot and D. A. Schmidt},\n booktitle = {Static Analysis: Proceedings of the Third International \n\t\tSymposium},\n series = {Lecture Notes in Computer Science},\n volume = {1145},\n pages = {159--173},\n publisher = {Springer},\n year = {1996},\n doi = {10.1007/3-540-61739-6_40},\n abstract = {A well known problem with many Prolog interpreters and compilers\n\t\tis the lack of occur-check in the implementation of the \n\t\tunification algorithm. This means that such systems are unsound\n\t\twith respect to first-order predicate logic. Static analysis \n\t\toffers an appealing approach to the problem of occur-check \n\t\treduction, that is, the safe omission of occur-checks in \n\t\tunification. We compare, for the first time, three static \n\t\tmethods that have been suggested for occur-check reduction, \n\t\ttwo based on assigning ``modes'' to programs and one which \n\t\tuses abstract interpretation. In each case, the analysis or \n\t\tsome essential part of it had not been implemented so far.\n\t\tOf the mode-based methods, one is due to Chadha and Plaisted\n\t\tand the other is due to Apt and Pellegrini. The method using \n\t\tabstract interpretation is based on earlier work by Plaisted, \n\t\tS{\\o}ndergaard and others who have developed groundness and \n\t\tsharing analyses for logic programs. The conclusion is that a \n\t\ttruly global analysis based on abstract interpretation leads \n\t\tto markedly higher precision and hence fewer occur-checks at \n\t\trun-time. Given the potential run-time speedups, a precise \n\t\tanalysis would be well worth the extra time.},\n keywords = {Abstract interpretation, Groundness analysis, Sharing analysis, Unification, Prolog, Compilation},\n}\n\n","author_short":["Crnogorac, L.","Kelly, A.","Søndergaard, H."],"editor_short":["Cousot, R.","Schmidt, D. A."],"key":"Crn-Kel-Son_SAS96","id":"Crn-Kel-Son_SAS96","bibbaseid":"crnogorac-kelly-sndergaard-acomparisonofthreeoccurcheckanalysers-1996","role":"author","urls":{},"keyword":["Abstract interpretation","Groundness analysis","Sharing analysis","Unification","Prolog","Compilation"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"inproceedings","biburl":"https://people.eng.unimelb.edu.au/harald/bibbase.bib","dataSources":["yWvm3kzg5vKQAPLm7","ofmsZryxNDBSpE7j5","9aC4cxLD8D6oJ3FLN","wpkuJrZJJtqra3FbL","BNGFBQQncqevukxoe","q5pWX4XZgAS4TQBof","yb3uN577XrYa7qf57","9jmvjAEoFta6emcgS","XqcrNTrCCBr9mSd37","W7ih7WyQivP4EDh83"],"keywords":["abstract interpretation","groundness analysis","sharing analysis","unification","prolog","compilation"],"search_terms":["comparison","three","occur","check","analysers","crnogorac","kelly","søndergaard"],"title":"A Comparison of Three Occur-Check Analysers","year":1996}