Cost Analysis of Nondeterministic Probabilistic Programs - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2019

Cost Analysis of Nondeterministic Probabilistic Programs

Résumé

We consider the problem of expected cost analysis over non-deterministic probabilistic programs, which aims at automated methods for analyzing the resource-usage of such programs. Previous approaches for this problem could only handle nonnegative bounded costs. However, in many scenarios, such as queuing networks or analysis of cryptocurrency protocols , both positive and negative costs are necessary and the costs are unbounded as well. In this work, we present a sound and efficient approach to obtain polynomial bounds on the expected accumulated cost of nondeterministic probabilistic programs. Our approach can handle (a) general positive and negative costs with bounded updates in variables; and (b) nonnegative costs with general updates to variables. We show that several natural examples which could not be handled by previous approaches are captured in our framework. Moreover, our approach leads to an efficient polynomial-time algorithm, while no previous approach for cost analysis of probabilistic programs could guarantee polynomial run-time. Finally, we show the effectiveness of our approach by presenting experimental results on a variety of programs, motivated by real-world applications, for which we efficiently synthesize tight resource-usage bounds.
Fichier principal
Vignette du fichier
paper.pdf (3.86 Mo) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-02016018 , version 1 (12-02-2019)
hal-02016018 , version 2 (25-03-2019)

Identifiants

  • HAL Id : hal-02016018 , version 2

Citer

Peixin Wang, Hongfei Fu, Amir Kafshdar Goharshady, Krishnendu Chatterjee, Xudong Qin, et al.. Cost Analysis of Nondeterministic Probabilistic Programs. 40th ACM Conference on Programming Language Design and Implementation, PLDI 2019, Jun 2019, Phoenix, AZ, United States. ⟨hal-02016018v2⟩
55 Consultations
89 Téléchargements

Partager

Gmail Facebook X LinkedIn More