{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,16]],"date-time":"2026-05-16T06:49:48Z","timestamp":1778914188615,"version":"3.51.4"},"reference-count":67,"publisher":"Association for Computing Machinery (ACM)","issue":"6","license":[{"start":{"date-parts":[[2021,10,18]],"date-time":"2021-10-18T00:00:00Z","timestamp":1634515200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100000038","name":"NSERC","doi-asserted-by":"crossref","award":["RGPIN-04573-16"],"award-info":[{"award-number":["RGPIN-04573-16"]}],"id":[{"id":"10.13039\/501100000038","id-type":"DOI","asserted-by":"crossref"}]},{"name":"MEDA scholarship program"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Embed. Comput. Syst."],"published-print":{"date-parts":[[2021,11,30]]},"abstract":"<jats:p>\n            Runtime monitoring plays a key role in the assurance of modern intelligent cyber-physical systems, which are frequently data-intensive and safety-critical. While graph queries can serve as an expressive yet formally precise specification language to capture the safety properties of interest, there are no timeliness guarantees for such auto-generated runtime monitoring programs, which prevents their use in a real-time setting. While worst-case execution time (WCET) bounds derived by existing static WCET estimation techniques are safe, they may not be tight as they are unable to exploit domain-specific (semantic) information about the input models. This\u00a0article presents a semantic-aware WCET analysis method for data-driven monitoring programs derived from graph queries. The\u00a0method incorporates results obtained from low-level timing analysis into the objective function of a modern graph solver. This allows the systematic generation of input graph models up to a specified size (referred to as\n            <jats:italic>witness models<\/jats:italic>\n            ) for which the monitor is expected to take the most time to complete. Hence, the estimated execution time of the monitors on these graphs can be considered as safe and tight WCET. Additionally, we perform a set of experiments with query-based programs running on a real-time platform over a set of generated models to investigate the relationship between execution times and their estimates, and we compare WCET estimates produced by our approach with results from two well-known timing analyzers, aiT and OTAWA.\n          <\/jats:p>","DOI":"10.1145\/3471904","type":"journal-article","created":{"date-parts":[[2021,10,19]],"date-time":"2021-10-19T01:02:15Z","timestamp":1634605335000},"page":"1-36","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":2,"title":["Worst-case Execution Time Calculation for Query-based Monitors by Witness Generation"],"prefix":"10.1145","volume":"20","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-2702-6174","authenticated-orcid":false,"given":"M\u00e1rton","family":"B\u00far","sequence":"first","affiliation":[{"name":"McGill University, Quebec, Canada"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9135-8256","authenticated-orcid":false,"given":"Krist\u00f3f","family":"Marussy","sequence":"additional","affiliation":[{"name":"Budapest University of Technology and Economics, Hungary"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Brett H.","family":"Meyer","sequence":"additional","affiliation":[{"name":"McGill University, Quebec, Canada"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8790-252X","authenticated-orcid":false,"given":"D\u00e1niel","family":"Varr\u00f3","sequence":"additional","affiliation":[{"name":"McGill University, Quebec, Canada"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2021,10,18]]},"reference":[{"key":"e_1_3_3_2_2","doi-asserted-by":"publisher","DOI":"10.1145\/3238147.3238192"},{"key":"e_1_3_3_3_2","doi-asserted-by":"publisher","DOI":"10.1109\/SIES.2015.7185039"},{"key":"e_1_3_3_4_2","doi-asserted-by":"publisher","DOI":"10.5555\/1927882.1927891"},{"key":"e_1_3_3_5_2","doi-asserted-by":"publisher","DOI":"10.1145\/3147413"},{"key":"e_1_3_3_6_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-75632-5_5"},{"key":"e_1_3_3_7_2","doi-asserted-by":"publisher","DOI":"10.1109\/MC.2009.326"},{"key":"e_1_3_3_8_2","doi-asserted-by":"publisher","DOI":"10.1109\/ISSRE.2006.27"},{"key":"e_1_3_3_9_2","first-page":"111","volume-title":"LNCS","author":"B\u00far M\u00e1rton","year":"2018","unstructured":"M\u00e1rton B\u00far, G\u00e1bor Szil\u00e1gyi, Andr\u00e1s V\u00f6r\u00f6s, and D\u00e1niel Varr\u00f3. 2018. Distributed graph queries for runtime monitoring of cyber-physical systems. In LNCS. Vol. 10802. 111\u2013128."},{"key":"e_1_3_3_10_2","volume-title":"Proceedings of the International Workshop on Specification and Validation of UML Models for Real Time and Embedded Systems","author":"Burmester Sven","year":"2004","unstructured":"Sven Burmester, Holger Giese, Martin Hirsch, and Daniela Schilling. 2004. Incremental design and formal verification with UML\/RT in the FUJABA real-time tool suite. In Proceedings of the International Workshop on Specification and Validation of UML Models for Real Time and Embedded Systems. Citeseer."},{"key":"e_1_3_3_11_2","first-page":"71","volume-title":"Proceedings of the 3rd International Fujaba Days Conference","author":"Burmester Sven","year":"2005","unstructured":"Sven Burmester, Holger Giese, Andreas Seibel, and Matthias Tichy. 2005. Worst-case execution time optimization of story patterns for hard real-time systems. In Proceedings of the 3rd International Fujaba Days Conference. 71\u201378."},{"key":"e_1_3_3_12_2","first-page":"1","volume-title":"Proceedings of the 3rd European Congress on Embedded Real-time","author":"Cass\u00e9 Hugues","year":"2006","unstructured":"Hugues Cass\u00e9 and Pascal Sainrat. 2006. OTAWA, a framework for experimenting WCET computations. In Proceedings of the 3rd European Congress on Embedded Real-time. 1\u20138."},{"key":"e_1_3_3_13_2","doi-asserted-by":"publisher","DOI":"10.5555\/524465.828633"},{"key":"e_1_3_3_14_2","doi-asserted-by":"publisher","DOI":"10.1145\/2038642.2038692"},{"key":"e_1_3_3_15_2","first-page":"9:1\u20139:13","volume-title":"Proceedings of the 17th International Workshop on Worst-case Execution Time Analysis","volume":"57","author":"Claire Maiza","year":"2017","unstructured":"Maiza Claire et\u00a0al. 2017. The W-SEPT project: Towards semantic-aware WCET estimation. In Proceedings of the 17th International Workshop on Worst-case Execution Time Analysis (WCET\u201917), Vol. 57. Schloss Dagstuhl\u2013Leibniz-Zentrum fuer Informatik, Dagstuhl, Germany, 9:1\u20139:13."},{"key":"e_1_3_3_16_2","doi-asserted-by":"publisher","DOI":"10.5555\/787256.787341"},{"key":"e_1_3_3_17_2","doi-asserted-by":"publisher","DOI":"10.1109\/ECRTS.2012.31"},{"key":"e_1_3_3_18_2","doi-asserted-by":"publisher","DOI":"10.1145\/3239372.3239396"},{"key":"e_1_3_3_19_2","doi-asserted-by":"publisher","DOI":"10.5555\/645880.672089"},{"key":"e_1_3_3_20_2","first-page":"22","volume-title":"Proceedings of the 9th World Congress on Railway Research","author":"Emery Daniel","year":"2011","unstructured":"Daniel Emery. 2011. Headways on high speed lines. In Proceedings of the 9th World Congress on Railway Research. 22\u201326."},{"key":"e_1_3_3_21_2","volume-title":"Proceedings of the 7th International Workshop on Worst-case Execution Time Analysis","author":"Ermedahl Andreas","year":"2007","unstructured":"Andreas Ermedahl, Christer Sandberg, Jan Gustafsson, Stefan Bygde, and Bj\u00f6rn Lisper. 2007. Loop bound analysis based on a combination of program slicing, abstract interpretation, and invariant analysis. In Proceedings of the 7th International Workshop on Worst-case Execution Time Analysis (WCET\u201907). Schloss Dagstuhl-Leibniz-Zentrum f\u00fcr Informatik."},{"key":"e_1_3_3_22_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4020-8157-6_29"},{"key":"e_1_3_3_23_2","doi-asserted-by":"publisher","DOI":"10.5555\/645872.668867"},{"key":"e_1_3_3_24_2","doi-asserted-by":"publisher","DOI":"10.1109\/MODEVA.2004.1425846"},{"key":"e_1_3_3_25_2","first-page":"45","volume-title":"AAAI FS","volume":"6","author":"Gallagher Brian","year":"2006","unstructured":"Brian Gallagher. 2006. Matching structure and semantics: A survey on graph-based pattern matching. AAAI FS 6 (2006), 45\u201353."},{"key":"e_1_3_3_26_2","doi-asserted-by":"publisher","DOI":"10.1145\/949952.940078"},{"key":"e_1_3_3_27_2","doi-asserted-by":"publisher","DOI":"10.1109\/RTSS.2006.12"},{"key":"e_1_3_3_28_2","volume-title":"Proceedings of the 9th International Workshop on Worst-case Execution Time Analysis","author":"Hansen Jeffery","year":"2009","unstructured":"Jeffery Hansen, Scott Hissam, and Gabriel A. Moreno. 2009. Statistical-based wcet estimation and validation. In Proceedings of the 9th International Workshop on Worst-case Execution Time Analysis. Schloss Dagstuhl-Leibniz-Zentrum f\u00fcr Informatik."},{"key":"e_1_3_3_29_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.is.2019.03.004"},{"key":"e_1_3_3_30_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10009-014-0309-2"},{"key":"e_1_3_3_31_2","doi-asserted-by":"publisher","DOI":"10.5555\/646486.694486"},{"key":"e_1_3_3_32_2","volume-title":"Proceedings of the 9th International Workshop on Worst-case Execution Time Analysis","author":"Herter J\u00f6rg","year":"2009","unstructured":"J\u00f6rg Herter and Jan Reineke. 2009. Making dynamic memory allocation static to support WCET analysis. In Proceedings of the 9th International Workshop on Worst-case Execution Time Analysis (WCET\u201909)."},{"key":"e_1_3_3_33_2","doi-asserted-by":"publisher","DOI":"10.1145\/67544.66933"},{"key":"e_1_3_3_34_2","doi-asserted-by":"publisher","DOI":"10.5555\/2555754.2555765"},{"key":"e_1_3_3_35_2","doi-asserted-by":"publisher","DOI":"10.1109\/MDAT.2017.2757143"},{"key":"e_1_3_3_36_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-45221-8_31"},{"key":"e_1_3_3_37_2","doi-asserted-by":"crossref","unstructured":"Jens Knoop Laura Kov\u00e1cs and Jakob Zwirchmayr. 2013. WCET squeezing. ACM Press 161.","DOI":"10.1145\/2516821.2516847"},{"key":"e_1_3_3_38_2","doi-asserted-by":"publisher","DOI":"10.1134\/S0361768816010059"},{"key":"e_1_3_3_39_2","doi-asserted-by":"publisher","DOI":"10.1109\/ECRTS.2016.21"},{"key":"e_1_3_3_40_2","doi-asserted-by":"publisher","DOI":"10.5555\/1321774.1321802"},{"key":"e_1_3_3_41_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.comnet.2019.01.022"},{"key":"e_1_3_3_42_2","doi-asserted-by":"publisher","DOI":"10.1109\/43.664229"},{"key":"e_1_3_3_43_2","doi-asserted-by":"publisher","DOI":"10.1109\/32.392980"},{"key":"e_1_3_3_44_2","first-page":"482","volume-title":"Proceedings of the International Symposium on Leveraging Applications of Formal Methods, Verification and Validation","author":"Lisper Bj\u00f6rn","year":"2014","unstructured":"Bj\u00f6rn Lisper. 2014. SWEET\u2013a tool for WCET flow analysis. In Proceedings of the International Symposium on Leveraging Applications of Formal Methods, Verification and Validation. Springer, 482\u2013485."},{"key":"e_1_3_3_45_2","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0026424"},{"key":"e_1_3_3_46_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2020.3025732"},{"key":"e_1_3_3_47_2","doi-asserted-by":"publisher","DOI":"10.5555\/2337223.2337290"},{"key":"e_1_3_3_48_2","doi-asserted-by":"publisher","DOI":"10.1109\/69.404027"},{"key":"e_1_3_3_49_2","doi-asserted-by":"publisher","DOI":"10.1038\/s42256-020-0225-y"},{"key":"e_1_3_3_50_2","doi-asserted-by":"publisher","DOI":"10.5555\/1939399.1939428"},{"key":"e_1_3_3_51_2","doi-asserted-by":"publisher","DOI":"10.1023\/A:1007905003094"},{"key":"e_1_3_3_52_2","doi-asserted-by":"publisher","DOI":"10.1201\/9781315218168"},{"key":"e_1_3_3_53_2","doi-asserted-by":"publisher","DOI":"10.1145\/514188.514190"},{"key":"e_1_3_3_54_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-28872-2_16"},{"key":"e_1_3_3_55_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10009-019-00530-6"},{"key":"e_1_3_3_56_2","doi-asserted-by":"publisher","DOI":"10.1145\/3180155.3180186"},{"key":"e_1_3_3_57_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10270-013-0394-9"},{"key":"e_1_3_3_58_2","doi-asserted-by":"publisher","DOI":"10.1145\/352302.352306"},{"key":"e_1_3_3_59_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSMC.2018.2814539"},{"key":"e_1_3_3_60_2","volume-title":"Eclipse Modeling Framework","year":"2021","unstructured":"The Eclipse Project 2021. Eclipse Modeling Framework. Retrieved from http:\/\/www.eclipse.org\/emf."},{"key":"e_1_3_3_61_2","volume-title":"Proceedings of the 4th International Fujaba Days Conference","author":"Tichy Matthias","year":"2006","unstructured":"Matthias Tichy, Holger Giese, and Andreas Seibel. 2006. Story diagrams in real-time software. In Proceedings of the 4th International Fujaba Days Conference."},{"key":"e_1_3_3_62_2","volume-title":"Graph Transformation, Specifications, and Nets (In Memory of Hartmut Ehrig)","author":"Varr\u00f3 D\u00e1niel","year":"2018","unstructured":"D\u00e1niel Varr\u00f3, Oszk\u00e1r Semer\u00e1th, G\u00e1bor Sz\u00e1rnyas, and \u00c1kos Horv\u00e1th. 2018. Towards the automated generation of consistent, diverse, scalable and realistic graph models. In Graph Transformation, Specifications, and Nets (In Memory of Hartmut Ehrig). Springer."},{"key":"e_1_3_3_63_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10270-013-0372-2"},{"key":"e_1_3_3_64_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-77935-5_31"},{"key":"e_1_3_3_65_2","doi-asserted-by":"publisher","DOI":"10.1109\/SEUS.2005.12"},{"key":"e_1_3_3_66_2","doi-asserted-by":"publisher","DOI":"10.1145\/1347375.1347389"},{"key":"e_1_3_3_67_2","doi-asserted-by":"publisher","DOI":"10.1109\/JIOT.2020.3019707"},{"key":"e_1_3_3_68_2","doi-asserted-by":"publisher","DOI":"10.1109\/ECRTS.2009.23"}],"container-title":["ACM Transactions on Embedded Computing Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3471904","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3471904","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T21:24:49Z","timestamp":1750195489000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3471904"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,10,18]]},"references-count":67,"journal-issue":{"issue":"6","published-print":{"date-parts":[[2021,11,30]]}},"alternative-id":["10.1145\/3471904"],"URL":"https:\/\/doi.org\/10.1145\/3471904","relation":{},"ISSN":["1539-9087","1558-3465"],"issn-type":[{"value":"1539-9087","type":"print"},{"value":"1558-3465","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,10,18]]},"assertion":[{"value":"2020-11-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2021-05-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2021-10-18","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}