Asparagus: Automated synthesis of parametric gas upper-bounds for smart contracts

Z Cai, S Farokhnia, AK Goharshady… - Proceedings of the ACM …, 2023 - dl.acm.org
Modern programmable blockchains have built-in support for smart contracts, ie ‍programs
that are stored on the blockchain and whose state is subject to consensus. After a smart …

Sound and complete certificates for quantitative termination analysis of probabilistic programs

K Chatterjee, AK Goharshady, T Meggendorfer… - … on Computer Aided …, 2022 - Springer
We consider the quantitative problem of obtaining lower-bounds on the probability of
termination of a given non-deterministic probabilistic program. Specifically, given a non …

Algebro-geometric algorithms for template-based synthesis of polynomial programs

AK Goharshady, S Hitarth, F Mohammadi… - Proceedings of the …, 2023 - dl.acm.org
Template-based synthesis, also known as sketching, is a localized approach to program
synthesis in which the programmer provides not only a specification, but also a high-level" …

Proving expected sensitivity of probabilistic programs with randomized variable-dependent termination time

P Wang, H Fu, K Chatterjee, Y Deng, M Xu - Proceedings of the ACM on …, 2019 - dl.acm.org
The notion of program sensitivity (aka Lipschitz continuity) specifies that changes in the
program input result in proportional changes to the program output. For probabilistic …

Quantitative analysis of assertion violations in probabilistic programs

J Wang, Y Sun, H Fu, K Chatterjee… - Proceedings of the 42nd …, 2021 - dl.acm.org
We consider the fundamental problem of deriving quantitative bounds on the probability that
a given assertion is violated in a probabilistic program. We provide automated algorithms …

Quantitative bounds on resource usage of probabilistic programs

K Chatterjee, AK Goharshady, T Meggendorfer… - Proceedings of the …, 2024 - dl.acm.org
Cost analysis, also known as resource usage analysis, is the task of finding bounds on the
total cost of a program and is a well-studied problem in static analysis. In this work, we …

Automated expected amortised cost analysis of probabilistic data structures

L Leutgeb, G Moser, F Zuleger - International Conference on Computer …, 2022 - Springer
In this paper, we present the first fully-automated expected amortised cost analysis of self-
adjusting data structures, that is, of randomised splay trees, randomised splay heaps and …

Reducing the gas usage of Ethereum smart contracts without a sidechain

S Farokhnia, AK Goharshady - 2023 IEEE International …, 2023 - ieeexplore.ieee.org
To prevent DoS attacks, Ethereum assigns a fixed gas cost to every atomic operation in the
EVM and the party who creates a transaction has to pay for its overall gas usage. While the …

Polynomial invariant generation for non-deterministic recursive programs

K Chatterjee, H Fu, AK Goharshady… - Proceedings of the 41st …, 2020 - dl.acm.org
We consider the classical problem of invariant generation for programs with polynomial
assignments and focus on synthesizing invariants that are a conjunction of strict polynomial …

Raising expectations: automating expected cost analysis with types

D Wang, DM Kahn, J Hoffmann - Proceedings of the ACM on …, 2020 - dl.acm.org
This article presents a type-based analysis for deriving upper bounds on the expected
execution cost of probabilistic programs. The analysis is naturally compositional, parametric …