MG+: Towards Efficient Context Inconsistency Detection by Minimized Link Generation
Authors:
- 13 October 2024
- journal article
- research article
- Published by Wiley in Software Testing, Verification and Reliability
- Vol. 35 (1)
Abstract
Self‐adaptive applications are becoming increasingly attractive, with the ability to smartly understand their runtime environments (or contexts) and deliver adaptive services, for example, location‐aware navigation or resource‐sensitive suggestions. However, due to inherent noises in the process of sensing and interpreting environmental information, there is a growing demand for guarding the consistency of collected contexts to avoid application misbehaviour and, at the same time, minimize extra costs. Existing work attempted to achieve this by speeding up the kernel constraint checking module inside the consistency guarding process. Most of these efforts were spent on reusing previous checking results or parallelizing the checking process, but they all leave one central step of constraint checking, that is, link generation, untouched. In this step, the checking engine provides reasons to explain the violation of constraints under check. It occupies a substantial part of the total time cost. Focusing on this key link generation step, we proposed MG, which deploys a rigourous analysis to automatically identify and avoid redundancy in the link generation without harming any correctness of the checking results. MG has been proven sound (always guaranteeing correctness) and complete (entirely removing redundancy). Moreover, based on our observation that MG's redundancy elimination also assists another core step of constraint checking to reduce unnecessary computation further, we additionally enhance MG with an escape‐condition optimization to escape unnecessary evaluation of truth values to further improve the efficiency of constraint checking in an aspect other than link generation. We call it MG+ for distinguishing. Our experiments with synthesized and real‐world consistency constraints reported that, compared with existing work, MG eliminates all link redundancy (83% to 0%), and based on it, MG+ further reduces significant truth value calculations (e.g., 49.74% reduction when combined with ECC and Con‐C). Generally, MG brought 14–500 speed‐ups in link generation, and MG+ further made 1.2–1.9 speed‐ups in truth value evaluation. Altogether, MG reduced the total constraint checking time up to 45.4%, and MG+ reduced it up to 61.0%.Keywords
Funding Information
- National Natural Science Foundation of China
This publication has 69 references indexed in Scilit:
- Simulation Might Change Your Results: A Comparison of Context-Aware System Input Validation in Simulated and Physical EnvironmentsJournal of Computer Science and Technology, 2022
- GridDroid—An Effective and Efficient Approach for Android Repackaging Detection Based on Runtime Graphical User InterfaceJournal of Computer Science and Technology, 2022
- A mapping study on testing non-testable systemsSoftware Quality Journal, 2017
- RFID in production and service systems: Technology, applications and issuesInformation Systems Frontiers, 2014
- Minimizing the Side Effect of Context Inconsistency Resolution for Ubiquitous Computing2012
- CVC42011
- Z3: An Efficient SMT Solver2008
- Context Consistency Management Using Ontology Based Model2006
- Cabot: On the Ontology for the Middleware Support of Context-Aware Pervasive Applications2004
- An infrastructure for context-awareness based on first order logicPersonal and Ubiquitous Computing, 2003