CC-SolBMC: Condition Coverage Analysis for Smart Contracts Using Solidity Bounded Model Checker

Sangharatna Godboley, P. Krishna

2024

Abstract

Advances in blockchain technologies enable society toward trust-based applications. Smart contracts are the scripts holding the properties to perform the activities in Blockchain. Smart contracts are prepared between the parties to hold their requirements and promises. If the deal held by a smart contract is huge and expensive, then there is a high chance of attracting issues and loss of assets. This necessitates the verification and testing of a smart contract. In this paper, we demonstrate an approach for generating test cases to satisfy the condition coverage of smart contracts using a solidity-bounded model checker. We show the annotation of the original smart contract as per the condition coverage specification and drive the bounded model checker to prove the feasibility of the asserted properties. Finally, we collect all feasible targets and show the condition coverage score. Also, the proposed approach generates test input values for each feasible atomic condition. The approach presented has been tested with 70 smart contracts, resulting in 57.14% of contracts with good condition coverage scores. Our work can be utilized to certify any smart contract to check whether the Optimal or Maximal condition coverage is achieved or not.

Download


Paper Citation


in Harvard Style

Godboley S. and Krishna P. (2024). CC-SolBMC: Condition Coverage Analysis for Smart Contracts Using Solidity Bounded Model Checker. In Proceedings of the 19th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE; ISBN 978-989-758-696-5, SciTePress, pages 387-395. DOI: 10.5220/0012627200003687


in Bibtex Style

@conference{enase24,
author={Sangharatna Godboley and P. Krishna},
title={CC-SolBMC: Condition Coverage Analysis for Smart Contracts Using Solidity Bounded Model Checker},
booktitle={Proceedings of the 19th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE},
year={2024},
pages={387-395},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0012627200003687},
isbn={978-989-758-696-5},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 19th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE
TI - CC-SolBMC: Condition Coverage Analysis for Smart Contracts Using Solidity Bounded Model Checker
SN - 978-989-758-696-5
AU - Godboley S.
AU - Krishna P.
PY - 2024
SP - 387
EP - 395
DO - 10.5220/0012627200003687
PB - SciTePress