• DocumentCode
    1870595
  • Title

    Macro-Like Instrumentation Grammar for Boolean Expressions

  • Author

    Zhang, Zhenyu ; Xu, Zhongxing ; Liu, Zhifang ; Gao, Xiaopeng

  • Author_Institution
    State Key Lab. of Comput. Sci., Chinese Acad. of Sci., Beijing, China
  • fYear
    2010
  • fDate
    10-12 Dec. 2010
  • Firstpage
    1
  • Lastpage
    4
  • Abstract
    Boolean expression is a basic programming element used to evaluate the truth-values of conditions or their combinations. While Boolean expressions may have complicated logical structures, instrumenting them often needs heavyweight transformation to source code or work with low-level program implementation, which results in cumbersome code and great difficulties to maintenance. As a result, previous instrumentation is often conducted using automatic mechanism, left as the last integration step, and needs to be redone once the source code has changes. It is inflexible and not interactivable for collaborative work. In this paper, we compare several existing popular instrumentation methods and propose a friendly approach, which adds least prefix and postfix to Boolean expressions, simply wraps all conditions, and preserves all Boolean operators if any. Our method works at source-code level yet has a macro-like grammar. It is human maintainable so that programmers may manually and cooperatively modify code by instrumenting interested Boolean expressions like operating macros. We elaborate on the grammar of our method and give empirical evaluation to its performance. Our method has been used in some realistic industrial and research projects successfully.
  • Keywords
    Boolean functions; computerised instrumentation; macros; programming languages; software maintenance; source coding; Boolean expressions; Boolean operators; automatic mechanism; heavyweight transformation; logical structures; low-level program implementation; macrolike instrumentation grammar; programming element; source code; truth-values; Compounds; Equations; Explosions; Grammar; Instruments; Testing; Wireless sensor networks;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Computational Intelligence and Software Engineering (CiSE), 2010 International Conference on
  • Conference_Location
    Wuhan
  • Print_ISBN
    978-1-4244-5391-7
  • Electronic_ISBN
    978-1-4244-5392-4
  • Type

    conf

  • DOI
    10.1109/CISE.2010.5676786
  • Filename
    5676786