Issue |
E3S Web Conf.
Volume 460, 2023
International Scientific Conference on Biotechnology and Food Technology (BFT-2023)
|
|
---|---|---|
Article Number | 04029 | |
Number of page(s) | 15 | |
Section | IoT, Big Data and AI in Food Industry | |
DOI | https://doi.org/10.1051/e3sconf/202346004029 | |
Published online | 11 December 2023 |
Modeling imperative programs operations on memory in terms of Petri nets
Institute of Automation and Control Processes Far Eastern Branch of the Russian Academy of Sciences, 690041 Vladivostok, Russia
* Corresponding author: demiurg@dvo.ru
The article discusses an approach to automatical creation of imperative programs models, designed to find errors in memory operations. The approach is based on the model division into compositional parts, including control flow models, variable, data types and pointers models. Models of data types and pointers are developed from the purposes of modeling to a proper level of detail sufficient to detect errors. To analyze the correctness of a program, a reachability graph of the model Petri net is constructed, on which deadlocks, loops, and explicitly marked erroneous events are searched. The article provides an example of a program with an error in accessing a previously freed memory block in a race condition state of parallel program threads. A model constructed for the example program in terms of Petri nets allows to track the moment an error occurs in the reachability graph.
© The Authors, published by EDP Sciences, 2023
This is an Open Access article distributed under the terms of the Creative Commons Attribution License 4.0, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.