{"_id":"M5PeBADkcoCnZgRgJ","bibbaseid":"palsberg-wand-cpstransformationofflowinformation-2003","downloads":0,"creationDate":"2017-04-23T20:31:12.617Z","title":"CPS Transformation of Flow Information","author_short":["Palsberg, J.","Wand, M."],"year":2003,"bibtype":"article","biburl":"http://www.ccs.neu.edu/home/wand/Bibliography.bib","bibdata":{"bibtype":"article","type":"article","author":[{"firstnames":["Jens"],"propositions":[],"lastnames":["Palsberg"],"suffixes":[]},{"firstnames":["Mitchell"],"propositions":[],"lastnames":["Wand"],"suffixes":[]}],"title":"CPS Transformation of Flow Information","journal":"Journal of Functional Programming","volume":"13","number":"5","year":"2003","month":"September","pages":"905-923","url":"ftp://ftp.ccs.neu.edu/pub/people/wand/papers/jfp-03.pdf","abstract":"We consider the question of how a continuation-passing-style (CPS) transformation changes the flow analysis of a program. We present an algorithm that takes the least solution to the flow constraints of a program and constructs in linear time the least solution to the flow constraints for the CPS-transformed program. Previous studies of this question used CPS transformations that had the effect of duplicating code, or of introducing flow sensitivity into the analysis. Our algorithm has the property that for a program point in the original program and the corresponding program point in the CPS-transformed program, the flow information is the same. By carefully avoiding both duplicated code and flow-sensitive analysis, we find that the most accurate analysis of the CPS-transformed program is neither better nor worse than the most accurate analysis of the original. Thus a compiler that needed flow information after CPS transformation could use the flow information from the original program to annotate some program points, and it could use our algorithm to find the the rest of the flow information quickly, rather than having to analyze the CPS-transformed program. ","source":"~/papers/jfp-03","annote":"previously listed as PalsbergWand00, from ~/papers/cps-flow-99. Based on work done around 1998, as I recall. ","bibtex":"@Article{PalsbergWand:JFP-03,\n author = \t {Jens Palsberg and Mitchell Wand},\n title = \t {CPS Transformation of Flow Information},\n journal = {Journal of Functional Programming},\n volume = 13,\n number = 5,\n year =\t {2003},\n month =\t sep,\n pages = {905-923},\n URL =\t\t ftpdir # {jfp-03.pdf},\n abstract =\t \n{We consider the question of how a continuation-passing-style (CPS) \ntransformation changes the flow analysis of a program. We present an\nalgorithm that takes the least solution to the flow constraints of a\nprogram and constructs in linear time the least solution to the flow\nconstraints for the CPS-transformed program.\nPrevious studies of this question used CPS transformations that had\nthe effect of duplicating code, or of introducing flow sensitivity\ninto the analysis. Our algorithm has the property that for a program\npoint in the original program and the corresponding program point in\nthe CPS-transformed program, the flow information is the same. By\ncarefully avoiding both duplicated code and flow-sensitive analysis,\nwe find that the most accurate analysis of the CPS-transformed program\nis neither better nor worse than the most accurate analysis of the\noriginal. Thus a compiler that needed flow information after CPS\ntransformation could use the flow information from the original\nprogram to annotate some program points, and it could use our\nalgorithm to find the the rest of the flow information quickly, rather\nthan having to analyze the CPS-transformed program. },\n source =\t {~/papers/jfp-03},\n annote =\t {previously listed as PalsbergWand00, from ~/papers/cps-flow-99. Based on work done around 1998, as I recall. },\n}\n\n\n","author_short":["Palsberg, J.","Wand, M."],"key":"PalsbergWand:JFP-03","id":"PalsbergWand:JFP-03","bibbaseid":"palsberg-wand-cpstransformationofflowinformation-2003","role":"author","urls":{"Paper":"ftp://ftp.ccs.neu.edu/pub/people/wand/papers/jfp-03.pdf"},"downloads":0,"html":""},"search_terms":["cps","transformation","flow","information","palsberg","wand"],"keywords":[],"authorIDs":[],"dataSources":["zM8mNPR4ZkAHKtvDs"]}