Streaming Transducers for Algorithmic Verification of Single-pass List-processing Programs

被引:43
作者
Alur, Rajeev [1 ]
Cerny, Pavol [1 ]
机构
[1] Univ Penn, Philadelphia, PA 19104 USA
来源
POPL 11: PROCEEDINGS OF THE 38TH ANNUAL ACM SIGPLAN-SIGACT SYMPOSIUM ON PRINCIPLES OF PROGRAMMING LANGUAGES | 2011年
关键词
transducers; algorithmic software verification; lists;
D O I
10.1145/1926385.1926454
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We introduce streaming data string transducers that map input data strings to output data strings in a single left-to-right pass in linear time. Data strings are (unbounded) sequences of data values, tagged with symbols from a finite set, over a potentially infinite data domain that supports only the operations of equality and ordering. The transducer uses a finite set of states, a finite set of variables ranging over the data domain, an a finite set of variables ranging over data strings. At every step, it tan make decisions based on the next input symbol, updating its state, remembering the input data value in its data variables, and updating data-string variables by concatenating data-string variables and new symbols formed from data variables, while avoiding duplication. We establish that the problems of checking functional equivalence of two streaming transducers, and of checking whether a streaming transducer satisfies pre/post verification conditions specified by streaming acceptors over input/output data. strings, are in PSPACE. We identify a class of imperative and a class of functional programs, manipulating lists of data items, which can be effectively translated to streaming data-string transducers. The imperative programs dynamically modily a singly-linked heap by changing next-pointers of heap-nodes and by adding new nodes. The main restriction specifics how the next-pointers can be used for traversal. We also identify an expressively equivalent fragment of functional programs that traverse a I st using syntactically restricted recursive calls. Our results lead to algorithms for assertion checking and for checking functional equivalence of two programs, written possibly in different programming styles, for commonly used routines such as insert, delete, and revel se.
引用
收藏
页码:599 / 610
页数:12
相关论文
共 20 条
[1]  
Alur R, 2009, LECT NOTES COMPUT SC, V5771, P86, DOI 10.1007/978-3-642-04027-6_9
[2]  
Alur Rajeev, 2010, FSTTCS
[3]  
[Anonymous], 2000, Lecture Notes in Computer Science
[4]  
[Anonymous], 1992, ACM LETT PROGRAM LAN
[5]   Two-variable logic on words with data [J].
Bojanczyk, MikolaJ ;
Muscholl, Anca ;
Schwentick, Thomas ;
Segoufin, Luc ;
David, Claire .
21ST ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, PROCEEDINGS, 2006, :7-+
[6]  
Bouajjani A, 2005, LECT NOTES COMPUT SC, V3440, P13
[7]  
Bouajjani A, 2006, LECT NOTES COMPUT SC, V4144, P517, DOI 10.1007/11817963_47
[8]  
Bozga M, 2007, LECT NOTES COMPUT SC, V4349, P122
[9]  
Cerny P, 2010, LECT NOTES COMPUT SC, V6174, P465, DOI 10.1007/978-3-642-14295-6_41
[10]  
CHAKRABORTY S, IISC WORLD IN PRESS