Fault localization, a technique to fix and ensure the dependability of software, is rapidly becoming infeasible due to the increasing scale and complexity of multilingual programs. Compared to other fault localization techniques, slicing can directly narrow the range of the code which needed checking by abstracting a program into a reduced one by deleting irrelevant parts. Only minority slicing methods take into account the fact that the probability of different statements leading to failure is different. Moreover, no existing prioritized slicing techniques can work on multilingual programs. In this paper, we propose a new technique called weight prioritized slicing(WP-Slicing), an improved static slicing technique based on constraint logic programming, to help the programmer locate the fault quickly and precisely. WP-Slicing first converts the original program into logic facts. Then it extracts dependences from the facts, computes the static backward slice and calculates the statements' weight. Finally, WP-Slicing provides the slice in a suggested check sequence by weighted-sorting. By comparing it's slice time and locate effort with three pre-exsiting slicing techniques on five real world C projects, we prove that WP-Slicing can locate fault within less time and effort, which means WP-Slicing is more effectively.
Download full-text PDF |
Source |
---|---|
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC7147748 | PMC |
http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0231331 | PLOS |
J Am Chem Soc
January 2025
Center for Electron Microscopy, South China University of Technology, Guangzhou 511436, China.
Adsorption behaviors are typically examined through adsorption isotherms, which measure the average adsorption amount as a function of partial pressure or time. However, this method is incapable of identifying inhomogeneities across the adsorbent, which may occur in the presence of strong intermolecular interactions of the adsorbate. In this study, we visualize the adsorption of molecular iodine (I) in the metal-organic framework material MFM-300(Sc) using high-resolution scanning transmission electron microscopy (STEM).
View Article and Find Full Text PDFPLoS One
January 2025
Automation School Guangdong University of Petrochemical Technology, Maoming, Guangdong, China.
Centrifugal compressors are widely used in the oil and natural gas industry for gas compression, reinjection, and transportation. Fault diagnosis and identification of centrifugal compressors are crucial. To promptly monitor abnormal changes in compressor data and trace the causes leading to these data anomalies, this paper proposes a security monitoring and root cause tracing method for compressor data anomalies.
View Article and Find Full Text PDFNat Commun
January 2025
Department of Earth Sciences, University College London, London, UK.
Earthquakes are produced by the propagation of rapid slip along tectonic faults. The propagation dynamics is governed by a balance between elastic stored energy in the surrounding rock, and dissipated energy at the propagating tip of the slipping patch. Energy dissipation is dictated by the mechanical behaviour of the fault, which is itself the result of feedbacks between thermo-hydro-mechanical processes acting at the mm to sub-mm scale.
View Article and Find Full Text PDFHeliyon
July 2024
School of Petroleum Engineering, Chongqing University of Science & Technology, Chongqing, 401331, China.
City gas stations (CGSs) play a crucial role in ensuring a stable and safe supply of natural gas to urban users. However, as the service time of stations increases and the performance of components deteriorates, concerns about the safety and reliability of these station have grown among operators and local government authorities. This paper proposes a fuzzy reliability assessment methodology for CGSs that considers the polymorphism of component faults and the uncertainties associated with fault relationships, failure probabilities, and fault magnitudes.
View Article and Find Full Text PDFSci Rep
January 2025
School of Intelligent Manufacturing and Modern Industry (School of Mechanical Engineering), Xinjiang University, Ürümqi, 830017, China.
The rapid expansion of the coal mining industry has introduced significant safety risks, particularly within the harsh environments of open-pit coal mines. The safe and stable operation of belt conveyor idlers is crucial not only for ensuring efficient coal production but also for safeguarding the lives of coal mine workers. Therefore, this paper proposes a method based on deep learning for real-time detection of conveyor idler faults.
View Article and Find Full Text PDFEnter search terms and have AI summaries delivered each week - change queries or unsubscribe any time!