User-Definable Resource Usage Bounds Analysis for Java Bytecode

  • Authors:
  • Jorge Navas;Mario Méndez-Lojo;Manuel V. Hermenegildo

  • Affiliations:
  • School of Computing, National University of Singapore, Republic of Singapore;Department of Computer Science, University Texas at Austin, Austin, TX (USA);IMDEA-Software, Madrid (Spain) and Department of Computer Science, University of New Mexico, Albuquerque, NM (USA) and Department of Computer Science, Technical University of Madrid, Madrid (Spain ...

  • Venue:
  • Electronic Notes in Theoretical Computer Science (ENTCS)
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Automatic cost analysis of programs has been traditionally concentrated on a reduced number of resources such as execution steps, time, or memory. However, the increasing relevance of analysis applications such as static debugging and/or certification of user-level properties (including for mobile code) makes it interesting to develop analyses for resource notions that are actually application-dependent. This may include, for example, bytes sent or received by an application, number of files left open, number of SMSs sent or received, number of accesses to a database, money spent, energy consumption, etc. We present a fully automated analysis for inferring upper bounds on the usage that a Java bytecode program makes of a set of application programmer-definable resources. In our context, a resource is defined by programmer-provided annotations which state the basic consumption that certain program elements make of that resource. From these definitions our analysis derives functions which return an upper bound on the usage that the whole program (and individual blocks) make of that resource for any given set of input data sizes. The analysis proposed is independent of the particular resource. We also present some experimental results from a prototype implementation of the approach covering a significant set of interesting resources.