Yijun Yu
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Research Subjects
Research Interests
Yijun Yu has a total of 243 co-authors. Here are the top co-authors by number of shared publications:
- Bashar Nuseibeh
City St George’s, University of London, UK
40 shared publications - Arosha K. Bandara
The Open University, Milton Keynes, United Kingdom
26 shared publications Michel Wermelinger
The Open University, United Kingdom
18 shared publicationsJohn Mylopoulos
Department of Information Engineering and Computer Science, University of Trento, Italy
16 shared publicationsThein Than Tun
The Open University, Milton Keynes, United Kingdom
16 shared publicationsXin Peng
Fudan University
14 shared publications
Latest Publications
- Open Access
- 3 February 2026
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 35 (10) , 1-24
Fortifying the Seams Between C/C++ and Rust: Characterizing Bugs in Interop Tools
Rust has become increasingly popular in recent years due to its safety and high performance. Despite these advantages, Rust projects rarely start from scratch in practice, and many Rust-based systems instead use hybrid programming, where Rust interoperates with existing C/C++ code. To reduce the manual effort involved in this interoperation (interop) process, several interop tools have been proposed to facilitate hybrid programming between Rust and C/C++. However, the challenges and limitations of these tools remain largely unexplored, leaving developers unclear about the future directions and users unclear about the appropriate usage scenarios. To fill the gap, we mined 320 bugs in the popular interop tools, i.e., Bindgen , Cbindgen , and CXX . We observe that the main obstacle is not tool crashes or performance issues, but the inability to generate correct and functional code. The leading types of the failures are generating code that is unfaithful to the original code's intent and generating incomplete code. Memory layout mismatch is the most common cause with Bindgen . Input with complex struct is the biggest challenge across tools, followed by the usage with specific tool configuration options for customized binding generation. Even input with primitive data types can be problematic. We also observe a common fix pattern that updates the control flow and condition. Based on our findings, we propose a series of suggestions to developers, users, and future researchers. For example, we suggest the developers validate configuration combinations, provide clearer documentation, and implement default-safe mechanisms to prevent failures related to unexpected tool configuration options.
- 3 February 2026
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 35 (10) , 1-24
Open AccessFortifying the Seams Between C/C++ and Rust: Characterizing Bugs in Interop Tools
Rust has become increasingly popular in recent years due to its safety and high performance. Despite these advantages, Rust projects rarely start from scratch in practice, and many Rust-based systems instead use hybrid programming, where Rust interoperates with existing C/C++ code. To reduce the manual effort involved in this interoperation (interop) process, several interop tools have been proposed to facilitate hybrid programming between Rust and C/C++. However, the challenges and limitations of these tools remain largely unexplored, leaving developers unclear about the future directions and users unclear about the appropriate usage scenarios. To fill the gap, we mined 320 bugs in the popular interop tools, i.e., Bindgen , Cbindgen , and CXX . We observe that the main obstacle is not tool crashes or performance issues, but the inability to generate correct and functional code. The leading types of the failures are generating code that is unfaithful to the original code's intent and generating incomplete code. Memory layout mismatch is the most common cause with Bindgen . Input with complex struct is the biggest challenge across tools, followed by the usage with specific tool configuration options for customized binding generation. Even input with primitive data types can be problematic. We also observe a common fix pattern that updates the control flow and condition. Based on our findings, we propose a series of suggestions to developers, users, and future researchers. For example, we suggest the developers validate configuration combinations, provide clearer documentation, and implement default-safe mechanisms to prevent failures related to unexpected tool configuration options.
- 17 October 2025
- Published by Springer Nature
- p. 283-302
RustMap: Towards Project-Scale C-to-Rust Migration via Program Analysis and LLM
- 17 October 2025
- Published by Springer Nature
- p. 283-302
RustMap: Towards Project-Scale C-to-Rust Migration via Program Analysis and LLM
- Open Access
RustMap: Towards Project-Scale C-to-Rust Migration via Program Analysis and LLM
Migrating existing C programs into Rust is increasingly desired, as Rust offers superior memory safety while maintaining C's high performance. However, vastly different features between C and Rust--e.g., distinct definitions and usages of pointers and references--pose significant challenges beyond mere syntactic translation. Existing automated translation tools, such as C2Rust, may rely too much on syntactic, template-based translation and generate unsafe Rust code that is hard for human developers to read, maintain, or even compile. More semantic-aware translation that produces safer, idiomatic, and runnable Rust code is much needed. This paper introduces a novel dependency-guided and large language model (LLM)-based C-to-Rust translation approach, RustMap, based on three key ideas: (1) Utilize LLM capabilities to produce idiomatic Rust code from given small pieces of C code, (2) Mitigate LLM limitations in handling large codebases by breaking project-scale C programs into smaller units for translation according to their usage dependencies and composing them into a runnable Rust program, and (3) Enhance the correctness of the translated Rust program by using test cases to check input/output equivalence, isolate faulty code when execution states deviate, and iteratively refine the translation using feedback from compilation and test errors. We empirically evaluate RustMap on 126 real-world programs, including 125 from Rosetta Code and a 7000+ line bzip2 implementation using GPT-4o as the LLM. RustMap shows promising results, guiding GPT-4o to produce idiomatic, readable, and functional Rust code with significantly less unsafe code than other tools, and revealing non-trivial translation patterns reusable for future research.
Open AccessRustMap: Towards Project-Scale C-to-Rust Migration via Program Analysis and LLM
Migrating existing C programs into Rust is increasingly desired, as Rust offers superior memory safety while maintaining C's high performance. However, vastly different features between C and Rust--e.g., distinct definitions and usages of pointers and references--pose significant challenges beyond mere syntactic translation. Existing automated translation tools, such as C2Rust, may rely too much on syntactic, template-based translation and generate unsafe Rust code that is hard for human developers to read, maintain, or even compile. More semantic-aware translation that produces safer, idiomatic, and runnable Rust code is much needed. This paper introduces a novel dependency-guided and large language model (LLM)-based C-to-Rust translation approach, RustMap, based on three key ideas: (1) Utilize LLM capabilities to produce idiomatic Rust code from given small pieces of C code, (2) Mitigate LLM limitations in handling large codebases by breaking project-scale C programs into smaller units for translation according to their usage dependencies and composing them into a runnable Rust program, and (3) Enhance the correctness of the translated Rust program by using test cases to check input/output equivalence, isolate faulty code when execution states deviate, and iteratively refine the translation using feedback from compilation and test errors. We empirically evaluate RustMap on 126 real-world programs, including 125 from Rosetta Code and a 7000+ line bzip2 implementation using GPT-4o as the LLM. RustMap shows promising results, guiding GPT-4o to produce idiomatic, readable, and functional Rust code with significantly less unsafe code than other tools, and revealing non-trivial translation patterns reusable for future research.
- Open Access
- 14 April 2024
- Published by Association for Computing Machinery (ACM)
- p. 318-319
Unleashing the Power of Clippy in Real-World Rust Projects
- 14 April 2024
- Published by Association for Computing Machinery (ACM)
- p. 318-319
Open AccessUnleashing the Power of Clippy in Real-World Rust Projects
- Open Access
Unleashing the Power of Clippy in Real-World Rust Projects
Clippy lints are considered as essential tools for Rust developers, as they can be configured as gate-keeping rules for a Rust project during continuous integration. Despite their availability, little was known about practical application and cost-effectiveness of the lints in reducing code quality issues. In this study, we embark on a comprehensive analysis to unveil the true impact of Clippy lints in the Rust development landscape. The study is structured around three interrelated components, each contributing to the overall effectiveness of Clippy. Firstly, we conduct a comprehensive analysis of Clippy lints in all idiomatic crates-io Rust projects with an average warning density of 21/KLOC. The analysis identifies the most cost-effective lint fixes, offering valuable opportunities for optimizing code quality. Secondly, we actively engage Rust developers through a user survey to garner invaluable feedback on their experiences with Clippy. User insights shed light on two crucial concerns: the prevalence of false positives in warnings and the need for auto-fix support for most warnings. Thirdly, building upon these findings, we engineer three innovative automated refactoring techniques to effectively fix the four most frequent Clippy lints. As a result, the warning density in Rosetta benchmarks has significantly decreased from 195/KLOC to an impressive 18/KLOC, already lower than the average density of the crates-io Rust projects. These results demonstrate tangible benefit and impact of our efforts in enhancing the overall code quality and maintainability for Rust developers.
Open AccessUnleashing the Power of Clippy in Real-World Rust Projects
Clippy lints are considered as essential tools for Rust developers, as they can be configured as gate-keeping rules for a Rust project during continuous integration. Despite their availability, little was known about practical application and cost-effectiveness of the lints in reducing code quality issues. In this study, we embark on a comprehensive analysis to unveil the true impact of Clippy lints in the Rust development landscape. The study is structured around three interrelated components, each contributing to the overall effectiveness of Clippy. Firstly, we conduct a comprehensive analysis of Clippy lints in all idiomatic crates-io Rust projects with an average warning density of 21/KLOC. The analysis identifies the most cost-effective lint fixes, offering valuable opportunities for optimizing code quality. Secondly, we actively engage Rust developers through a user survey to garner invaluable feedback on their experiences with Clippy. User insights shed light on two crucial concerns: the prevalence of false positives in warnings and the need for auto-fix support for most warnings. Thirdly, building upon these findings, we engineer three innovative automated refactoring techniques to effectively fix the four most frequent Clippy lints. As a result, the warning density in Rosetta benchmarks has significantly decreased from 195/KLOC to an impressive 18/KLOC, already lower than the average density of the crates-io Rust projects. These results demonstrate tangible benefit and impact of our efforts in enhancing the overall code quality and maintainability for Rust developers.
- Open Access
- 17 July 2023
- Published by Springer Nature
- p. 459-482
Ownership Guided C to Rust Translation
Dubbed a safer C, Rust is a modern programming language that combines memory safety and low-level control. This interesting combination has made Rust very popular among developers and there is a growing trend of migrating legacy codebases (very often in C) to Rust. In this paper, we present a C to Rust translation approach centred around static ownership analysis. We design a suite of analyses that infer ownership models of C pointers and automatically translate the pointers into safe Rust equivalents. The resulting tool, Crown, scales to real-world codebases (half a million lines of code in less than 10 s) and achieves a high conversion rate.
- 17 July 2023
- Published by Springer Nature
- p. 459-482
Open AccessOwnership Guided C to Rust Translation
Dubbed a safer C, Rust is a modern programming language that combines memory safety and low-level control. This interesting combination has made Rust very popular among developers and there is a growing trend of migrating legacy codebases (very often in C) to Rust. In this paper, we present a C to Rust translation approach centred around static ownership analysis. We design a suite of analyses that infer ownership models of C pointers and automatically translate the pointers into safe Rust equivalents. The resulting tool, Crown, scales to real-world codebases (half a million lines of code in less than 10 s) and achieves a high conversion rate.
- Open Access
- 29 June 2023
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Services Computing
- Vol. 16 (5) , 3196-3209
Adaptive Observability for Forensic-Ready Microservice Systems
Microservice-based applications may include multiple instances of microservices running on containerised infrastructures. These infrastructures pose challenges to digital investigations of security incidents because digital evidence can be destroyed when containers are terminated. Observability techniques are used to facilitate the investigation of incidents in microservice systems. However, existing observability approaches do not address security incidents when there is a need to perform digital forensic investigations. Furthermore, approaches to proactively support digital forensic investigations are limited to security incidents that are known a priori. In this paper, we propose an adaptive observability approach based on game theory. The approach addresses the challenge of implementing forensic-ready microservice systems while considering uncertainties in security incidents. Our approach provides evidence collection capabilities for microservice systems and continually adapts to improve the forensic readiness of microservices. Specifically, the approach uses game theory to model and reason about the interactions between users and microservices, determining the optimal time and manner for observing microservices before the occurrence of security incidents. The performance of the approach has been assessed and compared with other observability approaches. Results of the evaluation indicate that adaptive observability outperforms other observability approaches, with improvements ranging from 3.1% up to 42.50%.
- 29 June 2023
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Services Computing
- Vol. 16 (5) , 3196-3209
Open AccessAdaptive Observability for Forensic-Ready Microservice Systems
Microservice-based applications may include multiple instances of microservices running on containerised infrastructures. These infrastructures pose challenges to digital investigations of security incidents because digital evidence can be destroyed when containers are terminated. Observability techniques are used to facilitate the investigation of incidents in microservice systems. However, existing observability approaches do not address security incidents when there is a need to perform digital forensic investigations. Furthermore, approaches to proactively support digital forensic investigations are limited to security incidents that are known a priori. In this paper, we propose an adaptive observability approach based on game theory. The approach addresses the challenge of implementing forensic-ready microservice systems while considering uncertainties in security incidents. Our approach provides evidence collection capabilities for microservice systems and continually adapts to improve the forensic readiness of microservices. Specifically, the approach uses game theory to model and reason about the interactions between users and microservices, determining the optimal time and manner for observing microservices before the occurrence of security incidents. The performance of the approach has been assessed and compared with other observability approaches. Results of the evaluation indicate that adaptive observability outperforms other observability approaches, with improvements ranging from 3.1% up to 42.50%.
- Open Access
Ownership guided C to Rust translation
Dubbed a safer C, Rust is a modern programming language that combines memory safety and low-level control. This interesting combination has made Rust very popular among developers and there is a growing trend of migrating legacy codebases (very often in C) to Rust. In this paper, we present a C to Rust translation approach centred around static ownership analysis. We design a suite of analyses that infer ownership models of C pointers and automatically translate the pointers into safe Rust equivalents. The resulting tool, Crown, scales to real-world codebases (half a million lines of code in less than 10 seconds) and achieves a high conversion rate.
Open AccessOwnership guided C to Rust translation
Dubbed a safer C, Rust is a modern programming language that combines memory safety and low-level control. This interesting combination has made Rust very popular among developers and there is a growing trend of migrating legacy codebases (very often in C) to Rust. In this paper, we present a C to Rust translation approach centred around static ownership analysis. We design a suite of analyses that infer ownership models of C pointers and automatically translate the pointers into safe Rust equivalents. The resulting tool, Crown, scales to real-world codebases (half a million lines of code in less than 10 seconds) and achieves a high conversion rate.
- Open Access
- 10 October 2022
- Published by Association for Computing Machinery (ACM)
- p. 1-3
Towards Robust Models of Code via Energy-Based Learning on Auxiliary Datasets
Existing approaches to improving the robustness of source code models concentrate on recognizing adversarial samples rather than valid samples that fall outside of a given distribution, which we refer to as out-of-distribution (OOD) samples. To this end, we propose to use an auxiliary dataset (out-of-distribution) such that, when trained together with the main dataset, they will enhance the model’s robustness. We adapt energy-bounded learning objective function to assign a higher score to in-distribution samples and a lower score to out-of-distribution samples in order to incorporate such out-of-distribution samples into the training process of source code models. In terms of OOD detection and adversarial samples detection, our evaluation results demonstrate a greater robustness for existing source code models to become more accurate at recognizing OOD data while being more resistant to adversarial attacks at the same time.
- 10 October 2022
- Published by Association for Computing Machinery (ACM)
- p. 1-3
Open AccessTowards Robust Models of Code via Energy-Based Learning on Auxiliary Datasets
Existing approaches to improving the robustness of source code models concentrate on recognizing adversarial samples rather than valid samples that fall outside of a given distribution, which we refer to as out-of-distribution (OOD) samples. To this end, we propose to use an auxiliary dataset (out-of-distribution) such that, when trained together with the main dataset, they will enhance the model’s robustness. We adapt energy-bounded learning objective function to assign a higher score to in-distribution samples and a lower score to out-of-distribution samples in order to incorporate such out-of-distribution samples into the training process of source code models. In terms of OOD detection and adversarial samples detection, our evaluation results demonstrate a greater robustness for existing source code models to become more accurate at recognizing OOD data while being more resistant to adversarial attacks at the same time.
- 31 May 2022
- Published by Korea Tourism Research Association in International Journal of Tourism and Hospitality Research
- Vol. 36 (5) , 171-183
The effects of mobile tourism information service characteristics on satisfaction and intention to use of Chinese tourists visiting Korea
본 연구에서 모바일 관광정보 서비스의 사용자를 중심으로 모바일 관광정보 서비스의 특성에 대한 지각차이를 파악하고, 모바일 관광정보 서비스의 특성요인이 어떻게 작용하는지 확인하고자 하였다. 이를 통하여 모바일 관광정보 서비스의 어떠한 특성들이 관광객에게 만족을 줄 것이고 이용의도에 어떠한 영향을 미치는가에 대해서 조사하고자 한 것이다. 본 연구의 목적을 달성하기 위하여 모바일 관광정보 서비스의 신속성, 정보성, 편리성, 혁신성을 조작적 정의에 따라 측정문항들을 산출하고 설문 조사를 시행하였다. 본 연구의 가설을 검증하기 위하여 최근 1년 이내에 모바일 기기를 통하여 무선인터넷을 사용하여 관광정보를 수집하거나 탐색한 경험이 있는 방한 중국관광객들을 대상으로 온라인 설문조사를 통하여 데이터를 수집하였다. 총 303부 설문지를 회수하여 최종분석에서 사용하였다. 본 연구를 통해 모바일 관광정보 서비스의 네 가지 특성(신속성, 정보성, 편리성, 혁신성)이 방한 중국 관광객의 만족도에 유의한 영향을 미치는 것으로 확인하였다. 모바일 관광정보 서비스의 네 가지 특성도 방한 중국 관광객의 이용의도에 유의한 영향을 미치고 있었다. 이와 함께 방한 중국 관광객의 만족도는 이용의도에 유의한 영향을 미치는 것으로 밝혀졌다. 이러한 결과를 바탕으로, 관광객 만족도 향상 및 이용의도 향상을 위해서는 모바일 관광정보 서비스의 신속성, 정보성, 편리성, 혁신성에 대한 관광객들의 요구를 만족시켜야 할 뿐만 아니라 모바일 관광정보 서비스의 관리 및 실용 측면을 강조해야 할 것이다. 따라서 본 연구에서는 모바일 관광정보 서비스의 운영 업체가 서비스 제공의 신속성, 정보성, 편의성, 혁신성을 확보해야 한다는 시사점을 제시하였다.
- 31 May 2022
- Published by Korea Tourism Research Association in International Journal of Tourism and Hospitality Research
- Vol. 36 (5) , 171-183
The effects of mobile tourism information service characteristics on satisfaction and intention to use of Chinese tourists visiting Korea
본 연구에서 모바일 관광정보 서비스의 사용자를 중심으로 모바일 관광정보 서비스의 특성에 대한 지각차이를 파악하고, 모바일 관광정보 서비스의 특성요인이 어떻게 작용하는지 확인하고자 하였다. 이를 통하여 모바일 관광정보 서비스의 어떠한 특성들이 관광객에게 만족을 줄 것이고 이용의도에 어떠한 영향을 미치는가에 대해서 조사하고자 한 것이다. 본 연구의 목적을 달성하기 위하여 모바일 관광정보 서비스의 신속성, 정보성, 편리성, 혁신성을 조작적 정의에 따라 측정문항들을 산출하고 설문 조사를 시행하였다. 본 연구의 가설을 검증하기 위하여 최근 1년 이내에 모바일 기기를 통하여 무선인터넷을 사용하여 관광정보를 수집하거나 탐색한 경험이 있는 방한 중국관광객들을 대상으로 온라인 설문조사를 통하여 데이터를 수집하였다. 총 303부 설문지를 회수하여 최종분석에서 사용하였다. 본 연구를 통해 모바일 관광정보 서비스의 네 가지 특성(신속성, 정보성, 편리성, 혁신성)이 방한 중국 관광객의 만족도에 유의한 영향을 미치는 것으로 확인하였다. 모바일 관광정보 서비스의 네 가지 특성도 방한 중국 관광객의 이용의도에 유의한 영향을 미치고 있었다. 이와 함께 방한 중국 관광객의 만족도는 이용의도에 유의한 영향을 미치는 것으로 밝혀졌다. 이러한 결과를 바탕으로, 관광객 만족도 향상 및 이용의도 향상을 위해서는 모바일 관광정보 서비스의 신속성, 정보성, 편리성, 혁신성에 대한 관광객들의 요구를 만족시켜야 할 뿐만 아니라 모바일 관광정보 서비스의 관리 및 실용 측면을 강조해야 할 것이다. 따라서 본 연구에서는 모바일 관광정보 서비스의 운영 업체가 서비스 제공의 신속성, 정보성, 편의성, 혁신성을 확보해야 한다는 시사점을 제시하였다.