A Theory of Slicing for Probabilistic Control Flow Graphs

被引:9
作者
Amtoft, Torben [1 ]
Banerjee, Anindya [2 ]
机构
[1] Kansas State Univ, Manhattan, KS 66506 USA
[2] IMDEA Software Inst, Madrid, Spain
来源
FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES (FOSSACS 2016) | 2016年 / 9634卷
基金
美国国家科学基金会;
关键词
D O I
10.1007/978-3-662-49630-5_11
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present a theory for slicing probabilistic imperative programs-containing random assignment and "observe" statements-represented as control flow graphs whose nodes transform probability distributions. We show that such a representation allows direct adaptation of standard machinery such as data and control dependence, postdominators, relevant variables, etc. to the probabilistic setting. We separate the specification of slicing from its implementation: first we develop syntactic conditions that a slice must satisfy; next we prove that any such slice is semantically correct; finally we give an algorithm to compute the least slice. A key feature of our syntactic conditions is that they involve two disjoint slices such that the variables of one slice are probabilistically independent of the variables of the other. This leads directly to a proof of correctness of probabilistic slicing.
引用
收藏
页码:180 / 196
页数:17
相关论文
共 14 条
[1]  
Amtoft T., 2015, 20151 CIS TR KANS ST
[2]   Slicing for modem program structures: a theory for eliminating irrelevant loops [J].
Amtoft, Torben .
INFORMATION PROCESSING LETTERS, 2008, 106 (02) :45-51
[3]  
[Anonymous], 2014, PROC FOSE 14, DOI DOI 10.1145/2593882.2593900
[4]  
Ball T., 1993, Automated and Algorithmic Debugging. First International Workshop, AADEBUG '93 Proceedings, P206, DOI 10.1007/BFb0019410
[5]  
Blazy S, 2015, CPP'15: PROCEEDINGS OF THE 2015 ACM CONFERENCE ON CERTIFIED PROGRAMS AND PROOFS, P109
[6]   A unifying theory of control dependence and its application to arbitrary program structures [J].
Danicic, Sebastian ;
Barraclough, Richard W. ;
Harman, Mark ;
Howroyd, John D. ;
Kiss, Akos ;
Laurence, Michael R. .
THEORETICAL COMPUTER SCIENCE, 2011, 412 (49) :6809-6842
[7]  
Hur CK, 2014, ACM SIGPLAN NOTICES, V49, P133, DOI [10.1145/2666356.2594303, 10.1145/2594291.2594303]
[8]   SEMANTICS OF PROBABILISTIC PROGRAMS [J].
KOZEN, D .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1981, 22 (03) :328-350
[9]  
Panangaden P., 2009, LABELLED MARKOV PROC
[10]   A FORMAL MODEL OF PROGRAM DEPENDENCES AND ITS IMPLICATIONS FOR SOFTWARE TESTING, DEBUGGING, AND MAINTENANCE [J].
PODGURSKI, A ;
CLARKE, LA .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1990, 16 (09) :965-979