Computer Software
Print ISSN : 0289-6540
Automatic Patch Generation for IoT Based on Code Clone Detection
Kentaro OHNONorihriro YOSHIDAWenqing ZHUHiroaki TAKADA
Author information
JOURNAL FREE ACCESS

2023 Volume 40 Issue 4 Pages 4_47-4_53

Details
Abstract

In IoT development, boilerplate implementations for communication protocols, device operation, and so on are frequently needed. Therefore, similar patches may be applied to other code fragments when a patch is prepared for a particular defect. In this study, given a single patch for a defect, we propose an approach to detect code clones of the defect and generate patches for them. In a case study, we extracted 26 cases from a dataset of IoT defects in which code clones of the defects existed and applied the proposed approach to them. As a result, we found that the proposed approach successfully generated patches for all 26 cases.

Content from these authors
© 2023, Japan Society for Software Science and Technology
Previous article Next article
feedback
Top