Strictness Analysis as Finite-Domain Constraint Solving. Gabrić, T., Glynn, K., & Søndergaard, H. In Logic-Based Program Synthesis and Transformation, volume 1559, of Lecture Notes in Computer Science, pages 255–270, Berlin, Germany, 1999. Springer. doi abstract bibtex It has become popular to express dataflow analyses in logical form. In this paper we investigate a new approach to the analysis of functional programs, based on synthesis of constraint logic programs. We sketch how the language Toupie, originally designed with logic program analysis as one objective, lends itself also to sophisticated strictness analysis. Strictness analysis is straightforward in the simplest case, that of analysing a first-order functional language using just two strictness values, namely divergence and ``don't know''. Mycroft's classical translation immediately yields perfectly valid Boolean constraint logic programs, which, when run, provide the desired strictness information. However, more sophisticated analysis requires more complex domains of strictness values. We recast Wadler's classical analysis over a 2n-point domain as finite-domain constraint solving. This approach has several advantages. First, the translation is relatively simple. We translate a recursive function definition into one or two constraint program clauses, in a manner which naturally extends Mycroft's translation for the 2-point case, where the classical approach translate the definition of an n-place function over lists into 4n mutually recursive equations. Second, the resulting program produces relational information, allowing for example to ask which combinations of properties of input will produce a given output. Third, the approach allows us to leverage from established technology, for solving finite-domain constraints, as well as for finding fixed points. Finally, the use of (disjunctive) constraints can yield a higher precision in the analysis of some programs.
@InProceedings{Gab-Gly-Son_LOPSTR98,
author = {Tihomir Gabri{\'c} and
Kevin Glynn and
Harald S{\o}ndergaard},
title = {Strictness Analysis as Finite-Domain Constraint Solving},
editor = {P. Flener},
booktitle = {Logic-Based Program Synthesis and Transformation},
series = {Lecture Notes in Computer Science},
volume = {1559},
pages = {255--270},
publisher = {Springer},
address = {Berlin, Germany},
year = {1999},
doi = {10.1007/3-540-48958-4_14},
abstract = {It has become popular to express dataflow analyses in logical
form. In this paper we investigate a new approach to the
analysis of functional programs, based on synthesis of
constraint logic programs. We sketch how the language Toupie,
originally designed with logic program analysis as one
objective, lends itself also to sophisticated strictness
analysis. Strictness analysis is straightforward in the
simplest case, that of analysing a first-order functional
language using just two strictness values, namely divergence
and ``don't know''. Mycroft's classical translation immediately
yields perfectly valid Boolean constraint logic programs,
which, when run, provide the desired strictness information.
However, more sophisticated analysis requires more complex
domains of strictness values. We recast Wadler's classical
analysis over a 2<i>n</i>-point domain as finite-domain
constraint solving. This approach has several advantages.
First, the translation is relatively simple. We translate a
recursive function definition into one or two constraint
program clauses, in a manner which naturally extends Mycroft's
translation for the 2-point case, where the classical approach
translate the definition of an <i>n</i>-place function over
lists into 4<sup><i>n</i></sup> mutually recursive equations.
Second, the resulting program produces <i>relational</i>
information, allowing for example to ask which combinations of
properties of input will produce a given output. Third, the
approach allows us to leverage from established technology,
for solving finite-domain constraints, as well as for finding
fixed points. Finally, the use of (disjunctive) constraints can
yield a higher precision in the analysis of some programs.},
keywords = {Strictness analysis, Abstract interpretation, Abstract domains, Functional programming, Constraint programming},
}
Downloads: 0
{"_id":"LD4NomfX6j5BKNY7o","bibbaseid":"gabri-glynn-sndergaard-strictnessanalysisasfinitedomainconstraintsolving-1999","author_short":["Gabrić, T.","Glynn, K.","Søndergaard, H."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","author":[{"firstnames":["Tihomir"],"propositions":[],"lastnames":["Gabrić"],"suffixes":[]},{"firstnames":["Kevin"],"propositions":[],"lastnames":["Glynn"],"suffixes":[]},{"firstnames":["Harald"],"propositions":[],"lastnames":["Søndergaard"],"suffixes":[]}],"title":"Strictness Analysis as Finite-Domain Constraint Solving","editor":[{"firstnames":["P."],"propositions":[],"lastnames":["Flener"],"suffixes":[]}],"booktitle":"Logic-Based Program Synthesis and Transformation","series":"Lecture Notes in Computer Science","volume":"1559","pages":"255–270","publisher":"Springer","address":"Berlin, Germany","year":"1999","doi":"10.1007/3-540-48958-4_14","abstract":"It has become popular to express dataflow analyses in logical form. In this paper we investigate a new approach to the analysis of functional programs, based on synthesis of constraint logic programs. We sketch how the language Toupie, originally designed with logic program analysis as one objective, lends itself also to sophisticated strictness analysis. Strictness analysis is straightforward in the simplest case, that of analysing a first-order functional language using just two strictness values, namely divergence and ``don't know''. Mycroft's classical translation immediately yields perfectly valid Boolean constraint logic programs, which, when run, provide the desired strictness information. However, more sophisticated analysis requires more complex domains of strictness values. We recast Wadler's classical analysis over a 2<i>n</i>-point domain as finite-domain constraint solving. This approach has several advantages. First, the translation is relatively simple. We translate a recursive function definition into one or two constraint program clauses, in a manner which naturally extends Mycroft's translation for the 2-point case, where the classical approach translate the definition of an <i>n</i>-place function over lists into 4<sup><i>n</i></sup> mutually recursive equations. Second, the resulting program produces <i>relational</i> information, allowing for example to ask which combinations of properties of input will produce a given output. Third, the approach allows us to leverage from established technology, for solving finite-domain constraints, as well as for finding fixed points. Finally, the use of (disjunctive) constraints can yield a higher precision in the analysis of some programs.","keywords":"Strictness analysis, Abstract interpretation, Abstract domains, Functional programming, Constraint programming","bibtex":"@InProceedings{Gab-Gly-Son_LOPSTR98,\n author = {Tihomir Gabri{\\'c} and \n\t\tKevin Glynn and \n\t\tHarald S{\\o}ndergaard},\n title = {Strictness Analysis as Finite-Domain Constraint Solving},\n editor = {P. Flener},\n booktitle = {Logic-Based Program Synthesis and Transformation},\n series = {Lecture Notes in Computer Science},\n volume = {1559},\n pages = {255--270},\n publisher = {Springer},\n address = {Berlin, Germany},\n year = {1999},\n doi = {10.1007/3-540-48958-4_14},\n abstract = {It has become popular to express dataflow analyses in logical \n\t\tform. In this paper we investigate a new approach to the \n\t\tanalysis of functional programs, based on synthesis of \n\t\tconstraint logic programs. We sketch how the language Toupie,\n\t\toriginally designed with logic program analysis as one \n\t\tobjective, lends itself also to sophisticated strictness \n\t\tanalysis. Strictness analysis is straightforward in the \n\t\tsimplest case, that of analysing a first-order functional \n\t\tlanguage using just two strictness values, namely divergence \n\t\tand ``don't know''. Mycroft's classical translation immediately\n\t\tyields perfectly valid Boolean constraint logic programs, \n\t\twhich, when run, provide the desired strictness information.\n\t\tHowever, more sophisticated analysis requires more complex \n\t\tdomains of strictness values. We recast Wadler's classical \n\t\tanalysis over a 2<i>n</i>-point domain as finite-domain \n\t\tconstraint solving. This approach has several advantages.\n\t\tFirst, the translation is relatively simple. We translate a \n\t\trecursive function definition into one or two constraint \n\t\tprogram clauses, in a manner which naturally extends Mycroft's\n\t\ttranslation for the 2-point case, where the classical approach\n\t\ttranslate the definition of an <i>n</i>-place function over \n\t\tlists into 4<sup><i>n</i></sup> mutually recursive equations. \n\t\tSecond, the resulting program produces <i>relational</i> \n\t\tinformation, allowing for example to ask which combinations of \n\t\tproperties of input will produce a given output. Third, the \n\t\tapproach allows us to leverage from established technology, \n\t\tfor solving finite-domain constraints, as well as for finding \n\t\tfixed points. Finally, the use of (disjunctive) constraints can\n\t\tyield a higher precision in the analysis of some programs.},\n keywords = {Strictness analysis, Abstract interpretation, Abstract domains, Functional programming, Constraint programming},\n}\n\n","author_short":["Gabrić, T.","Glynn, K.","Søndergaard, H."],"editor_short":["Flener, P."],"key":"Gab-Gly-Son_LOPSTR98","id":"Gab-Gly-Son_LOPSTR98","bibbaseid":"gabri-glynn-sndergaard-strictnessanalysisasfinitedomainconstraintsolving-1999","role":"author","urls":{},"keyword":["Strictness analysis","Abstract interpretation","Abstract domains","Functional programming","Constraint programming"],"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":["strictness analysis","abstract interpretation","abstract domains","functional programming","constraint programming"],"search_terms":["strictness","analysis","finite","domain","constraint","solving","gabrić","glynn","søndergaard"],"title":"Strictness Analysis as Finite-Domain Constraint Solving","year":1999}