Memory Usage Verification Using Hip/Sleek

  • Authors:
  • Guanhua He;Shengchao Qin;Chenguang Luo;Wei-Ngan Chin

  • Affiliations:
  • Durham University, Durham, UK DH1 3LE;Durham University, Durham, UK DH1 3LE;Durham University, Durham, UK DH1 3LE;National University of Singapore,

  • Venue:
  • ATVA '09 Proceedings of the 7th International Symposium on Automated Technology for Verification and Analysis
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Embedded systems often come with constrained memory footprints. It is therefore essential to ensure that software running on such platforms fulfils memory usage specifications at compile-time, to prevent memory-related software failure after deployment. Previous proposals on memory usage verification are not satisfactory as they usually can only handle restricted subsets of programs, especially when shared mutable data structures are involved. In this paper, we propose a simple but novel solution. We instrument programs with explicit memory operations so that memory usage verification can be done along with the verification of other properties, using an automated verification system Hip/Sleek developed recently by Chin et al.[10,19]. The instrumentation can be done automatically and is proven sound with respect to an underlying semantics. One immediate benefit is that we do not need to develop from scratch a specific system for memory usage verification. Another benefit is that we can verify more programs, especially those involving shared mutable data structures, which previous systems failed to handle, as evidenced by our experimental results.