Automatic Modeling Method for PThread Programs Based on Program Dependence Net
Open Access
- 19 November 2021
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 9-18
Abstract
Program Dependence Net (PDNet) based on Coloured Petri Net (CPN) is a kind of multi-threaded program model describing and distinguishing program dependences. This paper presents an automatic modeling method to construct a PDNet which is consistent with the behavior of multi-threaded C programs (PThread programs) from source code. A big challenge for modeling multi-threaded programs is shared function in different threads. To handle it, we set independent places to represent variables, and simulate address space and thread stack through different fields in colour set. Another challenge is to describe complicated data structures including array, pointer and struct when programs operate on them. Native arc expressions for PDNet can't describe pointer reference or array operator. We design a recursive function to translate program expressions into native arc expressions automatically, which solve the problem of calculating complicated program expressions. On the basis of our method, we also implement our tool and prove the usefulness, high efficiency and scalability of our method through experiments in our benchmarks including a subset benchmarks of SV-COMP [17] which is a famous competition on software verification.Keywords
This publication has 9 references indexed in Scilit:
- Concurrent Software Fine-Coarse-Grained Automatic Modeling Method for Algorithm Error Detection2020
- Concurrent Programming from pseuCo to Petri2019
- Lazy-CSeq: A Context-Bounded Model Checking Tool for Multi-threaded C-Programs2015
- Concurrency bugs in multithreaded software: modeling and analysis using Petri netsDiscrete Event Dynamic Systems, 2012
- Modeling Parallel MPI Programs in Petri Nets2012
- A verifiable low-level concurrent programming model based on colored Petri netsScience China Information Sciences, 2011
- Hardware verification using ANSI-C programs as a reference2003
- Modeling Multithreaded Applications Using Petri NetsInternational Journal of Parallel Programming, 2002
- High-level algebraic Petri netsInformation and Software Technology, 1995